Refactoring day1

This commit is contained in:
2020-08-20 20:27:14 +02:00
parent 6aceefeb2f
commit b907489a75
481 changed files with 5321 additions and 5616 deletions

1
.gitignore vendored
View File

@@ -1,3 +1,2 @@
.env
images/
node_modules/

View File

@@ -8,7 +8,6 @@ import routeRestaurant from "../routes/routeRestaurant.js";
import routeUser from "../routes/routeUser.js";
import routeSearch from "../routes/routeSearch.js";
import routeImg from "../routes/routeImg.js";
import cookieParser from "cookie-parser";
export default ({ app, secret }) => {
const limiter = rateLimiter({
@@ -24,7 +23,6 @@ export default ({ app, secret }) => {
app.use(function (err, req, res, next) {
if (err) res.sendStatus(422);
});
app.use(cookieParser(secret));
app.use("/dish", routeDish);
app.use("/city", routeCity);
app.use("/restaurant", routeRestaurant);

View File

@@ -1,6 +1,6 @@
{
"name": "@babel/runtime",
"version": "7.11.2",
"version": "7.10.5",
"description": "babel's modular runtime helpers",
"license": "MIT",
"publishConfig": {
@@ -19,5 +19,9 @@
"devDependencies": {
"@babel/helpers": "^7.10.4"
},
"gitHead": "bc7a811fce3ceeea393229299c1cdb63858608e6"
}
"gitHead": "f7964a9ac51356f7df6404a25b27ba1cffba1ba7"
,"_resolved": "https://registry.npmjs.org/@babel/runtime/-/runtime-7.10.5.tgz"
,"_integrity": "sha512-otddXKhdNn7d0ptoFRHtMLa8LqDxLYwTjB4nYgM1yy5N6gU/MUf8zqyyLltCH3yAVitBzmwK4us+DD0l/MauAg=="
,"_from": "@babel/runtime@7.10.5"
}

View File

@@ -60,4 +60,8 @@
"zen-observable": "^0.8.8"
},
"types": "dist/index.d.ts"
}
,"_resolved": "https://registry.npmjs.org/@sindresorhus/is/-/is-0.14.0.tgz"
,"_integrity": "sha512-9NET910DNaIPngYnLLPeg+Ogzqsi9uM4mSboU5y6p8S5DzMTVEsJZrawi+BoDNUVBa2DhJqQYUFvMDfgU062LQ=="
,"_from": "@sindresorhus/is@0.14.0"
}

View File

@@ -44,4 +44,8 @@
"dependencies": {
"defer-to-connect": "^1.0.1"
}
}
,"_resolved": "https://registry.npmjs.org/@szmarczak/http-timer/-/http-timer-1.1.2.tgz"
,"_integrity": "sha512-XIB2XbzHTN6ieIjfIMV9hlVcfPU26s2vafYWQcZHWXHOxiaRZYEDKEwdl129Zyg50+foYV2jCgtrqSA6qNuNSA=="
,"_from": "@szmarczak/http-timer@1.1.2"
}

View File

@@ -20,4 +20,8 @@
"dependencies": {},
"typesPublisherContentHash": "e22c6881e2dcf766e32142cbb82d9acf9c08258bdf0da8e76c8a448d1be44ac7",
"typeScriptVersion": "2.0"
,"_resolved": "https://registry.npmjs.org/@types/color-name/-/color-name-1.1.1.tgz"
,"_integrity": "sha512-rr+OQyAjxze7GgWrSaJwydHStIhHq2lvY3BOC2Mj7KnzI7XK0Uw1TOOdI9lDoajEbSWLiYgoo4f1R51erQfhPQ=="
,"_from": "@types/color-name@1.1.1"
}

6
node_modules/abbrev/package.json generated vendored
View File

@@ -18,4 +18,8 @@
"files": [
"abbrev.js"
]
}
,"_resolved": "https://registry.npmjs.org/abbrev/-/abbrev-1.1.1.tgz"
,"_integrity": "sha512-nne9/IiQ/hzIhY6pdDnbBtz7DjPTKrY00P/zvPSm5pOFkl6xuGrGnXn/VtTNNfNtAfZ9/1RtehkszU9qcTii0Q=="
,"_from": "abbrev@1.1.1"
}

6
node_modules/accepts/package.json generated vendored
View File

@@ -44,4 +44,8 @@
"accept",
"accepts"
]
}
,"_resolved": "https://registry.npmjs.org/accepts/-/accepts-1.3.7.tgz"
,"_integrity": "sha512-Il80Qs2WjYlJIBNzNkK6KYqlVMTbZLXgHx2oT0pU/fjRHyEp+PEfEPY0R3WCwAGVOtauxh1hOxNgIf5bv7dQpA=="
,"_from": "accepts@1.3.7"
}

View File

@@ -53,4 +53,8 @@
"ava": "^1.0.1",
"xo": "^0.23.0"
}
}
,"_resolved": "https://registry.npmjs.org/string-width/-/string-width-3.1.0.tgz"
,"_integrity": "sha512-vafcv6KjVZKSgz06oM/H6GDBrAtz8vdhQakGjFIvNrHA6y3HCF1CInLy+QLq8dTJPQ1b+KDUqDFctkdRW44e1w=="
,"_from": "string-width@3.1.0"
}

View File

@@ -40,4 +40,8 @@
"standard": "^12.0.1",
"standard-version": "^4.4.0"
}
}
,"_resolved": "https://registry.npmjs.org/ansi-align/-/ansi-align-3.0.0.tgz"
,"_integrity": "sha512-ZpClVKqXN3RGBmKibdfWzqCY4lnjEuoNzU5T0oEFpfd/z5qJHVarukridD4juLO2FXMiwUQxr9WqQtaYa8XRYw=="
,"_from": "ansi-align@3.0.0"
}

8
node_modules/ansi-regex/index.js generated vendored
View File

@@ -1,10 +1,14 @@
'use strict';
module.exports = ({onlyFirst = false} = {}) => {
module.exports = options => {
options = Object.assign({
onlyFirst: false
}, options);
const pattern = [
'[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:[a-zA-Z\\d]*(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)',
'(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-ntqry=><~]))'
].join('|');
return new RegExp(pattern, onlyFirst ? undefined : 'g');
return new RegExp(pattern, options.onlyFirst ? undefined : 'g');
};

20
node_modules/ansi-regex/package.json generated vendored
View File

@@ -1,6 +1,6 @@
{
"name": "ansi-regex",
"version": "5.0.0",
"version": "4.1.0",
"description": "Regular expression for matching ANSI escape codes",
"license": "MIT",
"repository": "chalk/ansi-regex",
@@ -10,15 +10,14 @@
"url": "sindresorhus.com"
},
"engines": {
"node": ">=8"
"node": ">=6"
},
"scripts": {
"test": "xo && ava && tsd",
"test": "xo && ava",
"view-supported": "node fixtures/view-codes.js"
},
"files": [
"index.js",
"index.d.ts"
"index.js"
],
"keywords": [
"ansi",
@@ -48,8 +47,11 @@
"pattern"
],
"devDependencies": {
"ava": "^2.4.0",
"tsd": "^0.9.0",
"xo": "^0.25.3"
"ava": "^0.25.0",
"xo": "^0.23.0"
}
}
,"_resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-4.1.0.tgz"
,"_integrity": "sha512-1apePfXM1UOSqw0o9IiFAovVz9M5S1Dg+4TrDwfMewQ6p/rmMueb7tWZjQ1rx4Loy1ArBggoqGpfqqdI4rondg=="
,"_from": "ansi-regex@4.1.0"
}

35
node_modules/ansi-regex/readme.md generated vendored
View File

@@ -2,6 +2,20 @@
> Regular expression for matching [ANSI escape codes](https://en.wikipedia.org/wiki/ANSI_escape_code)
---
<div align="center">
<b>
<a href="https://tidelift.com/subscription/pkg/npm-ansi-regex?utm_source=npm-ansi-regex&utm_medium=referral&utm_campaign=readme">Get professional support for this package with a Tidelift subscription</a>
</b>
<br>
<sub>
Tidelift helps make open source sustainable for maintainers while giving companies<br>assurances about security, maintenance, and licensing for their dependencies.
</sub>
</div>
---
## Install
@@ -34,14 +48,12 @@ ansiRegex().test('cake');
## API
### ansiRegex(options?)
### ansiRegex([options])
Returns a regex for matching ANSI escape codes.
#### options
Type: `object`
##### onlyFirst
Type: `boolean`<br>
@@ -59,20 +71,17 @@ Some of the codes we run as a test are codes that we acquired finding various li
On the historical side, those ECMA standards were established in the early 90's whereas the VT100, for example, was designed in the mid/late 70's. At that point in time, control codes were still pretty ungoverned and engineers used them for a multitude of things, namely to activate hardware ports that may have been proprietary. Somewhere else you see a similar 'anarchy' of codes is in the x86 architecture for processors; there are a ton of "interrupts" that can mean different things on certain brands of processors, most of which have been phased out.
## Security
To report a security vulnerability, please use the [Tidelift security contact](https://tidelift.com/security). Tidelift will coordinate the fix and disclosure.
## Maintainers
- [Sindre Sorhus](https://github.com/sindresorhus)
- [Josh Junon](https://github.com/qix-)
---
## License
<div align="center">
<b>
<a href="https://tidelift.com/subscription/pkg/npm-ansi-regex?utm_source=npm-ansi-regex&utm_medium=referral&utm_campaign=readme">Get professional support for this package with a Tidelift subscription</a>
</b>
<br>
<sub>
Tidelift helps make open source sustainable for maintainers while giving companies<br>assurances about security, maintenance, and licensing for their dependencies.
</sub>
</div>
MIT

View File

@@ -54,4 +54,8 @@
"tsd": "^0.11.0",
"xo": "^0.25.3"
}
}
,"_resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.2.1.tgz"
,"_integrity": "sha512-9VGjrMsG1vePxcSweQsN20KY/c4zN0h9fLjqAbwbPfahM3t+NL+M9HC8xeXG2I8pX5NoamTGNuomEUFI7fcUjA=="
,"_from": "ansi-styles@4.2.1"
}

6
node_modules/anymatch/package.json generated vendored
View File

@@ -45,4 +45,8 @@
"engines": {
"node": ">= 8"
}
}
,"_resolved": "https://registry.npmjs.org/anymatch/-/anymatch-3.1.1.tgz"
,"_integrity": "sha512-mM8522psRCqzV+6LhomX5wgp25YVibjh8Wj23I5RPkPppSVSjyKD2A2mBJmWGa+KN7f2D6LNh9jkBCeyLktzjg=="
,"_from": "anymatch@3.1.1"
}

View File

@@ -16,4 +16,8 @@
"type": "git",
"url": "http://github.com/LinusU/node-append-field.git"
}
}
,"_resolved": "https://registry.npmjs.org/append-field/-/append-field-1.0.0.tgz"
,"_integrity": "sha1-HjRA6RXwsSA9I3SOeO3XubW0PlY="
,"_from": "append-field@1.0.0"
}

6
node_modules/aproba/package.json generated vendored
View File

@@ -31,4 +31,8 @@
"url": "https://github.com/iarna/aproba/issues"
},
"homepage": "https://github.com/iarna/aproba"
}
,"_resolved": "https://registry.npmjs.org/aproba/-/aproba-1.2.0.tgz"
,"_integrity": "sha512-Y9J6ZjXtoYh8RnXVCMOU/ttDmk1aBjunq9vO0ta5x85WDQiQfUF9sIPBITdbiiIVcBo03Hi3jMxigBtsddlXRw=="
,"_from": "aproba@1.2.0"
}

View File

@@ -32,4 +32,8 @@
"tracker.js",
"CHANGES.md"
]
}
,"_resolved": "https://registry.npmjs.org/are-we-there-yet/-/are-we-there-yet-1.1.5.tgz"
,"_integrity": "sha512-5hYdAkZlcG8tOLujVDTgCT+uPX0VnpAH28gWsLfzpXYm7wP6mp5Q/gYyR7YQ0cKVJcXJnl3j2kpBan13PtQf6w=="
,"_from": "are-we-there-yet@1.1.5"
}

View File

@@ -36,4 +36,8 @@
"pre-commit": "^1.0.7",
"standard": "^3.7.3"
}
}
,"_resolved": "https://registry.npmjs.org/array-flatten/-/array-flatten-1.1.1.tgz"
,"_integrity": "sha1-ml9pkFGx5wczKPKgCJaLZOopVdI="
,"_from": "array-flatten@1.1.1"
}

View File

@@ -46,4 +46,8 @@
"android-browser/4.2..latest"
]
}
}
,"_resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.0.tgz"
,"_integrity": "sha1-ibTRmasr7kneFk6gK4nORi1xt2c="
,"_from": "balanced-match@1.0.0"
}

6
node_modules/bcrypt/package.json generated vendored
View File

@@ -64,4 +64,8 @@
3
]
}
}
,"_resolved": "https://registry.npmjs.org/bcrypt/-/bcrypt-5.0.0.tgz"
,"_integrity": "sha512-jB0yCBl4W/kVHM2whjfyqnxTmOHkCX4kHEa5nYKSoGeYe8YrjTYTc87/6bwt1g8cmV0QrbhKriETg9jWtcREhg=="
,"_from": "bcrypt@5.0.0"
}

View File

@@ -35,4 +35,8 @@
"tsd": "^0.7.2",
"xo": "^0.24.0"
}
}
,"_resolved": "https://registry.npmjs.org/binary-extensions/-/binary-extensions-2.1.0.tgz"
,"_integrity": "sha512-1Yj8h9Q+QDF5FzhMs/c9+6UntbD5MkRfRwac8DoEm9ZfUBZ7tZ55YcGVAzEe4bXsdQHEk+s9S5wsOKVdZrw0tQ=="
,"_from": "binary-extensions@2.1.0"
}

6
node_modules/bl/package.json generated vendored
View File

@@ -32,4 +32,8 @@
"hash_file": "~0.1.1",
"tape": "~4.9.0"
}
}
,"_resolved": "https://registry.npmjs.org/bl/-/bl-2.2.0.tgz"
,"_integrity": "sha512-wbgvOpqopSr7uq6fJrLH8EsvYMJf9gzfo2jCsL2eTy75qXPukA4pCgHamOQkZtY5vmfVtjB+P3LNlMHW5CEZXA=="
,"_from": "bl@2.2.0"
}

6
node_modules/bluebird/package.json generated vendored
View File

@@ -74,4 +74,8 @@
"js/release",
"LICENSE"
]
}
,"_resolved": "https://registry.npmjs.org/bluebird/-/bluebird-3.5.1.tgz"
,"_integrity": "sha512-MKiLiV+I1AA596t9w1sQJ8jkiSr5+ZKi0WKrYGUn6d1Fx+Ij4tIj+m2WMQSGczs5jZVxV339chE8iwk6F64wjA=="
,"_from": "bluebird@3.5.1"
}

View File

@@ -49,4 +49,8 @@
"test-cov": "istanbul cover node_modules/mocha/bin/_mocha -- --require test/support/env --reporter dot --check-leaks test/",
"test-travis": "istanbul cover node_modules/mocha/bin/_mocha --report lcovonly -- --require test/support/env --reporter spec --check-leaks test/"
}
}
,"_resolved": "https://registry.npmjs.org/body-parser/-/body-parser-1.19.0.tgz"
,"_integrity": "sha512-dhEPs72UPbDnAQJ9ZKMNTP6ptJaionhP5cBb541nXPlW60Jepo9RV/a4fX4XWW9CuFNK22krhrj1+rgzifNCsw=="
,"_from": "body-parser@1.19.0"
}

6
node_modules/bowser/package.json generated vendored
View File

@@ -81,4 +81,8 @@
"generate-docs": "jsdoc -c jsdoc.json"
},
"license": "MIT"
}
,"_resolved": "https://registry.npmjs.org/bowser/-/bowser-2.9.0.tgz"
,"_integrity": "sha512-2ld76tuLBNFekRgmJfT2+3j5MIrP6bFict8WAIT3beq+srz1gcKNAdNKMqHqauQt63NmAa88HfP1/Ypa9Er3HA=="
,"_from": "bowser@2.9.0"
}

6
node_modules/boxen/package.json generated vendored
View File

@@ -48,4 +48,8 @@
"tsd": "^0.11.0",
"xo": "^0.25.3"
}
}
,"_resolved": "https://registry.npmjs.org/boxen/-/boxen-4.2.0.tgz"
,"_integrity": "sha512-eB4uT9RGzg2odpER62bBwSLvUeGC+WbRjjyyFhGsKnc8wp/m0+hQsMUvUe3H2V0D5vw0nBdO1hCJoZo5mKeuIQ=="
,"_from": "boxen@4.2.0"
}

View File

@@ -44,4 +44,8 @@
"android-browser/4.2..latest"
]
}
}
,"_resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz"
,"_integrity": "sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA=="
,"_from": "brace-expansion@1.1.11"
}

6
node_modules/braces/package.json generated vendored
View File

@@ -74,4 +74,8 @@
"gulp-format-md"
]
}
}
,"_resolved": "https://registry.npmjs.org/braces/-/braces-3.0.2.tgz"
,"_integrity": "sha512-b8um+L1RzM3WDSzvhm6gIz1yfTbBt6YTlcEKAvsmqCZZFw46z626lVj9j1yEPW33H5H+lBQpZMP1k8l+78Ha0A=="
,"_from": "braces@3.0.2"
}

11
node_modules/bson/HISTORY.md generated vendored
View File

@@ -1,14 +1,3 @@
# Changelog
All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
### [1.1.5](https://github.com/mongodb/js-bson/compare/v1.1.4...v1.1.5) (2020-08-10)
### Bug Fixes
* **object-id:** harden the duck-typing ([b526145](https://github.com/mongodb/js-bson/commit/b5261450c3bc4abb2e2fb19b5b1a7aba27982d44))
<a name="1.1.3"></a>
## [1.1.3](https://github.com/mongodb/js-bson/compare/v1.1.2...v1.1.3) (2019-11-09)

3
node_modules/bson/bower.json generated vendored
View File

@@ -21,6 +21,5 @@
"node_modules",
"test",
"tools"
],
"version": "1.1.5"
]
}

View File

@@ -66,7 +66,7 @@ var ObjectID = function ObjectID(id) {
} else if (id != null && id.length === 12) {
// assume 12 byte string
this.id = id;
} else if (id != null && typeof id.toHexString === 'function') {
} else if (id != null && id.toHexString) {
// Duck-typing to support ObjectId from different npm packages
return id;
} else {
@@ -357,10 +357,7 @@ ObjectID.isValid = function isValid(id) {
}
// Duck-Typing detection of ObjectId like objects
if (
typeof id.toHexString === 'function' &&
(id.id instanceof _Buffer || typeof id.id === 'string')
) {
if (id.toHexString) {
return id.id.length === 12 || (id.id.length === 24 && checkForHexRegExp.test(id.id));
}

12
node_modules/bson/package.json generated vendored
View File

@@ -12,7 +12,7 @@
"browser_build",
"bower.json"
],
"version": "1.1.5",
"version": "1.1.4",
"author": "Christian Amor Kvalheim <christkv@gmail.com>",
"contributors": [],
"repository": "mongodb/js-bson",
@@ -31,7 +31,6 @@
"babel-preset-stage-0": "^6.5.0",
"babel-register": "^6.14.0",
"conventional-changelog-cli": "^1.3.5",
"standard-version": "^7.1.0",
"webpack": "^1.13.2",
"webpack-polyfills-plugin": "0.0.9"
},
@@ -50,9 +49,12 @@
"build": "webpack --config ./webpack.dist.config.js",
"changelog": "conventional-changelog -p angular -i HISTORY.md -s",
"lint": "eslint lib test",
"format": "prettier --print-width 100 --tab-width 2 --single-quote --write 'test/**/*.js' 'lib/**/*.js'",
"release": "standard-version -i HISTORY.md"
"format": "prettier --print-width 100 --tab-width 2 --single-quote --write 'test/**/*.js' 'lib/**/*.js'"
},
"browser": "lib/bson/bson.js",
"license": "Apache-2.0"
}
,"_resolved": "https://registry.npmjs.org/bson/-/bson-1.1.4.tgz"
,"_integrity": "sha512-S/yKGU1syOMzO86+dGpg2qGoDL0zvzcb262G+gqEy6TgP6rt6z6qxSFX/8X6vLC91P7G7C3nLs0+bvDzmvBA3Q=="
,"_from": "bson@1.1.4"
}

View File

@@ -18,4 +18,8 @@
"devDependencies": {
"mocha": "~1.15.1"
}
}
,"_resolved": "https://registry.npmjs.org/buffer-equal-constant-time/-/buffer-equal-constant-time-1.0.1.tgz"
,"_integrity": "sha1-+OcRMvf/5uAaXJaXpMbz5I1cyBk="
,"_from": "buffer-equal-constant-time@1.0.1"
}

View File

@@ -16,4 +16,8 @@
"buffer",
"buffer from"
]
}
,"_resolved": "https://registry.npmjs.org/buffer-from/-/buffer-from-1.1.1.tgz"
,"_integrity": "sha512-MQcXEUbCKtEo7bhqEs6560Hyd4XaovZlO/k9V3hjVUF/zwW7KBVdSK4gIt/bzwS9MbR5qob+F5jusZsb0YQK2A=="
,"_from": "buffer-from@1.1.1"
}

View File

@@ -22,4 +22,8 @@
"url": "http://juliangruber.com"
},
"license": "MIT"
}
,"_resolved": "https://registry.npmjs.org/isarray/-/isarray-0.0.1.tgz"
,"_integrity": "sha1-ihis/Kmo9Bd+Cav8YDiTmwXR7t8="
,"_from": "isarray@0.0.1"
}

View File

@@ -29,4 +29,8 @@
},
"author": "Isaac Z. Schlueter <i@izs.me> (http://blog.izs.me/)",
"license": "MIT"
}
,"_resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-1.1.14.tgz"
,"_integrity": "sha1-fPTFTvZI44EwhMY23SB54WbAgdk="
,"_from": "readable-stream@1.1.14"
}

View File

@@ -22,4 +22,8 @@
"browserify"
],
"license": "MIT"
}
,"_resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-0.10.31.tgz"
,"_integrity": "sha1-YuIDvEF2bGwoyfyEMB2rHFMQ+pQ="
,"_from": "string_decoder@0.10.31"
}

6
node_modules/busboy/package.json generated vendored
View File

@@ -14,4 +14,8 @@
"keywords": [ "uploads", "forms", "multipart", "form-data" ],
"licenses": [ { "type": "MIT", "url": "http://github.com/mscdex/busboy/raw/master/LICENSE" } ],
"repository" : { "type": "git", "url": "http://github.com/mscdex/busboy.git" }
}
,"_resolved": "https://registry.npmjs.org/busboy/-/busboy-0.2.14.tgz"
,"_integrity": "sha1-bCpiLvz0fFe7vh4qnDetNseSVFM="
,"_from": "busboy@0.2.14"
}

6
node_modules/bytes/package.json generated vendored
View File

@@ -38,4 +38,8 @@
"test-ci": "nyc --reporter=text npm test",
"test-cov": "nyc --reporter=html --reporter=text npm test"
}
}
,"_resolved": "https://registry.npmjs.org/bytes/-/bytes-3.1.0.tgz"
,"_integrity": "sha512-zauLjrfCG+xvoyaqLoV8bLVXXNGC4JqlxFCutSDWA6fJrTo2ZuvLYTqZ7aHBLZSMOopbzwv8f+wZcVzfVTI2Dg=="
,"_from": "bytes@3.1.0"
}

View File

@@ -86,7 +86,7 @@ declare const getStream: {
- When `encoding` is set to `buffer`, it collects an array of buffers. `maxBuffer` refers to the summed byte lengths of every buffer in the array.
- When `encoding` is set to anything else, it collects an array of strings. `maxBuffer` refers to the summed character lengths of every string in the array.
*/
array<StreamObjectModeType>(
array<StreamObjectModeType = unknown>(
stream: Stream,
options?: getStream.Options
): Promise<StreamObjectModeType[]>;

View File

@@ -1,5 +1,4 @@
'use strict';
const {constants: BufferConstants} = require('buffer');
const pump = require('pump');
const bufferStream = require('./buffer-stream');
@@ -25,8 +24,7 @@ async function getStream(inputStream, options) {
let stream;
await new Promise((resolve, reject) => {
const rejectPromise = error => {
// Don't retrieve an oversized buffer.
if (error && stream.getBufferedLength() <= BufferConstants.MAX_LENGTH) {
if (error) { // A null check
error.bufferedData = stream.getBufferedValue();
}

View File

@@ -1,6 +1,6 @@
MIT License
Copyright (c) Sindre Sorhus <sindresorhus@gmail.com> (https://sindresorhus.com)
Copyright (c) Sindre Sorhus <sindresorhus@gmail.com> (sindresorhus.com)
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:

View File

@@ -1,14 +1,13 @@
{
"name": "get-stream",
"version": "5.2.0",
"version": "5.1.0",
"description": "Get a stream as a string, buffer, or array",
"license": "MIT",
"repository": "sindresorhus/get-stream",
"funding": "https://github.com/sponsors/sindresorhus",
"author": {
"name": "Sindre Sorhus",
"email": "sindresorhus@gmail.com",
"url": "https://sindresorhus.com"
"url": "sindresorhus.com"
},
"engines": {
"node": ">=8"
@@ -41,10 +40,14 @@
"pump": "^3.0.0"
},
"devDependencies": {
"@types/node": "^12.0.7",
"ava": "^2.0.0",
"@types/node": "^11.13.0",
"ava": "^1.4.1",
"into-stream": "^5.0.0",
"tsd": "^0.7.2",
"xo": "^0.24.0"
}
}
,"_resolved": "https://registry.npmjs.org/get-stream/-/get-stream-5.1.0.tgz"
,"_integrity": "sha512-EXr1FOzrzTfGeL0gQdeFEvOMm2mzMOglyiOXSTpPC+iAjAKftbr3jpCMWynogwYnM+eSj9sHGc6wjIcDvYiygw=="
,"_from": "get-stream@5.1.0"
}

View File

@@ -1,13 +1,15 @@
# get-stream [![Build Status](https://travis-ci.com/sindresorhus/get-stream.svg?branch=master)](https://travis-ci.com/github/sindresorhus/get-stream)
# get-stream [![Build Status](https://travis-ci.org/sindresorhus/get-stream.svg?branch=master)](https://travis-ci.org/sindresorhus/get-stream)
> Get a stream as a string, buffer, or array
## Install
```
$ npm install get-stream
```
## Usage
```js
@@ -42,39 +44,40 @@ const getStream = require('get-stream');
})();
```
## API
The methods returns a promise that resolves when the `end` event fires on the stream, indicating that there is no more data to be read. The stream is switched to flowing mode.
### getStream(stream, options?)
### getStream(stream, [options])
Get the `stream` as a string.
#### options
Type: `object`
Type: `Object`
##### encoding
Type: `string`\
Default: `'utf8'`
Type: `string`<br>
Default: `utf8`
[Encoding](https://nodejs.org/api/buffer.html#buffer_buffer) of the incoming stream.
##### maxBuffer
Type: `number`\
Type: `number`<br>
Default: `Infinity`
Maximum length of the returned string. If it exceeds this value before the stream ends, the promise will be rejected with a `getStream.MaxBufferError` error.
### getStream.buffer(stream, options?)
### getStream.buffer(stream, [options])
Get the `stream` as a buffer.
It honors the `maxBuffer` option as above, but it refers to byte length rather than string length.
### getStream.array(stream, options?)
### getStream.array(stream, [options])
Get the `stream` as an array of values.
@@ -86,6 +89,7 @@ It honors both the `maxBuffer` and `encoding` options. The behavior changes slig
- When `encoding` is set to anything else, it collects an array of strings. `maxBuffer` refers to the summed character lengths of every string in the array.
## Errors
If the input stream emits an `error` event, the promise will be rejected with the error. The buffered data will be attached to the `bufferedData` property of the error.
@@ -101,24 +105,19 @@ If the input stream emits an `error` event, the promise will be rejected with th
})()
```
## FAQ
### How is this different from [`concat-stream`](https://github.com/maxogden/concat-stream)?
This module accepts a stream instead of being one and returns a promise instead of using a callback. The API is simpler and it only supports returning a string, buffer, or array. It doesn't have a fragile type inference. You explicitly choose what you want. And it doesn't depend on the huge `readable-stream` package.
## Related
- [get-stdin](https://github.com/sindresorhus/get-stdin) - Get stdin as a string or buffer
---
<div align="center">
<b>
<a href="https://tidelift.com/subscription/pkg/npm-get-stream?utm_source=npm-get-stream&utm_medium=referral&utm_campaign=readme">Get professional support for this package with a Tidelift subscription</a>
</b>
<br>
<sub>
Tidelift helps make open source sustainable for maintainers while giving companies<br>assurances about security, maintenance, and licensing for their dependencies.
</sub>
</div>
## License
MIT © [Sindre Sorhus](https://sindresorhus.com)

View File

@@ -35,4 +35,8 @@
"tsd": "^0.7.2",
"xo": "^0.24.0"
}
}
,"_resolved": "https://registry.npmjs.org/lowercase-keys/-/lowercase-keys-2.0.0.tgz"
,"_integrity": "sha512-tqNXrS78oMOE73NMxK4EMLQsQowWf8jKooH9g7xPavRT706R6bkQJ6DY2Te7QukaZsulxa30wQ7bk0pm4XiHmA=="
,"_from": "lowercase-keys@2.0.0"
}

View File

@@ -53,4 +53,8 @@
"xo": {
"extends": "xo-lukechilds"
}
}
,"_resolved": "https://registry.npmjs.org/cacheable-request/-/cacheable-request-6.1.0.tgz"
,"_integrity": "sha512-Oj3cAGPCqOZX7Rz64Uny2GYAZNliQSqfbePrgAQ1wKAihYmCUnraBtJtKcGR4xz7wF+LoJC+ssFZvv5BgF9Igg=="
,"_from": "cacheable-request@6.1.0"
}

View File

@@ -40,4 +40,8 @@
"tsd": "^0.7.1",
"xo": "^0.24.0"
}
}
,"_resolved": "https://registry.npmjs.org/camelcase/-/camelcase-5.3.1.tgz"
,"_integrity": "sha512-L28STB170nwWS63UjtlEOE3dldQApaJXZkOI1uMFfzf3rRuPegHaHesyee+YxQ+W6SvRDQV6UrdOdRiR153wJg=="
,"_from": "camelcase@5.3.1"
}

6
node_modules/camelize/package.json generated vendored
View File

@@ -35,4 +35,8 @@
"url": "http://substack.net"
},
"license": "MIT"
}
,"_resolved": "https://registry.npmjs.org/camelize/-/camelize-1.0.0.tgz"
,"_integrity": "sha1-FkpUg+Yw+kMh5a8HAg5TGDGyYJs="
,"_from": "camelize@1.0.0"
}

64
node_modules/chalk/index.d.ts generated vendored
View File

@@ -1,3 +1,25 @@
declare const enum LevelEnum {
/**
All colors disabled.
*/
None = 0,
/**
Basic 16 colors support.
*/
Basic = 1,
/**
ANSI 256 colors support.
*/
Ansi256 = 2,
/**
Truecolor 16 million colors support.
*/
TrueColor = 3
}
/**
Basic foreground colors.
@@ -67,34 +89,22 @@ declare type Modifiers =
| 'visible';
declare namespace chalk {
/**
Levels:
- `0` - All colors disabled.
- `1` - Basic 16 colors support.
- `2` - ANSI 256 colors support.
- `3` - Truecolor 16 million colors support.
*/
type Level = 0 | 1 | 2 | 3;
type Level = LevelEnum;
interface Options {
/**
Specify the color support for Chalk.
By default, color support is automatically detected based on the environment.
Levels:
- `0` - All colors disabled.
- `1` - Basic 16 colors support.
- `2` - ANSI 256 colors support.
- `3` - Truecolor 16 million colors support.
*/
level?: Level;
}
/**
Return a new Chalk instance.
*/
type Instance = new (options?: Options) => Chalk;
interface Instance {
/**
Return a new Chalk instance.
*/
new (options?: Options): Chalk;
}
/**
Detect whether the terminal supports color.
@@ -137,13 +147,6 @@ declare namespace chalk {
DISK: {rgb(255,131,0) ${disk.used / disk.total * 100}%}
`);
```
@example
```
import chalk = require('chalk');
log(chalk.red.bgBlack`2 + 3 = {bold ${2 + 3}}`)
```
*/
(text: TemplateStringsArray, ...placeholders: unknown[]): string;
@@ -158,14 +161,7 @@ declare namespace chalk {
/**
The color support for Chalk.
By default, color support is automatically detected based on the environment.
Levels:
- `0` - All colors disabled.
- `1` - Basic 16 colors support.
- `2` - ANSI 256 colors support.
- `3` - Truecolor 16 million colors support.
*/
level: Level;
@@ -404,7 +400,7 @@ This simply means that `chalk.red.yellow.green` is equivalent to `chalk.green`.
*/
declare const chalk: chalk.Chalk & chalk.ChalkFunction & {
supportsColor: chalk.ColorSupport | false;
Level: chalk.Level;
Level: typeof LevelEnum;
Color: Color;
ForegroundColor: ForegroundColor;
BackgroundColor: BackgroundColor;

View File

@@ -1,78 +1,50 @@
{
"_from": "has-flag@^4.0.0",
"_id": "has-flag@4.0.0",
"_inBundle": false,
"_integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==",
"_location": "/chalk/has-flag",
"_phantomChildren": {},
"_requested": {
"type": "range",
"registry": true,
"raw": "has-flag@^4.0.0",
"name": "has-flag",
"escapedName": "has-flag",
"rawSpec": "^4.0.0",
"saveSpec": null,
"fetchSpec": "^4.0.0"
},
"_requiredBy": [
"/chalk/supports-color"
],
"_resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz",
"_shasum": "944771fd9c81c81265c4d6941860da06bb59479b",
"_spec": "has-flag@^4.0.0",
"_where": "D:\\WORK\\Menui\\menui_backend\\node_modules\\chalk\\node_modules\\supports-color",
"author": {
"name": "Sindre Sorhus",
"email": "sindresorhus@gmail.com",
"url": "sindresorhus.com"
},
"bugs": {
"url": "https://github.com/sindresorhus/has-flag/issues"
},
"bundleDependencies": false,
"deprecated": false,
"description": "Check if argv has a specific flag",
"devDependencies": {
"ava": "^1.4.1",
"tsd": "^0.7.2",
"xo": "^0.24.0"
},
"engines": {
"node": ">=8"
},
"files": [
"index.js",
"index.d.ts"
],
"homepage": "https://github.com/sindresorhus/has-flag#readme",
"keywords": [
"has",
"check",
"detect",
"contains",
"find",
"flag",
"cli",
"command-line",
"argv",
"process",
"arg",
"args",
"argument",
"arguments",
"getopt",
"minimist",
"optimist"
],
"license": "MIT",
"name": "has-flag",
"repository": {
"type": "git",
"url": "git+https://github.com/sindresorhus/has-flag.git"
},
"scripts": {
"test": "xo && ava && tsd"
},
"version": "4.0.0"
}
"name": "has-flag",
"version": "4.0.0",
"description": "Check if argv has a specific flag",
"license": "MIT",
"repository": "sindresorhus/has-flag",
"author": {
"name": "Sindre Sorhus",
"email": "sindresorhus@gmail.com",
"url": "sindresorhus.com"
},
"engines": {
"node": ">=8"
},
"scripts": {
"test": "xo && ava && tsd"
},
"files": [
"index.js",
"index.d.ts"
],
"keywords": [
"has",
"check",
"detect",
"contains",
"find",
"flag",
"cli",
"command-line",
"argv",
"process",
"arg",
"args",
"argument",
"arguments",
"getopt",
"minimist",
"optimist"
],
"devDependencies": {
"ava": "^1.4.1",
"tsd": "^0.7.2",
"xo": "^0.24.0"
}
,"_resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz"
,"_integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ=="
,"_from": "has-flag@4.0.0"
}

View File

@@ -1,85 +1,57 @@
{
"_from": "supports-color@^7.1.0",
"_id": "supports-color@7.1.0",
"_inBundle": false,
"_integrity": "sha512-oRSIpR8pxT1Wr2FquTNnGet79b3BWljqOuoW/h4oBhxJ/HUbX5nX6JSruTkvXDCFMwDPvsaTTbvMLKZWSy0R5g==",
"_location": "/chalk/supports-color",
"_phantomChildren": {},
"_requested": {
"type": "range",
"registry": true,
"raw": "supports-color@^7.1.0",
"name": "supports-color",
"escapedName": "supports-color",
"rawSpec": "^7.1.0",
"saveSpec": null,
"fetchSpec": "^7.1.0"
},
"_requiredBy": [
"/chalk"
],
"_resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.1.0.tgz",
"_shasum": "68e32591df73e25ad1c4b49108a2ec507962bfd1",
"_spec": "supports-color@^7.1.0",
"_where": "D:\\WORK\\Menui\\menui_backend\\node_modules\\chalk",
"author": {
"name": "Sindre Sorhus",
"email": "sindresorhus@gmail.com",
"url": "sindresorhus.com"
},
"browser": "browser.js",
"bugs": {
"url": "https://github.com/chalk/supports-color/issues"
},
"bundleDependencies": false,
"dependencies": {
"has-flag": "^4.0.0"
},
"deprecated": false,
"description": "Detect whether a terminal supports color",
"devDependencies": {
"ava": "^1.4.1",
"import-fresh": "^3.0.0",
"xo": "^0.24.0"
},
"engines": {
"node": ">=8"
},
"files": [
"index.js",
"browser.js"
],
"homepage": "https://github.com/chalk/supports-color#readme",
"keywords": [
"color",
"colour",
"colors",
"terminal",
"console",
"cli",
"ansi",
"styles",
"tty",
"rgb",
"256",
"shell",
"xterm",
"command-line",
"support",
"supports",
"capability",
"detect",
"truecolor",
"16m"
],
"license": "MIT",
"name": "supports-color",
"repository": {
"type": "git",
"url": "git+https://github.com/chalk/supports-color.git"
},
"scripts": {
"test": "xo && ava"
},
"version": "7.1.0"
}
"name": "supports-color",
"version": "7.1.0",
"description": "Detect whether a terminal supports color",
"license": "MIT",
"repository": "chalk/supports-color",
"author": {
"name": "Sindre Sorhus",
"email": "sindresorhus@gmail.com",
"url": "sindresorhus.com"
},
"engines": {
"node": ">=8"
},
"scripts": {
"test": "xo && ava"
},
"files": [
"index.js",
"browser.js"
],
"keywords": [
"color",
"colour",
"colors",
"terminal",
"console",
"cli",
"ansi",
"styles",
"tty",
"rgb",
"256",
"shell",
"xterm",
"command-line",
"support",
"supports",
"capability",
"detect",
"truecolor",
"16m"
],
"dependencies": {
"has-flag": "^4.0.0"
},
"devDependencies": {
"ava": "^1.4.1",
"import-fresh": "^3.0.0",
"xo": "^0.24.0"
},
"browser": "browser.js"
,"_resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.1.0.tgz"
,"_integrity": "sha512-oRSIpR8pxT1Wr2FquTNnGet79b3BWljqOuoW/h4oBhxJ/HUbX5nX6JSruTkvXDCFMwDPvsaTTbvMLKZWSy0R5g=="
,"_from": "supports-color@7.1.0"
}

23
node_modules/chalk/package.json generated vendored
View File

@@ -1,13 +1,12 @@
{
"name": "chalk",
"version": "4.1.0",
"version": "3.0.0",
"description": "Terminal string styling done right",
"license": "MIT",
"repository": "chalk/chalk",
"funding": "https://github.com/chalk/chalk?sponsor=1",
"main": "source",
"engines": {
"node": ">=10"
"node": ">=8"
},
"scripts": {
"test": "xo && nyc ava && tsd",
@@ -47,22 +46,22 @@
"devDependencies": {
"ava": "^2.4.0",
"coveralls": "^3.0.7",
"execa": "^4.0.0",
"execa": "^3.2.0",
"import-fresh": "^3.1.0",
"matcha": "^0.7.0",
"nyc": "^15.0.0",
"nyc": "^14.1.1",
"resolve-from": "^5.0.0",
"tsd": "^0.7.4",
"xo": "^0.28.2"
"xo": "^0.25.3"
},
"xo": {
"rules": {
"unicorn/prefer-string-slice": "off",
"unicorn/prefer-includes": "off",
"@typescript-eslint/member-ordering": "off",
"no-redeclare": "off",
"unicorn/string-content": "off",
"unicorn/better-regex": "off"
"unicorn/prefer-includes": "off"
}
}
}
,"_resolved": "https://registry.npmjs.org/chalk/-/chalk-3.0.0.tgz"
,"_integrity": "sha512-4D3B6Wf41KOYRFdszmDqMCGq5VV/uMAB273JILmO+3jAlh8X4qDtdtgCR3fxtbLEMzSx22QdhnDcJvu2u1fVwg=="
,"_from": "chalk@3.0.0"
}

21
node_modules/chalk/readme.md generated vendored
View File

@@ -9,10 +9,11 @@
> Terminal string styling done right
[![Build Status](https://travis-ci.org/chalk/chalk.svg?branch=master)](https://travis-ci.org/chalk/chalk) [![Coverage Status](https://coveralls.io/repos/github/chalk/chalk/badge.svg?branch=master)](https://coveralls.io/github/chalk/chalk?branch=master) [![npm dependents](https://badgen.net/npm/dependents/chalk)](https://www.npmjs.com/package/chalk?activeTab=dependents) [![Downloads](https://badgen.net/npm/dt/chalk)](https://www.npmjs.com/package/chalk) [![](https://img.shields.io/badge/unicorn-approved-ff69b4.svg)](https://www.youtube.com/watch?v=9auOCbH5Ns4) [![XO code style](https://img.shields.io/badge/code_style-XO-5ed9c7.svg)](https://github.com/xojs/xo) ![TypeScript-ready](https://img.shields.io/npm/types/chalk.svg) [![run on repl.it](https://repl.it/badge/github/chalk/chalk)](https://repl.it/github/chalk/chalk)
[![Build Status](https://travis-ci.org/chalk/chalk.svg?branch=master)](https://travis-ci.org/chalk/chalk) [![Coverage Status](https://coveralls.io/repos/github/chalk/chalk/badge.svg?branch=master)](https://coveralls.io/github/chalk/chalk?branch=master) [![npm dependents](https://badgen.net/npm/dependents/chalk)](https://www.npmjs.com/package/chalk?activeTab=dependents) [![Downloads](https://badgen.net/npm/dt/chalk)](https://www.npmjs.com/package/chalk) [![](https://img.shields.io/badge/unicorn-approved-ff69b4.svg)](https://www.youtube.com/watch?v=9auOCbH5Ns4) [![XO code style](https://img.shields.io/badge/code_style-XO-5ed9c7.svg)](https://github.com/xojs/xo) ![TypeScript-ready](https://img.shields.io/npm/types/chalk.svg)
<img src="https://cdn.jsdelivr.net/gh/chalk/ansi-styles@8261697c95bf34b6c7767e2cbe9941a851d59385/screenshot.svg" width="900">
## Highlights
- Expressive API
@@ -23,7 +24,8 @@
- Doesn't extend `String.prototype`
- Clean and focused
- Actively maintained
- [Used by ~50,000 packages](https://www.npmjs.com/browse/depended/chalk) as of January 1, 2020
- [Used by ~46,000 packages](https://www.npmjs.com/browse/depended/chalk) as of October 1, 2019
## Install
@@ -31,6 +33,7 @@
$ npm install chalk
```
## Usage
```js
@@ -104,6 +107,7 @@ console.log(chalk.green('Hello %s'), name);
//=> 'Hello Sindre'
```
## API
### chalk.`<style>[.<style>...](string, [string...])`
@@ -145,6 +149,7 @@ Explicit 256/Truecolor mode can be enabled using the `--color=256` and `--color=
`chalk.stderr` contains a separate instance configured with color support detected for `stderr` stream instead of `stdout`. Override rules from `chalk.supportsColor` apply to this too. `chalk.stderr.supportsColor` is exposed for convenience.
## Styles
### Modifiers
@@ -197,9 +202,10 @@ Explicit 256/Truecolor mode can be enabled using the `--color=256` and `--color=
- `bgCyanBright`
- `bgWhiteBright`
## Tagged template literal
Chalk can be used as a [tagged template literal](https://exploringjs.com/es6/ch_template-literals.html#_tagged-template-literals).
Chalk can be used as a [tagged template literal](http://exploringjs.com/es6/ch_template-literals.html#_tagged-template-literals).
```js
const chalk = require('chalk');
@@ -215,11 +221,10 @@ console.log(chalk`
Blocks are delimited by an opening curly brace (`{`), a style, some content, and a closing curly brace (`}`).
Template styles are chained exactly like normal Chalk styles. The following three statements are equivalent:
Template styles are chained exactly like normal Chalk styles. The following two statements are equivalent:
```js
console.log(chalk.bold.rgb(10, 100, 200)('Hello!'));
console.log(chalk.bold.rgb(10, 100, 200)`Hello!`);
console.log(chalk`{bold.rgb(10,100,200) Hello!}`);
```
@@ -227,6 +232,7 @@ Note that function styles (`rgb()`, `hsl()`, `keyword()`, etc.) may not contain
All interpolated values (`` chalk`${foo}` ``) are converted to strings via the `.toString()` method. All curly braces (`{` and `}`) in interpolated value strings are escaped.
## 256 and Truecolor color support
Chalk supports 256 colors and [Truecolor](https://gist.github.com/XVilka/8346728) (16 million colors) on supported terminal apps.
@@ -256,20 +262,24 @@ The following color models can be used:
- [`ansi`](https://en.wikipedia.org/wiki/ANSI_escape_code#3/4_bit) - Example: `chalk.ansi(31).bgAnsi(93)('red on yellowBright')`
- [`ansi256`](https://en.wikipedia.org/wiki/ANSI_escape_code#8-bit) - Example: `chalk.bgAnsi256(194)('Honeydew, more or less')`
## Windows
If you're on Windows, do yourself a favor and use [Windows Terminal](https://github.com/microsoft/terminal) instead of `cmd.exe`.
## Origin story
[colors.js](https://github.com/Marak/colors.js) used to be the most popular string styling module, but it has serious deficiencies like extending `String.prototype` which causes all kinds of [problems](https://github.com/yeoman/yo/issues/68) and the package is unmaintained. Although there are other packages, they either do too much or not enough. Chalk is a clean and focused alternative.
## chalk for enterprise
Available as part of the Tidelift Subscription.
The maintainers of chalk and thousands of other packages are working with Tidelift to deliver commercial support and maintenance for the open source dependencies you use to build your applications. Save time, reduce risk, and improve code health, while paying the maintainers of the exact dependencies you use. [Learn more.](https://tidelift.com/subscription/pkg/npm-chalk?utm_source=npm-chalk&utm_medium=referral&utm_campaign=enterprise&utm_term=repo)
## Related
- [chalk-cli](https://github.com/chalk/chalk-cli) - CLI for this module
@@ -287,6 +297,7 @@ The maintainers of chalk and thousands of other packages are working with Tideli
- [chalk-pipe](https://github.com/LitoMore/chalk-pipe) - Create chalk style schemes with simpler style strings
- [terminal-link](https://github.com/sindresorhus/terminal-link) - Create clickable links in the terminal
## Maintainers
- [Sindre Sorhus](https://github.com/sindresorhus)

28
node_modules/chalk/source/index.js generated vendored
View File

@@ -6,8 +6,6 @@ const {
stringEncaseCRLFWithFirstIndex
} = require('./util');
const {isArray} = Array;
// `supportsColor.level` → `ansiStyles.color[name]` mapping
const levelMapping = [
'ansi',
@@ -19,7 +17,7 @@ const levelMapping = [
const styles = Object.create(null);
const applyOptions = (object, options = {}) => {
if (options.level && !(Number.isInteger(options.level) && options.level >= 0 && options.level <= 3)) {
if (options.level > 3 || options.level < 0) {
throw new Error('The `level` option should be an integer from 0 to 3');
}
@@ -30,7 +28,6 @@ const applyOptions = (object, options = {}) => {
class ChalkClass {
constructor(options) {
// eslint-disable-next-line no-constructor-return
return chalkFactory(options);
}
}
@@ -137,19 +134,14 @@ const createStyler = (open, close, parent) => {
const createBuilder = (self, _styler, _isEmpty) => {
const builder = (...arguments_) => {
if (isArray(arguments_[0]) && isArray(arguments_[0].raw)) {
// Called as a template literal, for example: chalk.red`2 + 3 = {bold ${2+3}}`
return applyStyle(builder, chalkTag(builder, ...arguments_));
}
// Single argument is hot path, implicit coercion is faster than anything
// eslint-disable-next-line no-implicit-coercion
return applyStyle(builder, (arguments_.length === 1) ? ('' + arguments_[0]) : arguments_.join(' '));
};
// We alter the prototype because we must return a function, but there is
// `__proto__` is used because we must return a function, but there is
// no way to create a function with a different prototype
Object.setPrototypeOf(builder, proto);
builder.__proto__ = proto; // eslint-disable-line no-proto
builder._generator = self;
builder._styler = _styler;
@@ -196,7 +188,7 @@ let template;
const chalkTag = (chalk, ...strings) => {
const [firstString] = strings;
if (!isArray(firstString) || !isArray(firstString.raw)) {
if (!Array.isArray(firstString)) {
// If chalk() was called by itself or with a string,
// return the string itself as a string.
return strings.join(' ');
@@ -226,4 +218,16 @@ chalk.supportsColor = stdoutColor;
chalk.stderr = Chalk({level: stderrColor ? stderrColor.level : 0}); // eslint-disable-line new-cap
chalk.stderr.supportsColor = stderrColor;
// For TypeScript
chalk.Level = {
None: 0,
Basic: 1,
Ansi256: 2,
TrueColor: 3,
0: 'None',
1: 'Basic',
2: 'Ansi256',
3: 'TrueColor'
};
module.exports = chalk;

View File

@@ -2,7 +2,7 @@
const TEMPLATE_REGEX = /(?:\\(u(?:[a-f\d]{4}|\{[a-f\d]{1,6}\})|x[a-f\d]{2}|.))|(?:\{(~)?(\w+(?:\([^)]*\))?(?:\.\w+(?:\([^)]*\))?)*)(?:[ \t]|(?=\r?\n)))|(\})|((?:.|[\r\n\f])+?)/gi;
const STYLE_REGEX = /(?:^|\.)(\w+)(?:\(([^)]*)\))?/g;
const STRING_REGEX = /^(['"])((?:\\.|(?!\1)[^\\])*)\1$/;
const ESCAPE_REGEX = /\\(u(?:[a-f\d]{4}|{[a-f\d]{1,6}})|x[a-f\d]{2}|.)|([^\\])/gi;
const ESCAPE_REGEX = /\\(u(?:[a-f\d]{4}|\{[a-f\d]{1,6}\})|x[a-f\d]{2}|.)|([^\\])/gi;
const ESCAPES = new Map([
['n', '\n'],
@@ -126,8 +126,8 @@ module.exports = (chalk, temporary) => {
chunks.push(chunk.join(''));
if (styles.length > 0) {
const errMessage = `Chalk template literal is missing ${styles.length} closing bracket${styles.length === 1 ? '' : 's'} (\`}\`)`;
throw new Error(errMessage);
const errMsg = `Chalk template literal is missing ${styles.length} closing bracket${styles.length === 1 ? '' : 's'} (\`}\`)`;
throw new Error(errMsg);
}
return chunks.join('');

10
node_modules/chokidar/README.md generated vendored
View File

@@ -253,9 +253,9 @@ Available events: `add`, `addDir`, `change`, `unlink`, `unlinkDir`, `ready`,
`raw`, `error`.
Additionally `all` is available which gets emitted with the underlying event
name and path for every event other than `ready`, `raw`, and `error`. `raw` is internal, use it carefully.
* `.unwatch(path / paths)`: Stop watching files, directories, or glob patterns.
* `.unwatch(path / paths)`: **async** Stop watching files, directories, or glob patterns.
Takes an array of strings or just one string. Use with `await` to ensure bugs don't happen.
* `.close()`: **async** Removes all listeners from watched files. Asynchronous, returns Promise.
* `.close()`: Removes all listeners from watched files. Asynchronous, returns Promise.
* `.getWatched()`: Returns an object representing all the paths on the file
system being watched by this `FSWatcher` instance. The object's keys are all the
directories (using absolute paths unless the `cwd` option was used), and the
@@ -295,12 +295,6 @@ For more detailed changelog, see [`full_changelog.md`](.github/full_changelog.md
- **v1 (Apr 7, 2015):** Glob support, symlink support, tons of bugfixes. Node 0.8+ is supported
- **v0.1 (Apr 20, 2012):** Initial release, extracted from [Brunch](https://github.com/brunch/brunch/blob/9847a065aea300da99bd0753f90354cde9de1261/src/helpers.coffee#L66)
## Also
Why was chokidar named this way? What's the meaning behind it?
>Chowkidar is a transliteration of a Hindi word meaning 'watchman, gatekeeper', चौकीदार. This ultimately comes from Sanskrit _ चतुष्क_ (crossway, quadrangle, consisting-of-four).
## License
MIT (c) Paul Miller (<https://paulmillr.com>), see [LICENSE](LICENSE) file.

24
node_modules/chokidar/index.js generated vendored
View File

@@ -34,7 +34,6 @@ const {
REPLACER_RE,
SLASH,
SLASH_SLASH,
BRACE_START,
BANG,
ONE_DOT,
@@ -97,20 +96,11 @@ const unifyPaths = (paths_) => {
return paths.map(normalizePathToUnix);
};
// If SLASH_SLASH occurs at the beginning of path, it is not replaced
// because "//StoragePC/DrivePool/Movies" is a valid network path
const toUnix = (string) => {
let str = string.replace(BACK_SLASH_RE, SLASH);
let prepend = false;
if (str.startsWith(SLASH_SLASH)) {
prepend = true;
}
while (str.match(DOUBLE_SLASH_RE)) {
str = str.replace(DOUBLE_SLASH_RE, SLASH);
}
if (prepend) {
str = SLASH + str;
}
return str;
};
@@ -886,24 +876,16 @@ _remove(directory, item, isDirectory) {
}
/**
* Closes all watchers for a path
*
* @param {Path} path
*/
_closePath(path) {
this._closeFile(path)
const dir = sysPath.dirname(path);
this._getWatchedDir(dir).remove(sysPath.basename(path));
}
/**
* Closes only file-specific watchers
* @param {Path} path
*/
_closeFile(path) {
const closers = this._closers.get(path);
if (!closers) return;
closers.forEach(closer => closer());
this._closers.delete(path);
const dir = sysPath.dirname(path);
this._getWatchedDir(dir).remove(sysPath.basename(path));
}
/**

View File

@@ -41,7 +41,6 @@ exports.DOT_RE = /\..*\.(sw[px])$|~$|\.subl.*\.tmp/;
exports.REPLACER_RE = /^\.[/\\]/;
exports.SLASH = '/';
exports.SLASH_SLASH = '//';
exports.BRACE_START = '{';
exports.BANG = '!';
exports.ONE_DOT = '.';
@@ -60,4 +59,3 @@ exports.IDENTITY_FN = val => val;
exports.isWindows = platform === 'win32';
exports.isMacos = platform === 'darwin';
exports.isLinux = platform === 'linux';

View File

@@ -103,7 +103,7 @@ const createFSEventsInstance = (path, callback) => {
* @param {Function} rawEmitter - passes data to listeners of the 'raw' event
* @returns {Function} closer
*/
function setFSEventsListener(path, realPath, listener, rawEmitter) {
function setFSEventsListener(path, realPath, listener, rawEmitter, fsw) {
let watchPath = sysPath.extname(path) ? sysPath.dirname(path) : path;
const parentPath = sysPath.dirname(watchPath);
let cont = FSEventsWatchers.get(watchPath);
@@ -146,7 +146,7 @@ function setFSEventsListener(path, realPath, listener, rawEmitter) {
listeners: new Set([filteredListener]),
rawEmitter,
watcher: createFSEventsInstance(watchPath, (fullPath, flags) => {
if (!cont.listeners.size) return;
if (fsw.closed) return;
const info = fsevents.getInfo(fullPath, flags);
cont.listeners.forEach(list => {
list(fullPath, flags, info);
@@ -242,6 +242,7 @@ async checkExists(path, fullPath, realPath, parent, watchedDir, item, info, opts
try {
const stats = await stat(path)
if (this.fsw.closed) return;
if (this.fsw.closed) return;
if (sameTypes(info, stats)) {
this.addOrChange(path, fullPath, realPath, parent, watchedDir, item, info, opts);
} else {
@@ -352,7 +353,8 @@ _watchWithFsEvents(watchPath, realPath, transform, globFilter) {
watchPath,
realPath,
watchCallback,
this.fsw._emitRaw
this.fsw._emitRaw,
this.fsw
);
this.fsw._emitReady();

View File

@@ -6,7 +6,6 @@ const { promisify } = require('util');
const isBinaryPath = require('is-binary-path');
const {
isWindows,
isLinux,
EMPTY_FN,
EMPTY_STR,
KEY_LISTENERS,
@@ -357,7 +356,8 @@ _handleFile(file, stats, initialAdd) {
// if the file is already being watched, do nothing
if (parent.has(basename)) return;
const listener = async (path, newStats) => {
// kick off the watcher
const closer = this._watchWithNodeFs(file, async (path, newStats) => {
if (!this.fsw._throttle(THROTTLE_MODE_WATCH, file, 5)) return;
if (!newStats || newStats.mtimeMs === 0) {
try {
@@ -369,18 +369,12 @@ _handleFile(file, stats, initialAdd) {
if (!at || at <= mt || mt !== prevStats.mtimeMs) {
this.fsw._emit(EV_CHANGE, file, newStats);
}
if (isLinux && prevStats.ino !== newStats.ino) {
this.fsw._closeFile(path)
prevStats = newStats;
this.fsw._addPathCloser(path, this._watchWithNodeFs(file, listener));
} else {
prevStats = newStats;
}
prevStats = newStats;
} catch (error) {
// Fix issues where mtime is null but file is still present
this.fsw._remove(dirname, basename);
}
// add is about to be emitted if file not already tracked in parent
// add is about to be emitted if file not already tracked in parent
} else if (parent.has(basename)) {
// Check that change event was not fired because of changed only accessTime.
const at = newStats.atimeMs;
@@ -390,9 +384,7 @@ _handleFile(file, stats, initialAdd) {
}
prevStats = newStats;
}
}
// kick off the watcher
const closer = this._watchWithNodeFs(file, listener);
});
// emit an add event if we're supposed to
if (!(initialAdd && this.fsw.options.ignoreInitial) && this.fsw._isntIgnored(file)) {

12
node_modules/chokidar/package.json generated vendored
View File

@@ -1,7 +1,7 @@
{
"name": "chokidar",
"description": "A neat wrapper around node.js fs.watch / fs.watchFile / fsevents.",
"version": "3.4.2",
"version": "3.4.0",
"homepage": "https://github.com/paulmillr/chokidar",
"author": "Paul Miller (https://paulmillr.com)",
"contributors": [
@@ -25,10 +25,10 @@
"fsevents": "~2.1.2"
},
"devDependencies": {
"@types/node": "^14",
"@types/node": "^13",
"chai": "^4.2",
"dtslint": "^3.3.0",
"eslint": "^7.0.0",
"eslint": "^6.6.0",
"mocha": "^7.0.0",
"nyc": "^15.0.0",
"rimraf": "^3.0.0",
@@ -125,4 +125,8 @@
"text"
]
}
}
,"_resolved": "https://registry.npmjs.org/chokidar/-/chokidar-3.4.0.tgz"
,"_integrity": "sha512-aXAaho2VJtisB/1fg1+3nlLJqGOuewTzQpd/Tz0yTg2R0e4IGtshYvtjowyEumcBv2z+y4+kc75Mz7j5xJskcQ=="
,"_from": "chokidar@3.4.0"
}

6
node_modules/chownr/package.json generated vendored
View File

@@ -26,4 +26,8 @@
"prepublishOnly": "git push origin --follow-tags"
},
"license": "ISC"
}
,"_resolved": "https://registry.npmjs.org/chownr/-/chownr-1.1.4.tgz"
,"_integrity": "sha512-jJ0bqzaylmJtVnNgzTeSOs8DPavpbYgEr/b0YL8/2GO3xJEhInFmhKMUnEJQjZumK7KXGFhUy89PrsJWlakBVg=="
,"_from": "chownr@1.1.4"
}

6
node_modules/ci-info/package.json generated vendored
View File

@@ -33,4 +33,8 @@
55.778231,
12.593179
]
}
,"_resolved": "https://registry.npmjs.org/ci-info/-/ci-info-2.0.0.tgz"
,"_integrity": "sha512-5tK7EtrZ0N+OLFMthtqOj4fI2Jeb88C4CAZPu25LDVUgXJ0A3Js4PMGqrn0JU1W0Mh1/Z8wZzYPxqUrXeBboCQ=="
,"_from": "ci-info@2.0.0"
}

View File

@@ -38,4 +38,8 @@
"tsd": "^0.7.2",
"xo": "^0.24.0"
}
}
,"_resolved": "https://registry.npmjs.org/cli-boxes/-/cli-boxes-2.2.0.tgz"
,"_integrity": "sha512-gpaBrMAizVEANOpfZp/EEUixTXDyGt7DFzdK5hU+UbWt/J0lB0w20ncZj59Z9a93xHb9u12zF5BS6i9RKbtg4w=="
,"_from": "cli-boxes@2.2.0"
}

View File

@@ -41,4 +41,8 @@
"pify": "^3.0.0",
"xo": "^0.19.0"
}
}
,"_resolved": "https://registry.npmjs.org/clone-response/-/clone-response-1.0.2.tgz"
,"_integrity": "sha1-0dyXOSAxTfZ/vrlCI7TuNQI56Ws="
,"_from": "clone-response@1.0.2"
}

View File

@@ -35,4 +35,8 @@
"ava": "*",
"xo": "^0.16.0"
}
}
,"_resolved": "https://registry.npmjs.org/code-point-at/-/code-point-at-1.1.0.tgz"
,"_integrity": "sha1-DQcLTQQ6W+ozovGkDi7bPZpMz3c="
,"_from": "code-point-at@1.1.0"
}

View File

@@ -45,4 +45,8 @@
"dependencies": {
"color-name": "~1.1.4"
}
}
,"_resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz"
,"_integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ=="
,"_from": "color-convert@2.0.1"
}

View File

@@ -25,4 +25,8 @@
"url": "https://github.com/colorjs/color-name/issues"
},
"homepage": "https://github.com/colorjs/color-name"
}
,"_resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz"
,"_integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA=="
,"_from": "color-name@1.1.4"
}

View File

@@ -40,4 +40,8 @@
"opera" : [ 12 ]
}
}
}
,"_resolved": "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz"
,"_integrity": "sha1-2Klr13/Wjfd5OnMDajug1UBdR3s="
,"_from": "concat-map@0.0.1"
}

View File

@@ -52,4 +52,8 @@
"android-browser/4.2..latest"
]
}
}
,"_resolved": "https://registry.npmjs.org/concat-stream/-/concat-stream-1.6.2.tgz"
,"_integrity": "sha512-27HBghJxjiZtIk3Ycvn/4kbJk/1uZuJFfuPEns6LaEvpvG1f0hTea8lilrouyo9mVc2GWdcEZ8OLoGmSADlrCw=="
,"_from": "concat-stream@1.6.2"
}

View File

@@ -43,4 +43,8 @@
"ava": "^2.1.0",
"xo": "^0.24.0"
}
}
,"_resolved": "https://registry.npmjs.org/configstore/-/configstore-5.0.1.tgz"
,"_integrity": "sha512-aMKprgk5YhBNyH25hj8wGt2+D52Sw1DRRIzqBwLp2Ya9mFmY8KPvvtvmna8SxVR9JMZ4kzMD68N22vlaRpkeFA=="
,"_from": "configstore@5.0.1"
}

View File

@@ -24,4 +24,8 @@
"standard": "^7.1.2",
"tap": "^5.7.2"
}
}
,"_resolved": "https://registry.npmjs.org/console-control-strings/-/console-control-strings-1.1.0.tgz"
,"_integrity": "sha1-PXz0Rk22RG6mRL9LOVB/mFEAjo4="
,"_from": "console-control-strings@1.1.0"
}

View File

@@ -41,4 +41,8 @@
"test-cov": "istanbul cover node_modules/mocha/bin/_mocha -- --reporter dot --check-leaks test/",
"test-travis": "istanbul cover node_modules/mocha/bin/_mocha --report lcovonly -- --reporter spec --check-leaks test/"
}
}
,"_resolved": "https://registry.npmjs.org/content-disposition/-/content-disposition-0.5.3.tgz"
,"_integrity": "sha512-ExO0774ikEObIAEV9kDo50o+79VCUdEB6n6lzKgGwupcVeRlhrj3qGAfwq8G6uBJjkqLrhT0qEYFcWng8z1z0g=="
,"_from": "content-disposition@0.5.3"
}

View File

@@ -51,4 +51,8 @@
"ts-jest": "^24.0.2",
"typescript": "^3.5.2"
}
}
,"_resolved": "https://registry.npmjs.org/content-security-policy-builder/-/content-security-policy-builder-2.1.0.tgz"
,"_integrity": "sha512-/MtLWhJVvJNkA9dVLAp6fg9LxD2gfI6R2Fi1hPmfjYXSahJJzcfvoeDOxSyp4NvxMuwWv3WMssE9o31DoULHrQ=="
,"_from": "content-security-policy-builder@2.1.0"
}

View File

@@ -37,4 +37,8 @@
"test-ci": "istanbul cover node_modules/mocha/bin/_mocha --report lcovonly -- --reporter spec --check-leaks test/",
"test-cov": "istanbul cover node_modules/mocha/bin/_mocha -- --reporter dot --check-leaks test/"
}
}
,"_resolved": "https://registry.npmjs.org/content-type/-/content-type-1.0.4.tgz"
,"_integrity": "sha512-hIP3EEPs8tB9AT1L+NUqtwOAps4mk2Zob89MWXMHjHWg9milF/j4osnnQLXBCBFBk/tvIG/tUc9mOUJiPBhPXA=="
,"_from": "content-type@1.0.4"
}

View File

@@ -15,4 +15,8 @@
"test": "mocha --require should --reporter spec"
},
"main": "index"
}
,"_resolved": "https://registry.npmjs.org/cookie-signature/-/cookie-signature-1.0.6.tgz"
,"_integrity": "sha1-4wOogrNCzD7oylE6eZmXNNqzriw="
,"_from": "cookie-signature@1.0.6"
}

6
node_modules/cookie/package.json generated vendored
View File

@@ -37,4 +37,8 @@
"test-cov": "istanbul cover node_modules/mocha/bin/_mocha -- --reporter dot --check-leaks test/",
"version": "node scripts/version-history.js && git add HISTORY.md"
}
}
,"_resolved": "https://registry.npmjs.org/cookie/-/cookie-0.4.0.tgz"
,"_integrity": "sha512-+Hp8fLp57wnUSt0tY0tHEXh4voZRDnoIrZPqlo3DPiI4y9lwg/jqx+1Om94/W6ZaPDOUbnjOt/99w66zk+l1Xg=="
,"_from": "cookie@0.4.0"
}

View File

@@ -29,4 +29,8 @@
"devDependencies": {
"tap": "^2.3.0"
}
}
,"_resolved": "https://registry.npmjs.org/core-util-is/-/core-util-is-1.0.2.tgz"
,"_integrity": "sha1-tf1UIgqivFq1eqtxQMlAdUUDwac="
,"_from": "core-util-is@1.0.2"
}

6
node_modules/cors/package.json generated vendored
View File

@@ -38,4 +38,8 @@
"test": "npm run lint && nyc --reporter=html --reporter=text mocha --require test/support/env",
"lint": "eslint lib test"
}
}
,"_resolved": "https://registry.npmjs.org/cors/-/cors-2.8.5.tgz"
,"_integrity": "sha512-KIHbLJqu73RGr/hnbrO9uBeixNGuvSQjul/jdFvS/KFSIH1hWVd1ng7zOHx+YrEfInLG7q4n6GHQ9cDtxv/P6g=="
,"_from": "cors@2.8.5"
}

View File

@@ -37,4 +37,8 @@
"tsd": "^0.7.2",
"xo": "^0.24.0"
}
}
,"_resolved": "https://registry.npmjs.org/crypto-random-string/-/crypto-random-string-2.0.0.tgz"
,"_integrity": "sha512-v1plID3y9r/lPhviJ1wrXpLeyUIGAZ2SHNYTEapm7/8A9nLPoyvVp3RK/EPFqn5kEznyWgYZNsRtYYIWbuG8KA=="
,"_from": "crypto-random-string@2.0.0"
}

View File

@@ -47,4 +47,8 @@
"name": "Shahar Talmi"
},
"license": "MIT"
}
,"_resolved": "https://registry.npmjs.org/dasherize/-/dasherize-2.0.0.tgz"
,"_integrity": "sha1-bYCcnNDPe7iVLYD8hPoT1H3bEwg="
,"_from": "dasherize@2.0.0"
}

6
node_modules/debug/package.json generated vendored
View File

@@ -46,4 +46,8 @@
"debug/debug.js": "debug.js"
}
}
}
,"_resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz"
,"_integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA=="
,"_from": "debug@2.6.9"
}

View File

@@ -50,4 +50,8 @@
"pify": "^3.0.0",
"xo": "*"
}
}
,"_resolved": "https://registry.npmjs.org/decompress-response/-/decompress-response-3.3.0.tgz"
,"_integrity": "sha1-gKTdMjdIOEv6JICDYirt7Jgq3/M="
,"_from": "decompress-response@3.3.0"
}

View File

@@ -59,4 +59,8 @@
"index.js",
"lib/"
]
}
,"_resolved": "https://registry.npmjs.org/deep-extend/-/deep-extend-0.6.0.tgz"
,"_integrity": "sha512-LOHxIOaPYdHlJRtCQfDIVZtfw/ufM8+rVj649RIHzcm/vGwQRXFt6OPqIFWsm2XEMrNIEtWR64sY1LEKD2vAOA=="
,"_from": "deep-extend@0.6.0"
}

View File

@@ -71,4 +71,8 @@
]
},
"types": "dist"
}
,"_resolved": "https://registry.npmjs.org/defer-to-connect/-/defer-to-connect-1.1.3.tgz"
,"_integrity": "sha512-0ISdNousHvZT2EiFlZeZAHBUvSxmKswVCEf8hW7KWgG4a8MVEu/3Vb6uWYozkjylyCxe0JBIiRB1jV45S70WVQ=="
,"_from": "defer-to-connect@1.1.3"
}

View File

@@ -10,4 +10,8 @@
"should": "*"
},
"license": "MIT"
}
,"_resolved": "https://registry.npmjs.org/delegates/-/delegates-1.0.0.tgz"
,"_integrity": "sha1-hMbhWbgZBP3KWaDvRM2HDTElD5o="
,"_from": "delegates@1.0.0"
}

6
node_modules/denque/package.json generated vendored
View File

@@ -52,4 +52,8 @@
"mocha": "^3.5.3",
"typescript": "^3.4.1"
}
}
,"_resolved": "https://registry.npmjs.org/denque/-/denque-1.4.1.tgz"
,"_integrity": "sha512-OfzPuSZKGcgr96rf1oODnfjqBFmr1DVoc/TrItj3Ohe0Ah1C5WX5Baquw/9U9KovnQ88EqmJbD66rKYUQYN1tQ=="
,"_from": "denque@1.4.1"
}

6
node_modules/depd/package.json generated vendored
View File

@@ -38,4 +38,8 @@
"test-ci": "istanbul cover node_modules/mocha/bin/_mocha --report lcovonly -- --reporter spec --no-exit test/",
"test-cov": "istanbul cover node_modules/mocha/bin/_mocha -- --reporter dot test/"
}
}
,"_resolved": "https://registry.npmjs.org/depd/-/depd-1.1.2.tgz"
,"_integrity": "sha1-m81S4UwJd2PnSbJ0xDRu0uVgtak="
,"_from": "depd@1.1.2"
}

6
node_modules/destroy/package.json generated vendored
View File

@@ -34,4 +34,8 @@
"leak",
"fd"
]
}
,"_resolved": "https://registry.npmjs.org/destroy/-/destroy-1.0.4.tgz"
,"_integrity": "sha1-l4hXRCxEdJ5CBmE+N5RiBYJqvYA="
,"_from": "destroy@1.0.4"
}

View File

@@ -32,4 +32,8 @@
"engines": {
"node": ">=0.10"
}
}
,"_resolved": "https://registry.npmjs.org/detect-libc/-/detect-libc-1.0.3.tgz"
,"_integrity": "sha1-+hN8S9aY7fVc1c0CrFWfkaTEups="
,"_from": "detect-libc@1.0.3"
}

View File

@@ -22,4 +22,8 @@
"url": "http://juliangruber.com"
},
"license": "MIT"
}
,"_resolved": "https://registry.npmjs.org/isarray/-/isarray-0.0.1.tgz"
,"_integrity": "sha1-ihis/Kmo9Bd+Cav8YDiTmwXR7t8="
,"_from": "isarray@0.0.1"
}

View File

@@ -29,4 +29,8 @@
},
"author": "Isaac Z. Schlueter <i@izs.me> (http://blog.izs.me/)",
"license": "MIT"
}
,"_resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-1.1.14.tgz"
,"_integrity": "sha1-fPTFTvZI44EwhMY23SB54WbAgdk="
,"_from": "readable-stream@1.1.14"
}

View File

@@ -22,4 +22,8 @@
"browserify"
],
"license": "MIT"
}
,"_resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-0.10.31.tgz"
,"_integrity": "sha1-YuIDvEF2bGwoyfyEMB2rHFMQ+pQ="
,"_from": "string_decoder@0.10.31"
}

6
node_modules/dicer/package.json generated vendored
View File

@@ -14,4 +14,8 @@
"keywords": [ "parser", "parse", "parsing", "multipart", "form-data", "streaming" ],
"licenses": [ { "type": "MIT", "url": "http://github.com/mscdex/dicer/raw/master/LICENSE" } ],
"repository" : { "type": "git", "url": "http://github.com/mscdex/dicer.git" }
}
,"_resolved": "https://registry.npmjs.org/dicer/-/dicer-0.2.5.tgz"
,"_integrity": "sha1-WZbAhrszIYyBLAkL3cCc0S+stw8="
,"_from": "dicer@0.2.5"
}

View File

@@ -58,4 +58,8 @@
"ts-jest": "^24.0.2",
"typescript": "^3.4.5"
}
}
,"_resolved": "https://registry.npmjs.org/dont-sniff-mimetype/-/dont-sniff-mimetype-1.1.0.tgz"
,"_integrity": "sha512-ZjI4zqTaxveH2/tTlzS1wFp+7ncxNZaIEWYg3lzZRHkKf5zPT/MnEG6WL0BhHMJUabkh8GeU5NL5j+rEUCb7Ug=="
,"_from": "dont-sniff-mimetype@1.1.0"
}

6
node_modules/dot-prop/package.json generated vendored
View File

@@ -42,4 +42,8 @@
"tsd": "^0.7.2",
"xo": "^0.25.3"
}
}
,"_resolved": "https://registry.npmjs.org/dot-prop/-/dot-prop-5.2.0.tgz"
,"_integrity": "sha512-uEUyaDKoSQ1M4Oq8l45hSE26SnTxL6snNnqvK/VWx5wJhmff5z0FUVJDKDanor/6w3kzE3i7XZOk+7wC0EXr1A=="
,"_from": "dot-prop@5.2.0"
}

6
node_modules/dotenv/package.json generated vendored
View File

@@ -48,4 +48,8 @@
"flow-typed/"
]
}
}
,"_resolved": "https://registry.npmjs.org/dotenv/-/dotenv-8.2.0.tgz"
,"_integrity": "sha512-8sJ78ElpbDJBHNeBzUbUVLsqKdccaa/BXF1uPTw3GrvQTBgrQrtObr2mUrE38vzYd8cEv+m/JBfDLioYcfXoaw=="
,"_from": "dotenv@8.2.0"
}

View File

@@ -25,4 +25,8 @@
"devDependencies": {
"mocha": "^2.2.5"
}
}
,"_resolved": "https://registry.npmjs.org/duplexer3/-/duplexer3-0.1.4.tgz"
,"_integrity": "sha1-7gHdHKwO08vH/b6jfcCo8c4ALOI="
,"_from": "duplexer3@0.1.4"
}

View File

@@ -43,4 +43,8 @@
"mocha": "^2.5.3",
"native-crypto": "^1.7.0"
}
}
,"_resolved": "https://registry.npmjs.org/ecdsa-sig-formatter/-/ecdsa-sig-formatter-1.0.11.tgz"
,"_integrity": "sha512-nagl3RYrbNv6kQkeJIpt6NJZy8twLB/2vtz6yN9Z4vRKHN4/QZJIEbqohALSgwKdnksuY3k5Addp5lg8sVoVcQ=="
,"_from": "ecdsa-sig-formatter@1.0.11"
}

Some files were not shown because too many files have changed in this diff Show More