Desplegando App
This commit is contained in:
162
node_modules/nodemon/node_modules/ms/index.js
generated
vendored
Normal file
162
node_modules/nodemon/node_modules/ms/index.js
generated
vendored
Normal file
@@ -0,0 +1,162 @@
|
||||
/**
|
||||
* Helpers.
|
||||
*/
|
||||
|
||||
var s = 1000;
|
||||
var m = s * 60;
|
||||
var h = m * 60;
|
||||
var d = h * 24;
|
||||
var w = d * 7;
|
||||
var y = d * 365.25;
|
||||
|
||||
/**
|
||||
* Parse or format the given `val`.
|
||||
*
|
||||
* Options:
|
||||
*
|
||||
* - `long` verbose formatting [false]
|
||||
*
|
||||
* @param {String|Number} val
|
||||
* @param {Object} [options]
|
||||
* @throws {Error} throw an error if val is not a non-empty string or a number
|
||||
* @return {String|Number}
|
||||
* @api public
|
||||
*/
|
||||
|
||||
module.exports = function(val, options) {
|
||||
options = options || {};
|
||||
var type = typeof val;
|
||||
if (type === 'string' && val.length > 0) {
|
||||
return parse(val);
|
||||
} else if (type === 'number' && isFinite(val)) {
|
||||
return options.long ? fmtLong(val) : fmtShort(val);
|
||||
}
|
||||
throw new Error(
|
||||
'val is not a non-empty string or a valid number. val=' +
|
||||
JSON.stringify(val)
|
||||
);
|
||||
};
|
||||
|
||||
/**
|
||||
* Parse the given `str` and return milliseconds.
|
||||
*
|
||||
* @param {String} str
|
||||
* @return {Number}
|
||||
* @api private
|
||||
*/
|
||||
|
||||
function parse(str) {
|
||||
str = String(str);
|
||||
if (str.length > 100) {
|
||||
return;
|
||||
}
|
||||
var match = /^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(
|
||||
str
|
||||
);
|
||||
if (!match) {
|
||||
return;
|
||||
}
|
||||
var n = parseFloat(match[1]);
|
||||
var type = (match[2] || 'ms').toLowerCase();
|
||||
switch (type) {
|
||||
case 'years':
|
||||
case 'year':
|
||||
case 'yrs':
|
||||
case 'yr':
|
||||
case 'y':
|
||||
return n * y;
|
||||
case 'weeks':
|
||||
case 'week':
|
||||
case 'w':
|
||||
return n * w;
|
||||
case 'days':
|
||||
case 'day':
|
||||
case 'd':
|
||||
return n * d;
|
||||
case 'hours':
|
||||
case 'hour':
|
||||
case 'hrs':
|
||||
case 'hr':
|
||||
case 'h':
|
||||
return n * h;
|
||||
case 'minutes':
|
||||
case 'minute':
|
||||
case 'mins':
|
||||
case 'min':
|
||||
case 'm':
|
||||
return n * m;
|
||||
case 'seconds':
|
||||
case 'second':
|
||||
case 'secs':
|
||||
case 'sec':
|
||||
case 's':
|
||||
return n * s;
|
||||
case 'milliseconds':
|
||||
case 'millisecond':
|
||||
case 'msecs':
|
||||
case 'msec':
|
||||
case 'ms':
|
||||
return n;
|
||||
default:
|
||||
return undefined;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Short format for `ms`.
|
||||
*
|
||||
* @param {Number} ms
|
||||
* @return {String}
|
||||
* @api private
|
||||
*/
|
||||
|
||||
function fmtShort(ms) {
|
||||
var msAbs = Math.abs(ms);
|
||||
if (msAbs >= d) {
|
||||
return Math.round(ms / d) + 'd';
|
||||
}
|
||||
if (msAbs >= h) {
|
||||
return Math.round(ms / h) + 'h';
|
||||
}
|
||||
if (msAbs >= m) {
|
||||
return Math.round(ms / m) + 'm';
|
||||
}
|
||||
if (msAbs >= s) {
|
||||
return Math.round(ms / s) + 's';
|
||||
}
|
||||
return ms + 'ms';
|
||||
}
|
||||
|
||||
/**
|
||||
* Long format for `ms`.
|
||||
*
|
||||
* @param {Number} ms
|
||||
* @return {String}
|
||||
* @api private
|
||||
*/
|
||||
|
||||
function fmtLong(ms) {
|
||||
var msAbs = Math.abs(ms);
|
||||
if (msAbs >= d) {
|
||||
return plural(ms, msAbs, d, 'day');
|
||||
}
|
||||
if (msAbs >= h) {
|
||||
return plural(ms, msAbs, h, 'hour');
|
||||
}
|
||||
if (msAbs >= m) {
|
||||
return plural(ms, msAbs, m, 'minute');
|
||||
}
|
||||
if (msAbs >= s) {
|
||||
return plural(ms, msAbs, s, 'second');
|
||||
}
|
||||
return ms + ' ms';
|
||||
}
|
||||
|
||||
/**
|
||||
* Pluralization helper.
|
||||
*/
|
||||
|
||||
function plural(ms, msAbs, n, name) {
|
||||
var isPlural = msAbs >= n * 1.5;
|
||||
return Math.round(ms / n) + ' ' + name + (isPlural ? 's' : '');
|
||||
}
|
||||
21
node_modules/nodemon/node_modules/ms/license.md
generated
vendored
Normal file
21
node_modules/nodemon/node_modules/ms/license.md
generated
vendored
Normal file
@@ -0,0 +1,21 @@
|
||||
The MIT License (MIT)
|
||||
|
||||
Copyright (c) 2016 Zeit, Inc.
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
of this software and associated documentation files (the "Software"), to deal
|
||||
in the Software without restriction, including without limitation the rights
|
||||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
copies of the Software, and to permit persons to whom the Software is
|
||||
furnished to do so, subject to the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in all
|
||||
copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||
SOFTWARE.
|
||||
291
node_modules/nodemon/node_modules/ms/package.json
generated
vendored
Normal file
291
node_modules/nodemon/node_modules/ms/package.json
generated
vendored
Normal file
@@ -0,0 +1,291 @@
|
||||
{
|
||||
"_args": [
|
||||
[
|
||||
"ms@^2.1.1",
|
||||
"/home/pablinux/Projects/Node/app_sigma/node_modules/nodemon/node_modules/debug"
|
||||
]
|
||||
],
|
||||
"_from": "ms@>=2.1.1 <3.0.0",
|
||||
"_hasShrinkwrap": false,
|
||||
"_id": "ms@2.1.2",
|
||||
"_inCache": true,
|
||||
"_installable": true,
|
||||
"_location": "/nodemon/ms",
|
||||
"_nodeVersion": "10.15.3",
|
||||
"_npmOperationalInternal": {
|
||||
"host": "s3://npm-registry-packages",
|
||||
"tmp": "tmp/ms_2.1.2_1559842315767_0.4700607530567853"
|
||||
},
|
||||
"_npmUser": {
|
||||
"email": "steven@ceriously.com",
|
||||
"name": "styfle"
|
||||
},
|
||||
"_npmVersion": "6.4.1",
|
||||
"_phantomChildren": {},
|
||||
"_requested": {
|
||||
"name": "ms",
|
||||
"raw": "ms@^2.1.1",
|
||||
"rawSpec": "^2.1.1",
|
||||
"scope": null,
|
||||
"spec": ">=2.1.1 <3.0.0",
|
||||
"type": "range"
|
||||
},
|
||||
"_requiredBy": [
|
||||
"/nodemon/debug"
|
||||
],
|
||||
"_resolved": "https://registry.npmjs.org/ms/-/ms-2.1.2.tgz",
|
||||
"_shasum": "d09d1f357b443f493382a8eb3ccd183872ae6009",
|
||||
"_shrinkwrap": null,
|
||||
"_spec": "ms@^2.1.1",
|
||||
"_where": "/home/pablinux/Projects/Node/app_sigma/node_modules/nodemon/node_modules/debug",
|
||||
"bugs": {
|
||||
"url": "https://github.com/zeit/ms/issues"
|
||||
},
|
||||
"dependencies": {},
|
||||
"description": "Tiny millisecond conversion utility",
|
||||
"devDependencies": {
|
||||
"eslint": "4.12.1",
|
||||
"expect.js": "0.3.1",
|
||||
"husky": "0.14.3",
|
||||
"lint-staged": "5.0.0",
|
||||
"mocha": "4.0.1"
|
||||
},
|
||||
"directories": {},
|
||||
"dist": {
|
||||
"fileCount": 4,
|
||||
"integrity": "sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w==",
|
||||
"npm-signature": "-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJc+U4MCRA9TVsSAnZWagAA71AP/2rpu0zYdK5Z/BXrrKNW\nljsVOs4oHNJ2jeZrzpcV8eZUZ6zAi78plyxcnMCbbG+TrpjXrPcb8qFq630G\nS6+srbEF0lCGCc+ktJrNJPTeXkDxukQXVrepgZ2kxZ4m3q/QIAVoK4t9ebuH\nNYa+39wwET9oPuPsk+YY0Z7fQ1vadyuzHYOrRmtudV3ZtyT0k74Ec3IhKamW\nlLDJtCklD7IGcwirrvPssxmYu8WP+PAyFnrVaOW+iior1o07oWO2mk7sk3Fx\nwBSBFf7vZqFJP6Qg1m3TVBAiipL+Pf+b3Dy8fhmn4NhTGj/9Wl7f/LcqogOV\nV9l77qsZldCERBwmwLsHlMyCSSl/b2qaz28ZBTRwHtHdo19QT6MqX8Yvomy4\n+gyPBBAHC6bqqLZ0veRKzSNFfJYoFw8tQzyjSjpmYcdxaB5w4z4QPZAkZCku\ns+sooI5Xo33E9rcEDWmyqxdUud+Au/fTttg0dReYe8NVrUgzyk4T1W+D7I4k\nu3XV7O9bOaJiBTNsb22lGIC6E/HtjfoqW7iwl0cdZ8iZcPTBClkzsy9Hz6a4\nmNKDARFL0wjzWF/CoXyKcI6t9ruOepTQRfbAtZDAo4LEYj/bGiqm2kbX5AP6\nicCOlufTNip74l2bXv2sJNwtjGzEYF/S79Oyc49IP/ovIua4quXXtSjAh8Bg\nLrV/\r\n=GrYx\r\n-----END PGP SIGNATURE-----\r\n",
|
||||
"shasum": "d09d1f357b443f493382a8eb3ccd183872ae6009",
|
||||
"tarball": "https://registry.npmjs.org/ms/-/ms-2.1.2.tgz",
|
||||
"unpackedSize": 6842
|
||||
},
|
||||
"eslintConfig": {
|
||||
"env": {
|
||||
"es6": true,
|
||||
"node": true
|
||||
},
|
||||
"extends": "eslint:recommended"
|
||||
},
|
||||
"gitHead": "7920885eb232fbe7a5efdab956d3e7c507c92ddf",
|
||||
"homepage": "https://github.com/zeit/ms#readme",
|
||||
"license": "MIT",
|
||||
"lint-staged": {
|
||||
"*.js": [
|
||||
"git add",
|
||||
"npm run lint",
|
||||
"prettier --single-quote --write"
|
||||
]
|
||||
},
|
||||
"main": "./index",
|
||||
"maintainers": [
|
||||
{
|
||||
"name": "lucleray",
|
||||
"email": "luc.leray@gmail.com"
|
||||
},
|
||||
{
|
||||
"name": "alexaltea",
|
||||
"email": "alexandro@phi.nz"
|
||||
},
|
||||
{
|
||||
"name": "andybitz",
|
||||
"email": "artzbitz@gmail.com"
|
||||
},
|
||||
{
|
||||
"name": "arunoda",
|
||||
"email": "arunoda.susiripala@gmail.com"
|
||||
},
|
||||
{
|
||||
"name": "arzafran",
|
||||
"email": "franco@basement.studio"
|
||||
},
|
||||
{
|
||||
"name": "atcastle",
|
||||
"email": "atcastle@gmail.com"
|
||||
},
|
||||
{
|
||||
"name": "b3nnyl",
|
||||
"email": "ciao@sylin.me"
|
||||
},
|
||||
{
|
||||
"name": "caarlos0",
|
||||
"email": "caarlos0@gmail.com"
|
||||
},
|
||||
{
|
||||
"name": "codetheory",
|
||||
"email": "thecodetheory@gmail.com"
|
||||
},
|
||||
{
|
||||
"name": "coetry",
|
||||
"email": "allenhai03@gmail.com"
|
||||
},
|
||||
{
|
||||
"name": "dav-is",
|
||||
"email": "mail@connordav.is"
|
||||
},
|
||||
{
|
||||
"name": "fivepointseven",
|
||||
"email": "fivepointseven@icloud.com"
|
||||
},
|
||||
{
|
||||
"name": "guybedford",
|
||||
"email": "guybedford@gmail.com"
|
||||
},
|
||||
{
|
||||
"name": "hharnisc",
|
||||
"email": "hharnisc@gmail.com"
|
||||
},
|
||||
{
|
||||
"name": "huvik",
|
||||
"email": "lukas@huvar.cz"
|
||||
},
|
||||
{
|
||||
"name": "iamevilrabbit",
|
||||
"email": "hello@evilrabb.it"
|
||||
},
|
||||
{
|
||||
"name": "igorklopov",
|
||||
"email": "igor@klopov.com"
|
||||
},
|
||||
{
|
||||
"name": "ijjk",
|
||||
"email": "jj@jjsweb.site"
|
||||
},
|
||||
{
|
||||
"name": "janicklas-ralph",
|
||||
"email": "janicklasralph036@gmail.com"
|
||||
},
|
||||
{
|
||||
"name": "javivelasco",
|
||||
"email": "javier.velasco86@gmail.com"
|
||||
},
|
||||
{
|
||||
"name": "joecohens",
|
||||
"email": "joecohenr@gmail.com"
|
||||
},
|
||||
{
|
||||
"name": "juancampa",
|
||||
"email": "juancampa@gmail.com"
|
||||
},
|
||||
{
|
||||
"name": "leo",
|
||||
"email": "leo@zeit.co"
|
||||
},
|
||||
{
|
||||
"name": "lfades",
|
||||
"email": "luisito453@gmail.com"
|
||||
},
|
||||
{
|
||||
"name": "anatrajkovska",
|
||||
"email": "ana.trajkovska2015@gmail.com"
|
||||
},
|
||||
{
|
||||
"name": "manovotny",
|
||||
"email": "manovotny@gmail.com"
|
||||
},
|
||||
{
|
||||
"name": "marcosnils",
|
||||
"email": "marcosnils@gmail.com"
|
||||
},
|
||||
{
|
||||
"name": "matheuss",
|
||||
"email": "me@matheus.top"
|
||||
},
|
||||
{
|
||||
"name": "mfix22",
|
||||
"email": "mrfix84@gmail.com"
|
||||
},
|
||||
{
|
||||
"name": "mglagola",
|
||||
"email": "mark.glagola@gmail.com"
|
||||
},
|
||||
{
|
||||
"name": "msweeneydev",
|
||||
"email": "mail@msweeneydev.com"
|
||||
},
|
||||
{
|
||||
"name": "nkzawa",
|
||||
"email": "naoyuki.kanezawa@gmail.com"
|
||||
},
|
||||
{
|
||||
"name": "olliv",
|
||||
"email": "olli@zeit.co"
|
||||
},
|
||||
{
|
||||
"name": "paco",
|
||||
"email": "pvco.coursey@gmail.com"
|
||||
},
|
||||
{
|
||||
"name": "paulogdm",
|
||||
"email": "paulogdemitri@gmail.com"
|
||||
},
|
||||
{
|
||||
"name": "quietshu",
|
||||
"email": "ds303077135@gmail.com"
|
||||
},
|
||||
{
|
||||
"name": "rabaut",
|
||||
"email": "rabautse@gmail.com"
|
||||
},
|
||||
{
|
||||
"name": "ragojose",
|
||||
"email": "ragojosefrancisco@gmail.com"
|
||||
},
|
||||
{
|
||||
"name": "rauchg",
|
||||
"email": "rauchg@gmail.com"
|
||||
},
|
||||
{
|
||||
"name": "sarupbanskota",
|
||||
"email": "sbanskota08@gmail.com"
|
||||
},
|
||||
{
|
||||
"name": "skllcrn",
|
||||
"email": "skllcrn@zeit.co"
|
||||
},
|
||||
{
|
||||
"name": "sophearak",
|
||||
"email": "t.sophearak@gmail.com"
|
||||
},
|
||||
{
|
||||
"name": "styfle",
|
||||
"email": "steven@ceriously.com"
|
||||
},
|
||||
{
|
||||
"name": "timer",
|
||||
"email": "timer150@gmail.com"
|
||||
},
|
||||
{
|
||||
"name": "timneutkens",
|
||||
"email": "tim@timneutkens.nl"
|
||||
},
|
||||
{
|
||||
"name": "tootallnate",
|
||||
"email": "nathan@tootallnate.net"
|
||||
},
|
||||
{
|
||||
"name": "umegaya",
|
||||
"email": "iyatomi@gmail.com"
|
||||
},
|
||||
{
|
||||
"name": "williamli",
|
||||
"email": "williamli@bbi.io"
|
||||
},
|
||||
{
|
||||
"name": "zeit-bot",
|
||||
"email": "team@zeit.co"
|
||||
}
|
||||
],
|
||||
"name": "ms",
|
||||
"optionalDependencies": {},
|
||||
"readme": "ERROR: No README data found!",
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "git+https://github.com/zeit/ms.git"
|
||||
},
|
||||
"scripts": {
|
||||
"lint": "eslint lib/* bin/*",
|
||||
"precommit": "lint-staged",
|
||||
"test": "mocha tests.js"
|
||||
},
|
||||
"version": "2.1.2"
|
||||
}
|
||||
60
node_modules/nodemon/node_modules/ms/readme.md
generated
vendored
Normal file
60
node_modules/nodemon/node_modules/ms/readme.md
generated
vendored
Normal file
@@ -0,0 +1,60 @@
|
||||
# ms
|
||||
|
||||
[](https://travis-ci.org/zeit/ms)
|
||||
[](https://spectrum.chat/zeit)
|
||||
|
||||
Use this package to easily convert various time formats to milliseconds.
|
||||
|
||||
## Examples
|
||||
|
||||
```js
|
||||
ms('2 days') // 172800000
|
||||
ms('1d') // 86400000
|
||||
ms('10h') // 36000000
|
||||
ms('2.5 hrs') // 9000000
|
||||
ms('2h') // 7200000
|
||||
ms('1m') // 60000
|
||||
ms('5s') // 5000
|
||||
ms('1y') // 31557600000
|
||||
ms('100') // 100
|
||||
ms('-3 days') // -259200000
|
||||
ms('-1h') // -3600000
|
||||
ms('-200') // -200
|
||||
```
|
||||
|
||||
### Convert from Milliseconds
|
||||
|
||||
```js
|
||||
ms(60000) // "1m"
|
||||
ms(2 * 60000) // "2m"
|
||||
ms(-3 * 60000) // "-3m"
|
||||
ms(ms('10 hours')) // "10h"
|
||||
```
|
||||
|
||||
### Time Format Written-Out
|
||||
|
||||
```js
|
||||
ms(60000, { long: true }) // "1 minute"
|
||||
ms(2 * 60000, { long: true }) // "2 minutes"
|
||||
ms(-3 * 60000, { long: true }) // "-3 minutes"
|
||||
ms(ms('10 hours'), { long: true }) // "10 hours"
|
||||
```
|
||||
|
||||
## Features
|
||||
|
||||
- Works both in [Node.js](https://nodejs.org) and in the browser
|
||||
- If a number is supplied to `ms`, a string with a unit is returned
|
||||
- If a string that contains the number is supplied, it returns it as a number (e.g.: it returns `100` for `'100'`)
|
||||
- If you pass a string with a number and a valid unit, the number of equivalent milliseconds is returned
|
||||
|
||||
## Related Packages
|
||||
|
||||
- [ms.macro](https://github.com/knpwrs/ms.macro) - Run `ms` as a macro at build-time.
|
||||
|
||||
## Caught a Bug?
|
||||
|
||||
1. [Fork](https://help.github.com/articles/fork-a-repo/) this repository to your own GitHub account and then [clone](https://help.github.com/articles/cloning-a-repository/) it to your local device
|
||||
2. Link the package to the global module directory: `npm link`
|
||||
3. Within the module you want to test your local development instance of ms, just link it to the dependencies: `npm link ms`. Instead of the default one from npm, Node.js will now use your clone of ms!
|
||||
|
||||
As always, you can run the tests using: `npm test`
|
||||
Reference in New Issue
Block a user