crabatool 1.0.2 → 1.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.js +23 -2
- package/ngp/config.js +2 -2
- package/ngp/node_modules/.bin/mime +12 -0
- package/ngp/node_modules/.bin/mime.cmd +17 -0
- package/ngp/node_modules/.bin/mime.ps1 +28 -0
- package/ngp/node_modules/.bin/uglifyjs +12 -0
- package/ngp/node_modules/.bin/uglifyjs.cmd +17 -0
- package/ngp/node_modules/.bin/uglifyjs.ps1 +28 -0
- package/ngp/node_modules/.package-lock.json +863 -0
- package/ngp/node_modules/accepts/HISTORY.md +243 -0
- package/ngp/node_modules/accepts/LICENSE +23 -0
- package/ngp/node_modules/accepts/README.md +140 -0
- package/ngp/node_modules/accepts/index.js +238 -0
- package/ngp/node_modules/accepts/package.json +47 -0
- package/ngp/node_modules/anymatch/LICENSE +15 -0
- package/ngp/node_modules/anymatch/README.md +87 -0
- package/ngp/node_modules/anymatch/index.d.ts +19 -0
- package/ngp/node_modules/anymatch/index.js +104 -0
- package/ngp/node_modules/anymatch/package.json +48 -0
- package/ngp/node_modules/array-flatten/LICENSE +21 -0
- package/ngp/node_modules/array-flatten/README.md +43 -0
- package/ngp/node_modules/array-flatten/array-flatten.js +64 -0
- package/ngp/node_modules/array-flatten/package.json +39 -0
- package/ngp/node_modules/binary-extensions/binary-extensions.json +260 -0
- package/ngp/node_modules/binary-extensions/binary-extensions.json.d.ts +3 -0
- package/ngp/node_modules/binary-extensions/index.d.ts +14 -0
- package/ngp/node_modules/binary-extensions/index.js +1 -0
- package/ngp/node_modules/binary-extensions/license +9 -0
- package/ngp/node_modules/binary-extensions/package.json +38 -0
- package/ngp/node_modules/binary-extensions/readme.md +41 -0
- package/ngp/node_modules/body-parser/HISTORY.md +651 -0
- package/ngp/node_modules/body-parser/LICENSE +23 -0
- package/ngp/node_modules/body-parser/README.md +464 -0
- package/ngp/node_modules/body-parser/SECURITY.md +25 -0
- package/ngp/node_modules/body-parser/index.js +157 -0
- package/ngp/node_modules/body-parser/lib/read.js +205 -0
- package/ngp/node_modules/body-parser/lib/types/json.js +236 -0
- package/ngp/node_modules/body-parser/lib/types/raw.js +101 -0
- package/ngp/node_modules/body-parser/lib/types/text.js +121 -0
- package/ngp/node_modules/body-parser/lib/types/urlencoded.js +284 -0
- package/ngp/node_modules/body-parser/node_modules/bytes/History.md +97 -0
- package/ngp/node_modules/body-parser/node_modules/bytes/LICENSE +23 -0
- package/ngp/node_modules/body-parser/node_modules/bytes/Readme.md +152 -0
- package/ngp/node_modules/body-parser/node_modules/bytes/index.js +170 -0
- package/ngp/node_modules/body-parser/node_modules/bytes/package.json +42 -0
- package/ngp/node_modules/body-parser/node_modules/iconv-lite/Changelog.md +162 -0
- package/ngp/node_modules/body-parser/node_modules/iconv-lite/LICENSE +21 -0
- package/ngp/node_modules/body-parser/node_modules/iconv-lite/README.md +156 -0
- package/ngp/node_modules/body-parser/node_modules/iconv-lite/encodings/dbcs-codec.js +555 -0
- package/ngp/node_modules/body-parser/node_modules/iconv-lite/encodings/dbcs-data.js +176 -0
- package/ngp/node_modules/body-parser/node_modules/iconv-lite/encodings/index.js +22 -0
- package/ngp/node_modules/body-parser/node_modules/iconv-lite/encodings/internal.js +188 -0
- package/ngp/node_modules/body-parser/node_modules/iconv-lite/encodings/sbcs-codec.js +72 -0
- package/ngp/node_modules/body-parser/node_modules/iconv-lite/encodings/sbcs-data-generated.js +451 -0
- package/ngp/node_modules/body-parser/node_modules/iconv-lite/encodings/sbcs-data.js +174 -0
- package/ngp/node_modules/body-parser/node_modules/iconv-lite/encodings/tables/big5-added.json +122 -0
- package/ngp/node_modules/body-parser/node_modules/iconv-lite/encodings/tables/cp936.json +264 -0
- package/ngp/node_modules/body-parser/node_modules/iconv-lite/encodings/tables/cp949.json +273 -0
- package/ngp/node_modules/body-parser/node_modules/iconv-lite/encodings/tables/cp950.json +177 -0
- package/ngp/node_modules/body-parser/node_modules/iconv-lite/encodings/tables/eucjp.json +182 -0
- package/ngp/node_modules/body-parser/node_modules/iconv-lite/encodings/tables/gb18030-ranges.json +1 -0
- package/ngp/node_modules/body-parser/node_modules/iconv-lite/encodings/tables/gbk-added.json +55 -0
- package/ngp/node_modules/body-parser/node_modules/iconv-lite/encodings/tables/shiftjis.json +125 -0
- package/ngp/node_modules/body-parser/node_modules/iconv-lite/encodings/utf16.js +177 -0
- package/ngp/node_modules/body-parser/node_modules/iconv-lite/encodings/utf7.js +290 -0
- package/ngp/node_modules/body-parser/node_modules/iconv-lite/lib/bom-handling.js +52 -0
- package/ngp/node_modules/body-parser/node_modules/iconv-lite/lib/extend-node.js +217 -0
- package/ngp/node_modules/body-parser/node_modules/iconv-lite/lib/index.d.ts +24 -0
- package/ngp/node_modules/body-parser/node_modules/iconv-lite/lib/index.js +153 -0
- package/ngp/node_modules/body-parser/node_modules/iconv-lite/lib/streams.js +121 -0
- package/ngp/node_modules/body-parser/node_modules/iconv-lite/package.json +46 -0
- package/ngp/node_modules/body-parser/package.json +56 -0
- package/ngp/node_modules/braces/CHANGELOG.md +184 -0
- package/ngp/node_modules/braces/LICENSE +21 -0
- package/ngp/node_modules/braces/README.md +593 -0
- package/ngp/node_modules/braces/index.js +170 -0
- package/ngp/node_modules/braces/lib/compile.js +57 -0
- package/ngp/node_modules/braces/lib/constants.js +57 -0
- package/ngp/node_modules/braces/lib/expand.js +113 -0
- package/ngp/node_modules/braces/lib/parse.js +333 -0
- package/ngp/node_modules/braces/lib/stringify.js +32 -0
- package/ngp/node_modules/braces/lib/utils.js +112 -0
- package/ngp/node_modules/braces/package.json +77 -0
- package/ngp/node_modules/bytes/History.md +82 -0
- package/ngp/node_modules/bytes/LICENSE +23 -0
- package/ngp/node_modules/bytes/Readme.md +125 -0
- package/ngp/node_modules/bytes/index.js +159 -0
- package/ngp/node_modules/bytes/package.json +39 -0
- package/ngp/node_modules/call-bind/.eslintignore +1 -0
- package/ngp/node_modules/call-bind/.eslintrc +17 -0
- package/ngp/node_modules/call-bind/.github/FUNDING.yml +12 -0
- package/ngp/node_modules/call-bind/.nycrc +13 -0
- package/ngp/node_modules/call-bind/CHANGELOG.md +42 -0
- package/ngp/node_modules/call-bind/LICENSE +21 -0
- package/ngp/node_modules/call-bind/README.md +2 -0
- package/ngp/node_modules/call-bind/callBound.js +15 -0
- package/ngp/node_modules/call-bind/index.js +47 -0
- package/ngp/node_modules/call-bind/package.json +80 -0
- package/ngp/node_modules/call-bind/test/callBound.js +55 -0
- package/ngp/node_modules/call-bind/test/index.js +66 -0
- package/ngp/node_modules/chokidar/LICENSE +21 -0
- package/ngp/node_modules/chokidar/README.md +308 -0
- package/ngp/node_modules/chokidar/index.js +973 -0
- package/ngp/node_modules/chokidar/lib/constants.js +65 -0
- package/ngp/node_modules/chokidar/lib/fsevents-handler.js +524 -0
- package/ngp/node_modules/chokidar/lib/nodefs-handler.js +654 -0
- package/ngp/node_modules/chokidar/package.json +85 -0
- package/ngp/node_modules/chokidar/types/index.d.ts +188 -0
- package/ngp/node_modules/compressible/HISTORY.md +111 -0
- package/ngp/node_modules/compressible/LICENSE +24 -0
- package/ngp/node_modules/compressible/README.md +61 -0
- package/ngp/node_modules/compressible/index.js +58 -0
- package/ngp/node_modules/compressible/package.json +48 -0
- package/ngp/node_modules/compression/HISTORY.md +307 -0
- package/ngp/node_modules/compression/LICENSE +23 -0
- package/ngp/node_modules/compression/README.md +240 -0
- package/ngp/node_modules/compression/index.js +288 -0
- package/ngp/node_modules/compression/package.json +47 -0
- package/ngp/node_modules/content-disposition/HISTORY.md +60 -0
- package/ngp/node_modules/content-disposition/LICENSE +22 -0
- package/ngp/node_modules/content-disposition/README.md +142 -0
- package/ngp/node_modules/content-disposition/index.js +458 -0
- package/ngp/node_modules/content-disposition/node_modules/safe-buffer/LICENSE +21 -0
- package/ngp/node_modules/content-disposition/node_modules/safe-buffer/README.md +584 -0
- package/ngp/node_modules/content-disposition/node_modules/safe-buffer/index.d.ts +187 -0
- package/ngp/node_modules/content-disposition/node_modules/safe-buffer/index.js +65 -0
- package/ngp/node_modules/content-disposition/node_modules/safe-buffer/package.json +51 -0
- package/ngp/node_modules/content-disposition/package.json +44 -0
- package/ngp/node_modules/content-type/HISTORY.md +24 -0
- package/ngp/node_modules/content-type/LICENSE +22 -0
- package/ngp/node_modules/content-type/README.md +92 -0
- package/ngp/node_modules/content-type/index.js +222 -0
- package/ngp/node_modules/content-type/package.json +40 -0
- package/ngp/node_modules/cookie/HISTORY.md +142 -0
- package/ngp/node_modules/cookie/LICENSE +24 -0
- package/ngp/node_modules/cookie/README.md +302 -0
- package/ngp/node_modules/cookie/SECURITY.md +25 -0
- package/ngp/node_modules/cookie/index.js +270 -0
- package/ngp/node_modules/cookie/package.json +44 -0
- package/ngp/node_modules/cookie-signature/History.md +38 -0
- package/ngp/node_modules/cookie-signature/Readme.md +42 -0
- package/ngp/node_modules/cookie-signature/index.js +51 -0
- package/ngp/node_modules/cookie-signature/package.json +18 -0
- package/ngp/node_modules/crabatool/index.js +28 -0
- package/ngp/node_modules/crabatool/ngp/config.js +25 -0
- package/ngp/node_modules/crabatool/ngp/ngp.js +3 -0
- package/ngp/node_modules/crabatool/ngp/package.json +15 -0
- package/ngp/node_modules/crabatool/ngp/readme.md +4 -0
- package/ngp/node_modules/crabatool/package.json +25 -0
- package/ngp/node_modules/crabatool/readme.md +12 -0
- package/ngp/node_modules/crabatool/server.js +124 -0
- package/ngp/node_modules/debug/.coveralls.yml +1 -0
- package/ngp/node_modules/debug/.eslintrc +11 -0
- package/ngp/node_modules/debug/.travis.yml +14 -0
- package/ngp/node_modules/debug/CHANGELOG.md +362 -0
- package/ngp/node_modules/debug/LICENSE +19 -0
- package/ngp/node_modules/debug/Makefile +50 -0
- package/ngp/node_modules/debug/README.md +312 -0
- package/ngp/node_modules/debug/component.json +19 -0
- package/ngp/node_modules/debug/karma.conf.js +70 -0
- package/ngp/node_modules/debug/node.js +1 -0
- package/ngp/node_modules/debug/package.json +49 -0
- package/ngp/node_modules/debug/src/browser.js +185 -0
- package/ngp/node_modules/debug/src/debug.js +202 -0
- package/ngp/node_modules/debug/src/index.js +10 -0
- package/ngp/node_modules/debug/src/inspector-log.js +15 -0
- package/ngp/node_modules/debug/src/node.js +248 -0
- package/ngp/node_modules/depd/History.md +103 -0
- package/ngp/node_modules/depd/LICENSE +22 -0
- package/ngp/node_modules/depd/Readme.md +280 -0
- package/ngp/node_modules/depd/index.js +538 -0
- package/ngp/node_modules/depd/lib/browser/index.js +77 -0
- package/ngp/node_modules/depd/package.json +45 -0
- package/ngp/node_modules/destroy/LICENSE +23 -0
- package/ngp/node_modules/destroy/README.md +63 -0
- package/ngp/node_modules/destroy/index.js +209 -0
- package/ngp/node_modules/destroy/package.json +48 -0
- package/ngp/node_modules/ee-first/LICENSE +22 -0
- package/ngp/node_modules/ee-first/README.md +80 -0
- package/ngp/node_modules/ee-first/index.js +95 -0
- package/ngp/node_modules/ee-first/package.json +29 -0
- package/ngp/node_modules/encodeurl/HISTORY.md +14 -0
- package/ngp/node_modules/encodeurl/LICENSE +22 -0
- package/ngp/node_modules/encodeurl/README.md +128 -0
- package/ngp/node_modules/encodeurl/index.js +60 -0
- package/ngp/node_modules/encodeurl/package.json +40 -0
- package/ngp/node_modules/escape-html/LICENSE +24 -0
- package/ngp/node_modules/escape-html/Readme.md +43 -0
- package/ngp/node_modules/escape-html/index.js +78 -0
- package/ngp/node_modules/escape-html/package.json +24 -0
- package/ngp/node_modules/etag/HISTORY.md +83 -0
- package/ngp/node_modules/etag/LICENSE +22 -0
- package/ngp/node_modules/etag/README.md +159 -0
- package/ngp/node_modules/etag/index.js +131 -0
- package/ngp/node_modules/etag/package.json +47 -0
- package/ngp/node_modules/express/History.md +3579 -0
- package/ngp/node_modules/express/LICENSE +24 -0
- package/ngp/node_modules/express/Readme.md +166 -0
- package/ngp/node_modules/express/index.js +11 -0
- package/ngp/node_modules/express/lib/application.js +661 -0
- package/ngp/node_modules/express/lib/express.js +116 -0
- package/ngp/node_modules/express/lib/middleware/init.js +43 -0
- package/ngp/node_modules/express/lib/middleware/query.js +47 -0
- package/ngp/node_modules/express/lib/request.js +525 -0
- package/ngp/node_modules/express/lib/response.js +1169 -0
- package/ngp/node_modules/express/lib/router/index.js +673 -0
- package/ngp/node_modules/express/lib/router/layer.js +181 -0
- package/ngp/node_modules/express/lib/router/route.js +225 -0
- package/ngp/node_modules/express/lib/utils.js +304 -0
- package/ngp/node_modules/express/lib/view.js +182 -0
- package/ngp/node_modules/express/node_modules/safe-buffer/LICENSE +21 -0
- package/ngp/node_modules/express/node_modules/safe-buffer/README.md +584 -0
- package/ngp/node_modules/express/node_modules/safe-buffer/index.d.ts +187 -0
- package/ngp/node_modules/express/node_modules/safe-buffer/index.js +65 -0
- package/ngp/node_modules/express/node_modules/safe-buffer/package.json +51 -0
- package/ngp/node_modules/express/package.json +99 -0
- package/ngp/node_modules/fill-range/LICENSE +21 -0
- package/ngp/node_modules/fill-range/README.md +237 -0
- package/ngp/node_modules/fill-range/index.js +249 -0
- package/ngp/node_modules/fill-range/package.json +69 -0
- package/ngp/node_modules/finalhandler/HISTORY.md +195 -0
- package/ngp/node_modules/finalhandler/LICENSE +22 -0
- package/ngp/node_modules/finalhandler/README.md +147 -0
- package/ngp/node_modules/finalhandler/SECURITY.md +25 -0
- package/ngp/node_modules/finalhandler/index.js +336 -0
- package/ngp/node_modules/finalhandler/package.json +46 -0
- package/ngp/node_modules/forwarded/HISTORY.md +21 -0
- package/ngp/node_modules/forwarded/LICENSE +22 -0
- package/ngp/node_modules/forwarded/README.md +57 -0
- package/ngp/node_modules/forwarded/index.js +90 -0
- package/ngp/node_modules/forwarded/package.json +45 -0
- package/ngp/node_modules/fresh/HISTORY.md +70 -0
- package/ngp/node_modules/fresh/LICENSE +23 -0
- package/ngp/node_modules/fresh/README.md +119 -0
- package/ngp/node_modules/fresh/index.js +137 -0
- package/ngp/node_modules/fresh/package.json +46 -0
- package/ngp/node_modules/function-bind/.editorconfig +20 -0
- package/ngp/node_modules/function-bind/.eslintrc +15 -0
- package/ngp/node_modules/function-bind/.jscs.json +176 -0
- package/ngp/node_modules/function-bind/.travis.yml +168 -0
- package/ngp/node_modules/function-bind/LICENSE +20 -0
- package/ngp/node_modules/function-bind/README.md +48 -0
- package/ngp/node_modules/function-bind/implementation.js +52 -0
- package/ngp/node_modules/function-bind/index.js +5 -0
- package/ngp/node_modules/function-bind/package.json +63 -0
- package/ngp/node_modules/function-bind/test/.eslintrc +9 -0
- package/ngp/node_modules/function-bind/test/index.js +252 -0
- package/ngp/node_modules/get-intrinsic/.eslintignore +1 -0
- package/ngp/node_modules/get-intrinsic/.eslintrc +43 -0
- package/ngp/node_modules/get-intrinsic/.github/FUNDING.yml +12 -0
- package/ngp/node_modules/get-intrinsic/.nycrc +13 -0
- package/ngp/node_modules/get-intrinsic/CHANGELOG.md +64 -0
- package/ngp/node_modules/get-intrinsic/LICENSE +21 -0
- package/ngp/node_modules/get-intrinsic/README.md +65 -0
- package/ngp/node_modules/get-intrinsic/index.js +330 -0
- package/ngp/node_modules/get-intrinsic/package.json +78 -0
- package/ngp/node_modules/get-intrinsic/test/GetIntrinsic.js +260 -0
- package/ngp/node_modules/glob-parent/CHANGELOG.md +110 -0
- package/ngp/node_modules/glob-parent/LICENSE +15 -0
- package/ngp/node_modules/glob-parent/README.md +137 -0
- package/ngp/node_modules/glob-parent/index.js +42 -0
- package/ngp/node_modules/glob-parent/package.json +48 -0
- package/ngp/node_modules/has/LICENSE-MIT +22 -0
- package/ngp/node_modules/has/README.md +18 -0
- package/ngp/node_modules/has/package.json +48 -0
- package/ngp/node_modules/has/src/index.js +5 -0
- package/ngp/node_modules/has/test/index.js +10 -0
- package/ngp/node_modules/has-symbols/.eslintrc +11 -0
- package/ngp/node_modules/has-symbols/.github/FUNDING.yml +12 -0
- package/ngp/node_modules/has-symbols/.nycrc +9 -0
- package/ngp/node_modules/has-symbols/CHANGELOG.md +75 -0
- package/ngp/node_modules/has-symbols/LICENSE +21 -0
- package/ngp/node_modules/has-symbols/README.md +46 -0
- package/ngp/node_modules/has-symbols/index.js +13 -0
- package/ngp/node_modules/has-symbols/package.json +101 -0
- package/ngp/node_modules/has-symbols/shams.js +42 -0
- package/ngp/node_modules/has-symbols/test/index.js +22 -0
- package/ngp/node_modules/has-symbols/test/shams/core-js.js +28 -0
- package/ngp/node_modules/has-symbols/test/shams/get-own-property-symbols.js +28 -0
- package/ngp/node_modules/has-symbols/test/tests.js +56 -0
- package/ngp/node_modules/http-errors/HISTORY.md +180 -0
- package/ngp/node_modules/http-errors/LICENSE +23 -0
- package/ngp/node_modules/http-errors/README.md +169 -0
- package/ngp/node_modules/http-errors/index.js +289 -0
- package/ngp/node_modules/http-errors/package.json +50 -0
- package/ngp/node_modules/iconv-lite/Changelog.md +184 -0
- package/ngp/node_modules/iconv-lite/LICENSE +21 -0
- package/ngp/node_modules/iconv-lite/README.md +166 -0
- package/ngp/node_modules/iconv-lite/encodings/dbcs-codec.js +555 -0
- package/ngp/node_modules/iconv-lite/encodings/dbcs-data.js +176 -0
- package/ngp/node_modules/iconv-lite/encodings/index.js +23 -0
- package/ngp/node_modules/iconv-lite/encodings/internal.js +188 -0
- package/ngp/node_modules/iconv-lite/encodings/sbcs-codec.js +72 -0
- package/ngp/node_modules/iconv-lite/encodings/sbcs-data-generated.js +451 -0
- package/ngp/node_modules/iconv-lite/encodings/sbcs-data.js +179 -0
- package/ngp/node_modules/iconv-lite/encodings/tables/big5-added.json +122 -0
- package/ngp/node_modules/iconv-lite/encodings/tables/cp936.json +264 -0
- package/ngp/node_modules/iconv-lite/encodings/tables/cp949.json +273 -0
- package/ngp/node_modules/iconv-lite/encodings/tables/cp950.json +177 -0
- package/ngp/node_modules/iconv-lite/encodings/tables/eucjp.json +182 -0
- package/ngp/node_modules/iconv-lite/encodings/tables/gb18030-ranges.json +1 -0
- package/ngp/node_modules/iconv-lite/encodings/tables/gbk-added.json +55 -0
- package/ngp/node_modules/iconv-lite/encodings/tables/shiftjis.json +125 -0
- package/ngp/node_modules/iconv-lite/encodings/utf16.js +177 -0
- package/ngp/node_modules/iconv-lite/encodings/utf32.js +281 -0
- package/ngp/node_modules/iconv-lite/encodings/utf7.js +290 -0
- package/ngp/node_modules/iconv-lite/lib/bom-handling.js +52 -0
- package/ngp/node_modules/iconv-lite/lib/extend-node.js +217 -0
- package/ngp/node_modules/iconv-lite/lib/index.d.ts +41 -0
- package/ngp/node_modules/iconv-lite/lib/index.js +153 -0
- package/ngp/node_modules/iconv-lite/lib/streams.js +121 -0
- package/ngp/node_modules/iconv-lite/package.json +45 -0
- package/ngp/node_modules/inherits/LICENSE +16 -0
- package/ngp/node_modules/inherits/README.md +42 -0
- package/ngp/node_modules/inherits/inherits.js +9 -0
- package/ngp/node_modules/inherits/inherits_browser.js +27 -0
- package/ngp/node_modules/inherits/package.json +29 -0
- package/ngp/node_modules/ipaddr.js/LICENSE +19 -0
- package/ngp/node_modules/ipaddr.js/README.md +233 -0
- package/ngp/node_modules/ipaddr.js/ipaddr.min.js +1 -0
- package/ngp/node_modules/ipaddr.js/lib/ipaddr.js +673 -0
- package/ngp/node_modules/ipaddr.js/lib/ipaddr.js.d.ts +68 -0
- package/ngp/node_modules/ipaddr.js/package.json +35 -0
- package/ngp/node_modules/is-binary-path/index.d.ts +17 -0
- package/ngp/node_modules/is-binary-path/index.js +7 -0
- package/ngp/node_modules/is-binary-path/license +9 -0
- package/ngp/node_modules/is-binary-path/package.json +40 -0
- package/ngp/node_modules/is-binary-path/readme.md +34 -0
- package/ngp/node_modules/is-extglob/LICENSE +21 -0
- package/ngp/node_modules/is-extglob/README.md +107 -0
- package/ngp/node_modules/is-extglob/index.js +20 -0
- package/ngp/node_modules/is-extglob/package.json +69 -0
- package/ngp/node_modules/is-glob/LICENSE +21 -0
- package/ngp/node_modules/is-glob/README.md +206 -0
- package/ngp/node_modules/is-glob/index.js +150 -0
- package/ngp/node_modules/is-glob/package.json +81 -0
- package/ngp/node_modules/is-number/LICENSE +21 -0
- package/ngp/node_modules/is-number/README.md +187 -0
- package/ngp/node_modules/is-number/index.js +18 -0
- package/ngp/node_modules/is-number/package.json +82 -0
- package/ngp/node_modules/media-typer/HISTORY.md +22 -0
- package/ngp/node_modules/media-typer/LICENSE +22 -0
- package/ngp/node_modules/media-typer/README.md +81 -0
- package/ngp/node_modules/media-typer/index.js +270 -0
- package/ngp/node_modules/media-typer/package.json +26 -0
- package/ngp/node_modules/merge-descriptors/HISTORY.md +21 -0
- package/ngp/node_modules/merge-descriptors/LICENSE +23 -0
- package/ngp/node_modules/merge-descriptors/README.md +48 -0
- package/ngp/node_modules/merge-descriptors/index.js +60 -0
- package/ngp/node_modules/merge-descriptors/package.json +32 -0
- package/ngp/node_modules/methods/HISTORY.md +29 -0
- package/ngp/node_modules/methods/LICENSE +24 -0
- package/ngp/node_modules/methods/README.md +51 -0
- package/ngp/node_modules/methods/index.js +69 -0
- package/ngp/node_modules/methods/package.json +36 -0
- package/ngp/node_modules/mime/CHANGELOG.md +164 -0
- package/ngp/node_modules/mime/LICENSE +21 -0
- package/ngp/node_modules/mime/README.md +90 -0
- package/ngp/node_modules/mime/cli.js +8 -0
- package/ngp/node_modules/mime/mime.js +108 -0
- package/ngp/node_modules/mime/package.json +44 -0
- package/ngp/node_modules/mime/src/build.js +53 -0
- package/ngp/node_modules/mime/src/test.js +60 -0
- package/ngp/node_modules/mime/types.json +1 -0
- package/ngp/node_modules/mime-db/HISTORY.md +507 -0
- package/ngp/node_modules/mime-db/LICENSE +23 -0
- package/ngp/node_modules/mime-db/README.md +100 -0
- package/ngp/node_modules/mime-db/db.json +8519 -0
- package/ngp/node_modules/mime-db/index.js +12 -0
- package/ngp/node_modules/mime-db/package.json +60 -0
- package/ngp/node_modules/mime-types/HISTORY.md +397 -0
- package/ngp/node_modules/mime-types/LICENSE +23 -0
- package/ngp/node_modules/mime-types/README.md +113 -0
- package/ngp/node_modules/mime-types/index.js +188 -0
- package/ngp/node_modules/mime-types/package.json +44 -0
- package/ngp/node_modules/ms/index.js +152 -0
- package/ngp/node_modules/ms/license.md +21 -0
- package/ngp/node_modules/ms/package.json +37 -0
- package/ngp/node_modules/ms/readme.md +51 -0
- package/ngp/node_modules/negotiator/HISTORY.md +108 -0
- package/ngp/node_modules/negotiator/LICENSE +24 -0
- package/ngp/node_modules/negotiator/README.md +203 -0
- package/ngp/node_modules/negotiator/index.js +82 -0
- package/ngp/node_modules/negotiator/lib/charset.js +169 -0
- package/ngp/node_modules/negotiator/lib/encoding.js +184 -0
- package/ngp/node_modules/negotiator/lib/language.js +179 -0
- package/ngp/node_modules/negotiator/lib/mediaType.js +294 -0
- package/ngp/node_modules/negotiator/package.json +42 -0
- package/ngp/node_modules/normalize-path/LICENSE +21 -0
- package/ngp/node_modules/normalize-path/README.md +127 -0
- package/ngp/node_modules/normalize-path/index.js +35 -0
- package/ngp/node_modules/normalize-path/package.json +77 -0
- package/ngp/node_modules/object-inspect/.eslintrc +53 -0
- package/ngp/node_modules/object-inspect/.github/FUNDING.yml +12 -0
- package/ngp/node_modules/object-inspect/.nycrc +13 -0
- package/ngp/node_modules/object-inspect/CHANGELOG.md +360 -0
- package/ngp/node_modules/object-inspect/LICENSE +21 -0
- package/ngp/node_modules/object-inspect/example/all.js +23 -0
- package/ngp/node_modules/object-inspect/example/circular.js +6 -0
- package/ngp/node_modules/object-inspect/example/fn.js +5 -0
- package/ngp/node_modules/object-inspect/example/inspect.js +10 -0
- package/ngp/node_modules/object-inspect/index.js +512 -0
- package/ngp/node_modules/object-inspect/package-support.json +20 -0
- package/ngp/node_modules/object-inspect/package.json +94 -0
- package/ngp/node_modules/object-inspect/readme.markdown +86 -0
- package/ngp/node_modules/object-inspect/test/bigint.js +58 -0
- package/ngp/node_modules/object-inspect/test/browser/dom.js +15 -0
- package/ngp/node_modules/object-inspect/test/circular.js +16 -0
- package/ngp/node_modules/object-inspect/test/deep.js +12 -0
- package/ngp/node_modules/object-inspect/test/element.js +53 -0
- package/ngp/node_modules/object-inspect/test/err.js +48 -0
- package/ngp/node_modules/object-inspect/test/fakes.js +29 -0
- package/ngp/node_modules/object-inspect/test/fn.js +76 -0
- package/ngp/node_modules/object-inspect/test/has.js +15 -0
- package/ngp/node_modules/object-inspect/test/holes.js +15 -0
- package/ngp/node_modules/object-inspect/test/indent-option.js +271 -0
- package/ngp/node_modules/object-inspect/test/inspect.js +139 -0
- package/ngp/node_modules/object-inspect/test/lowbyte.js +12 -0
- package/ngp/node_modules/object-inspect/test/number.js +58 -0
- package/ngp/node_modules/object-inspect/test/quoteStyle.js +17 -0
- package/ngp/node_modules/object-inspect/test/toStringTag.js +40 -0
- package/ngp/node_modules/object-inspect/test/undef.js +12 -0
- package/ngp/node_modules/object-inspect/test/values.js +211 -0
- package/ngp/node_modules/object-inspect/test-core-js.js +26 -0
- package/ngp/node_modules/object-inspect/util.inspect.js +1 -0
- package/ngp/node_modules/on-finished/HISTORY.md +98 -0
- package/ngp/node_modules/on-finished/LICENSE +23 -0
- package/ngp/node_modules/on-finished/README.md +162 -0
- package/ngp/node_modules/on-finished/index.js +234 -0
- package/ngp/node_modules/on-finished/package.json +39 -0
- package/ngp/node_modules/on-headers/HISTORY.md +21 -0
- package/ngp/node_modules/on-headers/LICENSE +22 -0
- package/ngp/node_modules/on-headers/README.md +81 -0
- package/ngp/node_modules/on-headers/index.js +132 -0
- package/ngp/node_modules/on-headers/package.json +42 -0
- package/ngp/node_modules/parseurl/HISTORY.md +58 -0
- package/ngp/node_modules/parseurl/LICENSE +24 -0
- package/ngp/node_modules/parseurl/README.md +133 -0
- package/ngp/node_modules/parseurl/index.js +158 -0
- package/ngp/node_modules/parseurl/package.json +40 -0
- package/ngp/node_modules/path-to-regexp/History.md +36 -0
- package/ngp/node_modules/path-to-regexp/LICENSE +21 -0
- package/ngp/node_modules/path-to-regexp/Readme.md +35 -0
- package/ngp/node_modules/path-to-regexp/index.js +129 -0
- package/ngp/node_modules/path-to-regexp/package.json +30 -0
- package/ngp/node_modules/picomatch/CHANGELOG.md +136 -0
- package/ngp/node_modules/picomatch/LICENSE +21 -0
- package/ngp/node_modules/picomatch/README.md +708 -0
- package/ngp/node_modules/picomatch/index.js +3 -0
- package/ngp/node_modules/picomatch/lib/constants.js +179 -0
- package/ngp/node_modules/picomatch/lib/parse.js +1091 -0
- package/ngp/node_modules/picomatch/lib/picomatch.js +342 -0
- package/ngp/node_modules/picomatch/lib/scan.js +391 -0
- package/ngp/node_modules/picomatch/lib/utils.js +64 -0
- package/ngp/node_modules/picomatch/package.json +81 -0
- package/ngp/node_modules/proxy-addr/HISTORY.md +161 -0
- package/ngp/node_modules/proxy-addr/LICENSE +22 -0
- package/ngp/node_modules/proxy-addr/README.md +139 -0
- package/ngp/node_modules/proxy-addr/index.js +327 -0
- package/ngp/node_modules/proxy-addr/package.json +47 -0
- package/ngp/node_modules/qs/.editorconfig +40 -0
- package/ngp/node_modules/qs/.eslintrc +38 -0
- package/ngp/node_modules/qs/.github/FUNDING.yml +12 -0
- package/ngp/node_modules/qs/.nycrc +13 -0
- package/ngp/node_modules/qs/CHANGELOG.md +388 -0
- package/ngp/node_modules/qs/LICENSE.md +29 -0
- package/ngp/node_modules/qs/README.md +623 -0
- package/ngp/node_modules/qs/dist/qs.js +2044 -0
- package/ngp/node_modules/qs/lib/formats.js +23 -0
- package/ngp/node_modules/qs/lib/index.js +11 -0
- package/ngp/node_modules/qs/lib/parse.js +263 -0
- package/ngp/node_modules/qs/lib/stringify.js +317 -0
- package/ngp/node_modules/qs/lib/utils.js +252 -0
- package/ngp/node_modules/qs/package.json +73 -0
- package/ngp/node_modules/qs/test/parse.js +841 -0
- package/ngp/node_modules/qs/test/stringify.js +865 -0
- package/ngp/node_modules/qs/test/utils.js +136 -0
- package/ngp/node_modules/range-parser/HISTORY.md +56 -0
- package/ngp/node_modules/range-parser/LICENSE +23 -0
- package/ngp/node_modules/range-parser/README.md +84 -0
- package/ngp/node_modules/range-parser/index.js +162 -0
- package/ngp/node_modules/range-parser/package.json +44 -0
- package/ngp/node_modules/raw-body/HISTORY.md +303 -0
- package/ngp/node_modules/raw-body/LICENSE +22 -0
- package/ngp/node_modules/raw-body/README.md +223 -0
- package/ngp/node_modules/raw-body/SECURITY.md +24 -0
- package/ngp/node_modules/raw-body/index.d.ts +87 -0
- package/ngp/node_modules/raw-body/index.js +329 -0
- package/ngp/node_modules/raw-body/node_modules/bytes/History.md +97 -0
- package/ngp/node_modules/raw-body/node_modules/bytes/LICENSE +23 -0
- package/ngp/node_modules/raw-body/node_modules/bytes/Readme.md +152 -0
- package/ngp/node_modules/raw-body/node_modules/bytes/index.js +170 -0
- package/ngp/node_modules/raw-body/node_modules/bytes/package.json +42 -0
- package/ngp/node_modules/raw-body/node_modules/iconv-lite/Changelog.md +162 -0
- package/ngp/node_modules/raw-body/node_modules/iconv-lite/LICENSE +21 -0
- package/ngp/node_modules/raw-body/node_modules/iconv-lite/README.md +156 -0
- package/ngp/node_modules/raw-body/node_modules/iconv-lite/encodings/dbcs-codec.js +555 -0
- package/ngp/node_modules/raw-body/node_modules/iconv-lite/encodings/dbcs-data.js +176 -0
- package/ngp/node_modules/raw-body/node_modules/iconv-lite/encodings/index.js +22 -0
- package/ngp/node_modules/raw-body/node_modules/iconv-lite/encodings/internal.js +188 -0
- package/ngp/node_modules/raw-body/node_modules/iconv-lite/encodings/sbcs-codec.js +72 -0
- package/ngp/node_modules/raw-body/node_modules/iconv-lite/encodings/sbcs-data-generated.js +451 -0
- package/ngp/node_modules/raw-body/node_modules/iconv-lite/encodings/sbcs-data.js +174 -0
- package/ngp/node_modules/raw-body/node_modules/iconv-lite/encodings/tables/big5-added.json +122 -0
- package/ngp/node_modules/raw-body/node_modules/iconv-lite/encodings/tables/cp936.json +264 -0
- package/ngp/node_modules/raw-body/node_modules/iconv-lite/encodings/tables/cp949.json +273 -0
- package/ngp/node_modules/raw-body/node_modules/iconv-lite/encodings/tables/cp950.json +177 -0
- package/ngp/node_modules/raw-body/node_modules/iconv-lite/encodings/tables/eucjp.json +182 -0
- package/ngp/node_modules/raw-body/node_modules/iconv-lite/encodings/tables/gb18030-ranges.json +1 -0
- package/ngp/node_modules/raw-body/node_modules/iconv-lite/encodings/tables/gbk-added.json +55 -0
- package/ngp/node_modules/raw-body/node_modules/iconv-lite/encodings/tables/shiftjis.json +125 -0
- package/ngp/node_modules/raw-body/node_modules/iconv-lite/encodings/utf16.js +177 -0
- package/ngp/node_modules/raw-body/node_modules/iconv-lite/encodings/utf7.js +290 -0
- package/ngp/node_modules/raw-body/node_modules/iconv-lite/lib/bom-handling.js +52 -0
- package/ngp/node_modules/raw-body/node_modules/iconv-lite/lib/extend-node.js +217 -0
- package/ngp/node_modules/raw-body/node_modules/iconv-lite/lib/index.d.ts +24 -0
- package/ngp/node_modules/raw-body/node_modules/iconv-lite/lib/index.js +153 -0
- package/ngp/node_modules/raw-body/node_modules/iconv-lite/lib/streams.js +121 -0
- package/ngp/node_modules/raw-body/node_modules/iconv-lite/package.json +46 -0
- package/ngp/node_modules/raw-body/package.json +49 -0
- package/ngp/node_modules/readdirp/LICENSE +21 -0
- package/ngp/node_modules/readdirp/README.md +122 -0
- package/ngp/node_modules/readdirp/index.d.ts +43 -0
- package/ngp/node_modules/readdirp/index.js +287 -0
- package/ngp/node_modules/readdirp/package.json +122 -0
- package/ngp/node_modules/safe-buffer/LICENSE +21 -0
- package/ngp/node_modules/safe-buffer/README.md +584 -0
- package/ngp/node_modules/safe-buffer/index.d.ts +187 -0
- package/ngp/node_modules/safe-buffer/index.js +62 -0
- package/ngp/node_modules/safe-buffer/package.json +37 -0
- package/ngp/node_modules/safer-buffer/LICENSE +21 -0
- package/ngp/node_modules/safer-buffer/Porting-Buffer.md +268 -0
- package/ngp/node_modules/safer-buffer/Readme.md +156 -0
- package/ngp/node_modules/safer-buffer/dangerous.js +58 -0
- package/ngp/node_modules/safer-buffer/package.json +34 -0
- package/ngp/node_modules/safer-buffer/safer.js +77 -0
- package/ngp/node_modules/safer-buffer/tests.js +406 -0
- package/ngp/node_modules/send/HISTORY.md +521 -0
- package/ngp/node_modules/send/LICENSE +23 -0
- package/ngp/node_modules/send/README.md +327 -0
- package/ngp/node_modules/send/SECURITY.md +24 -0
- package/ngp/node_modules/send/index.js +1143 -0
- package/ngp/node_modules/send/node_modules/ms/index.js +162 -0
- package/ngp/node_modules/send/node_modules/ms/license.md +21 -0
- package/ngp/node_modules/send/node_modules/ms/package.json +38 -0
- package/ngp/node_modules/send/node_modules/ms/readme.md +59 -0
- package/ngp/node_modules/send/package.json +62 -0
- package/ngp/node_modules/serve-static/HISTORY.md +471 -0
- package/ngp/node_modules/serve-static/LICENSE +25 -0
- package/ngp/node_modules/serve-static/README.md +257 -0
- package/ngp/node_modules/serve-static/index.js +210 -0
- package/ngp/node_modules/serve-static/package.json +42 -0
- package/ngp/node_modules/setprototypeof/LICENSE +13 -0
- package/ngp/node_modules/setprototypeof/README.md +31 -0
- package/ngp/node_modules/setprototypeof/index.d.ts +2 -0
- package/ngp/node_modules/setprototypeof/index.js +17 -0
- package/ngp/node_modules/setprototypeof/package.json +38 -0
- package/ngp/node_modules/setprototypeof/test/index.js +24 -0
- package/ngp/node_modules/side-channel/.eslintignore +1 -0
- package/ngp/node_modules/side-channel/.eslintrc +11 -0
- package/ngp/node_modules/side-channel/.github/FUNDING.yml +12 -0
- package/ngp/node_modules/side-channel/.nycrc +13 -0
- package/ngp/node_modules/side-channel/CHANGELOG.md +65 -0
- package/ngp/node_modules/side-channel/LICENSE +21 -0
- package/ngp/node_modules/side-channel/README.md +2 -0
- package/ngp/node_modules/side-channel/index.js +124 -0
- package/ngp/node_modules/side-channel/package.json +67 -0
- package/ngp/node_modules/side-channel/test/index.js +78 -0
- package/ngp/node_modules/statuses/HISTORY.md +82 -0
- package/ngp/node_modules/statuses/LICENSE +23 -0
- package/ngp/node_modules/statuses/README.md +136 -0
- package/ngp/node_modules/statuses/codes.json +65 -0
- package/ngp/node_modules/statuses/index.js +146 -0
- package/ngp/node_modules/statuses/package.json +49 -0
- package/ngp/node_modules/to-regex-range/LICENSE +21 -0
- package/ngp/node_modules/to-regex-range/README.md +305 -0
- package/ngp/node_modules/to-regex-range/index.js +288 -0
- package/ngp/node_modules/to-regex-range/package.json +88 -0
- package/ngp/node_modules/toidentifier/HISTORY.md +9 -0
- package/ngp/node_modules/toidentifier/LICENSE +21 -0
- package/ngp/node_modules/toidentifier/README.md +61 -0
- package/ngp/node_modules/toidentifier/index.js +32 -0
- package/ngp/node_modules/toidentifier/package.json +38 -0
- package/ngp/node_modules/type-is/HISTORY.md +259 -0
- package/ngp/node_modules/type-is/LICENSE +23 -0
- package/ngp/node_modules/type-is/README.md +170 -0
- package/ngp/node_modules/type-is/index.js +266 -0
- package/ngp/node_modules/type-is/package.json +45 -0
- package/ngp/node_modules/uglify-js/LICENSE +29 -0
- package/ngp/node_modules/uglify-js/README.md +1423 -0
- package/ngp/node_modules/uglify-js/bin/uglifyjs +603 -0
- package/ngp/node_modules/uglify-js/lib/ast.js +2132 -0
- package/ngp/node_modules/uglify-js/lib/compress.js +13762 -0
- package/ngp/node_modules/uglify-js/lib/minify.js +277 -0
- package/ngp/node_modules/uglify-js/lib/mozilla-ast.js +1274 -0
- package/ngp/node_modules/uglify-js/lib/output.js +1936 -0
- package/ngp/node_modules/uglify-js/lib/parse.js +2559 -0
- package/ngp/node_modules/uglify-js/lib/propmangle.js +259 -0
- package/ngp/node_modules/uglify-js/lib/scope.js +860 -0
- package/ngp/node_modules/uglify-js/lib/sourcemap.js +195 -0
- package/ngp/node_modules/uglify-js/lib/transform.js +250 -0
- package/ngp/node_modules/uglify-js/lib/utils.js +285 -0
- package/ngp/node_modules/uglify-js/package.json +56 -0
- package/ngp/node_modules/uglify-js/tools/domprops.html +456 -0
- package/ngp/node_modules/uglify-js/tools/domprops.json +8325 -0
- package/ngp/node_modules/uglify-js/tools/exports.js +8 -0
- package/ngp/node_modules/uglify-js/tools/node.js +110 -0
- package/ngp/node_modules/uglify-js/tools/tty.js +22 -0
- package/ngp/node_modules/unpipe/HISTORY.md +4 -0
- package/ngp/node_modules/unpipe/LICENSE +22 -0
- package/ngp/node_modules/unpipe/README.md +43 -0
- package/ngp/node_modules/unpipe/index.js +69 -0
- package/ngp/node_modules/unpipe/package.json +27 -0
- package/ngp/node_modules/utils-merge/LICENSE +20 -0
- package/ngp/node_modules/utils-merge/README.md +34 -0
- package/ngp/node_modules/utils-merge/index.js +23 -0
- package/ngp/node_modules/utils-merge/package.json +40 -0
- package/ngp/node_modules/vary/HISTORY.md +39 -0
- package/ngp/node_modules/vary/LICENSE +22 -0
- package/ngp/node_modules/vary/README.md +101 -0
- package/ngp/node_modules/vary/index.js +149 -0
- package/ngp/node_modules/vary/package.json +43 -0
- package/ngp/package-lock.json +1508 -0
- package/package.json +3 -2
- package/readme.md +0 -4
|
@@ -0,0 +1,391 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
const utils = require('./utils');
|
|
4
|
+
const {
|
|
5
|
+
CHAR_ASTERISK, /* * */
|
|
6
|
+
CHAR_AT, /* @ */
|
|
7
|
+
CHAR_BACKWARD_SLASH, /* \ */
|
|
8
|
+
CHAR_COMMA, /* , */
|
|
9
|
+
CHAR_DOT, /* . */
|
|
10
|
+
CHAR_EXCLAMATION_MARK, /* ! */
|
|
11
|
+
CHAR_FORWARD_SLASH, /* / */
|
|
12
|
+
CHAR_LEFT_CURLY_BRACE, /* { */
|
|
13
|
+
CHAR_LEFT_PARENTHESES, /* ( */
|
|
14
|
+
CHAR_LEFT_SQUARE_BRACKET, /* [ */
|
|
15
|
+
CHAR_PLUS, /* + */
|
|
16
|
+
CHAR_QUESTION_MARK, /* ? */
|
|
17
|
+
CHAR_RIGHT_CURLY_BRACE, /* } */
|
|
18
|
+
CHAR_RIGHT_PARENTHESES, /* ) */
|
|
19
|
+
CHAR_RIGHT_SQUARE_BRACKET /* ] */
|
|
20
|
+
} = require('./constants');
|
|
21
|
+
|
|
22
|
+
const isPathSeparator = code => {
|
|
23
|
+
return code === CHAR_FORWARD_SLASH || code === CHAR_BACKWARD_SLASH;
|
|
24
|
+
};
|
|
25
|
+
|
|
26
|
+
const depth = token => {
|
|
27
|
+
if (token.isPrefix !== true) {
|
|
28
|
+
token.depth = token.isGlobstar ? Infinity : 1;
|
|
29
|
+
}
|
|
30
|
+
};
|
|
31
|
+
|
|
32
|
+
/**
|
|
33
|
+
* Quickly scans a glob pattern and returns an object with a handful of
|
|
34
|
+
* useful properties, like `isGlob`, `path` (the leading non-glob, if it exists),
|
|
35
|
+
* `glob` (the actual pattern), `negated` (true if the path starts with `!` but not
|
|
36
|
+
* with `!(`) and `negatedExtglob` (true if the path starts with `!(`).
|
|
37
|
+
*
|
|
38
|
+
* ```js
|
|
39
|
+
* const pm = require('picomatch');
|
|
40
|
+
* console.log(pm.scan('foo/bar/*.js'));
|
|
41
|
+
* { isGlob: true, input: 'foo/bar/*.js', base: 'foo/bar', glob: '*.js' }
|
|
42
|
+
* ```
|
|
43
|
+
* @param {String} `str`
|
|
44
|
+
* @param {Object} `options`
|
|
45
|
+
* @return {Object} Returns an object with tokens and regex source string.
|
|
46
|
+
* @api public
|
|
47
|
+
*/
|
|
48
|
+
|
|
49
|
+
const scan = (input, options) => {
|
|
50
|
+
const opts = options || {};
|
|
51
|
+
|
|
52
|
+
const length = input.length - 1;
|
|
53
|
+
const scanToEnd = opts.parts === true || opts.scanToEnd === true;
|
|
54
|
+
const slashes = [];
|
|
55
|
+
const tokens = [];
|
|
56
|
+
const parts = [];
|
|
57
|
+
|
|
58
|
+
let str = input;
|
|
59
|
+
let index = -1;
|
|
60
|
+
let start = 0;
|
|
61
|
+
let lastIndex = 0;
|
|
62
|
+
let isBrace = false;
|
|
63
|
+
let isBracket = false;
|
|
64
|
+
let isGlob = false;
|
|
65
|
+
let isExtglob = false;
|
|
66
|
+
let isGlobstar = false;
|
|
67
|
+
let braceEscaped = false;
|
|
68
|
+
let backslashes = false;
|
|
69
|
+
let negated = false;
|
|
70
|
+
let negatedExtglob = false;
|
|
71
|
+
let finished = false;
|
|
72
|
+
let braces = 0;
|
|
73
|
+
let prev;
|
|
74
|
+
let code;
|
|
75
|
+
let token = { value: '', depth: 0, isGlob: false };
|
|
76
|
+
|
|
77
|
+
const eos = () => index >= length;
|
|
78
|
+
const peek = () => str.charCodeAt(index + 1);
|
|
79
|
+
const advance = () => {
|
|
80
|
+
prev = code;
|
|
81
|
+
return str.charCodeAt(++index);
|
|
82
|
+
};
|
|
83
|
+
|
|
84
|
+
while (index < length) {
|
|
85
|
+
code = advance();
|
|
86
|
+
let next;
|
|
87
|
+
|
|
88
|
+
if (code === CHAR_BACKWARD_SLASH) {
|
|
89
|
+
backslashes = token.backslashes = true;
|
|
90
|
+
code = advance();
|
|
91
|
+
|
|
92
|
+
if (code === CHAR_LEFT_CURLY_BRACE) {
|
|
93
|
+
braceEscaped = true;
|
|
94
|
+
}
|
|
95
|
+
continue;
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
if (braceEscaped === true || code === CHAR_LEFT_CURLY_BRACE) {
|
|
99
|
+
braces++;
|
|
100
|
+
|
|
101
|
+
while (eos() !== true && (code = advance())) {
|
|
102
|
+
if (code === CHAR_BACKWARD_SLASH) {
|
|
103
|
+
backslashes = token.backslashes = true;
|
|
104
|
+
advance();
|
|
105
|
+
continue;
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
if (code === CHAR_LEFT_CURLY_BRACE) {
|
|
109
|
+
braces++;
|
|
110
|
+
continue;
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
if (braceEscaped !== true && code === CHAR_DOT && (code = advance()) === CHAR_DOT) {
|
|
114
|
+
isBrace = token.isBrace = true;
|
|
115
|
+
isGlob = token.isGlob = true;
|
|
116
|
+
finished = true;
|
|
117
|
+
|
|
118
|
+
if (scanToEnd === true) {
|
|
119
|
+
continue;
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
break;
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
if (braceEscaped !== true && code === CHAR_COMMA) {
|
|
126
|
+
isBrace = token.isBrace = true;
|
|
127
|
+
isGlob = token.isGlob = true;
|
|
128
|
+
finished = true;
|
|
129
|
+
|
|
130
|
+
if (scanToEnd === true) {
|
|
131
|
+
continue;
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
break;
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
if (code === CHAR_RIGHT_CURLY_BRACE) {
|
|
138
|
+
braces--;
|
|
139
|
+
|
|
140
|
+
if (braces === 0) {
|
|
141
|
+
braceEscaped = false;
|
|
142
|
+
isBrace = token.isBrace = true;
|
|
143
|
+
finished = true;
|
|
144
|
+
break;
|
|
145
|
+
}
|
|
146
|
+
}
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
if (scanToEnd === true) {
|
|
150
|
+
continue;
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
break;
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
if (code === CHAR_FORWARD_SLASH) {
|
|
157
|
+
slashes.push(index);
|
|
158
|
+
tokens.push(token);
|
|
159
|
+
token = { value: '', depth: 0, isGlob: false };
|
|
160
|
+
|
|
161
|
+
if (finished === true) continue;
|
|
162
|
+
if (prev === CHAR_DOT && index === (start + 1)) {
|
|
163
|
+
start += 2;
|
|
164
|
+
continue;
|
|
165
|
+
}
|
|
166
|
+
|
|
167
|
+
lastIndex = index + 1;
|
|
168
|
+
continue;
|
|
169
|
+
}
|
|
170
|
+
|
|
171
|
+
if (opts.noext !== true) {
|
|
172
|
+
const isExtglobChar = code === CHAR_PLUS
|
|
173
|
+
|| code === CHAR_AT
|
|
174
|
+
|| code === CHAR_ASTERISK
|
|
175
|
+
|| code === CHAR_QUESTION_MARK
|
|
176
|
+
|| code === CHAR_EXCLAMATION_MARK;
|
|
177
|
+
|
|
178
|
+
if (isExtglobChar === true && peek() === CHAR_LEFT_PARENTHESES) {
|
|
179
|
+
isGlob = token.isGlob = true;
|
|
180
|
+
isExtglob = token.isExtglob = true;
|
|
181
|
+
finished = true;
|
|
182
|
+
if (code === CHAR_EXCLAMATION_MARK && index === start) {
|
|
183
|
+
negatedExtglob = true;
|
|
184
|
+
}
|
|
185
|
+
|
|
186
|
+
if (scanToEnd === true) {
|
|
187
|
+
while (eos() !== true && (code = advance())) {
|
|
188
|
+
if (code === CHAR_BACKWARD_SLASH) {
|
|
189
|
+
backslashes = token.backslashes = true;
|
|
190
|
+
code = advance();
|
|
191
|
+
continue;
|
|
192
|
+
}
|
|
193
|
+
|
|
194
|
+
if (code === CHAR_RIGHT_PARENTHESES) {
|
|
195
|
+
isGlob = token.isGlob = true;
|
|
196
|
+
finished = true;
|
|
197
|
+
break;
|
|
198
|
+
}
|
|
199
|
+
}
|
|
200
|
+
continue;
|
|
201
|
+
}
|
|
202
|
+
break;
|
|
203
|
+
}
|
|
204
|
+
}
|
|
205
|
+
|
|
206
|
+
if (code === CHAR_ASTERISK) {
|
|
207
|
+
if (prev === CHAR_ASTERISK) isGlobstar = token.isGlobstar = true;
|
|
208
|
+
isGlob = token.isGlob = true;
|
|
209
|
+
finished = true;
|
|
210
|
+
|
|
211
|
+
if (scanToEnd === true) {
|
|
212
|
+
continue;
|
|
213
|
+
}
|
|
214
|
+
break;
|
|
215
|
+
}
|
|
216
|
+
|
|
217
|
+
if (code === CHAR_QUESTION_MARK) {
|
|
218
|
+
isGlob = token.isGlob = true;
|
|
219
|
+
finished = true;
|
|
220
|
+
|
|
221
|
+
if (scanToEnd === true) {
|
|
222
|
+
continue;
|
|
223
|
+
}
|
|
224
|
+
break;
|
|
225
|
+
}
|
|
226
|
+
|
|
227
|
+
if (code === CHAR_LEFT_SQUARE_BRACKET) {
|
|
228
|
+
while (eos() !== true && (next = advance())) {
|
|
229
|
+
if (next === CHAR_BACKWARD_SLASH) {
|
|
230
|
+
backslashes = token.backslashes = true;
|
|
231
|
+
advance();
|
|
232
|
+
continue;
|
|
233
|
+
}
|
|
234
|
+
|
|
235
|
+
if (next === CHAR_RIGHT_SQUARE_BRACKET) {
|
|
236
|
+
isBracket = token.isBracket = true;
|
|
237
|
+
isGlob = token.isGlob = true;
|
|
238
|
+
finished = true;
|
|
239
|
+
break;
|
|
240
|
+
}
|
|
241
|
+
}
|
|
242
|
+
|
|
243
|
+
if (scanToEnd === true) {
|
|
244
|
+
continue;
|
|
245
|
+
}
|
|
246
|
+
|
|
247
|
+
break;
|
|
248
|
+
}
|
|
249
|
+
|
|
250
|
+
if (opts.nonegate !== true && code === CHAR_EXCLAMATION_MARK && index === start) {
|
|
251
|
+
negated = token.negated = true;
|
|
252
|
+
start++;
|
|
253
|
+
continue;
|
|
254
|
+
}
|
|
255
|
+
|
|
256
|
+
if (opts.noparen !== true && code === CHAR_LEFT_PARENTHESES) {
|
|
257
|
+
isGlob = token.isGlob = true;
|
|
258
|
+
|
|
259
|
+
if (scanToEnd === true) {
|
|
260
|
+
while (eos() !== true && (code = advance())) {
|
|
261
|
+
if (code === CHAR_LEFT_PARENTHESES) {
|
|
262
|
+
backslashes = token.backslashes = true;
|
|
263
|
+
code = advance();
|
|
264
|
+
continue;
|
|
265
|
+
}
|
|
266
|
+
|
|
267
|
+
if (code === CHAR_RIGHT_PARENTHESES) {
|
|
268
|
+
finished = true;
|
|
269
|
+
break;
|
|
270
|
+
}
|
|
271
|
+
}
|
|
272
|
+
continue;
|
|
273
|
+
}
|
|
274
|
+
break;
|
|
275
|
+
}
|
|
276
|
+
|
|
277
|
+
if (isGlob === true) {
|
|
278
|
+
finished = true;
|
|
279
|
+
|
|
280
|
+
if (scanToEnd === true) {
|
|
281
|
+
continue;
|
|
282
|
+
}
|
|
283
|
+
|
|
284
|
+
break;
|
|
285
|
+
}
|
|
286
|
+
}
|
|
287
|
+
|
|
288
|
+
if (opts.noext === true) {
|
|
289
|
+
isExtglob = false;
|
|
290
|
+
isGlob = false;
|
|
291
|
+
}
|
|
292
|
+
|
|
293
|
+
let base = str;
|
|
294
|
+
let prefix = '';
|
|
295
|
+
let glob = '';
|
|
296
|
+
|
|
297
|
+
if (start > 0) {
|
|
298
|
+
prefix = str.slice(0, start);
|
|
299
|
+
str = str.slice(start);
|
|
300
|
+
lastIndex -= start;
|
|
301
|
+
}
|
|
302
|
+
|
|
303
|
+
if (base && isGlob === true && lastIndex > 0) {
|
|
304
|
+
base = str.slice(0, lastIndex);
|
|
305
|
+
glob = str.slice(lastIndex);
|
|
306
|
+
} else if (isGlob === true) {
|
|
307
|
+
base = '';
|
|
308
|
+
glob = str;
|
|
309
|
+
} else {
|
|
310
|
+
base = str;
|
|
311
|
+
}
|
|
312
|
+
|
|
313
|
+
if (base && base !== '' && base !== '/' && base !== str) {
|
|
314
|
+
if (isPathSeparator(base.charCodeAt(base.length - 1))) {
|
|
315
|
+
base = base.slice(0, -1);
|
|
316
|
+
}
|
|
317
|
+
}
|
|
318
|
+
|
|
319
|
+
if (opts.unescape === true) {
|
|
320
|
+
if (glob) glob = utils.removeBackslashes(glob);
|
|
321
|
+
|
|
322
|
+
if (base && backslashes === true) {
|
|
323
|
+
base = utils.removeBackslashes(base);
|
|
324
|
+
}
|
|
325
|
+
}
|
|
326
|
+
|
|
327
|
+
const state = {
|
|
328
|
+
prefix,
|
|
329
|
+
input,
|
|
330
|
+
start,
|
|
331
|
+
base,
|
|
332
|
+
glob,
|
|
333
|
+
isBrace,
|
|
334
|
+
isBracket,
|
|
335
|
+
isGlob,
|
|
336
|
+
isExtglob,
|
|
337
|
+
isGlobstar,
|
|
338
|
+
negated,
|
|
339
|
+
negatedExtglob
|
|
340
|
+
};
|
|
341
|
+
|
|
342
|
+
if (opts.tokens === true) {
|
|
343
|
+
state.maxDepth = 0;
|
|
344
|
+
if (!isPathSeparator(code)) {
|
|
345
|
+
tokens.push(token);
|
|
346
|
+
}
|
|
347
|
+
state.tokens = tokens;
|
|
348
|
+
}
|
|
349
|
+
|
|
350
|
+
if (opts.parts === true || opts.tokens === true) {
|
|
351
|
+
let prevIndex;
|
|
352
|
+
|
|
353
|
+
for (let idx = 0; idx < slashes.length; idx++) {
|
|
354
|
+
const n = prevIndex ? prevIndex + 1 : start;
|
|
355
|
+
const i = slashes[idx];
|
|
356
|
+
const value = input.slice(n, i);
|
|
357
|
+
if (opts.tokens) {
|
|
358
|
+
if (idx === 0 && start !== 0) {
|
|
359
|
+
tokens[idx].isPrefix = true;
|
|
360
|
+
tokens[idx].value = prefix;
|
|
361
|
+
} else {
|
|
362
|
+
tokens[idx].value = value;
|
|
363
|
+
}
|
|
364
|
+
depth(tokens[idx]);
|
|
365
|
+
state.maxDepth += tokens[idx].depth;
|
|
366
|
+
}
|
|
367
|
+
if (idx !== 0 || value !== '') {
|
|
368
|
+
parts.push(value);
|
|
369
|
+
}
|
|
370
|
+
prevIndex = i;
|
|
371
|
+
}
|
|
372
|
+
|
|
373
|
+
if (prevIndex && prevIndex + 1 < input.length) {
|
|
374
|
+
const value = input.slice(prevIndex + 1);
|
|
375
|
+
parts.push(value);
|
|
376
|
+
|
|
377
|
+
if (opts.tokens) {
|
|
378
|
+
tokens[tokens.length - 1].value = value;
|
|
379
|
+
depth(tokens[tokens.length - 1]);
|
|
380
|
+
state.maxDepth += tokens[tokens.length - 1].depth;
|
|
381
|
+
}
|
|
382
|
+
}
|
|
383
|
+
|
|
384
|
+
state.slashes = slashes;
|
|
385
|
+
state.parts = parts;
|
|
386
|
+
}
|
|
387
|
+
|
|
388
|
+
return state;
|
|
389
|
+
};
|
|
390
|
+
|
|
391
|
+
module.exports = scan;
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
const path = require('path');
|
|
4
|
+
const win32 = process.platform === 'win32';
|
|
5
|
+
const {
|
|
6
|
+
REGEX_BACKSLASH,
|
|
7
|
+
REGEX_REMOVE_BACKSLASH,
|
|
8
|
+
REGEX_SPECIAL_CHARS,
|
|
9
|
+
REGEX_SPECIAL_CHARS_GLOBAL
|
|
10
|
+
} = require('./constants');
|
|
11
|
+
|
|
12
|
+
exports.isObject = val => val !== null && typeof val === 'object' && !Array.isArray(val);
|
|
13
|
+
exports.hasRegexChars = str => REGEX_SPECIAL_CHARS.test(str);
|
|
14
|
+
exports.isRegexChar = str => str.length === 1 && exports.hasRegexChars(str);
|
|
15
|
+
exports.escapeRegex = str => str.replace(REGEX_SPECIAL_CHARS_GLOBAL, '\\$1');
|
|
16
|
+
exports.toPosixSlashes = str => str.replace(REGEX_BACKSLASH, '/');
|
|
17
|
+
|
|
18
|
+
exports.removeBackslashes = str => {
|
|
19
|
+
return str.replace(REGEX_REMOVE_BACKSLASH, match => {
|
|
20
|
+
return match === '\\' ? '' : match;
|
|
21
|
+
});
|
|
22
|
+
};
|
|
23
|
+
|
|
24
|
+
exports.supportsLookbehinds = () => {
|
|
25
|
+
const segs = process.version.slice(1).split('.').map(Number);
|
|
26
|
+
if (segs.length === 3 && segs[0] >= 9 || (segs[0] === 8 && segs[1] >= 10)) {
|
|
27
|
+
return true;
|
|
28
|
+
}
|
|
29
|
+
return false;
|
|
30
|
+
};
|
|
31
|
+
|
|
32
|
+
exports.isWindows = options => {
|
|
33
|
+
if (options && typeof options.windows === 'boolean') {
|
|
34
|
+
return options.windows;
|
|
35
|
+
}
|
|
36
|
+
return win32 === true || path.sep === '\\';
|
|
37
|
+
};
|
|
38
|
+
|
|
39
|
+
exports.escapeLast = (input, char, lastIdx) => {
|
|
40
|
+
const idx = input.lastIndexOf(char, lastIdx);
|
|
41
|
+
if (idx === -1) return input;
|
|
42
|
+
if (input[idx - 1] === '\\') return exports.escapeLast(input, char, idx - 1);
|
|
43
|
+
return `${input.slice(0, idx)}\\${input.slice(idx)}`;
|
|
44
|
+
};
|
|
45
|
+
|
|
46
|
+
exports.removePrefix = (input, state = {}) => {
|
|
47
|
+
let output = input;
|
|
48
|
+
if (output.startsWith('./')) {
|
|
49
|
+
output = output.slice(2);
|
|
50
|
+
state.prefix = './';
|
|
51
|
+
}
|
|
52
|
+
return output;
|
|
53
|
+
};
|
|
54
|
+
|
|
55
|
+
exports.wrapOutput = (input, state = {}, options = {}) => {
|
|
56
|
+
const prepend = options.contains ? '' : '^';
|
|
57
|
+
const append = options.contains ? '' : '$';
|
|
58
|
+
|
|
59
|
+
let output = `${prepend}(?:${input})${append}`;
|
|
60
|
+
if (state.negated === true) {
|
|
61
|
+
output = `(?:^(?!${output}).*$)`;
|
|
62
|
+
}
|
|
63
|
+
return output;
|
|
64
|
+
};
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "picomatch",
|
|
3
|
+
"description": "Blazing fast and accurate glob matcher written in JavaScript, with no dependencies and full support for standard and extended Bash glob features, including braces, extglobs, POSIX brackets, and regular expressions.",
|
|
4
|
+
"version": "2.3.1",
|
|
5
|
+
"homepage": "https://github.com/micromatch/picomatch",
|
|
6
|
+
"author": "Jon Schlinkert (https://github.com/jonschlinkert)",
|
|
7
|
+
"funding": "https://github.com/sponsors/jonschlinkert",
|
|
8
|
+
"repository": "micromatch/picomatch",
|
|
9
|
+
"bugs": {
|
|
10
|
+
"url": "https://github.com/micromatch/picomatch/issues"
|
|
11
|
+
},
|
|
12
|
+
"license": "MIT",
|
|
13
|
+
"files": [
|
|
14
|
+
"index.js",
|
|
15
|
+
"lib"
|
|
16
|
+
],
|
|
17
|
+
"main": "index.js",
|
|
18
|
+
"engines": {
|
|
19
|
+
"node": ">=8.6"
|
|
20
|
+
},
|
|
21
|
+
"scripts": {
|
|
22
|
+
"lint": "eslint --cache --cache-location node_modules/.cache/.eslintcache --report-unused-disable-directives --ignore-path .gitignore .",
|
|
23
|
+
"mocha": "mocha --reporter dot",
|
|
24
|
+
"test": "npm run lint && npm run mocha",
|
|
25
|
+
"test:ci": "npm run test:cover",
|
|
26
|
+
"test:cover": "nyc npm run mocha"
|
|
27
|
+
},
|
|
28
|
+
"devDependencies": {
|
|
29
|
+
"eslint": "^6.8.0",
|
|
30
|
+
"fill-range": "^7.0.1",
|
|
31
|
+
"gulp-format-md": "^2.0.0",
|
|
32
|
+
"mocha": "^6.2.2",
|
|
33
|
+
"nyc": "^15.0.0",
|
|
34
|
+
"time-require": "github:jonschlinkert/time-require"
|
|
35
|
+
},
|
|
36
|
+
"keywords": [
|
|
37
|
+
"glob",
|
|
38
|
+
"match",
|
|
39
|
+
"picomatch"
|
|
40
|
+
],
|
|
41
|
+
"nyc": {
|
|
42
|
+
"reporter": [
|
|
43
|
+
"html",
|
|
44
|
+
"lcov",
|
|
45
|
+
"text-summary"
|
|
46
|
+
]
|
|
47
|
+
},
|
|
48
|
+
"verb": {
|
|
49
|
+
"toc": {
|
|
50
|
+
"render": true,
|
|
51
|
+
"method": "preWrite",
|
|
52
|
+
"maxdepth": 3
|
|
53
|
+
},
|
|
54
|
+
"layout": "empty",
|
|
55
|
+
"tasks": [
|
|
56
|
+
"readme"
|
|
57
|
+
],
|
|
58
|
+
"plugins": [
|
|
59
|
+
"gulp-format-md"
|
|
60
|
+
],
|
|
61
|
+
"lint": {
|
|
62
|
+
"reflinks": true
|
|
63
|
+
},
|
|
64
|
+
"related": {
|
|
65
|
+
"list": [
|
|
66
|
+
"braces",
|
|
67
|
+
"micromatch"
|
|
68
|
+
]
|
|
69
|
+
},
|
|
70
|
+
"reflinks": [
|
|
71
|
+
"braces",
|
|
72
|
+
"expand-brackets",
|
|
73
|
+
"extglob",
|
|
74
|
+
"fill-range",
|
|
75
|
+
"micromatch",
|
|
76
|
+
"minimatch",
|
|
77
|
+
"nanomatch",
|
|
78
|
+
"picomatch"
|
|
79
|
+
]
|
|
80
|
+
}
|
|
81
|
+
}
|
|
@@ -0,0 +1,161 @@
|
|
|
1
|
+
2.0.7 / 2021-05-31
|
|
2
|
+
==================
|
|
3
|
+
|
|
4
|
+
* deps: forwarded@0.2.0
|
|
5
|
+
- Use `req.socket` over deprecated `req.connection`
|
|
6
|
+
|
|
7
|
+
2.0.6 / 2020-02-24
|
|
8
|
+
==================
|
|
9
|
+
|
|
10
|
+
* deps: ipaddr.js@1.9.1
|
|
11
|
+
|
|
12
|
+
2.0.5 / 2019-04-16
|
|
13
|
+
==================
|
|
14
|
+
|
|
15
|
+
* deps: ipaddr.js@1.9.0
|
|
16
|
+
|
|
17
|
+
2.0.4 / 2018-07-26
|
|
18
|
+
==================
|
|
19
|
+
|
|
20
|
+
* deps: ipaddr.js@1.8.0
|
|
21
|
+
|
|
22
|
+
2.0.3 / 2018-02-19
|
|
23
|
+
==================
|
|
24
|
+
|
|
25
|
+
* deps: ipaddr.js@1.6.0
|
|
26
|
+
|
|
27
|
+
2.0.2 / 2017-09-24
|
|
28
|
+
==================
|
|
29
|
+
|
|
30
|
+
* deps: forwarded@~0.1.2
|
|
31
|
+
- perf: improve header parsing
|
|
32
|
+
- perf: reduce overhead when no `X-Forwarded-For` header
|
|
33
|
+
|
|
34
|
+
2.0.1 / 2017-09-10
|
|
35
|
+
==================
|
|
36
|
+
|
|
37
|
+
* deps: forwarded@~0.1.1
|
|
38
|
+
- Fix trimming leading / trailing OWS
|
|
39
|
+
- perf: hoist regular expression
|
|
40
|
+
* deps: ipaddr.js@1.5.2
|
|
41
|
+
|
|
42
|
+
2.0.0 / 2017-08-08
|
|
43
|
+
==================
|
|
44
|
+
|
|
45
|
+
* Drop support for Node.js below 0.10
|
|
46
|
+
|
|
47
|
+
1.1.5 / 2017-07-25
|
|
48
|
+
==================
|
|
49
|
+
|
|
50
|
+
* Fix array argument being altered
|
|
51
|
+
* deps: ipaddr.js@1.4.0
|
|
52
|
+
|
|
53
|
+
1.1.4 / 2017-03-24
|
|
54
|
+
==================
|
|
55
|
+
|
|
56
|
+
* deps: ipaddr.js@1.3.0
|
|
57
|
+
|
|
58
|
+
1.1.3 / 2017-01-14
|
|
59
|
+
==================
|
|
60
|
+
|
|
61
|
+
* deps: ipaddr.js@1.2.0
|
|
62
|
+
|
|
63
|
+
1.1.2 / 2016-05-29
|
|
64
|
+
==================
|
|
65
|
+
|
|
66
|
+
* deps: ipaddr.js@1.1.1
|
|
67
|
+
- Fix IPv6-mapped IPv4 validation edge cases
|
|
68
|
+
|
|
69
|
+
1.1.1 / 2016-05-03
|
|
70
|
+
==================
|
|
71
|
+
|
|
72
|
+
* Fix regression matching mixed versions against multiple subnets
|
|
73
|
+
|
|
74
|
+
1.1.0 / 2016-05-01
|
|
75
|
+
==================
|
|
76
|
+
|
|
77
|
+
* Fix accepting various invalid netmasks
|
|
78
|
+
- IPv4 netmasks must be contingous
|
|
79
|
+
- IPv6 addresses cannot be used as a netmask
|
|
80
|
+
* deps: ipaddr.js@1.1.0
|
|
81
|
+
|
|
82
|
+
1.0.10 / 2015-12-09
|
|
83
|
+
===================
|
|
84
|
+
|
|
85
|
+
* deps: ipaddr.js@1.0.5
|
|
86
|
+
- Fix regression in `isValid` with non-string arguments
|
|
87
|
+
|
|
88
|
+
1.0.9 / 2015-12-01
|
|
89
|
+
==================
|
|
90
|
+
|
|
91
|
+
* deps: ipaddr.js@1.0.4
|
|
92
|
+
- Fix accepting some invalid IPv6 addresses
|
|
93
|
+
- Reject CIDRs with negative or overlong masks
|
|
94
|
+
* perf: enable strict mode
|
|
95
|
+
|
|
96
|
+
1.0.8 / 2015-05-10
|
|
97
|
+
==================
|
|
98
|
+
|
|
99
|
+
* deps: ipaddr.js@1.0.1
|
|
100
|
+
|
|
101
|
+
1.0.7 / 2015-03-16
|
|
102
|
+
==================
|
|
103
|
+
|
|
104
|
+
* deps: ipaddr.js@0.1.9
|
|
105
|
+
- Fix OOM on certain inputs to `isValid`
|
|
106
|
+
|
|
107
|
+
1.0.6 / 2015-02-01
|
|
108
|
+
==================
|
|
109
|
+
|
|
110
|
+
* deps: ipaddr.js@0.1.8
|
|
111
|
+
|
|
112
|
+
1.0.5 / 2015-01-08
|
|
113
|
+
==================
|
|
114
|
+
|
|
115
|
+
* deps: ipaddr.js@0.1.6
|
|
116
|
+
|
|
117
|
+
1.0.4 / 2014-11-23
|
|
118
|
+
==================
|
|
119
|
+
|
|
120
|
+
* deps: ipaddr.js@0.1.5
|
|
121
|
+
- Fix edge cases with `isValid`
|
|
122
|
+
|
|
123
|
+
1.0.3 / 2014-09-21
|
|
124
|
+
==================
|
|
125
|
+
|
|
126
|
+
* Use `forwarded` npm module
|
|
127
|
+
|
|
128
|
+
1.0.2 / 2014-09-18
|
|
129
|
+
==================
|
|
130
|
+
|
|
131
|
+
* Fix a global leak when multiple subnets are trusted
|
|
132
|
+
* Support Node.js 0.6
|
|
133
|
+
* deps: ipaddr.js@0.1.3
|
|
134
|
+
|
|
135
|
+
1.0.1 / 2014-06-03
|
|
136
|
+
==================
|
|
137
|
+
|
|
138
|
+
* Fix links in npm package
|
|
139
|
+
|
|
140
|
+
1.0.0 / 2014-05-08
|
|
141
|
+
==================
|
|
142
|
+
|
|
143
|
+
* Add `trust` argument to determine proxy trust on
|
|
144
|
+
* Accepts custom function
|
|
145
|
+
* Accepts IPv4/IPv6 address(es)
|
|
146
|
+
* Accepts subnets
|
|
147
|
+
* Accepts pre-defined names
|
|
148
|
+
* Add optional `trust` argument to `proxyaddr.all` to
|
|
149
|
+
stop at first untrusted
|
|
150
|
+
* Add `proxyaddr.compile` to pre-compile `trust` function
|
|
151
|
+
to make subsequent calls faster
|
|
152
|
+
|
|
153
|
+
0.0.1 / 2014-05-04
|
|
154
|
+
==================
|
|
155
|
+
|
|
156
|
+
* Fix bad npm publish
|
|
157
|
+
|
|
158
|
+
0.0.0 / 2014-05-04
|
|
159
|
+
==================
|
|
160
|
+
|
|
161
|
+
* Initial release
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
(The MIT License)
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2014-2016 Douglas Christopher Wilson
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining
|
|
6
|
+
a copy of this software and associated documentation files (the
|
|
7
|
+
'Software'), to deal in the Software without restriction, including
|
|
8
|
+
without limitation the rights to use, copy, modify, merge, publish,
|
|
9
|
+
distribute, sublicense, and/or sell copies of the Software, and to
|
|
10
|
+
permit persons to whom the Software is furnished to do so, subject to
|
|
11
|
+
the following conditions:
|
|
12
|
+
|
|
13
|
+
The above copyright notice and this permission notice shall be
|
|
14
|
+
included in all copies or substantial portions of the Software.
|
|
15
|
+
|
|
16
|
+
THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,
|
|
17
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
|
18
|
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
|
|
19
|
+
IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
|
|
20
|
+
CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
|
|
21
|
+
TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
|
|
22
|
+
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|