Intial Commit
This commit is contained in:
201
nodered/rootfs/data/node_modules/moment-parseformat/LICENSE.md
generated
vendored
Normal file
201
nodered/rootfs/data/node_modules/moment-parseformat/LICENSE.md
generated
vendored
Normal file
@@ -0,0 +1,201 @@
|
||||
Apache License
|
||||
Version 2.0, January 2004
|
||||
http://www.apache.org/licenses/
|
||||
|
||||
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
||||
|
||||
1. Definitions.
|
||||
|
||||
"License" shall mean the terms and conditions for use, reproduction,
|
||||
and distribution as defined by Sections 1 through 9 of this document.
|
||||
|
||||
"Licensor" shall mean the copyright owner or entity authorized by
|
||||
the copyright owner that is granting the License.
|
||||
|
||||
"Legal Entity" shall mean the union of the acting entity and all
|
||||
other entities that control, are controlled by, or are under common
|
||||
control with that entity. For the purposes of this definition,
|
||||
"control" means (i) the power, direct or indirect, to cause the
|
||||
direction or management of such entity, whether by contract or
|
||||
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
||||
outstanding shares, or (iii) beneficial ownership of such entity.
|
||||
|
||||
"You" (or "Your") shall mean an individual or Legal Entity
|
||||
exercising permissions granted by this License.
|
||||
|
||||
"Source" form shall mean the preferred form for making modifications,
|
||||
including but not limited to software source code, documentation
|
||||
source, and configuration files.
|
||||
|
||||
"Object" form shall mean any form resulting from mechanical
|
||||
transformation or translation of a Source form, including but
|
||||
not limited to compiled object code, generated documentation,
|
||||
and conversions to other media types.
|
||||
|
||||
"Work" shall mean the work of authorship, whether in Source or
|
||||
Object form, made available under the License, as indicated by a
|
||||
copyright notice that is included in or attached to the work
|
||||
(an example is provided in the Appendix below).
|
||||
|
||||
"Derivative Works" shall mean any work, whether in Source or Object
|
||||
form, that is based on (or derived from) the Work and for which the
|
||||
editorial revisions, annotations, elaborations, or other modifications
|
||||
represent, as a whole, an original work of authorship. For the purposes
|
||||
of this License, Derivative Works shall not include works that remain
|
||||
separable from, or merely link (or bind by name) to the interfaces of,
|
||||
the Work and Derivative Works thereof.
|
||||
|
||||
"Contribution" shall mean any work of authorship, including
|
||||
the original version of the Work and any modifications or additions
|
||||
to that Work or Derivative Works thereof, that is intentionally
|
||||
submitted to Licensor for inclusion in the Work by the copyright owner
|
||||
or by an individual or Legal Entity authorized to submit on behalf of
|
||||
the copyright owner. For the purposes of this definition, "submitted"
|
||||
means any form of electronic, verbal, or written communication sent
|
||||
to the Licensor or its representatives, including but not limited to
|
||||
communication on electronic mailing lists, source code control systems,
|
||||
and issue tracking systems that are managed by, or on behalf of, the
|
||||
Licensor for the purpose of discussing and improving the Work, but
|
||||
excluding communication that is conspicuously marked or otherwise
|
||||
designated in writing by the copyright owner as "Not a Contribution."
|
||||
|
||||
"Contributor" shall mean Licensor and any individual or Legal Entity
|
||||
on behalf of whom a Contribution has been received by Licensor and
|
||||
subsequently incorporated within the Work.
|
||||
|
||||
2. Grant of Copyright License. Subject to the terms and conditions of
|
||||
this License, each Contributor hereby grants to You a perpetual,
|
||||
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
||||
copyright license to reproduce, prepare Derivative Works of,
|
||||
publicly display, publicly perform, sublicense, and distribute the
|
||||
Work and such Derivative Works in Source or Object form.
|
||||
|
||||
3. Grant of Patent License. Subject to the terms and conditions of
|
||||
this License, each Contributor hereby grants to You a perpetual,
|
||||
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
||||
(except as stated in this section) patent license to make, have made,
|
||||
use, offer to sell, sell, import, and otherwise transfer the Work,
|
||||
where such license applies only to those patent claims licensable
|
||||
by such Contributor that are necessarily infringed by their
|
||||
Contribution(s) alone or by combination of their Contribution(s)
|
||||
with the Work to which such Contribution(s) was submitted. If You
|
||||
institute patent litigation against any entity (including a
|
||||
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
||||
or a Contribution incorporated within the Work constitutes direct
|
||||
or contributory patent infringement, then any patent licenses
|
||||
granted to You under this License for that Work shall terminate
|
||||
as of the date such litigation is filed.
|
||||
|
||||
4. Redistribution. You may reproduce and distribute copies of the
|
||||
Work or Derivative Works thereof in any medium, with or without
|
||||
modifications, and in Source or Object form, provided that You
|
||||
meet the following conditions:
|
||||
|
||||
(a) You must give any other recipients of the Work or
|
||||
Derivative Works a copy of this License; and
|
||||
|
||||
(b) You must cause any modified files to carry prominent notices
|
||||
stating that You changed the files; and
|
||||
|
||||
(c) You must retain, in the Source form of any Derivative Works
|
||||
that You distribute, all copyright, patent, trademark, and
|
||||
attribution notices from the Source form of the Work,
|
||||
excluding those notices that do not pertain to any part of
|
||||
the Derivative Works; and
|
||||
|
||||
(d) If the Work includes a "NOTICE" text file as part of its
|
||||
distribution, then any Derivative Works that You distribute must
|
||||
include a readable copy of the attribution notices contained
|
||||
within such NOTICE file, excluding those notices that do not
|
||||
pertain to any part of the Derivative Works, in at least one
|
||||
of the following places: within a NOTICE text file distributed
|
||||
as part of the Derivative Works; within the Source form or
|
||||
documentation, if provided along with the Derivative Works; or,
|
||||
within a display generated by the Derivative Works, if and
|
||||
wherever such third-party notices normally appear. The contents
|
||||
of the NOTICE file are for informational purposes only and
|
||||
do not modify the License. You may add Your own attribution
|
||||
notices within Derivative Works that You distribute, alongside
|
||||
or as an addendum to the NOTICE text from the Work, provided
|
||||
that such additional attribution notices cannot be construed
|
||||
as modifying the License.
|
||||
|
||||
You may add Your own copyright statement to Your modifications and
|
||||
may provide additional or different license terms and conditions
|
||||
for use, reproduction, or distribution of Your modifications, or
|
||||
for any such Derivative Works as a whole, provided Your use,
|
||||
reproduction, and distribution of the Work otherwise complies with
|
||||
the conditions stated in this License.
|
||||
|
||||
5. Submission of Contributions. Unless You explicitly state otherwise,
|
||||
any Contribution intentionally submitted for inclusion in the Work
|
||||
by You to the Licensor shall be under the terms and conditions of
|
||||
this License, without any additional terms or conditions.
|
||||
Notwithstanding the above, nothing herein shall supersede or modify
|
||||
the terms of any separate license agreement you may have executed
|
||||
with Licensor regarding such Contributions.
|
||||
|
||||
6. Trademarks. This License does not grant permission to use the trade
|
||||
names, trademarks, service marks, or product names of the Licensor,
|
||||
except as required for reasonable and customary use in describing the
|
||||
origin of the Work and reproducing the content of the NOTICE file.
|
||||
|
||||
7. Disclaimer of Warranty. Unless required by applicable law or
|
||||
agreed to in writing, Licensor provides the Work (and each
|
||||
Contributor provides its Contributions) on an "AS IS" BASIS,
|
||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
||||
implied, including, without limitation, any warranties or conditions
|
||||
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
||||
PARTICULAR PURPOSE. You are solely responsible for determining the
|
||||
appropriateness of using or redistributing the Work and assume any
|
||||
risks associated with Your exercise of permissions under this License.
|
||||
|
||||
8. Limitation of Liability. In no event and under no legal theory,
|
||||
whether in tort (including negligence), contract, or otherwise,
|
||||
unless required by applicable law (such as deliberate and grossly
|
||||
negligent acts) or agreed to in writing, shall any Contributor be
|
||||
liable to You for damages, including any direct, indirect, special,
|
||||
incidental, or consequential damages of any character arising as a
|
||||
result of this License or out of the use or inability to use the
|
||||
Work (including but not limited to damages for loss of goodwill,
|
||||
work stoppage, computer failure or malfunction, or any and all
|
||||
other commercial damages or losses), even if such Contributor
|
||||
has been advised of the possibility of such damages.
|
||||
|
||||
9. Accepting Warranty or Additional Liability. While redistributing
|
||||
the Work or Derivative Works thereof, You may choose to offer,
|
||||
and charge a fee for, acceptance of support, warranty, indemnity,
|
||||
or other liability obligations and/or rights consistent with this
|
||||
License. However, in accepting such obligations, You may act only
|
||||
on Your own behalf and on Your sole responsibility, not on behalf
|
||||
of any other Contributor, and only if You agree to indemnify,
|
||||
defend, and hold each Contributor harmless for any liability
|
||||
incurred by, or claims asserted against, such Contributor by reason
|
||||
of your accepting any such warranty or additional liability.
|
||||
|
||||
END OF TERMS AND CONDITIONS
|
||||
|
||||
APPENDIX: How to apply the Apache License to your work.
|
||||
|
||||
To apply the Apache License to your work, attach the following
|
||||
boilerplate notice, with the fields enclosed by brackets "{}"
|
||||
replaced with your own identifying information. (Don't include
|
||||
the brackets!) The text should be enclosed in the appropriate
|
||||
comment syntax for the file format. We also recommend that a
|
||||
file or class name and description of purpose be included on the
|
||||
same "printed page" as the copyright notice for easier
|
||||
identification within third-party archives.
|
||||
|
||||
Copyright 2017 Gregor Martynus
|
||||
|
||||
Licensed under the Apache License, Version 2.0 (the "License");
|
||||
you may not use this file except in compliance with the License.
|
||||
You may obtain a copy of the License at
|
||||
|
||||
http://www.apache.org/licenses/LICENSE-2.0
|
||||
|
||||
Unless required by applicable law or agreed to in writing, software
|
||||
distributed under the License is distributed on an "AS IS" BASIS,
|
||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
See the License for the specific language governing permissions and
|
||||
limitations under the License.
|
||||
104
nodered/rootfs/data/node_modules/moment-parseformat/README.md
generated
vendored
Normal file
104
nodered/rootfs/data/node_modules/moment-parseformat/README.md
generated
vendored
Normal file
@@ -0,0 +1,104 @@
|
||||
moment.parseFormat – a moment.js plugin
|
||||
=======================================
|
||||
|
||||
[](https://greenkeeper.io/)
|
||||
|
||||
> A moment.js plugin to extract the format of a date/time string
|
||||
|
||||
[](https://travis-ci.org/gr2m/moment-parseformat)
|
||||
[](https://coveralls.io/r/gr2m/moment-parseformat?branch=master)
|
||||
[](https://david-dm.org/gr2m/moment-parseformat)
|
||||
[](https://david-dm.org/gr2m/moment-parseformat#info=devDependencies)
|
||||
|
||||
Installation
|
||||
------------
|
||||
|
||||
Load via script tag
|
||||
|
||||
```html
|
||||
<script src="moment.js"></script>
|
||||
<script src="moment.parseFormat.js"></script>
|
||||
```
|
||||
|
||||
Install using [npm](https://npmjs.org/) for node.js:
|
||||
|
||||
```
|
||||
npm install --save moment-parseformat
|
||||
```
|
||||
|
||||
|
||||
Browser Usage
|
||||
-----
|
||||
|
||||
```js
|
||||
var format = moment.parseFormat('Thursday, February 6th, 2014 9:20pm'/* , options */);
|
||||
// dddd, MMMM Do, YYYY h:mma
|
||||
moment().format(format); // format
|
||||
```
|
||||
|
||||
|
||||
Node / CommonJS Usage
|
||||
-----
|
||||
```js
|
||||
var moment = require 'moment'
|
||||
var parseFormat = require('moment-parseformat')
|
||||
|
||||
var format = parseFormat('Thursday, February 6th, 2014 9:20pm'/* , options */);
|
||||
// dddd, MMMM Do, YYYY h:mma
|
||||
moment().format(format); // format
|
||||
```
|
||||
|
||||
|
||||
Options
|
||||
----
|
||||
|
||||
Options can be passed as 2nd parameter
|
||||
|
||||
|
||||
#### preferredOrder
|
||||
Type: `Object` or `String`
|
||||
|
||||
`parseFormat` tries to figure out the the order of day/month/year by itself
|
||||
if it finds 3 numbers separated by `.`, `-` or `/`. But if it can't, it will fallback
|
||||
to `preferredOrder`, which can either be set as an object to differentiate by separator,
|
||||
or as a simple string.
|
||||
|
||||
Default value:
|
||||
|
||||
```js
|
||||
preferredOrder: {
|
||||
'/': 'MDY',
|
||||
'.': 'DMY',
|
||||
'-': 'YMD'
|
||||
}
|
||||
```
|
||||
|
||||
Usage
|
||||
|
||||
```js
|
||||
parseFormat('10.10.2010', {preferredOrder: 'DMY'});
|
||||
// ☛ DD.MM.YYYY
|
||||
parseFormat('10.10.2010', {preferredOrder: 'MDY'});
|
||||
// ☛ MM.DD.YYYY
|
||||
parseFormat('10.10.2010', {preferredOrder: {
|
||||
'/': 'MDY',
|
||||
'.': 'DMY',
|
||||
'-': 'YMD'
|
||||
}});
|
||||
// ☛ MM.DD.YYYY
|
||||
parseFormat('10/10/2010', {preferredOrder: {
|
||||
'/': 'MDY',
|
||||
'.': 'DMY',
|
||||
'-': 'YMD'
|
||||
}});
|
||||
// ☛ DD/MM/YYYY
|
||||
```
|
||||
|
||||
|
||||
Fine Print
|
||||
----------
|
||||
|
||||
The moment.parseFormat Plugin have been authored by [Gregor Martynus](https://github.com/gr2m),
|
||||
proud member of the [Hoodie Community](http://hood.ie/).
|
||||
|
||||
License: MIT
|
||||
256
nodered/rootfs/data/node_modules/moment-parseformat/dist/moment-parseformat.js
generated
vendored
Normal file
256
nodered/rootfs/data/node_modules/moment-parseformat/dist/moment-parseformat.js
generated
vendored
Normal file
@@ -0,0 +1,256 @@
|
||||
(function(f){if(typeof exports==="object"&&typeof module!=="undefined"){module.exports=f()}else if(typeof define==="function"&&define.amd){define([],f)}else{var g;if(typeof window!=="undefined"){g=window}else if(typeof global!=="undefined"){g=global}else if(typeof self!=="undefined"){g=self}else{g=this}g.momentParseformat = f()}})(function(){var define,module,exports;return (function(){function r(e,n,t){function o(i,f){if(!n[i]){if(!e[i]){var c="function"==typeof require&&require;if(!f&&c)return c(i,!0);if(u)return u(i,!0);var a=new Error("Cannot find module '"+i+"'");throw a.code="MODULE_NOT_FOUND",a}var p=n[i]={exports:{}};e[i][0].call(p.exports,function(r){var n=e[i][1][r];return o(n||r)},p,p.exports,r,e,n,t)}return n[i].exports}for(var u="function"==typeof require&&require,i=0;i<t.length;i++)o(t[i]);return o}return r})()({1:[function(require,module,exports){
|
||||
var parseFormat = require('./lib/parseformat')
|
||||
module.exports = parseFormat
|
||||
|
||||
/* istanbul ignore next */
|
||||
if (typeof window !== 'undefined' && window.moment) {
|
||||
window.moment.parseFormat = parseFormat
|
||||
}
|
||||
|
||||
},{"./lib/parseformat":2}],2:[function(require,module,exports){
|
||||
module.exports = parseFormat
|
||||
|
||||
var dayNames = ['Sunday', 'Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday']
|
||||
var abbreviatedDayNames = ['Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat']
|
||||
var shortestDayNames = ['Su', 'Mo', 'Tu', 'We', 'Th', 'Fr', 'Sa']
|
||||
var monthNames = ['January', 'February', 'March', 'April', 'May', 'June', 'July', 'August', 'September', 'October', 'November', 'December']
|
||||
var abbreviatedMonthNames = ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec']
|
||||
|
||||
var regexDayNames = new RegExp(dayNames.join('|'), 'i')
|
||||
var regexAbbreviatedDayNames = new RegExp(abbreviatedDayNames.join('|'), 'i')
|
||||
var regexShortestDayNames = new RegExp('\\b(' + shortestDayNames.join('|') + ')\\b', 'i')
|
||||
var regexMonthNames = new RegExp(monthNames.join('|'), 'i')
|
||||
var regexAbbreviatedMonthNames = new RegExp(abbreviatedMonthNames.join('|'), 'i')
|
||||
|
||||
var regexFirstSecondThirdFourth = /(\d+)(st|nd|rd|th)\b/i
|
||||
var regexEndian = /(\d{1,4})([/.-])(\d{1,2})[/.-](\d{1,4})/
|
||||
|
||||
var regexTimezone = /((\+|-)\d\d:?\d\d)$/
|
||||
var amOrPm = '(' + ['AM?', 'PM?'].join('|') + ')'
|
||||
var regexHoursWithLeadingZeroDigitMinutesSecondsAmPm = new RegExp('0\\d\\:\\d{1,2}\\:\\d{1,2}(\\s*)' + amOrPm, 'i')
|
||||
var regexHoursWithLeadingZeroDigitMinutesAmPm = new RegExp('0\\d\\:\\d{1,2}(\\s*)' + amOrPm, 'i')
|
||||
var regexHoursWithLeadingZeroDigitAmPm = new RegExp('0\\d(\\s*)' + amOrPm, 'i')
|
||||
var regexHoursMinutesSecondsAmPm = new RegExp('\\d{1,2}\\:\\d{1,2}\\:\\d{1,2}(\\s*)' + amOrPm, 'i')
|
||||
var regexHoursMinutesAmPm = new RegExp('\\d{1,2}\\:\\d{1,2}(\\s*)' + amOrPm, 'i')
|
||||
var regexHoursAmPm = new RegExp('\\d{1,2}(\\s*)' + amOrPm, 'i')
|
||||
|
||||
var regexISO8601HoursWithLeadingZeroMinutesSecondsMilliseconds = /\d{2}:\d{2}:\d{2}\.\d{3}/
|
||||
var regexISO8601HoursWithLeadingZeroMinutesSecondsCentiSeconds = /\d{2}:\d{2}:\d{2}\.\d{2}/
|
||||
var regexISO8601HoursWithLeadingZeroMinutesSecondsDeciSeconds = /\d{2}:\d{2}:\d{2}\.\d{1}/
|
||||
var regexHoursWithLeadingZeroMinutesSeconds = /0\d:\d{2}:\d{2}/
|
||||
var regexHoursWithLeadingZeroMinutes = /0\d:\d{2}/
|
||||
var regexHoursMinutesSeconds = /\d{1,2}:\d{2}:\d{2}/
|
||||
var regexHoursMinutesSecondsMilliseconds = /\d{1,2}:\d{2}:\d{2}\.\d{3}/
|
||||
var regexHoursMinutesSecondsCentiSeconds = /\d{1,2}:\d{2}:\d{2}\.\d{2}/
|
||||
var regexHoursMinutesSecondsDeciSeconds = /\d{1,2}:\d{2}:\d{2}\.\d{1}/
|
||||
var regexHoursMinutes = /\d{1,2}:\d{2}/
|
||||
var regexYearLong = /\d{4}/
|
||||
var regexDayLeadingZero = /0\d/
|
||||
var regexDay = /\d{1,2}/
|
||||
var regexYearShort = /\d{2}/
|
||||
|
||||
var regexDayShortMonthShort = /^([1-9])\/([1-9]|0[1-9])$/
|
||||
var regexDayShortMonth = /^([1-9])\/(1[012])$/
|
||||
var regexDayMonthShort = /^(0[1-9]|[12][0-9]|3[01])\/([1-9])$/
|
||||
var regexDayMonth = /^(0[1-9]|[12][0-9]|3[01])\/(1[012]|0[1-9])$/
|
||||
|
||||
var regexMonthShortYearShort = /^([1-9])\/([1-9][0-9])$/
|
||||
var regexMonthYearShort = /^(0[1-9]|1[012])\/([1-9][0-9])$/
|
||||
|
||||
var formatIncludesMonth = /([/][M]|[M][/]|[MM]|[MMMM])/
|
||||
|
||||
var regexFillingWords = /\b(at)\b/i
|
||||
|
||||
var regexUnixMillisecondTimestamp = /\d{13}/
|
||||
var regexUnixTimestamp = /\d{10}/
|
||||
|
||||
// option defaults
|
||||
var defaultOrder = {
|
||||
'/': 'MDY',
|
||||
'.': 'DMY',
|
||||
'-': 'YMD'
|
||||
}
|
||||
|
||||
function parseFormat (dateString, options) {
|
||||
var format = dateString.toString()
|
||||
|
||||
// default options
|
||||
options = options || {}
|
||||
options.preferredOrder = options.preferredOrder || defaultOrder
|
||||
|
||||
// Unix Millisecond Timestamp ☛ x
|
||||
format = format.replace(regexUnixMillisecondTimestamp, 'x')
|
||||
// Unix Timestamp ☛ X
|
||||
format = format.replace(regexUnixTimestamp, 'X')
|
||||
|
||||
// escape filling words
|
||||
format = format.replace(regexFillingWords, '[$1]')
|
||||
|
||||
// DAYS
|
||||
|
||||
// Monday ☛ dddd
|
||||
format = format.replace(regexDayNames, 'dddd')
|
||||
// Mon ☛ ddd
|
||||
format = format.replace(regexAbbreviatedDayNames, 'ddd')
|
||||
// Mo ☛ dd
|
||||
format = format.replace(regexShortestDayNames, 'dd')
|
||||
|
||||
// 1st, 2nd, 23rd ☛ do
|
||||
format = format.replace(regexFirstSecondThirdFourth, 'Do')
|
||||
|
||||
// MONTHS
|
||||
|
||||
// January ☛ MMMM
|
||||
format = format.replace(regexMonthNames, 'MMMM')
|
||||
// Jan ☛ MMM
|
||||
format = format.replace(regexAbbreviatedMonthNames, 'MMM')
|
||||
|
||||
// replace endians, like 8/20/2010, 20.8.2010 or 2010-8-20
|
||||
format = format.replace(regexEndian, replaceEndian.bind(null, options))
|
||||
|
||||
// TIME
|
||||
|
||||
// timezone +02:00 ☛ Z
|
||||
format = format.replace(regexTimezone, 'Z')
|
||||
// 23:39:43.331 ☛ 'HH:mm:ss.SSS'
|
||||
format = format.replace(regexISO8601HoursWithLeadingZeroMinutesSecondsMilliseconds, 'HH:mm:ss.SSS')
|
||||
// 23:39:43.33 ☛ 'HH:mm:ss.SS'
|
||||
format = format.replace(regexISO8601HoursWithLeadingZeroMinutesSecondsCentiSeconds, 'HH:mm:ss.SS')
|
||||
// 23:39:43.3 ☛ 'HH:mm:ss.S'
|
||||
format = format.replace(regexISO8601HoursWithLeadingZeroMinutesSecondsDeciSeconds, 'HH:mm:ss.S')
|
||||
function replaceWithAmPm (timeFormat) {
|
||||
return function (match, whitespace, amPm) {
|
||||
return timeFormat + whitespace + (amPm[0].toUpperCase() === amPm[0] ? 'A' : 'a')
|
||||
}
|
||||
}
|
||||
// 05:30:20pm ☛ hh:mm:ssa
|
||||
format = format.replace(regexHoursWithLeadingZeroDigitMinutesSecondsAmPm, replaceWithAmPm('hh:mm:ss'))
|
||||
// 10:30:20pm ☛ h:mm:ssa
|
||||
format = format.replace(regexHoursMinutesSecondsAmPm, replaceWithAmPm('h:mm:ss'))
|
||||
// 05:30pm ☛ hh:mma
|
||||
format = format.replace(regexHoursWithLeadingZeroDigitMinutesAmPm, replaceWithAmPm('hh:mm'))
|
||||
// 10:30pm ☛ h:mma
|
||||
format = format.replace(regexHoursMinutesAmPm, replaceWithAmPm('h:mm'))
|
||||
// 05pm ☛ hha
|
||||
format = format.replace(regexHoursWithLeadingZeroDigitAmPm, replaceWithAmPm('hh'))
|
||||
// 10pm ☛ ha
|
||||
format = format.replace(regexHoursAmPm, replaceWithAmPm('h'))
|
||||
// 05:30:20 ☛ HH:mm:ss
|
||||
format = format.replace(regexHoursWithLeadingZeroMinutesSeconds, 'HH:mm:ss')
|
||||
// 5:30:20.222 ☛ H:mm:ss.SSS
|
||||
format = format.replace(regexHoursMinutesSecondsMilliseconds, 'H:mm:ss.SSS')
|
||||
// 5:30:20.22 ☛ H:mm:ss.SS
|
||||
format = format.replace(regexHoursMinutesSecondsCentiSeconds, 'H:mm:ss.SS')
|
||||
// 5:30:20.2 ☛ H:mm:ss.S
|
||||
format = format.replace(regexHoursMinutesSecondsDeciSeconds, 'H:mm:ss.S')
|
||||
// 10:30:20 ☛ H:mm:ss
|
||||
format = format.replace(regexHoursMinutesSeconds, 'H:mm:ss')
|
||||
// 05:30 ☛ H:mm
|
||||
format = format.replace(regexHoursWithLeadingZeroMinutes, 'HH:mm')
|
||||
// 10:30 ☛ HH:mm
|
||||
format = format.replace(regexHoursMinutes, 'H:mm')
|
||||
|
||||
// do we still have numbers left?
|
||||
|
||||
// Lets check for 4 digits first, these are years for sure
|
||||
format = format.replace(regexYearLong, 'YYYY')
|
||||
|
||||
// check if both numbers are < 13, then it must be D/M
|
||||
format = format.replace(regexDayShortMonthShort, 'D/M')
|
||||
|
||||
// check if first number is < 10 && last < 13, then it must be D/MM
|
||||
format = format.replace(regexDayShortMonth, 'D/MM')
|
||||
|
||||
// check if last number is < 32 && last < 10, then it must be DD/M
|
||||
format = format.replace(regexDayMonthShort, 'DD/M')
|
||||
|
||||
// check if both numbers are > 10, but first < 32 && last < 13, then it must be DD/MM
|
||||
format = format.replace(regexDayMonth, 'DD/MM')
|
||||
|
||||
// check if first < 10 && last > 12, then it must be M/YY
|
||||
format = format.replace(regexMonthShortYearShort, 'M/YY')
|
||||
|
||||
// check if first < 13 && last > 12, then it must be MM/YY
|
||||
format = format.replace(regexMonthYearShort, 'MM/YY')
|
||||
|
||||
// to prevent 9.20 gets formated to D.Y, we format the complete date first, then go for the time
|
||||
if (format.match(formatIncludesMonth)) {
|
||||
var regexHoursDotWithLeadingZeroOrDoubleDigitMinutes = /0\d.\d{2}|\d{2}.\d{2}/
|
||||
var regexHoursDotMinutes = /\d{1}.\d{2}/
|
||||
|
||||
format = format.replace(regexHoursDotWithLeadingZeroOrDoubleDigitMinutes, 'H.mm')
|
||||
format = format.replace(regexHoursDotMinutes, 'h.mm')
|
||||
}
|
||||
|
||||
// now, the next number, if existing, must be a day
|
||||
format = format.replace(regexDayLeadingZero, 'DD')
|
||||
format = format.replace(regexDay, 'D')
|
||||
|
||||
// last but not least, there could still be a year left
|
||||
format = format.replace(regexYearShort, 'YY')
|
||||
|
||||
if (format.length < 1) {
|
||||
format = undefined
|
||||
}
|
||||
|
||||
return format
|
||||
}
|
||||
|
||||
// if we can't find an endian based on the separator, but
|
||||
// there still is a short date with day, month & year,
|
||||
// we try to make a smart decision to identify the order
|
||||
function replaceEndian (options, matchedPart, first, separator, second, third) {
|
||||
var parts
|
||||
var hasSingleDigit = Math.min(first.length, second.length, third.length) === 1
|
||||
var hasQuadDigit = Math.max(first.length, second.length, third.length) === 4
|
||||
var preferredOrder = typeof options.preferredOrder === 'string' ? options.preferredOrder : options.preferredOrder[separator]
|
||||
|
||||
first = parseInt(first, 10)
|
||||
second = parseInt(second, 10)
|
||||
third = parseInt(third, 10)
|
||||
parts = [first, second, third]
|
||||
preferredOrder = preferredOrder.toUpperCase()
|
||||
|
||||
// If first is a year, order will always be Year-Month-Day
|
||||
if (first > 31) {
|
||||
parts[0] = hasQuadDigit ? 'YYYY' : 'YY'
|
||||
parts[1] = hasSingleDigit ? 'M' : 'MM'
|
||||
parts[2] = hasSingleDigit ? 'D' : 'DD'
|
||||
return parts.join(separator)
|
||||
}
|
||||
|
||||
// Second will never be the year. And if it is a day,
|
||||
// the order will always be Month-Day-Year
|
||||
if (second > 12) {
|
||||
parts[0] = hasSingleDigit ? 'M' : 'MM'
|
||||
parts[1] = hasSingleDigit ? 'D' : 'DD'
|
||||
parts[2] = hasQuadDigit ? 'YYYY' : 'YY'
|
||||
return parts.join(separator)
|
||||
}
|
||||
|
||||
// if third is a year ...
|
||||
if (third > 31) {
|
||||
parts[2] = hasQuadDigit ? 'YYYY' : 'YY'
|
||||
|
||||
// ... try to find day in first and second.
|
||||
// If found, the remaining part is the month.
|
||||
if (preferredOrder[0] === 'M' && first < 13) {
|
||||
parts[0] = hasSingleDigit ? 'M' : 'MM'
|
||||
parts[1] = hasSingleDigit ? 'D' : 'DD'
|
||||
return parts.join(separator)
|
||||
}
|
||||
parts[0] = hasSingleDigit ? 'D' : 'DD'
|
||||
parts[1] = hasSingleDigit ? 'M' : 'MM'
|
||||
return parts.join(separator)
|
||||
}
|
||||
|
||||
// if we had no luck until here, we use the preferred order
|
||||
parts[preferredOrder.indexOf('D')] = hasSingleDigit ? 'D' : 'DD'
|
||||
parts[preferredOrder.indexOf('M')] = hasSingleDigit ? 'M' : 'MM'
|
||||
parts[preferredOrder.indexOf('Y')] = hasQuadDigit ? 'YYYY' : 'YY'
|
||||
|
||||
return parts.join(separator)
|
||||
}
|
||||
|
||||
},{}]},{},[1])(1)
|
||||
});
|
||||
7
nodered/rootfs/data/node_modules/moment-parseformat/index.js
generated
vendored
Normal file
7
nodered/rootfs/data/node_modules/moment-parseformat/index.js
generated
vendored
Normal file
@@ -0,0 +1,7 @@
|
||||
var parseFormat = require('./lib/parseformat')
|
||||
module.exports = parseFormat
|
||||
|
||||
/* istanbul ignore next */
|
||||
if (typeof window !== 'undefined' && window.moment) {
|
||||
window.moment.parseFormat = parseFormat
|
||||
}
|
||||
243
nodered/rootfs/data/node_modules/moment-parseformat/lib/parseformat.js
generated
vendored
Normal file
243
nodered/rootfs/data/node_modules/moment-parseformat/lib/parseformat.js
generated
vendored
Normal file
@@ -0,0 +1,243 @@
|
||||
module.exports = parseFormat
|
||||
|
||||
var dayNames = ['Sunday', 'Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday']
|
||||
var abbreviatedDayNames = ['Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat']
|
||||
var shortestDayNames = ['Su', 'Mo', 'Tu', 'We', 'Th', 'Fr', 'Sa']
|
||||
var monthNames = ['January', 'February', 'March', 'April', 'May', 'June', 'July', 'August', 'September', 'October', 'November', 'December']
|
||||
var abbreviatedMonthNames = ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec']
|
||||
|
||||
var regexDayNames = new RegExp(dayNames.join('|'), 'i')
|
||||
var regexAbbreviatedDayNames = new RegExp(abbreviatedDayNames.join('|'), 'i')
|
||||
var regexShortestDayNames = new RegExp('\\b(' + shortestDayNames.join('|') + ')\\b', 'i')
|
||||
var regexMonthNames = new RegExp(monthNames.join('|'), 'i')
|
||||
var regexAbbreviatedMonthNames = new RegExp(abbreviatedMonthNames.join('|'), 'i')
|
||||
|
||||
var regexFirstSecondThirdFourth = /(\d+)(st|nd|rd|th)\b/i
|
||||
var regexEndian = /(\d{1,4})([/.-])(\d{1,2})[/.-](\d{1,4})/
|
||||
|
||||
var regexTimezone = /((\+|-)\d\d:?\d\d)$/
|
||||
var amOrPm = '(' + ['AM?', 'PM?'].join('|') + ')'
|
||||
var regexHoursWithLeadingZeroDigitMinutesSecondsAmPm = new RegExp('0\\d\\:\\d{1,2}\\:\\d{1,2}(\\s*)' + amOrPm, 'i')
|
||||
var regexHoursWithLeadingZeroDigitMinutesAmPm = new RegExp('0\\d\\:\\d{1,2}(\\s*)' + amOrPm, 'i')
|
||||
var regexHoursWithLeadingZeroDigitAmPm = new RegExp('0\\d(\\s*)' + amOrPm, 'i')
|
||||
var regexHoursMinutesSecondsAmPm = new RegExp('\\d{1,2}\\:\\d{1,2}\\:\\d{1,2}(\\s*)' + amOrPm, 'i')
|
||||
var regexHoursMinutesAmPm = new RegExp('\\d{1,2}\\:\\d{1,2}(\\s*)' + amOrPm, 'i')
|
||||
var regexHoursAmPm = new RegExp('\\d{1,2}(\\s*)' + amOrPm, 'i')
|
||||
|
||||
var regexISO8601HoursWithLeadingZeroMinutesSecondsMilliseconds = /\d{2}:\d{2}:\d{2}\.\d{3}/
|
||||
var regexISO8601HoursWithLeadingZeroMinutesSecondsCentiSeconds = /\d{2}:\d{2}:\d{2}\.\d{2}/
|
||||
var regexISO8601HoursWithLeadingZeroMinutesSecondsDeciSeconds = /\d{2}:\d{2}:\d{2}\.\d{1}/
|
||||
var regexHoursWithLeadingZeroMinutesSeconds = /0\d:\d{2}:\d{2}/
|
||||
var regexHoursWithLeadingZeroMinutes = /0\d:\d{2}/
|
||||
var regexHoursMinutesSeconds = /\d{1,2}:\d{2}:\d{2}/
|
||||
var regexHoursMinutesSecondsMilliseconds = /\d{1,2}:\d{2}:\d{2}\.\d{3}/
|
||||
var regexHoursMinutesSecondsCentiSeconds = /\d{1,2}:\d{2}:\d{2}\.\d{2}/
|
||||
var regexHoursMinutesSecondsDeciSeconds = /\d{1,2}:\d{2}:\d{2}\.\d{1}/
|
||||
var regexHoursMinutes = /\d{1,2}:\d{2}/
|
||||
var regexYearLong = /\d{4}/
|
||||
var regexDayLeadingZero = /0\d/
|
||||
var regexDay = /\d{1,2}/
|
||||
var regexYearShort = /\d{2}/
|
||||
|
||||
var regexDayShortMonthShort = /^([1-9])\/([1-9]|0[1-9])$/
|
||||
var regexDayShortMonth = /^([1-9])\/(1[012])$/
|
||||
var regexDayMonthShort = /^(0[1-9]|[12][0-9]|3[01])\/([1-9])$/
|
||||
var regexDayMonth = /^(0[1-9]|[12][0-9]|3[01])\/(1[012]|0[1-9])$/
|
||||
|
||||
var regexMonthShortYearShort = /^([1-9])\/([1-9][0-9])$/
|
||||
var regexMonthYearShort = /^(0[1-9]|1[012])\/([1-9][0-9])$/
|
||||
|
||||
var formatIncludesMonth = /([/][M]|[M][/]|[MM]|[MMMM])/
|
||||
|
||||
var regexFillingWords = /\b(at)\b/i
|
||||
|
||||
var regexUnixMillisecondTimestamp = /\d{13}/
|
||||
var regexUnixTimestamp = /\d{10}/
|
||||
|
||||
// option defaults
|
||||
var defaultOrder = {
|
||||
'/': 'MDY',
|
||||
'.': 'DMY',
|
||||
'-': 'YMD'
|
||||
}
|
||||
|
||||
function parseFormat (dateString, options) {
|
||||
var format = dateString.toString()
|
||||
|
||||
// default options
|
||||
options = options || {}
|
||||
options.preferredOrder = options.preferredOrder || defaultOrder
|
||||
|
||||
// Unix Millisecond Timestamp ☛ x
|
||||
format = format.replace(regexUnixMillisecondTimestamp, 'x')
|
||||
// Unix Timestamp ☛ X
|
||||
format = format.replace(regexUnixTimestamp, 'X')
|
||||
|
||||
// escape filling words
|
||||
format = format.replace(regexFillingWords, '[$1]')
|
||||
|
||||
// DAYS
|
||||
|
||||
// Monday ☛ dddd
|
||||
format = format.replace(regexDayNames, 'dddd')
|
||||
// Mon ☛ ddd
|
||||
format = format.replace(regexAbbreviatedDayNames, 'ddd')
|
||||
// Mo ☛ dd
|
||||
format = format.replace(regexShortestDayNames, 'dd')
|
||||
|
||||
// 1st, 2nd, 23rd ☛ do
|
||||
format = format.replace(regexFirstSecondThirdFourth, 'Do')
|
||||
|
||||
// MONTHS
|
||||
|
||||
// January ☛ MMMM
|
||||
format = format.replace(regexMonthNames, 'MMMM')
|
||||
// Jan ☛ MMM
|
||||
format = format.replace(regexAbbreviatedMonthNames, 'MMM')
|
||||
|
||||
// replace endians, like 8/20/2010, 20.8.2010 or 2010-8-20
|
||||
format = format.replace(regexEndian, replaceEndian.bind(null, options))
|
||||
|
||||
// TIME
|
||||
|
||||
// timezone +02:00 ☛ Z
|
||||
format = format.replace(regexTimezone, 'Z')
|
||||
// 23:39:43.331 ☛ 'HH:mm:ss.SSS'
|
||||
format = format.replace(regexISO8601HoursWithLeadingZeroMinutesSecondsMilliseconds, 'HH:mm:ss.SSS')
|
||||
// 23:39:43.33 ☛ 'HH:mm:ss.SS'
|
||||
format = format.replace(regexISO8601HoursWithLeadingZeroMinutesSecondsCentiSeconds, 'HH:mm:ss.SS')
|
||||
// 23:39:43.3 ☛ 'HH:mm:ss.S'
|
||||
format = format.replace(regexISO8601HoursWithLeadingZeroMinutesSecondsDeciSeconds, 'HH:mm:ss.S')
|
||||
function replaceWithAmPm (timeFormat) {
|
||||
return function (match, whitespace, amPm) {
|
||||
return timeFormat + whitespace + (amPm[0].toUpperCase() === amPm[0] ? 'A' : 'a')
|
||||
}
|
||||
}
|
||||
// 05:30:20pm ☛ hh:mm:ssa
|
||||
format = format.replace(regexHoursWithLeadingZeroDigitMinutesSecondsAmPm, replaceWithAmPm('hh:mm:ss'))
|
||||
// 10:30:20pm ☛ h:mm:ssa
|
||||
format = format.replace(regexHoursMinutesSecondsAmPm, replaceWithAmPm('h:mm:ss'))
|
||||
// 05:30pm ☛ hh:mma
|
||||
format = format.replace(regexHoursWithLeadingZeroDigitMinutesAmPm, replaceWithAmPm('hh:mm'))
|
||||
// 10:30pm ☛ h:mma
|
||||
format = format.replace(regexHoursMinutesAmPm, replaceWithAmPm('h:mm'))
|
||||
// 05pm ☛ hha
|
||||
format = format.replace(regexHoursWithLeadingZeroDigitAmPm, replaceWithAmPm('hh'))
|
||||
// 10pm ☛ ha
|
||||
format = format.replace(regexHoursAmPm, replaceWithAmPm('h'))
|
||||
// 05:30:20 ☛ HH:mm:ss
|
||||
format = format.replace(regexHoursWithLeadingZeroMinutesSeconds, 'HH:mm:ss')
|
||||
// 5:30:20.222 ☛ H:mm:ss.SSS
|
||||
format = format.replace(regexHoursMinutesSecondsMilliseconds, 'H:mm:ss.SSS')
|
||||
// 5:30:20.22 ☛ H:mm:ss.SS
|
||||
format = format.replace(regexHoursMinutesSecondsCentiSeconds, 'H:mm:ss.SS')
|
||||
// 5:30:20.2 ☛ H:mm:ss.S
|
||||
format = format.replace(regexHoursMinutesSecondsDeciSeconds, 'H:mm:ss.S')
|
||||
// 10:30:20 ☛ H:mm:ss
|
||||
format = format.replace(regexHoursMinutesSeconds, 'H:mm:ss')
|
||||
// 05:30 ☛ H:mm
|
||||
format = format.replace(regexHoursWithLeadingZeroMinutes, 'HH:mm')
|
||||
// 10:30 ☛ HH:mm
|
||||
format = format.replace(regexHoursMinutes, 'H:mm')
|
||||
|
||||
// do we still have numbers left?
|
||||
|
||||
// Lets check for 4 digits first, these are years for sure
|
||||
format = format.replace(regexYearLong, 'YYYY')
|
||||
|
||||
// check if both numbers are < 13, then it must be D/M
|
||||
format = format.replace(regexDayShortMonthShort, 'D/M')
|
||||
|
||||
// check if first number is < 10 && last < 13, then it must be D/MM
|
||||
format = format.replace(regexDayShortMonth, 'D/MM')
|
||||
|
||||
// check if last number is < 32 && last < 10, then it must be DD/M
|
||||
format = format.replace(regexDayMonthShort, 'DD/M')
|
||||
|
||||
// check if both numbers are > 10, but first < 32 && last < 13, then it must be DD/MM
|
||||
format = format.replace(regexDayMonth, 'DD/MM')
|
||||
|
||||
// check if first < 10 && last > 12, then it must be M/YY
|
||||
format = format.replace(regexMonthShortYearShort, 'M/YY')
|
||||
|
||||
// check if first < 13 && last > 12, then it must be MM/YY
|
||||
format = format.replace(regexMonthYearShort, 'MM/YY')
|
||||
|
||||
// to prevent 9.20 gets formated to D.Y, we format the complete date first, then go for the time
|
||||
if (format.match(formatIncludesMonth)) {
|
||||
var regexHoursDotWithLeadingZeroOrDoubleDigitMinutes = /0\d.\d{2}|\d{2}.\d{2}/
|
||||
var regexHoursDotMinutes = /\d{1}.\d{2}/
|
||||
|
||||
format = format.replace(regexHoursDotWithLeadingZeroOrDoubleDigitMinutes, 'H.mm')
|
||||
format = format.replace(regexHoursDotMinutes, 'h.mm')
|
||||
}
|
||||
|
||||
// now, the next number, if existing, must be a day
|
||||
format = format.replace(regexDayLeadingZero, 'DD')
|
||||
format = format.replace(regexDay, 'D')
|
||||
|
||||
// last but not least, there could still be a year left
|
||||
format = format.replace(regexYearShort, 'YY')
|
||||
|
||||
if (format.length < 1) {
|
||||
format = undefined
|
||||
}
|
||||
|
||||
return format
|
||||
}
|
||||
|
||||
// if we can't find an endian based on the separator, but
|
||||
// there still is a short date with day, month & year,
|
||||
// we try to make a smart decision to identify the order
|
||||
function replaceEndian (options, matchedPart, first, separator, second, third) {
|
||||
var parts
|
||||
var hasSingleDigit = Math.min(first.length, second.length, third.length) === 1
|
||||
var hasQuadDigit = Math.max(first.length, second.length, third.length) === 4
|
||||
var preferredOrder = typeof options.preferredOrder === 'string' ? options.preferredOrder : options.preferredOrder[separator]
|
||||
|
||||
first = parseInt(first, 10)
|
||||
second = parseInt(second, 10)
|
||||
third = parseInt(third, 10)
|
||||
parts = [first, second, third]
|
||||
preferredOrder = preferredOrder.toUpperCase()
|
||||
|
||||
// If first is a year, order will always be Year-Month-Day
|
||||
if (first > 31) {
|
||||
parts[0] = hasQuadDigit ? 'YYYY' : 'YY'
|
||||
parts[1] = hasSingleDigit ? 'M' : 'MM'
|
||||
parts[2] = hasSingleDigit ? 'D' : 'DD'
|
||||
return parts.join(separator)
|
||||
}
|
||||
|
||||
// Second will never be the year. And if it is a day,
|
||||
// the order will always be Month-Day-Year
|
||||
if (second > 12) {
|
||||
parts[0] = hasSingleDigit ? 'M' : 'MM'
|
||||
parts[1] = hasSingleDigit ? 'D' : 'DD'
|
||||
parts[2] = hasQuadDigit ? 'YYYY' : 'YY'
|
||||
return parts.join(separator)
|
||||
}
|
||||
|
||||
// if third is a year ...
|
||||
if (third > 31) {
|
||||
parts[2] = hasQuadDigit ? 'YYYY' : 'YY'
|
||||
|
||||
// ... try to find day in first and second.
|
||||
// If found, the remaining part is the month.
|
||||
if (preferredOrder[0] === 'M' && first < 13) {
|
||||
parts[0] = hasSingleDigit ? 'M' : 'MM'
|
||||
parts[1] = hasSingleDigit ? 'D' : 'DD'
|
||||
return parts.join(separator)
|
||||
}
|
||||
parts[0] = hasSingleDigit ? 'D' : 'DD'
|
||||
parts[1] = hasSingleDigit ? 'M' : 'MM'
|
||||
return parts.join(separator)
|
||||
}
|
||||
|
||||
// if we had no luck until here, we use the preferred order
|
||||
parts[preferredOrder.indexOf('D')] = hasSingleDigit ? 'D' : 'DD'
|
||||
parts[preferredOrder.indexOf('M')] = hasSingleDigit ? 'M' : 'MM'
|
||||
parts[preferredOrder.indexOf('Y')] = hasQuadDigit ? 'YYYY' : 'YY'
|
||||
|
||||
return parts.join(separator)
|
||||
}
|
||||
92
nodered/rootfs/data/node_modules/moment-parseformat/package.json
generated
vendored
Normal file
92
nodered/rootfs/data/node_modules/moment-parseformat/package.json
generated
vendored
Normal file
@@ -0,0 +1,92 @@
|
||||
{
|
||||
"_from": "moment-parseformat@^3.0.0",
|
||||
"_id": "moment-parseformat@3.0.0",
|
||||
"_inBundle": false,
|
||||
"_integrity": "sha512-dVgXe6b6DLnv4CHG7a1zUe5mSXaIZ3c6lSHm/EKeVeQI2/4pwe0VRde8OyoCE1Ro2lKT5P6uT9JElF7KDLV+jw==",
|
||||
"_location": "/moment-parseformat",
|
||||
"_phantomChildren": {},
|
||||
"_requested": {
|
||||
"type": "range",
|
||||
"registry": true,
|
||||
"raw": "moment-parseformat@^3.0.0",
|
||||
"name": "moment-parseformat",
|
||||
"escapedName": "moment-parseformat",
|
||||
"rawSpec": "^3.0.0",
|
||||
"saveSpec": null,
|
||||
"fetchSpec": "^3.0.0"
|
||||
},
|
||||
"_requiredBy": [
|
||||
"/node-red-contrib-moment"
|
||||
],
|
||||
"_resolved": "https://registry.npmjs.org/moment-parseformat/-/moment-parseformat-3.0.0.tgz",
|
||||
"_shasum": "3a1dc438b4bc073b7e93cc298cfb6c5daac26dba",
|
||||
"_spec": "moment-parseformat@^3.0.0",
|
||||
"_where": "/data/node_modules/node-red-contrib-moment",
|
||||
"author": {
|
||||
"name": "Gregor Martynus",
|
||||
"email": "gregor@martynus.net"
|
||||
},
|
||||
"bugs": {
|
||||
"url": "https://github.com/gr2m/moment-parseformat/issues"
|
||||
},
|
||||
"bundleDependencies": false,
|
||||
"deprecated": false,
|
||||
"description": "A moment.js plugin to extract the format of a date/time string",
|
||||
"devDependencies": {
|
||||
"beefy": "^2.1.5",
|
||||
"browserify": "^16.0.0",
|
||||
"gh-pages-deploy": "^0.5.0",
|
||||
"istanbul": "^0.4.0",
|
||||
"istanbul-coveralls": "^1.0.1",
|
||||
"mkdirp": "^0.5.1",
|
||||
"moment": "^2.10.6",
|
||||
"rimraf": "^2.4.4",
|
||||
"semantic-release": "^15.0.0",
|
||||
"standard": "^11.0.0",
|
||||
"tap-spec": "^4.1.0",
|
||||
"tape": "^4.2.0"
|
||||
},
|
||||
"files": [
|
||||
"lib",
|
||||
"dist",
|
||||
"index.js"
|
||||
],
|
||||
"gh-pages-deploy": {
|
||||
"staticpath": "demo",
|
||||
"noprompt": true
|
||||
},
|
||||
"homepage": "http://gr2m.github.io/moment-parseformat",
|
||||
"keywords": [
|
||||
"momentjs",
|
||||
"date",
|
||||
"parse",
|
||||
"format"
|
||||
],
|
||||
"license": "MIT",
|
||||
"name": "moment-parseformat",
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "git+https://github.com/gr2m/moment-parseformat.git"
|
||||
},
|
||||
"scripts": {
|
||||
"build": "browserify index.js -s moment-parseformat -o dist/moment-parseformat.js",
|
||||
"build:demo": "browserify index.js -s moment-parseformat -o demo/moment-parseformat.js",
|
||||
"deploy": "npm run build:demo && npm run deploydocs",
|
||||
"deploydocs": "gh-pages-deploy",
|
||||
"prebuild": "rimraf dist && mkdirp dist",
|
||||
"predeploydocs": "./bin/authorize-push.js",
|
||||
"presemantic-release": "npm run build",
|
||||
"pretest": "standard",
|
||||
"semantic-release": "semantic-release",
|
||||
"start": "npm run build:demo && beefy ./index.js --cwd=./demo",
|
||||
"test": "npm run -s test:node | tap-spec",
|
||||
"test:coverage": "istanbul cover test/moment-parseformat-test.js",
|
||||
"test:node": "node test/moment-parseformat-test.js"
|
||||
},
|
||||
"standard": {
|
||||
"ignore": [
|
||||
"demo"
|
||||
]
|
||||
},
|
||||
"version": "3.0.0"
|
||||
}
|
||||
Reference in New Issue
Block a user