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,277 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var to_ascii, to_base64;
|
|
4
|
+
if (typeof Buffer == "undefined") {
|
|
5
|
+
to_ascii = atob;
|
|
6
|
+
to_base64 = btoa;
|
|
7
|
+
} else if (typeof Buffer.alloc == "undefined") {
|
|
8
|
+
to_ascii = function(b64) {
|
|
9
|
+
return new Buffer(b64, "base64").toString();
|
|
10
|
+
};
|
|
11
|
+
to_base64 = function(str) {
|
|
12
|
+
return new Buffer(str).toString("base64");
|
|
13
|
+
};
|
|
14
|
+
} else {
|
|
15
|
+
to_ascii = function(b64) {
|
|
16
|
+
return Buffer.from(b64, "base64").toString();
|
|
17
|
+
};
|
|
18
|
+
to_base64 = function(str) {
|
|
19
|
+
return Buffer.from(str).toString("base64");
|
|
20
|
+
};
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
function read_source_map(name, toplevel) {
|
|
24
|
+
var comments = toplevel.end.comments_after;
|
|
25
|
+
for (var i = comments.length; --i >= 0;) {
|
|
26
|
+
var comment = comments[i];
|
|
27
|
+
if (comment.type != "comment1") break;
|
|
28
|
+
var match = /^# ([^\s=]+)=(\S+)\s*$/.exec(comment.value);
|
|
29
|
+
if (!match) break;
|
|
30
|
+
if (match[1] == "sourceMappingURL") {
|
|
31
|
+
match = /^data:application\/json(;.*?)?;base64,([^,]+)$/.exec(match[2]);
|
|
32
|
+
if (!match) break;
|
|
33
|
+
return to_ascii(match[2]);
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
AST_Node.warn("inline source map not found: {name}", {
|
|
37
|
+
name: name,
|
|
38
|
+
});
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
function parse_source_map(content) {
|
|
42
|
+
try {
|
|
43
|
+
return JSON.parse(content);
|
|
44
|
+
} catch (ex) {
|
|
45
|
+
throw new Error("invalid input source map: " + content);
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
function set_shorthand(name, options, keys) {
|
|
50
|
+
keys.forEach(function(key) {
|
|
51
|
+
if (options[key]) {
|
|
52
|
+
if (typeof options[key] != "object") options[key] = {};
|
|
53
|
+
if (!(name in options[key])) options[key][name] = options[name];
|
|
54
|
+
}
|
|
55
|
+
});
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
function init_cache(cache) {
|
|
59
|
+
if (!cache) return;
|
|
60
|
+
if (!("props" in cache)) {
|
|
61
|
+
cache.props = new Dictionary();
|
|
62
|
+
} else if (!(cache.props instanceof Dictionary)) {
|
|
63
|
+
cache.props = Dictionary.fromObject(cache.props);
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
function to_json(cache) {
|
|
68
|
+
return {
|
|
69
|
+
props: cache.props.toObject()
|
|
70
|
+
};
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
function minify(files, options) {
|
|
74
|
+
try {
|
|
75
|
+
options = defaults(options, {
|
|
76
|
+
annotations: undefined,
|
|
77
|
+
compress: {},
|
|
78
|
+
enclose: false,
|
|
79
|
+
ie: false,
|
|
80
|
+
ie8: false,
|
|
81
|
+
keep_fargs: false,
|
|
82
|
+
keep_fnames: false,
|
|
83
|
+
mangle: {},
|
|
84
|
+
module: false,
|
|
85
|
+
nameCache: null,
|
|
86
|
+
output: {},
|
|
87
|
+
parse: {},
|
|
88
|
+
rename: undefined,
|
|
89
|
+
sourceMap: false,
|
|
90
|
+
timings: false,
|
|
91
|
+
toplevel: !!(options && options["module"]),
|
|
92
|
+
v8: false,
|
|
93
|
+
validate: false,
|
|
94
|
+
warnings: false,
|
|
95
|
+
webkit: false,
|
|
96
|
+
wrap: false,
|
|
97
|
+
}, true);
|
|
98
|
+
if (options.validate) AST_Node.enable_validation();
|
|
99
|
+
var timings = options.timings && { start: Date.now() };
|
|
100
|
+
if (options.annotations !== undefined) set_shorthand("annotations", options, [ "compress", "output" ]);
|
|
101
|
+
if (options.ie8) options.ie = options.ie || options.ie8;
|
|
102
|
+
if (options.ie) set_shorthand("ie", options, [ "compress", "mangle", "output", "rename" ]);
|
|
103
|
+
if (options.keep_fargs) set_shorthand("keep_fargs", options, [ "compress", "mangle", "rename" ]);
|
|
104
|
+
if (options.keep_fnames) set_shorthand("keep_fnames", options, [ "compress", "mangle", "rename" ]);
|
|
105
|
+
if (options.module) set_shorthand("module", options, [ "compress", "parse" ]);
|
|
106
|
+
if (options.toplevel) set_shorthand("toplevel", options, [ "compress", "mangle", "rename" ]);
|
|
107
|
+
if (options.v8) set_shorthand("v8", options, [ "mangle", "output", "rename" ]);
|
|
108
|
+
if (options.webkit) set_shorthand("webkit", options, [ "compress", "mangle", "output", "rename" ]);
|
|
109
|
+
var quoted_props;
|
|
110
|
+
if (options.mangle) {
|
|
111
|
+
options.mangle = defaults(options.mangle, {
|
|
112
|
+
cache: options.nameCache && (options.nameCache.vars || {}),
|
|
113
|
+
eval: false,
|
|
114
|
+
ie: false,
|
|
115
|
+
keep_fargs: false,
|
|
116
|
+
keep_fnames: false,
|
|
117
|
+
properties: false,
|
|
118
|
+
reserved: [],
|
|
119
|
+
toplevel: false,
|
|
120
|
+
v8: false,
|
|
121
|
+
webkit: false,
|
|
122
|
+
}, true);
|
|
123
|
+
if (options.mangle.properties) {
|
|
124
|
+
if (typeof options.mangle.properties != "object") {
|
|
125
|
+
options.mangle.properties = {};
|
|
126
|
+
}
|
|
127
|
+
if (options.mangle.properties.keep_quoted) {
|
|
128
|
+
quoted_props = options.mangle.properties.reserved;
|
|
129
|
+
if (!Array.isArray(quoted_props)) quoted_props = [];
|
|
130
|
+
options.mangle.properties.reserved = quoted_props;
|
|
131
|
+
}
|
|
132
|
+
if (options.nameCache && !("cache" in options.mangle.properties)) {
|
|
133
|
+
options.mangle.properties.cache = options.nameCache.props || {};
|
|
134
|
+
}
|
|
135
|
+
}
|
|
136
|
+
init_cache(options.mangle.cache);
|
|
137
|
+
init_cache(options.mangle.properties.cache);
|
|
138
|
+
}
|
|
139
|
+
if (options.rename === undefined) options.rename = options.compress && options.mangle;
|
|
140
|
+
if (options.sourceMap) {
|
|
141
|
+
options.sourceMap = defaults(options.sourceMap, {
|
|
142
|
+
content: null,
|
|
143
|
+
filename: null,
|
|
144
|
+
includeSources: false,
|
|
145
|
+
names: true,
|
|
146
|
+
root: null,
|
|
147
|
+
url: null,
|
|
148
|
+
}, true);
|
|
149
|
+
}
|
|
150
|
+
var warnings = [];
|
|
151
|
+
if (options.warnings) AST_Node.log_function(function(warning) {
|
|
152
|
+
warnings.push(warning);
|
|
153
|
+
}, options.warnings == "verbose");
|
|
154
|
+
if (timings) timings.parse = Date.now();
|
|
155
|
+
var toplevel;
|
|
156
|
+
if (files instanceof AST_Toplevel) {
|
|
157
|
+
toplevel = files;
|
|
158
|
+
} else {
|
|
159
|
+
if (typeof files == "string") {
|
|
160
|
+
files = [ files ];
|
|
161
|
+
}
|
|
162
|
+
options.parse = options.parse || {};
|
|
163
|
+
options.parse.toplevel = null;
|
|
164
|
+
var source_map_content = options.sourceMap && options.sourceMap.content;
|
|
165
|
+
if (typeof source_map_content == "string" && source_map_content != "inline") {
|
|
166
|
+
source_map_content = parse_source_map(source_map_content);
|
|
167
|
+
}
|
|
168
|
+
if (source_map_content) options.sourceMap.orig = Object.create(null);
|
|
169
|
+
for (var name in files) if (HOP(files, name)) {
|
|
170
|
+
options.parse.filename = name;
|
|
171
|
+
options.parse.toplevel = toplevel = parse(files[name], options.parse);
|
|
172
|
+
if (source_map_content == "inline") {
|
|
173
|
+
var inlined_content = read_source_map(name, toplevel);
|
|
174
|
+
if (inlined_content) {
|
|
175
|
+
options.sourceMap.orig[name] = parse_source_map(inlined_content);
|
|
176
|
+
}
|
|
177
|
+
} else if (source_map_content) {
|
|
178
|
+
options.sourceMap.orig[name] = source_map_content;
|
|
179
|
+
}
|
|
180
|
+
}
|
|
181
|
+
}
|
|
182
|
+
if (quoted_props) {
|
|
183
|
+
reserve_quoted_keys(toplevel, quoted_props);
|
|
184
|
+
}
|
|
185
|
+
[ "enclose", "wrap" ].forEach(function(action) {
|
|
186
|
+
var option = options[action];
|
|
187
|
+
if (!option) return;
|
|
188
|
+
var orig = toplevel.print_to_string().slice(0, -1);
|
|
189
|
+
toplevel = toplevel[action](option);
|
|
190
|
+
files[toplevel.start.file] = toplevel.print_to_string().replace(orig, "");
|
|
191
|
+
});
|
|
192
|
+
if (options.validate) toplevel.validate_ast();
|
|
193
|
+
if (timings) timings.rename = Date.now();
|
|
194
|
+
if (options.rename) {
|
|
195
|
+
toplevel.figure_out_scope(options.rename);
|
|
196
|
+
toplevel.expand_names(options.rename);
|
|
197
|
+
}
|
|
198
|
+
if (timings) timings.compress = Date.now();
|
|
199
|
+
if (options.compress) {
|
|
200
|
+
toplevel = new Compressor(options.compress).compress(toplevel);
|
|
201
|
+
if (options.validate) toplevel.validate_ast();
|
|
202
|
+
}
|
|
203
|
+
if (timings) timings.scope = Date.now();
|
|
204
|
+
if (options.mangle) toplevel.figure_out_scope(options.mangle);
|
|
205
|
+
if (timings) timings.mangle = Date.now();
|
|
206
|
+
if (options.mangle) {
|
|
207
|
+
toplevel.compute_char_frequency(options.mangle);
|
|
208
|
+
toplevel.mangle_names(options.mangle);
|
|
209
|
+
}
|
|
210
|
+
if (timings) timings.properties = Date.now();
|
|
211
|
+
if (options.mangle && options.mangle.properties) mangle_properties(toplevel, options.mangle.properties);
|
|
212
|
+
if (timings) timings.output = Date.now();
|
|
213
|
+
var result = {};
|
|
214
|
+
var output = defaults(options.output, {
|
|
215
|
+
ast: false,
|
|
216
|
+
code: true,
|
|
217
|
+
});
|
|
218
|
+
if (output.ast) result.ast = toplevel;
|
|
219
|
+
if (output.code) {
|
|
220
|
+
if (options.sourceMap) {
|
|
221
|
+
output.source_map = SourceMap(options.sourceMap);
|
|
222
|
+
if (options.sourceMap.includeSources) {
|
|
223
|
+
if (files instanceof AST_Toplevel) {
|
|
224
|
+
throw new Error("original source content unavailable");
|
|
225
|
+
} else for (var name in files) if (HOP(files, name)) {
|
|
226
|
+
output.source_map.setSourceContent(name, files[name]);
|
|
227
|
+
}
|
|
228
|
+
}
|
|
229
|
+
}
|
|
230
|
+
delete output.ast;
|
|
231
|
+
delete output.code;
|
|
232
|
+
var stream = OutputStream(output);
|
|
233
|
+
toplevel.print(stream);
|
|
234
|
+
result.code = stream.get();
|
|
235
|
+
if (options.sourceMap) {
|
|
236
|
+
result.map = output.source_map.toString();
|
|
237
|
+
var url = options.sourceMap.url;
|
|
238
|
+
if (url) {
|
|
239
|
+
result.code = result.code.replace(/\n\/\/# sourceMappingURL=\S+\s*$/, "");
|
|
240
|
+
if (url == "inline") {
|
|
241
|
+
result.code += "\n//# sourceMappingURL=data:application/json;charset=utf-8;base64," + to_base64(result.map);
|
|
242
|
+
} else {
|
|
243
|
+
result.code += "\n//# sourceMappingURL=" + url;
|
|
244
|
+
}
|
|
245
|
+
}
|
|
246
|
+
}
|
|
247
|
+
}
|
|
248
|
+
if (options.nameCache && options.mangle) {
|
|
249
|
+
if (options.mangle.cache) options.nameCache.vars = to_json(options.mangle.cache);
|
|
250
|
+
if (options.mangle.properties && options.mangle.properties.cache) {
|
|
251
|
+
options.nameCache.props = to_json(options.mangle.properties.cache);
|
|
252
|
+
}
|
|
253
|
+
}
|
|
254
|
+
if (timings) {
|
|
255
|
+
timings.end = Date.now();
|
|
256
|
+
result.timings = {
|
|
257
|
+
parse: 1e-3 * (timings.rename - timings.parse),
|
|
258
|
+
rename: 1e-3 * (timings.compress - timings.rename),
|
|
259
|
+
compress: 1e-3 * (timings.scope - timings.compress),
|
|
260
|
+
scope: 1e-3 * (timings.mangle - timings.scope),
|
|
261
|
+
mangle: 1e-3 * (timings.properties - timings.mangle),
|
|
262
|
+
properties: 1e-3 * (timings.output - timings.properties),
|
|
263
|
+
output: 1e-3 * (timings.end - timings.output),
|
|
264
|
+
total: 1e-3 * (timings.end - timings.start)
|
|
265
|
+
};
|
|
266
|
+
}
|
|
267
|
+
if (warnings.length) {
|
|
268
|
+
result.warnings = warnings;
|
|
269
|
+
}
|
|
270
|
+
return result;
|
|
271
|
+
} catch (ex) {
|
|
272
|
+
return { error: ex };
|
|
273
|
+
} finally {
|
|
274
|
+
AST_Node.log_function();
|
|
275
|
+
AST_Node.disable_validation();
|
|
276
|
+
}
|
|
277
|
+
}
|