@7nsane/zift 1.0.2 → 1.0.4
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/audit-axios/axios-1.13.6.tgz +0 -0
- package/bin/zift.js +126 -62
- package/package.json +1 -1
- package/zift-user-test/node_modules/.package-lock.json +819 -0
- package/zift-user-test/node_modules/accepts/HISTORY.md +250 -0
- package/zift-user-test/node_modules/accepts/LICENSE +23 -0
- package/zift-user-test/node_modules/accepts/README.md +140 -0
- package/zift-user-test/node_modules/accepts/index.js +238 -0
- package/zift-user-test/node_modules/accepts/package.json +47 -0
- package/zift-user-test/node_modules/body-parser/LICENSE +23 -0
- package/zift-user-test/node_modules/body-parser/README.md +494 -0
- package/zift-user-test/node_modules/body-parser/index.js +71 -0
- package/zift-user-test/node_modules/body-parser/lib/read.js +247 -0
- package/zift-user-test/node_modules/body-parser/lib/types/json.js +158 -0
- package/zift-user-test/node_modules/body-parser/lib/types/raw.js +42 -0
- package/zift-user-test/node_modules/body-parser/lib/types/text.js +36 -0
- package/zift-user-test/node_modules/body-parser/lib/types/urlencoded.js +142 -0
- package/zift-user-test/node_modules/body-parser/lib/utils.js +98 -0
- package/zift-user-test/node_modules/body-parser/package.json +52 -0
- package/zift-user-test/node_modules/bytes/History.md +97 -0
- package/zift-user-test/node_modules/bytes/LICENSE +23 -0
- package/zift-user-test/node_modules/bytes/Readme.md +152 -0
- package/zift-user-test/node_modules/bytes/index.js +170 -0
- package/zift-user-test/node_modules/bytes/package.json +42 -0
- package/zift-user-test/node_modules/call-bind-apply-helpers/.eslintrc +17 -0
- package/zift-user-test/node_modules/call-bind-apply-helpers/.github/FUNDING.yml +12 -0
- package/zift-user-test/node_modules/call-bind-apply-helpers/.nycrc +9 -0
- package/zift-user-test/node_modules/call-bind-apply-helpers/CHANGELOG.md +30 -0
- package/zift-user-test/node_modules/call-bind-apply-helpers/LICENSE +21 -0
- package/zift-user-test/node_modules/call-bind-apply-helpers/README.md +62 -0
- package/zift-user-test/node_modules/call-bind-apply-helpers/actualApply.d.ts +1 -0
- package/zift-user-test/node_modules/call-bind-apply-helpers/actualApply.js +10 -0
- package/zift-user-test/node_modules/call-bind-apply-helpers/applyBind.d.ts +19 -0
- package/zift-user-test/node_modules/call-bind-apply-helpers/applyBind.js +10 -0
- package/zift-user-test/node_modules/call-bind-apply-helpers/functionApply.d.ts +1 -0
- package/zift-user-test/node_modules/call-bind-apply-helpers/functionApply.js +4 -0
- package/zift-user-test/node_modules/call-bind-apply-helpers/functionCall.d.ts +1 -0
- package/zift-user-test/node_modules/call-bind-apply-helpers/functionCall.js +4 -0
- package/zift-user-test/node_modules/call-bind-apply-helpers/index.d.ts +64 -0
- package/zift-user-test/node_modules/call-bind-apply-helpers/index.js +15 -0
- package/zift-user-test/node_modules/call-bind-apply-helpers/package.json +85 -0
- package/zift-user-test/node_modules/call-bind-apply-helpers/reflectApply.d.ts +3 -0
- package/zift-user-test/node_modules/call-bind-apply-helpers/reflectApply.js +4 -0
- package/zift-user-test/node_modules/call-bind-apply-helpers/test/index.js +63 -0
- package/zift-user-test/node_modules/call-bind-apply-helpers/tsconfig.json +9 -0
- package/zift-user-test/node_modules/call-bound/.eslintrc +13 -0
- package/zift-user-test/node_modules/call-bound/.github/FUNDING.yml +12 -0
- package/zift-user-test/node_modules/call-bound/.nycrc +9 -0
- package/zift-user-test/node_modules/call-bound/CHANGELOG.md +42 -0
- package/zift-user-test/node_modules/call-bound/LICENSE +21 -0
- package/zift-user-test/node_modules/call-bound/README.md +53 -0
- package/zift-user-test/node_modules/call-bound/index.d.ts +94 -0
- package/zift-user-test/node_modules/call-bound/index.js +19 -0
- package/zift-user-test/node_modules/call-bound/package.json +99 -0
- package/zift-user-test/node_modules/call-bound/test/index.js +61 -0
- package/zift-user-test/node_modules/call-bound/tsconfig.json +10 -0
- package/zift-user-test/node_modules/content-disposition/HISTORY.md +72 -0
- package/zift-user-test/node_modules/content-disposition/LICENSE +22 -0
- package/zift-user-test/node_modules/content-disposition/README.md +142 -0
- package/zift-user-test/node_modules/content-disposition/index.js +458 -0
- package/zift-user-test/node_modules/content-disposition/package.json +43 -0
- package/zift-user-test/node_modules/content-type/HISTORY.md +29 -0
- package/zift-user-test/node_modules/content-type/LICENSE +22 -0
- package/zift-user-test/node_modules/content-type/README.md +94 -0
- package/zift-user-test/node_modules/content-type/index.js +225 -0
- package/zift-user-test/node_modules/content-type/package.json +42 -0
- package/zift-user-test/node_modules/cookie/LICENSE +24 -0
- package/zift-user-test/node_modules/cookie/README.md +317 -0
- package/zift-user-test/node_modules/cookie/SECURITY.md +25 -0
- package/zift-user-test/node_modules/cookie/index.js +335 -0
- package/zift-user-test/node_modules/cookie/package.json +44 -0
- package/zift-user-test/node_modules/cookie-signature/History.md +70 -0
- package/zift-user-test/node_modules/cookie-signature/LICENSE +22 -0
- package/zift-user-test/node_modules/cookie-signature/Readme.md +23 -0
- package/zift-user-test/node_modules/cookie-signature/index.js +47 -0
- package/zift-user-test/node_modules/cookie-signature/package.json +24 -0
- package/zift-user-test/node_modules/debug/LICENSE +20 -0
- package/zift-user-test/node_modules/debug/README.md +481 -0
- package/zift-user-test/node_modules/debug/package.json +64 -0
- package/zift-user-test/node_modules/debug/src/browser.js +272 -0
- package/zift-user-test/node_modules/debug/src/common.js +292 -0
- package/zift-user-test/node_modules/debug/src/index.js +10 -0
- package/zift-user-test/node_modules/debug/src/node.js +263 -0
- package/zift-user-test/node_modules/depd/History.md +103 -0
- package/zift-user-test/node_modules/depd/LICENSE +22 -0
- package/zift-user-test/node_modules/depd/Readme.md +280 -0
- package/zift-user-test/node_modules/depd/index.js +538 -0
- package/zift-user-test/node_modules/depd/lib/browser/index.js +77 -0
- package/zift-user-test/node_modules/depd/package.json +45 -0
- package/zift-user-test/node_modules/dunder-proto/.eslintrc +5 -0
- package/zift-user-test/node_modules/dunder-proto/.github/FUNDING.yml +12 -0
- package/zift-user-test/node_modules/dunder-proto/.nycrc +13 -0
- package/zift-user-test/node_modules/dunder-proto/CHANGELOG.md +24 -0
- package/zift-user-test/node_modules/dunder-proto/LICENSE +21 -0
- package/zift-user-test/node_modules/dunder-proto/README.md +54 -0
- package/zift-user-test/node_modules/dunder-proto/get.d.ts +5 -0
- package/zift-user-test/node_modules/dunder-proto/get.js +30 -0
- package/zift-user-test/node_modules/dunder-proto/package.json +76 -0
- package/zift-user-test/node_modules/dunder-proto/set.d.ts +5 -0
- package/zift-user-test/node_modules/dunder-proto/set.js +35 -0
- package/zift-user-test/node_modules/dunder-proto/test/get.js +34 -0
- package/zift-user-test/node_modules/dunder-proto/test/index.js +4 -0
- package/zift-user-test/node_modules/dunder-proto/test/set.js +50 -0
- package/zift-user-test/node_modules/dunder-proto/tsconfig.json +9 -0
- package/zift-user-test/node_modules/ee-first/LICENSE +22 -0
- package/zift-user-test/node_modules/ee-first/README.md +80 -0
- package/zift-user-test/node_modules/ee-first/index.js +95 -0
- package/zift-user-test/node_modules/ee-first/package.json +29 -0
- package/zift-user-test/node_modules/encodeurl/LICENSE +22 -0
- package/zift-user-test/node_modules/encodeurl/README.md +109 -0
- package/zift-user-test/node_modules/encodeurl/index.js +60 -0
- package/zift-user-test/node_modules/encodeurl/package.json +40 -0
- package/zift-user-test/node_modules/es-define-property/.eslintrc +13 -0
- package/zift-user-test/node_modules/es-define-property/.github/FUNDING.yml +12 -0
- package/zift-user-test/node_modules/es-define-property/.nycrc +9 -0
- package/zift-user-test/node_modules/es-define-property/CHANGELOG.md +29 -0
- package/zift-user-test/node_modules/es-define-property/LICENSE +21 -0
- package/zift-user-test/node_modules/es-define-property/README.md +49 -0
- package/zift-user-test/node_modules/es-define-property/index.d.ts +3 -0
- package/zift-user-test/node_modules/es-define-property/index.js +14 -0
- package/zift-user-test/node_modules/es-define-property/package.json +81 -0
- package/zift-user-test/node_modules/es-define-property/test/index.js +56 -0
- package/zift-user-test/node_modules/es-define-property/tsconfig.json +10 -0
- package/zift-user-test/node_modules/es-errors/.eslintrc +5 -0
- package/zift-user-test/node_modules/es-errors/.github/FUNDING.yml +12 -0
- package/zift-user-test/node_modules/es-errors/CHANGELOG.md +40 -0
- package/zift-user-test/node_modules/es-errors/LICENSE +21 -0
- package/zift-user-test/node_modules/es-errors/README.md +55 -0
- package/zift-user-test/node_modules/es-errors/eval.d.ts +3 -0
- package/zift-user-test/node_modules/es-errors/eval.js +4 -0
- package/zift-user-test/node_modules/es-errors/index.d.ts +3 -0
- package/zift-user-test/node_modules/es-errors/index.js +4 -0
- package/zift-user-test/node_modules/es-errors/package.json +80 -0
- package/zift-user-test/node_modules/es-errors/range.d.ts +3 -0
- package/zift-user-test/node_modules/es-errors/range.js +4 -0
- package/zift-user-test/node_modules/es-errors/ref.d.ts +3 -0
- package/zift-user-test/node_modules/es-errors/ref.js +4 -0
- package/zift-user-test/node_modules/es-errors/syntax.d.ts +3 -0
- package/zift-user-test/node_modules/es-errors/syntax.js +4 -0
- package/zift-user-test/node_modules/es-errors/test/index.js +19 -0
- package/zift-user-test/node_modules/es-errors/tsconfig.json +49 -0
- package/zift-user-test/node_modules/es-errors/type.d.ts +3 -0
- package/zift-user-test/node_modules/es-errors/type.js +4 -0
- package/zift-user-test/node_modules/es-errors/uri.d.ts +3 -0
- package/zift-user-test/node_modules/es-errors/uri.js +4 -0
- package/zift-user-test/node_modules/es-object-atoms/.eslintrc +16 -0
- package/zift-user-test/node_modules/es-object-atoms/.github/FUNDING.yml +12 -0
- package/zift-user-test/node_modules/es-object-atoms/CHANGELOG.md +37 -0
- package/zift-user-test/node_modules/es-object-atoms/LICENSE +21 -0
- package/zift-user-test/node_modules/es-object-atoms/README.md +63 -0
- package/zift-user-test/node_modules/es-object-atoms/RequireObjectCoercible.d.ts +3 -0
- package/zift-user-test/node_modules/es-object-atoms/RequireObjectCoercible.js +11 -0
- package/zift-user-test/node_modules/es-object-atoms/ToObject.d.ts +7 -0
- package/zift-user-test/node_modules/es-object-atoms/ToObject.js +10 -0
- package/zift-user-test/node_modules/es-object-atoms/index.d.ts +3 -0
- package/zift-user-test/node_modules/es-object-atoms/index.js +4 -0
- package/zift-user-test/node_modules/es-object-atoms/isObject.d.ts +3 -0
- package/zift-user-test/node_modules/es-object-atoms/isObject.js +6 -0
- package/zift-user-test/node_modules/es-object-atoms/package.json +80 -0
- package/zift-user-test/node_modules/es-object-atoms/test/index.js +38 -0
- package/zift-user-test/node_modules/es-object-atoms/tsconfig.json +6 -0
- package/zift-user-test/node_modules/escape-html/LICENSE +24 -0
- package/zift-user-test/node_modules/escape-html/Readme.md +43 -0
- package/zift-user-test/node_modules/escape-html/index.js +78 -0
- package/zift-user-test/node_modules/escape-html/package.json +24 -0
- package/zift-user-test/node_modules/etag/HISTORY.md +83 -0
- package/zift-user-test/node_modules/etag/LICENSE +22 -0
- package/zift-user-test/node_modules/etag/README.md +159 -0
- package/zift-user-test/node_modules/etag/index.js +131 -0
- package/zift-user-test/node_modules/etag/package.json +47 -0
- package/zift-user-test/node_modules/express/LICENSE +24 -0
- package/zift-user-test/node_modules/express/Readme.md +276 -0
- package/zift-user-test/node_modules/express/index.js +11 -0
- package/zift-user-test/node_modules/express/lib/application.js +631 -0
- package/zift-user-test/node_modules/express/lib/express.js +81 -0
- package/zift-user-test/node_modules/express/lib/request.js +514 -0
- package/zift-user-test/node_modules/express/lib/response.js +1053 -0
- package/zift-user-test/node_modules/express/lib/utils.js +271 -0
- package/zift-user-test/node_modules/express/lib/view.js +205 -0
- package/zift-user-test/node_modules/express/package.json +99 -0
- package/zift-user-test/node_modules/finalhandler/HISTORY.md +239 -0
- package/zift-user-test/node_modules/finalhandler/LICENSE +22 -0
- package/zift-user-test/node_modules/finalhandler/README.md +150 -0
- package/zift-user-test/node_modules/finalhandler/index.js +293 -0
- package/zift-user-test/node_modules/finalhandler/package.json +47 -0
- package/zift-user-test/node_modules/forwarded/HISTORY.md +21 -0
- package/zift-user-test/node_modules/forwarded/LICENSE +22 -0
- package/zift-user-test/node_modules/forwarded/README.md +57 -0
- package/zift-user-test/node_modules/forwarded/index.js +90 -0
- package/zift-user-test/node_modules/forwarded/package.json +45 -0
- package/zift-user-test/node_modules/fresh/HISTORY.md +80 -0
- package/zift-user-test/node_modules/fresh/LICENSE +23 -0
- package/zift-user-test/node_modules/fresh/README.md +117 -0
- package/zift-user-test/node_modules/fresh/index.js +136 -0
- package/zift-user-test/node_modules/fresh/package.json +46 -0
- package/zift-user-test/node_modules/function-bind/.eslintrc +21 -0
- package/zift-user-test/node_modules/function-bind/.github/FUNDING.yml +12 -0
- package/zift-user-test/node_modules/function-bind/.github/SECURITY.md +3 -0
- package/zift-user-test/node_modules/function-bind/.nycrc +13 -0
- package/zift-user-test/node_modules/function-bind/CHANGELOG.md +136 -0
- package/zift-user-test/node_modules/function-bind/LICENSE +20 -0
- package/zift-user-test/node_modules/function-bind/README.md +46 -0
- package/zift-user-test/node_modules/function-bind/implementation.js +84 -0
- package/zift-user-test/node_modules/function-bind/index.js +5 -0
- package/zift-user-test/node_modules/function-bind/package.json +87 -0
- package/zift-user-test/node_modules/function-bind/test/.eslintrc +9 -0
- package/zift-user-test/node_modules/function-bind/test/index.js +252 -0
- package/zift-user-test/node_modules/get-intrinsic/.eslintrc +42 -0
- package/zift-user-test/node_modules/get-intrinsic/.github/FUNDING.yml +12 -0
- package/zift-user-test/node_modules/get-intrinsic/.nycrc +9 -0
- package/zift-user-test/node_modules/get-intrinsic/CHANGELOG.md +186 -0
- package/zift-user-test/node_modules/get-intrinsic/LICENSE +21 -0
- package/zift-user-test/node_modules/get-intrinsic/README.md +71 -0
- package/zift-user-test/node_modules/get-intrinsic/index.js +378 -0
- package/zift-user-test/node_modules/get-intrinsic/package.json +97 -0
- package/zift-user-test/node_modules/get-intrinsic/test/GetIntrinsic.js +274 -0
- package/zift-user-test/node_modules/get-proto/.eslintrc +10 -0
- package/zift-user-test/node_modules/get-proto/.github/FUNDING.yml +12 -0
- package/zift-user-test/node_modules/get-proto/.nycrc +9 -0
- package/zift-user-test/node_modules/get-proto/CHANGELOG.md +21 -0
- package/zift-user-test/node_modules/get-proto/LICENSE +21 -0
- package/zift-user-test/node_modules/get-proto/Object.getPrototypeOf.d.ts +5 -0
- package/zift-user-test/node_modules/get-proto/Object.getPrototypeOf.js +6 -0
- package/zift-user-test/node_modules/get-proto/README.md +50 -0
- package/zift-user-test/node_modules/get-proto/Reflect.getPrototypeOf.d.ts +3 -0
- package/zift-user-test/node_modules/get-proto/Reflect.getPrototypeOf.js +4 -0
- package/zift-user-test/node_modules/get-proto/index.d.ts +5 -0
- package/zift-user-test/node_modules/get-proto/index.js +27 -0
- package/zift-user-test/node_modules/get-proto/package.json +81 -0
- package/zift-user-test/node_modules/get-proto/test/index.js +68 -0
- package/zift-user-test/node_modules/get-proto/tsconfig.json +9 -0
- package/zift-user-test/node_modules/gopd/.eslintrc +16 -0
- package/zift-user-test/node_modules/gopd/.github/FUNDING.yml +12 -0
- package/zift-user-test/node_modules/gopd/CHANGELOG.md +45 -0
- package/zift-user-test/node_modules/gopd/LICENSE +21 -0
- package/zift-user-test/node_modules/gopd/README.md +40 -0
- package/zift-user-test/node_modules/gopd/gOPD.d.ts +1 -0
- package/zift-user-test/node_modules/gopd/gOPD.js +4 -0
- package/zift-user-test/node_modules/gopd/index.d.ts +5 -0
- package/zift-user-test/node_modules/gopd/index.js +15 -0
- package/zift-user-test/node_modules/gopd/package.json +77 -0
- package/zift-user-test/node_modules/gopd/test/index.js +36 -0
- package/zift-user-test/node_modules/gopd/tsconfig.json +9 -0
- package/zift-user-test/node_modules/has-symbols/.eslintrc +11 -0
- package/zift-user-test/node_modules/has-symbols/.github/FUNDING.yml +12 -0
- package/zift-user-test/node_modules/has-symbols/.nycrc +9 -0
- package/zift-user-test/node_modules/has-symbols/CHANGELOG.md +91 -0
- package/zift-user-test/node_modules/has-symbols/LICENSE +21 -0
- package/zift-user-test/node_modules/has-symbols/README.md +46 -0
- package/zift-user-test/node_modules/has-symbols/index.d.ts +3 -0
- package/zift-user-test/node_modules/has-symbols/index.js +14 -0
- package/zift-user-test/node_modules/has-symbols/package.json +111 -0
- package/zift-user-test/node_modules/has-symbols/shams.d.ts +3 -0
- package/zift-user-test/node_modules/has-symbols/shams.js +45 -0
- package/zift-user-test/node_modules/has-symbols/test/index.js +22 -0
- package/zift-user-test/node_modules/has-symbols/test/shams/core-js.js +29 -0
- package/zift-user-test/node_modules/has-symbols/test/shams/get-own-property-symbols.js +29 -0
- package/zift-user-test/node_modules/has-symbols/test/tests.js +58 -0
- package/zift-user-test/node_modules/has-symbols/tsconfig.json +10 -0
- package/zift-user-test/node_modules/hasown/.eslintrc +5 -0
- package/zift-user-test/node_modules/hasown/.github/FUNDING.yml +12 -0
- package/zift-user-test/node_modules/hasown/.nycrc +13 -0
- package/zift-user-test/node_modules/hasown/CHANGELOG.md +40 -0
- package/zift-user-test/node_modules/hasown/LICENSE +21 -0
- package/zift-user-test/node_modules/hasown/README.md +40 -0
- package/zift-user-test/node_modules/hasown/index.d.ts +3 -0
- package/zift-user-test/node_modules/hasown/index.js +8 -0
- package/zift-user-test/node_modules/hasown/package.json +92 -0
- package/zift-user-test/node_modules/hasown/tsconfig.json +6 -0
- package/zift-user-test/node_modules/http-errors/HISTORY.md +186 -0
- package/zift-user-test/node_modules/http-errors/LICENSE +23 -0
- package/zift-user-test/node_modules/http-errors/README.md +169 -0
- package/zift-user-test/node_modules/http-errors/index.js +290 -0
- package/zift-user-test/node_modules/http-errors/package.json +54 -0
- package/zift-user-test/node_modules/iconv-lite/LICENSE +21 -0
- package/zift-user-test/node_modules/iconv-lite/README.md +138 -0
- package/zift-user-test/node_modules/iconv-lite/encodings/dbcs-codec.js +532 -0
- package/zift-user-test/node_modules/iconv-lite/encodings/dbcs-data.js +185 -0
- package/zift-user-test/node_modules/iconv-lite/encodings/index.js +23 -0
- package/zift-user-test/node_modules/iconv-lite/encodings/internal.js +218 -0
- package/zift-user-test/node_modules/iconv-lite/encodings/sbcs-codec.js +75 -0
- package/zift-user-test/node_modules/iconv-lite/encodings/sbcs-data-generated.js +451 -0
- package/zift-user-test/node_modules/iconv-lite/encodings/sbcs-data.js +178 -0
- package/zift-user-test/node_modules/iconv-lite/encodings/tables/big5-added.json +122 -0
- package/zift-user-test/node_modules/iconv-lite/encodings/tables/cp936.json +264 -0
- package/zift-user-test/node_modules/iconv-lite/encodings/tables/cp949.json +273 -0
- package/zift-user-test/node_modules/iconv-lite/encodings/tables/cp950.json +177 -0
- package/zift-user-test/node_modules/iconv-lite/encodings/tables/eucjp.json +182 -0
- package/zift-user-test/node_modules/iconv-lite/encodings/tables/gb18030-ranges.json +1 -0
- package/zift-user-test/node_modules/iconv-lite/encodings/tables/gbk-added.json +56 -0
- package/zift-user-test/node_modules/iconv-lite/encodings/tables/shiftjis.json +125 -0
- package/zift-user-test/node_modules/iconv-lite/encodings/utf16.js +187 -0
- package/zift-user-test/node_modules/iconv-lite/encodings/utf32.js +307 -0
- package/zift-user-test/node_modules/iconv-lite/encodings/utf7.js +283 -0
- package/zift-user-test/node_modules/iconv-lite/lib/bom-handling.js +48 -0
- package/zift-user-test/node_modules/iconv-lite/lib/helpers/merge-exports.js +13 -0
- package/zift-user-test/node_modules/iconv-lite/lib/index.d.ts +129 -0
- package/zift-user-test/node_modules/iconv-lite/lib/index.js +182 -0
- package/zift-user-test/node_modules/iconv-lite/lib/streams.js +105 -0
- package/zift-user-test/node_modules/iconv-lite/package.json +70 -0
- package/zift-user-test/node_modules/iconv-lite/types/encodings.d.ts +423 -0
- package/zift-user-test/node_modules/inherits/LICENSE +16 -0
- package/zift-user-test/node_modules/inherits/README.md +42 -0
- package/zift-user-test/node_modules/inherits/inherits.js +9 -0
- package/zift-user-test/node_modules/inherits/inherits_browser.js +27 -0
- package/zift-user-test/node_modules/inherits/package.json +29 -0
- package/zift-user-test/node_modules/ipaddr.js/LICENSE +19 -0
- package/zift-user-test/node_modules/ipaddr.js/README.md +233 -0
- package/zift-user-test/node_modules/ipaddr.js/ipaddr.min.js +1 -0
- package/zift-user-test/node_modules/ipaddr.js/lib/ipaddr.js +673 -0
- package/zift-user-test/node_modules/ipaddr.js/lib/ipaddr.js.d.ts +68 -0
- package/zift-user-test/node_modules/ipaddr.js/package.json +35 -0
- package/zift-user-test/node_modules/is-promise/LICENSE +19 -0
- package/zift-user-test/node_modules/is-promise/index.d.ts +2 -0
- package/zift-user-test/node_modules/is-promise/index.js +6 -0
- package/zift-user-test/node_modules/is-promise/index.mjs +3 -0
- package/zift-user-test/node_modules/is-promise/package.json +30 -0
- package/zift-user-test/node_modules/is-promise/readme.md +33 -0
- package/zift-user-test/node_modules/math-intrinsics/.eslintrc +16 -0
- package/zift-user-test/node_modules/math-intrinsics/.github/FUNDING.yml +12 -0
- package/zift-user-test/node_modules/math-intrinsics/CHANGELOG.md +24 -0
- package/zift-user-test/node_modules/math-intrinsics/LICENSE +21 -0
- package/zift-user-test/node_modules/math-intrinsics/README.md +50 -0
- package/zift-user-test/node_modules/math-intrinsics/abs.d.ts +1 -0
- package/zift-user-test/node_modules/math-intrinsics/abs.js +4 -0
- package/zift-user-test/node_modules/math-intrinsics/constants/maxArrayLength.d.ts +3 -0
- package/zift-user-test/node_modules/math-intrinsics/constants/maxArrayLength.js +4 -0
- package/zift-user-test/node_modules/math-intrinsics/constants/maxSafeInteger.d.ts +3 -0
- package/zift-user-test/node_modules/math-intrinsics/constants/maxSafeInteger.js +5 -0
- package/zift-user-test/node_modules/math-intrinsics/constants/maxValue.d.ts +3 -0
- package/zift-user-test/node_modules/math-intrinsics/constants/maxValue.js +5 -0
- package/zift-user-test/node_modules/math-intrinsics/floor.d.ts +1 -0
- package/zift-user-test/node_modules/math-intrinsics/floor.js +4 -0
- package/zift-user-test/node_modules/math-intrinsics/isFinite.d.ts +3 -0
- package/zift-user-test/node_modules/math-intrinsics/isFinite.js +12 -0
- package/zift-user-test/node_modules/math-intrinsics/isInteger.d.ts +3 -0
- package/zift-user-test/node_modules/math-intrinsics/isInteger.js +16 -0
- package/zift-user-test/node_modules/math-intrinsics/isNaN.d.ts +1 -0
- package/zift-user-test/node_modules/math-intrinsics/isNaN.js +6 -0
- package/zift-user-test/node_modules/math-intrinsics/isNegativeZero.d.ts +3 -0
- package/zift-user-test/node_modules/math-intrinsics/isNegativeZero.js +6 -0
- package/zift-user-test/node_modules/math-intrinsics/max.d.ts +1 -0
- package/zift-user-test/node_modules/math-intrinsics/max.js +4 -0
- package/zift-user-test/node_modules/math-intrinsics/min.d.ts +1 -0
- package/zift-user-test/node_modules/math-intrinsics/min.js +4 -0
- package/zift-user-test/node_modules/math-intrinsics/mod.d.ts +3 -0
- package/zift-user-test/node_modules/math-intrinsics/mod.js +9 -0
- package/zift-user-test/node_modules/math-intrinsics/package.json +86 -0
- package/zift-user-test/node_modules/math-intrinsics/pow.d.ts +1 -0
- package/zift-user-test/node_modules/math-intrinsics/pow.js +4 -0
- package/zift-user-test/node_modules/math-intrinsics/round.d.ts +1 -0
- package/zift-user-test/node_modules/math-intrinsics/round.js +4 -0
- package/zift-user-test/node_modules/math-intrinsics/sign.d.ts +3 -0
- package/zift-user-test/node_modules/math-intrinsics/sign.js +11 -0
- package/zift-user-test/node_modules/math-intrinsics/test/index.js +192 -0
- package/zift-user-test/node_modules/math-intrinsics/tsconfig.json +3 -0
- package/zift-user-test/node_modules/media-typer/HISTORY.md +50 -0
- package/zift-user-test/node_modules/media-typer/LICENSE +22 -0
- package/zift-user-test/node_modules/media-typer/README.md +93 -0
- package/zift-user-test/node_modules/media-typer/index.js +143 -0
- package/zift-user-test/node_modules/media-typer/package.json +33 -0
- package/zift-user-test/node_modules/merge-descriptors/index.d.ts +11 -0
- package/zift-user-test/node_modules/merge-descriptors/index.js +26 -0
- package/zift-user-test/node_modules/merge-descriptors/license +11 -0
- package/zift-user-test/node_modules/merge-descriptors/package.json +50 -0
- package/zift-user-test/node_modules/merge-descriptors/readme.md +55 -0
- package/zift-user-test/node_modules/mime-db/HISTORY.md +541 -0
- package/zift-user-test/node_modules/mime-db/LICENSE +23 -0
- package/zift-user-test/node_modules/mime-db/README.md +109 -0
- package/zift-user-test/node_modules/mime-db/db.json +9342 -0
- package/zift-user-test/node_modules/mime-db/index.js +12 -0
- package/zift-user-test/node_modules/mime-db/package.json +56 -0
- package/zift-user-test/node_modules/mime-types/HISTORY.md +428 -0
- package/zift-user-test/node_modules/mime-types/LICENSE +23 -0
- package/zift-user-test/node_modules/mime-types/README.md +126 -0
- package/zift-user-test/node_modules/mime-types/index.js +211 -0
- package/zift-user-test/node_modules/mime-types/mimeScore.js +57 -0
- package/zift-user-test/node_modules/mime-types/package.json +49 -0
- package/zift-user-test/node_modules/ms/index.js +162 -0
- package/zift-user-test/node_modules/ms/license.md +21 -0
- package/zift-user-test/node_modules/ms/package.json +38 -0
- package/zift-user-test/node_modules/ms/readme.md +59 -0
- package/zift-user-test/node_modules/negotiator/HISTORY.md +114 -0
- package/zift-user-test/node_modules/negotiator/LICENSE +24 -0
- package/zift-user-test/node_modules/negotiator/README.md +212 -0
- package/zift-user-test/node_modules/negotiator/index.js +83 -0
- package/zift-user-test/node_modules/negotiator/lib/charset.js +169 -0
- package/zift-user-test/node_modules/negotiator/lib/encoding.js +205 -0
- package/zift-user-test/node_modules/negotiator/lib/language.js +179 -0
- package/zift-user-test/node_modules/negotiator/lib/mediaType.js +294 -0
- package/zift-user-test/node_modules/negotiator/package.json +43 -0
- package/zift-user-test/node_modules/object-inspect/.eslintrc +53 -0
- package/zift-user-test/node_modules/object-inspect/.github/FUNDING.yml +12 -0
- package/zift-user-test/node_modules/object-inspect/.nycrc +13 -0
- package/zift-user-test/node_modules/object-inspect/CHANGELOG.md +424 -0
- package/zift-user-test/node_modules/object-inspect/LICENSE +21 -0
- package/zift-user-test/node_modules/object-inspect/example/all.js +23 -0
- package/zift-user-test/node_modules/object-inspect/example/circular.js +6 -0
- package/zift-user-test/node_modules/object-inspect/example/fn.js +5 -0
- package/zift-user-test/node_modules/object-inspect/example/inspect.js +10 -0
- package/zift-user-test/node_modules/object-inspect/index.js +544 -0
- package/zift-user-test/node_modules/object-inspect/package-support.json +20 -0
- package/zift-user-test/node_modules/object-inspect/package.json +105 -0
- package/zift-user-test/node_modules/object-inspect/readme.markdown +84 -0
- package/zift-user-test/node_modules/object-inspect/test/bigint.js +58 -0
- package/zift-user-test/node_modules/object-inspect/test/browser/dom.js +15 -0
- package/zift-user-test/node_modules/object-inspect/test/circular.js +16 -0
- package/zift-user-test/node_modules/object-inspect/test/deep.js +12 -0
- package/zift-user-test/node_modules/object-inspect/test/element.js +53 -0
- package/zift-user-test/node_modules/object-inspect/test/err.js +48 -0
- package/zift-user-test/node_modules/object-inspect/test/fakes.js +29 -0
- package/zift-user-test/node_modules/object-inspect/test/fn.js +76 -0
- package/zift-user-test/node_modules/object-inspect/test/global.js +17 -0
- package/zift-user-test/node_modules/object-inspect/test/has.js +15 -0
- package/zift-user-test/node_modules/object-inspect/test/holes.js +15 -0
- package/zift-user-test/node_modules/object-inspect/test/indent-option.js +271 -0
- package/zift-user-test/node_modules/object-inspect/test/inspect.js +139 -0
- package/zift-user-test/node_modules/object-inspect/test/lowbyte.js +12 -0
- package/zift-user-test/node_modules/object-inspect/test/number.js +58 -0
- package/zift-user-test/node_modules/object-inspect/test/quoteStyle.js +26 -0
- package/zift-user-test/node_modules/object-inspect/test/toStringTag.js +40 -0
- package/zift-user-test/node_modules/object-inspect/test/undef.js +12 -0
- package/zift-user-test/node_modules/object-inspect/test/values.js +261 -0
- package/zift-user-test/node_modules/object-inspect/test-core-js.js +26 -0
- package/zift-user-test/node_modules/object-inspect/util.inspect.js +1 -0
- package/zift-user-test/node_modules/on-finished/HISTORY.md +98 -0
- package/zift-user-test/node_modules/on-finished/LICENSE +23 -0
- package/zift-user-test/node_modules/on-finished/README.md +162 -0
- package/zift-user-test/node_modules/on-finished/index.js +234 -0
- package/zift-user-test/node_modules/on-finished/package.json +39 -0
- package/zift-user-test/node_modules/once/LICENSE +15 -0
- package/zift-user-test/node_modules/once/README.md +79 -0
- package/zift-user-test/node_modules/once/once.js +42 -0
- package/zift-user-test/node_modules/once/package.json +33 -0
- package/zift-user-test/node_modules/parseurl/HISTORY.md +58 -0
- package/zift-user-test/node_modules/parseurl/LICENSE +24 -0
- package/zift-user-test/node_modules/parseurl/README.md +133 -0
- package/zift-user-test/node_modules/parseurl/index.js +158 -0
- package/zift-user-test/node_modules/parseurl/package.json +40 -0
- package/zift-user-test/node_modules/path-to-regexp/LICENSE +21 -0
- package/zift-user-test/node_modules/path-to-regexp/Readme.md +224 -0
- package/zift-user-test/node_modules/path-to-regexp/dist/index.d.ts +144 -0
- package/zift-user-test/node_modules/path-to-regexp/dist/index.js +409 -0
- package/zift-user-test/node_modules/path-to-regexp/dist/index.js.map +1 -0
- package/zift-user-test/node_modules/path-to-regexp/package.json +64 -0
- package/zift-user-test/node_modules/proxy-addr/HISTORY.md +161 -0
- package/zift-user-test/node_modules/proxy-addr/LICENSE +22 -0
- package/zift-user-test/node_modules/proxy-addr/README.md +139 -0
- package/zift-user-test/node_modules/proxy-addr/index.js +327 -0
- package/zift-user-test/node_modules/proxy-addr/package.json +47 -0
- package/zift-user-test/node_modules/qs/.editorconfig +46 -0
- package/zift-user-test/node_modules/qs/.github/FUNDING.yml +12 -0
- package/zift-user-test/node_modules/qs/.github/SECURITY.md +11 -0
- package/zift-user-test/node_modules/qs/.github/THREAT_MODEL.md +78 -0
- package/zift-user-test/node_modules/qs/.nycrc +13 -0
- package/zift-user-test/node_modules/qs/CHANGELOG.md +806 -0
- package/zift-user-test/node_modules/qs/LICENSE.md +29 -0
- package/zift-user-test/node_modules/qs/README.md +758 -0
- package/zift-user-test/node_modules/qs/dist/qs.js +141 -0
- package/zift-user-test/node_modules/qs/eslint.config.mjs +56 -0
- package/zift-user-test/node_modules/qs/lib/formats.js +23 -0
- package/zift-user-test/node_modules/qs/lib/index.js +11 -0
- package/zift-user-test/node_modules/qs/lib/parse.js +373 -0
- package/zift-user-test/node_modules/qs/lib/stringify.js +356 -0
- package/zift-user-test/node_modules/qs/lib/utils.js +342 -0
- package/zift-user-test/node_modules/qs/package.json +94 -0
- package/zift-user-test/node_modules/qs/test/empty-keys-cases.js +267 -0
- package/zift-user-test/node_modules/qs/test/parse.js +1568 -0
- package/zift-user-test/node_modules/qs/test/stringify.js +1310 -0
- package/zift-user-test/node_modules/qs/test/utils.js +404 -0
- package/zift-user-test/node_modules/range-parser/HISTORY.md +56 -0
- package/zift-user-test/node_modules/range-parser/LICENSE +23 -0
- package/zift-user-test/node_modules/range-parser/README.md +84 -0
- package/zift-user-test/node_modules/range-parser/index.js +162 -0
- package/zift-user-test/node_modules/range-parser/package.json +44 -0
- package/zift-user-test/node_modules/raw-body/LICENSE +22 -0
- package/zift-user-test/node_modules/raw-body/README.md +223 -0
- package/zift-user-test/node_modules/raw-body/index.d.ts +85 -0
- package/zift-user-test/node_modules/raw-body/index.js +336 -0
- package/zift-user-test/node_modules/raw-body/package.json +46 -0
- package/zift-user-test/node_modules/router/HISTORY.md +228 -0
- package/zift-user-test/node_modules/router/LICENSE +23 -0
- package/zift-user-test/node_modules/router/README.md +416 -0
- package/zift-user-test/node_modules/router/index.js +748 -0
- package/zift-user-test/node_modules/router/lib/layer.js +247 -0
- package/zift-user-test/node_modules/router/lib/route.js +242 -0
- package/zift-user-test/node_modules/router/package.json +44 -0
- package/zift-user-test/node_modules/safer-buffer/LICENSE +21 -0
- package/zift-user-test/node_modules/safer-buffer/Porting-Buffer.md +268 -0
- package/zift-user-test/node_modules/safer-buffer/Readme.md +156 -0
- package/zift-user-test/node_modules/safer-buffer/dangerous.js +58 -0
- package/zift-user-test/node_modules/safer-buffer/package.json +34 -0
- package/zift-user-test/node_modules/safer-buffer/safer.js +77 -0
- package/zift-user-test/node_modules/safer-buffer/tests.js +406 -0
- package/zift-user-test/node_modules/send/LICENSE +23 -0
- package/zift-user-test/node_modules/send/README.md +317 -0
- package/zift-user-test/node_modules/send/index.js +997 -0
- package/zift-user-test/node_modules/send/package.json +63 -0
- package/zift-user-test/node_modules/serve-static/LICENSE +25 -0
- package/zift-user-test/node_modules/serve-static/README.md +253 -0
- package/zift-user-test/node_modules/serve-static/index.js +208 -0
- package/zift-user-test/node_modules/serve-static/package.json +44 -0
- package/zift-user-test/node_modules/setprototypeof/LICENSE +13 -0
- package/zift-user-test/node_modules/setprototypeof/README.md +31 -0
- package/zift-user-test/node_modules/setprototypeof/index.d.ts +2 -0
- package/zift-user-test/node_modules/setprototypeof/index.js +17 -0
- package/zift-user-test/node_modules/setprototypeof/package.json +38 -0
- package/zift-user-test/node_modules/setprototypeof/test/index.js +24 -0
- package/zift-user-test/node_modules/side-channel/.editorconfig +9 -0
- package/zift-user-test/node_modules/side-channel/.eslintrc +12 -0
- package/zift-user-test/node_modules/side-channel/.github/FUNDING.yml +12 -0
- package/zift-user-test/node_modules/side-channel/.nycrc +13 -0
- package/zift-user-test/node_modules/side-channel/CHANGELOG.md +110 -0
- package/zift-user-test/node_modules/side-channel/LICENSE +21 -0
- package/zift-user-test/node_modules/side-channel/README.md +61 -0
- package/zift-user-test/node_modules/side-channel/index.d.ts +14 -0
- package/zift-user-test/node_modules/side-channel/index.js +43 -0
- package/zift-user-test/node_modules/side-channel/package.json +85 -0
- package/zift-user-test/node_modules/side-channel/test/index.js +104 -0
- package/zift-user-test/node_modules/side-channel/tsconfig.json +9 -0
- package/zift-user-test/node_modules/side-channel-list/.editorconfig +9 -0
- package/zift-user-test/node_modules/side-channel-list/.eslintrc +11 -0
- package/zift-user-test/node_modules/side-channel-list/.github/FUNDING.yml +12 -0
- package/zift-user-test/node_modules/side-channel-list/.nycrc +13 -0
- package/zift-user-test/node_modules/side-channel-list/CHANGELOG.md +15 -0
- package/zift-user-test/node_modules/side-channel-list/LICENSE +21 -0
- package/zift-user-test/node_modules/side-channel-list/README.md +62 -0
- package/zift-user-test/node_modules/side-channel-list/index.d.ts +13 -0
- package/zift-user-test/node_modules/side-channel-list/index.js +113 -0
- package/zift-user-test/node_modules/side-channel-list/list.d.ts +14 -0
- package/zift-user-test/node_modules/side-channel-list/package.json +77 -0
- package/zift-user-test/node_modules/side-channel-list/test/index.js +104 -0
- package/zift-user-test/node_modules/side-channel-list/tsconfig.json +9 -0
- package/zift-user-test/node_modules/side-channel-map/.editorconfig +9 -0
- package/zift-user-test/node_modules/side-channel-map/.eslintrc +11 -0
- package/zift-user-test/node_modules/side-channel-map/.github/FUNDING.yml +12 -0
- package/zift-user-test/node_modules/side-channel-map/.nycrc +13 -0
- package/zift-user-test/node_modules/side-channel-map/CHANGELOG.md +22 -0
- package/zift-user-test/node_modules/side-channel-map/LICENSE +21 -0
- package/zift-user-test/node_modules/side-channel-map/README.md +62 -0
- package/zift-user-test/node_modules/side-channel-map/index.d.ts +15 -0
- package/zift-user-test/node_modules/side-channel-map/index.js +68 -0
- package/zift-user-test/node_modules/side-channel-map/package.json +80 -0
- package/zift-user-test/node_modules/side-channel-map/test/index.js +114 -0
- package/zift-user-test/node_modules/side-channel-map/tsconfig.json +9 -0
- package/zift-user-test/node_modules/side-channel-weakmap/.editorconfig +9 -0
- package/zift-user-test/node_modules/side-channel-weakmap/.eslintrc +12 -0
- package/zift-user-test/node_modules/side-channel-weakmap/.github/FUNDING.yml +12 -0
- package/zift-user-test/node_modules/side-channel-weakmap/.nycrc +13 -0
- package/zift-user-test/node_modules/side-channel-weakmap/CHANGELOG.md +28 -0
- package/zift-user-test/node_modules/side-channel-weakmap/LICENSE +21 -0
- package/zift-user-test/node_modules/side-channel-weakmap/README.md +62 -0
- package/zift-user-test/node_modules/side-channel-weakmap/index.d.ts +15 -0
- package/zift-user-test/node_modules/side-channel-weakmap/index.js +84 -0
- package/zift-user-test/node_modules/side-channel-weakmap/package.json +87 -0
- package/zift-user-test/node_modules/side-channel-weakmap/test/index.js +114 -0
- package/zift-user-test/node_modules/side-channel-weakmap/tsconfig.json +9 -0
- package/zift-user-test/node_modules/statuses/HISTORY.md +87 -0
- package/zift-user-test/node_modules/statuses/LICENSE +23 -0
- package/zift-user-test/node_modules/statuses/README.md +139 -0
- package/zift-user-test/node_modules/statuses/codes.json +65 -0
- package/zift-user-test/node_modules/statuses/index.js +146 -0
- package/zift-user-test/node_modules/statuses/package.json +49 -0
- package/zift-user-test/node_modules/toidentifier/HISTORY.md +9 -0
- package/zift-user-test/node_modules/toidentifier/LICENSE +21 -0
- package/zift-user-test/node_modules/toidentifier/README.md +61 -0
- package/zift-user-test/node_modules/toidentifier/index.js +32 -0
- package/zift-user-test/node_modules/toidentifier/package.json +38 -0
- package/zift-user-test/node_modules/type-is/HISTORY.md +292 -0
- package/zift-user-test/node_modules/type-is/LICENSE +23 -0
- package/zift-user-test/node_modules/type-is/README.md +198 -0
- package/zift-user-test/node_modules/type-is/index.js +250 -0
- package/zift-user-test/node_modules/type-is/package.json +47 -0
- package/zift-user-test/node_modules/unpipe/HISTORY.md +4 -0
- package/zift-user-test/node_modules/unpipe/LICENSE +22 -0
- package/zift-user-test/node_modules/unpipe/README.md +43 -0
- package/zift-user-test/node_modules/unpipe/index.js +69 -0
- package/zift-user-test/node_modules/unpipe/package.json +27 -0
- package/zift-user-test/node_modules/vary/HISTORY.md +39 -0
- package/zift-user-test/node_modules/vary/LICENSE +22 -0
- package/zift-user-test/node_modules/vary/README.md +101 -0
- package/zift-user-test/node_modules/vary/index.js +149 -0
- package/zift-user-test/node_modules/vary/package.json +43 -0
- package/zift-user-test/node_modules/wrappy/LICENSE +15 -0
- package/zift-user-test/node_modules/wrappy/README.md +36 -0
- package/zift-user-test/node_modules/wrappy/package.json +29 -0
- package/zift-user-test/node_modules/wrappy/wrappy.js +33 -0
- package/zift-user-test/package-lock.json +827 -0
- package/zift-user-test/package.json +16 -0
- package/7nsane-zift-1.0.1.tgz +0 -0
|
Binary file
|
package/bin/zift.js
CHANGED
|
@@ -1,108 +1,172 @@
|
|
|
1
|
-
#!/usr/bin/env node
|
|
1
|
+
#!/usr/bin/env node
|
|
2
2
|
const PackageScanner = require('../src/scanner');
|
|
3
3
|
const chalk = require('chalk');
|
|
4
4
|
const path = require('node:path');
|
|
5
|
+
const fs = require('node:fs');
|
|
6
|
+
const cp = require('node:child_process');
|
|
7
|
+
const os = require('node:os');
|
|
8
|
+
const readline = require('node:readline');
|
|
5
9
|
|
|
6
10
|
async function main() {
|
|
7
11
|
const args = process.argv.slice(2);
|
|
8
|
-
let
|
|
12
|
+
let target = '.';
|
|
9
13
|
let format = 'text';
|
|
14
|
+
let isInstallMode = false;
|
|
10
15
|
|
|
11
|
-
//
|
|
16
|
+
// Verb detection: zift install <pkg> or zift i <pkg>
|
|
17
|
+
if (args[0] === 'install' || args[0] === 'i') {
|
|
18
|
+
isInstallMode = true;
|
|
19
|
+
target = args[1] || '.';
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
// Flag detection: zift <pkg> --zift (for future-proofing/aliases)
|
|
23
|
+
if (args.includes('--zift')) {
|
|
24
|
+
isInstallMode = true;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
// Basic arg parsing for other flags
|
|
12
28
|
for (let i = 0; i < args.length; i++) {
|
|
13
29
|
if (args[i] === '--format' && args[i + 1]) {
|
|
14
30
|
format = args[i + 1];
|
|
15
31
|
i++;
|
|
16
|
-
} else if (!args[i].startsWith('-')) {
|
|
17
|
-
|
|
32
|
+
} else if (!args[i].startsWith('-') && !['install', 'i'].includes(args[i])) {
|
|
33
|
+
target = args[i];
|
|
18
34
|
}
|
|
19
35
|
}
|
|
20
36
|
|
|
21
|
-
|
|
37
|
+
// Determine if target is a local folder
|
|
38
|
+
const isLocal = fs.existsSync(target) && fs.lstatSync(target).isDirectory();
|
|
22
39
|
|
|
40
|
+
if (isLocal) {
|
|
41
|
+
await runLocalScan(target, format);
|
|
42
|
+
} else {
|
|
43
|
+
// Treat as remote package name
|
|
44
|
+
await runRemoteAudit(target, format, isInstallMode);
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
async function runLocalScan(targetDir, format) {
|
|
49
|
+
const scanner = new PackageScanner(targetDir);
|
|
23
50
|
if (format === 'text') {
|
|
24
|
-
|
|
51
|
+
console.log(chalk.blue(`\n🔍 Scanning local directory: ${path.resolve(targetDir)}`));
|
|
25
52
|
}
|
|
26
53
|
|
|
27
54
|
try {
|
|
28
55
|
const findings = await scanner.scan();
|
|
56
|
+
handleFindings(findings, format, targetDir);
|
|
57
|
+
} catch (err) {
|
|
58
|
+
handleError(err, format);
|
|
59
|
+
}
|
|
60
|
+
}
|
|
29
61
|
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
findings: findings,
|
|
35
|
-
summary: getSummary(findings)
|
|
36
|
-
}, null, 2));
|
|
37
|
-
process.exit(findings.some(f => f.score >= 90) ? 1 : 0);
|
|
38
|
-
}
|
|
62
|
+
async function runRemoteAudit(packageName, format, forceInstall = false) {
|
|
63
|
+
if (format === 'text') {
|
|
64
|
+
console.log(chalk.blue(`\n🌍 Remote Audit: Pre-scanning package '${packageName}'...`));
|
|
65
|
+
}
|
|
39
66
|
|
|
40
|
-
|
|
41
|
-
console.log(chalk.green('\n✅ No suspicious patterns detected. All modules within safety thresholds.'));
|
|
42
|
-
process.exit(0);
|
|
43
|
-
}
|
|
67
|
+
const tmpDir = fs.mkdtempSync(path.join(os.tmpdir(), 'zift-audit-'));
|
|
44
68
|
|
|
45
|
-
|
|
69
|
+
try {
|
|
70
|
+
cp.execSync(`npm pack ${packageName}`, { cwd: tmpDir, stdio: 'ignore' });
|
|
71
|
+
const tarball = fs.readdirSync(tmpDir).find(f => f.endsWith('.tgz'));
|
|
72
|
+
cp.execSync(`tar -xzf ${tarball}`, { cwd: tmpDir });
|
|
46
73
|
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
'High': chalk.red,
|
|
51
|
-
'Medium': chalk.yellow,
|
|
52
|
-
'Low': chalk.blue
|
|
53
|
-
};
|
|
74
|
+
const scanPath = path.join(tmpDir, 'package');
|
|
75
|
+
const scanner = new PackageScanner(scanPath);
|
|
76
|
+
const findings = await scanner.scan();
|
|
54
77
|
|
|
55
|
-
|
|
78
|
+
if (format === 'text') {
|
|
79
|
+
const s = getSummary(findings);
|
|
80
|
+
const statusText = s.Critical > 0 ? chalk.red.bold('CRITICAL RISK') :
|
|
81
|
+
s.High > 0 ? chalk.red('HIGH RISK') :
|
|
82
|
+
s.Medium > 0 ? chalk.yellow('WARNING') : chalk.green('SECURE');
|
|
56
83
|
|
|
57
|
-
console.log(
|
|
58
|
-
|
|
84
|
+
console.log(chalk.green(`✅ Audit of '${packageName}' complete. Status: ${statusText}`));
|
|
85
|
+
}
|
|
59
86
|
|
|
60
|
-
|
|
61
|
-
|
|
87
|
+
handleFindings(findings, format, scanPath, true);
|
|
88
|
+
|
|
89
|
+
if (format === 'text') {
|
|
90
|
+
const rl = readline.createInterface({ input: process.stdin, output: process.stdout });
|
|
91
|
+
const promptText = findings.length > 0
|
|
92
|
+
? chalk.yellow(`\n⚠️ Suspicious patterns found. Still install '${packageName}'? (y/n): `)
|
|
93
|
+
: chalk.blue(`\nProceed with installation of '${packageName}'? (y/n): `);
|
|
94
|
+
|
|
95
|
+
rl.question(promptText, (answer) => {
|
|
96
|
+
rl.close();
|
|
97
|
+
const confirmed = ['y', 'yes'].includes(answer.toLowerCase());
|
|
98
|
+
|
|
99
|
+
if (confirmed) {
|
|
100
|
+
console.log(chalk.blue(`\n📦 Installing ${packageName}...`));
|
|
101
|
+
try {
|
|
102
|
+
cp.execSync(`npm install ${packageName}`, { stdio: 'inherit' });
|
|
103
|
+
console.log(chalk.green(`\n✅ ${packageName} installed successfully.`));
|
|
104
|
+
} catch (e) { console.error(chalk.red(`\n❌ Installation failed.`)); }
|
|
105
|
+
} else {
|
|
106
|
+
console.log(chalk.red(`\n❌ Installation aborted by user.`));
|
|
107
|
+
}
|
|
108
|
+
cleanupAndExit(tmpDir, 0);
|
|
62
109
|
});
|
|
110
|
+
} else {
|
|
111
|
+
cleanupAndExit(tmpDir, 0);
|
|
112
|
+
}
|
|
113
|
+
} catch (err) {
|
|
114
|
+
console.error(chalk.red(`\n❌ Audit failed: Ensure '${packageName}' is a valid npm package.`));
|
|
115
|
+
cleanupAndExit(tmpDir, 1);
|
|
116
|
+
}
|
|
117
|
+
}
|
|
63
118
|
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
printSummary(findings);
|
|
119
|
+
function handleFindings(findings, format, targetDir, skipExit = false) {
|
|
120
|
+
if (format === 'json') {
|
|
121
|
+
process.stdout.write(JSON.stringify({ target: targetDir, findings, summary: getSummary(findings) }, null, 2));
|
|
122
|
+
if (!skipExit) process.exit(findings.some(f => f.score >= 90) ? 1 : 0);
|
|
123
|
+
return;
|
|
124
|
+
}
|
|
71
125
|
|
|
72
|
-
|
|
73
|
-
if (
|
|
74
|
-
console.log(chalk.
|
|
75
|
-
process.exit(1);
|
|
76
|
-
} else {
|
|
77
|
-
console.log(chalk.green(`\n✔ Safety check completed with minor warnings.\n`));
|
|
126
|
+
if (findings.length === 0) {
|
|
127
|
+
if (!skipExit) {
|
|
128
|
+
console.log(chalk.green('\n✅ No suspicious patterns detected. All modules safe.'));
|
|
78
129
|
process.exit(0);
|
|
79
130
|
}
|
|
131
|
+
return;
|
|
132
|
+
}
|
|
80
133
|
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
}
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
134
|
+
console.log(chalk.yellow(`\n⚠️ Suspicious patterns found:\n`));
|
|
135
|
+
findings.forEach(f => {
|
|
136
|
+
const color = { 'Critical': chalk.red.bold, 'High': chalk.red, 'Medium': chalk.yellow, 'Low': chalk.blue }[f.classification];
|
|
137
|
+
console.log(color(`[${f.classification}] ${f.id} ${f.name} (Score: ${f.score})`));
|
|
138
|
+
f.triggers.forEach(t => console.log(chalk.white(` - ${t.type} in ${t.file}:${t.line} [${t.context}]`)));
|
|
139
|
+
console.log('');
|
|
140
|
+
});
|
|
141
|
+
|
|
142
|
+
printSummary(findings);
|
|
143
|
+
|
|
144
|
+
if (!skipExit) {
|
|
145
|
+
process.exit(findings[0].score >= 90 ? 1 : 0);
|
|
88
146
|
}
|
|
89
147
|
}
|
|
90
148
|
|
|
149
|
+
function cleanupAndExit(dir, code) {
|
|
150
|
+
if (fs.existsSync(dir)) fs.rmSync(dir, { recursive: true, force: true });
|
|
151
|
+
if (code !== undefined) process.exit(code);
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
function handleError(err, format) {
|
|
155
|
+
if (format === 'json') console.error(JSON.stringify({ error: err.message }));
|
|
156
|
+
else console.error(chalk.red(`\n❌ Fatal Error: ${err.message}`));
|
|
157
|
+
process.exit(1);
|
|
158
|
+
}
|
|
159
|
+
|
|
91
160
|
function getSummary(findings) {
|
|
92
|
-
const
|
|
93
|
-
findings.forEach(f =>
|
|
94
|
-
|
|
95
|
-
summary[f.classification]++;
|
|
96
|
-
}
|
|
97
|
-
});
|
|
98
|
-
return summary;
|
|
161
|
+
const s = { Critical: 0, High: 0, Medium: 0, Low: 0 };
|
|
162
|
+
findings.forEach(f => s[f.classification]++);
|
|
163
|
+
return s;
|
|
99
164
|
}
|
|
100
165
|
|
|
101
166
|
function printSummary(findings) {
|
|
102
167
|
const s = getSummary(findings);
|
|
103
168
|
console.log(chalk.bold('Severity Summary:'));
|
|
104
|
-
console.log(chalk.red(` Critical: ${s.Critical}`));
|
|
105
|
-
console.log(chalk.red(` High: ${s.High}`));
|
|
169
|
+
console.log(chalk.red(` Critical: ${s.Critical}\n High: ${s.High}`));
|
|
106
170
|
console.log(chalk.yellow(` Medium: ${s.Medium}`));
|
|
107
171
|
console.log(chalk.blue(` Low: ${s.Low}`));
|
|
108
172
|
}
|