cloudstructs 0.9.27 → 0.9.28
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/.jsii +3 -3
- package/assets/slack-textract/detect.lambda/index.js +866 -17
- package/lib/codecommit-mirror/index.js +2 -2
- package/lib/dmarc/index.js +1 -1
- package/lib/ecs-service-roller/index.js +2 -2
- package/lib/email-receiver/receiver.js +1 -1
- package/lib/mjml-template/index.js +1 -1
- package/lib/saml-identity-provider/index.js +2 -2
- package/lib/slack-app/manifest.js +1 -1
- package/lib/slack-app/slack-app.js +2 -2
- package/lib/slack-events/index.js +1 -1
- package/lib/slack-textract/index.js +1 -1
- package/lib/ssl-server-test/index.js +1 -1
- package/lib/state-machine-cr-provider/index.js +1 -1
- package/lib/static-website/index.js +1 -1
- package/lib/toolkit-cleaner/index.js +1 -1
- package/lib/url-shortener/index.js +1 -1
- package/node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js +2 -2
- package/node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js +1 -1
- package/node_modules/@babel/runtime/helpers/objectWithoutProperties.js +2 -2
- package/node_modules/@babel/runtime/helpers/objectWithoutPropertiesLoose.js +1 -1
- package/node_modules/@babel/runtime/package.json +1 -1
- package/node_modules/@slack/logger/node_modules/@types/node/README.md +1 -1
- package/node_modules/@slack/logger/node_modules/@types/node/assert.d.ts +55 -0
- package/node_modules/@slack/logger/node_modules/@types/node/buffer.buffer.d.ts +2 -1
- package/node_modules/@slack/logger/node_modules/@types/node/dgram.d.ts +10 -7
- package/node_modules/@slack/logger/node_modules/@types/node/fs/promises.d.ts +2 -2
- package/node_modules/@slack/logger/node_modules/@types/node/fs.d.ts +45 -98
- package/node_modules/@slack/logger/node_modules/@types/node/globals.d.ts +0 -57
- package/node_modules/@slack/logger/node_modules/@types/node/http.d.ts +1 -0
- package/node_modules/@slack/logger/node_modules/@types/node/module.d.ts +527 -234
- package/node_modules/@slack/logger/node_modules/@types/node/net.d.ts +30 -5
- package/node_modules/@slack/logger/node_modules/@types/node/package.json +2 -2
- package/node_modules/@slack/logger/node_modules/@types/node/perf_hooks.d.ts +5 -0
- package/node_modules/@slack/logger/node_modules/@types/node/process.d.ts +54 -4
- package/node_modules/@slack/logger/node_modules/@types/node/sea.d.ts +1 -1
- package/node_modules/@slack/logger/node_modules/@types/node/sqlite.d.ts +207 -2
- package/node_modules/@slack/logger/node_modules/@types/node/stream.d.ts +6 -1
- package/node_modules/@slack/logger/node_modules/@types/node/test.d.ts +40 -138
- package/node_modules/@slack/logger/node_modules/@types/node/util.d.ts +85 -17
- package/node_modules/@slack/logger/node_modules/@types/node/vm.d.ts +1 -1
- package/node_modules/@slack/web-api/node_modules/@types/node/README.md +1 -1
- package/node_modules/@slack/web-api/node_modules/@types/node/assert.d.ts +55 -0
- package/node_modules/@slack/web-api/node_modules/@types/node/buffer.buffer.d.ts +2 -1
- package/node_modules/@slack/web-api/node_modules/@types/node/dgram.d.ts +10 -7
- package/node_modules/@slack/web-api/node_modules/@types/node/fs/promises.d.ts +2 -2
- package/node_modules/@slack/web-api/node_modules/@types/node/fs.d.ts +45 -98
- package/node_modules/@slack/web-api/node_modules/@types/node/globals.d.ts +0 -57
- package/node_modules/@slack/web-api/node_modules/@types/node/http.d.ts +1 -0
- package/node_modules/@slack/web-api/node_modules/@types/node/module.d.ts +527 -234
- package/node_modules/@slack/web-api/node_modules/@types/node/net.d.ts +30 -5
- package/node_modules/@slack/web-api/node_modules/@types/node/package.json +2 -2
- package/node_modules/@slack/web-api/node_modules/@types/node/perf_hooks.d.ts +5 -0
- package/node_modules/@slack/web-api/node_modules/@types/node/process.d.ts +54 -4
- package/node_modules/@slack/web-api/node_modules/@types/node/sea.d.ts +1 -1
- package/node_modules/@slack/web-api/node_modules/@types/node/sqlite.d.ts +207 -2
- package/node_modules/@slack/web-api/node_modules/@types/node/stream.d.ts +6 -1
- package/node_modules/@slack/web-api/node_modules/@types/node/test.d.ts +40 -138
- package/node_modules/@slack/web-api/node_modules/@types/node/util.d.ts +85 -17
- package/node_modules/@slack/web-api/node_modules/@types/node/vm.d.ts +1 -1
- package/node_modules/@types/cacheable-request/node_modules/@types/node/README.md +1 -1
- package/node_modules/@types/cacheable-request/node_modules/@types/node/assert.d.ts +55 -0
- package/node_modules/@types/cacheable-request/node_modules/@types/node/buffer.buffer.d.ts +2 -1
- package/node_modules/@types/cacheable-request/node_modules/@types/node/dgram.d.ts +10 -7
- package/node_modules/@types/cacheable-request/node_modules/@types/node/fs/promises.d.ts +2 -2
- package/node_modules/@types/cacheable-request/node_modules/@types/node/fs.d.ts +45 -98
- package/node_modules/@types/cacheable-request/node_modules/@types/node/globals.d.ts +0 -57
- package/node_modules/@types/cacheable-request/node_modules/@types/node/http.d.ts +1 -0
- package/node_modules/@types/cacheable-request/node_modules/@types/node/module.d.ts +527 -234
- package/node_modules/@types/cacheable-request/node_modules/@types/node/net.d.ts +30 -5
- package/node_modules/@types/cacheable-request/node_modules/@types/node/package.json +2 -2
- package/node_modules/@types/cacheable-request/node_modules/@types/node/perf_hooks.d.ts +5 -0
- package/node_modules/@types/cacheable-request/node_modules/@types/node/process.d.ts +54 -4
- package/node_modules/@types/cacheable-request/node_modules/@types/node/sea.d.ts +1 -1
- package/node_modules/@types/cacheable-request/node_modules/@types/node/sqlite.d.ts +207 -2
- package/node_modules/@types/cacheable-request/node_modules/@types/node/stream.d.ts +6 -1
- package/node_modules/@types/cacheable-request/node_modules/@types/node/test.d.ts +40 -138
- package/node_modules/@types/cacheable-request/node_modules/@types/node/util.d.ts +85 -17
- package/node_modules/@types/cacheable-request/node_modules/@types/node/vm.d.ts +1 -1
- package/node_modules/@types/keyv/node_modules/@types/node/README.md +1 -1
- package/node_modules/@types/keyv/node_modules/@types/node/assert.d.ts +55 -0
- package/node_modules/@types/keyv/node_modules/@types/node/buffer.buffer.d.ts +2 -1
- package/node_modules/@types/keyv/node_modules/@types/node/dgram.d.ts +10 -7
- package/node_modules/@types/keyv/node_modules/@types/node/fs/promises.d.ts +2 -2
- package/node_modules/@types/keyv/node_modules/@types/node/fs.d.ts +45 -98
- package/node_modules/@types/keyv/node_modules/@types/node/globals.d.ts +0 -57
- package/node_modules/@types/keyv/node_modules/@types/node/http.d.ts +1 -0
- package/node_modules/@types/keyv/node_modules/@types/node/module.d.ts +527 -234
- package/node_modules/@types/keyv/node_modules/@types/node/net.d.ts +30 -5
- package/node_modules/@types/keyv/node_modules/@types/node/package.json +2 -2
- package/node_modules/@types/keyv/node_modules/@types/node/perf_hooks.d.ts +5 -0
- package/node_modules/@types/keyv/node_modules/@types/node/process.d.ts +54 -4
- package/node_modules/@types/keyv/node_modules/@types/node/sea.d.ts +1 -1
- package/node_modules/@types/keyv/node_modules/@types/node/sqlite.d.ts +207 -2
- package/node_modules/@types/keyv/node_modules/@types/node/stream.d.ts +6 -1
- package/node_modules/@types/keyv/node_modules/@types/node/test.d.ts +40 -138
- package/node_modules/@types/keyv/node_modules/@types/node/util.d.ts +85 -17
- package/node_modules/@types/keyv/node_modules/@types/node/vm.d.ts +1 -1
- package/node_modules/@types/responselike/node_modules/@types/node/README.md +1 -1
- package/node_modules/@types/responselike/node_modules/@types/node/assert.d.ts +55 -0
- package/node_modules/@types/responselike/node_modules/@types/node/buffer.buffer.d.ts +2 -1
- package/node_modules/@types/responselike/node_modules/@types/node/dgram.d.ts +10 -7
- package/node_modules/@types/responselike/node_modules/@types/node/fs/promises.d.ts +2 -2
- package/node_modules/@types/responselike/node_modules/@types/node/fs.d.ts +45 -98
- package/node_modules/@types/responselike/node_modules/@types/node/globals.d.ts +0 -57
- package/node_modules/@types/responselike/node_modules/@types/node/http.d.ts +1 -0
- package/node_modules/@types/responselike/node_modules/@types/node/module.d.ts +527 -234
- package/node_modules/@types/responselike/node_modules/@types/node/net.d.ts +30 -5
- package/node_modules/@types/responselike/node_modules/@types/node/package.json +2 -2
- package/node_modules/@types/responselike/node_modules/@types/node/perf_hooks.d.ts +5 -0
- package/node_modules/@types/responselike/node_modules/@types/node/process.d.ts +54 -4
- package/node_modules/@types/responselike/node_modules/@types/node/sea.d.ts +1 -1
- package/node_modules/@types/responselike/node_modules/@types/node/sqlite.d.ts +207 -2
- package/node_modules/@types/responselike/node_modules/@types/node/stream.d.ts +6 -1
- package/node_modules/@types/responselike/node_modules/@types/node/test.d.ts +40 -138
- package/node_modules/@types/responselike/node_modules/@types/node/util.d.ts +85 -17
- package/node_modules/@types/responselike/node_modules/@types/node/vm.d.ts +1 -1
- package/node_modules/abbrev/package.json +11 -9
- package/node_modules/call-bind-apply-helpers/.eslintrc +17 -0
- package/node_modules/call-bind-apply-helpers/.github/FUNDING.yml +12 -0
- package/node_modules/call-bind-apply-helpers/.nycrc +9 -0
- package/node_modules/call-bind-apply-helpers/CHANGELOG.md +30 -0
- package/node_modules/call-bind-apply-helpers/LICENSE +21 -0
- package/node_modules/call-bind-apply-helpers/README.md +62 -0
- package/node_modules/call-bind-apply-helpers/actualApply.d.ts +1 -0
- package/node_modules/call-bind-apply-helpers/actualApply.js +10 -0
- package/node_modules/call-bind-apply-helpers/applyBind.d.ts +19 -0
- package/node_modules/call-bind-apply-helpers/applyBind.js +10 -0
- package/node_modules/call-bind-apply-helpers/functionApply.d.ts +1 -0
- package/node_modules/call-bind-apply-helpers/functionApply.js +4 -0
- package/node_modules/call-bind-apply-helpers/functionCall.d.ts +1 -0
- package/node_modules/call-bind-apply-helpers/functionCall.js +4 -0
- package/node_modules/call-bind-apply-helpers/index.d.ts +64 -0
- package/node_modules/call-bind-apply-helpers/index.js +15 -0
- package/node_modules/call-bind-apply-helpers/package.json +85 -0
- package/node_modules/call-bind-apply-helpers/reflectApply.d.ts +3 -0
- package/node_modules/call-bind-apply-helpers/reflectApply.js +4 -0
- package/node_modules/call-bind-apply-helpers/test/index.js +63 -0
- package/node_modules/call-bind-apply-helpers/tsconfig.json +9 -0
- package/node_modules/dunder-proto/.eslintrc +5 -0
- package/node_modules/dunder-proto/.github/FUNDING.yml +12 -0
- package/node_modules/dunder-proto/.nycrc +13 -0
- package/node_modules/dunder-proto/CHANGELOG.md +24 -0
- package/node_modules/dunder-proto/LICENSE +21 -0
- package/node_modules/dunder-proto/README.md +54 -0
- package/node_modules/dunder-proto/get.d.ts +5 -0
- package/node_modules/dunder-proto/get.js +30 -0
- package/node_modules/dunder-proto/package.json +76 -0
- package/node_modules/dunder-proto/set.d.ts +5 -0
- package/node_modules/dunder-proto/set.js +35 -0
- package/node_modules/dunder-proto/test/get.js +34 -0
- package/node_modules/dunder-proto/test/index.js +4 -0
- package/node_modules/dunder-proto/test/set.js +50 -0
- package/node_modules/dunder-proto/tsconfig.json +9 -0
- package/node_modules/es-define-property/.eslintrc +13 -0
- package/node_modules/es-define-property/.github/FUNDING.yml +12 -0
- package/node_modules/es-define-property/.nycrc +9 -0
- package/node_modules/es-define-property/CHANGELOG.md +29 -0
- package/node_modules/es-define-property/LICENSE +21 -0
- package/node_modules/es-define-property/README.md +49 -0
- package/node_modules/es-define-property/index.d.ts +3 -0
- package/node_modules/es-define-property/index.js +14 -0
- package/node_modules/es-define-property/package.json +81 -0
- package/node_modules/es-define-property/test/index.js +56 -0
- package/node_modules/es-define-property/tsconfig.json +10 -0
- package/node_modules/es-errors/.eslintrc +5 -0
- package/node_modules/es-errors/.github/FUNDING.yml +12 -0
- package/node_modules/es-errors/CHANGELOG.md +40 -0
- package/node_modules/es-errors/LICENSE +21 -0
- package/node_modules/es-errors/README.md +55 -0
- package/node_modules/es-errors/eval.d.ts +3 -0
- package/node_modules/es-errors/eval.js +4 -0
- package/node_modules/es-errors/index.d.ts +3 -0
- package/node_modules/es-errors/index.js +4 -0
- package/node_modules/es-errors/package.json +80 -0
- package/node_modules/es-errors/range.d.ts +3 -0
- package/node_modules/es-errors/range.js +4 -0
- package/node_modules/es-errors/ref.d.ts +3 -0
- package/node_modules/es-errors/ref.js +4 -0
- package/node_modules/es-errors/syntax.d.ts +3 -0
- package/node_modules/es-errors/syntax.js +4 -0
- package/node_modules/es-errors/test/index.js +19 -0
- package/node_modules/es-errors/tsconfig.json +49 -0
- package/node_modules/es-errors/type.d.ts +3 -0
- package/node_modules/es-errors/type.js +4 -0
- package/node_modules/es-errors/uri.d.ts +3 -0
- package/node_modules/es-errors/uri.js +4 -0
- package/node_modules/es-object-atoms/.eslintrc +16 -0
- package/node_modules/es-object-atoms/.github/FUNDING.yml +12 -0
- package/node_modules/es-object-atoms/CHANGELOG.md +37 -0
- package/node_modules/es-object-atoms/LICENSE +21 -0
- package/node_modules/es-object-atoms/README.md +63 -0
- package/node_modules/es-object-atoms/RequireObjectCoercible.d.ts +3 -0
- package/node_modules/es-object-atoms/RequireObjectCoercible.js +11 -0
- package/node_modules/es-object-atoms/ToObject.d.ts +7 -0
- package/node_modules/es-object-atoms/ToObject.js +10 -0
- package/node_modules/es-object-atoms/index.d.ts +3 -0
- package/node_modules/es-object-atoms/index.js +4 -0
- package/node_modules/es-object-atoms/isObject.d.ts +3 -0
- package/node_modules/es-object-atoms/isObject.js +6 -0
- package/node_modules/es-object-atoms/package.json +80 -0
- package/node_modules/es-object-atoms/test/index.js +38 -0
- package/node_modules/es-object-atoms/tsconfig.json +6 -0
- package/node_modules/es-set-tostringtag/.eslintrc +13 -0
- package/node_modules/es-set-tostringtag/.nycrc +9 -0
- package/node_modules/es-set-tostringtag/CHANGELOG.md +67 -0
- package/node_modules/es-set-tostringtag/LICENSE +21 -0
- package/node_modules/es-set-tostringtag/README.md +53 -0
- package/node_modules/es-set-tostringtag/index.d.ts +10 -0
- package/node_modules/es-set-tostringtag/index.js +35 -0
- package/node_modules/es-set-tostringtag/package.json +78 -0
- package/node_modules/es-set-tostringtag/test/index.js +85 -0
- package/node_modules/es-set-tostringtag/tsconfig.json +9 -0
- package/node_modules/form-data/lib/form_data.js +24 -22
- package/node_modules/form-data/package.json +17 -14
- package/node_modules/function-bind/.eslintrc +21 -0
- package/node_modules/function-bind/.github/FUNDING.yml +12 -0
- package/node_modules/function-bind/.github/SECURITY.md +3 -0
- package/node_modules/function-bind/.nycrc +13 -0
- package/node_modules/function-bind/CHANGELOG.md +136 -0
- package/node_modules/function-bind/LICENSE +20 -0
- package/node_modules/function-bind/README.md +46 -0
- package/node_modules/function-bind/implementation.js +84 -0
- package/node_modules/function-bind/index.js +5 -0
- package/node_modules/function-bind/package.json +87 -0
- package/node_modules/function-bind/test/.eslintrc +9 -0
- package/node_modules/function-bind/test/index.js +252 -0
- package/node_modules/get-intrinsic/.eslintrc +42 -0
- package/node_modules/get-intrinsic/.github/FUNDING.yml +12 -0
- package/node_modules/get-intrinsic/.nycrc +9 -0
- package/node_modules/get-intrinsic/CHANGELOG.md +186 -0
- package/node_modules/get-intrinsic/LICENSE +21 -0
- package/node_modules/get-intrinsic/README.md +71 -0
- package/node_modules/get-intrinsic/index.js +378 -0
- package/node_modules/get-intrinsic/package.json +97 -0
- package/node_modules/get-intrinsic/test/GetIntrinsic.js +274 -0
- package/node_modules/get-proto/.eslintrc +10 -0
- package/node_modules/get-proto/.github/FUNDING.yml +12 -0
- package/node_modules/get-proto/.nycrc +9 -0
- package/node_modules/get-proto/CHANGELOG.md +21 -0
- package/node_modules/get-proto/LICENSE +21 -0
- package/node_modules/get-proto/Object.getPrototypeOf.d.ts +5 -0
- package/node_modules/get-proto/Object.getPrototypeOf.js +6 -0
- package/node_modules/get-proto/README.md +50 -0
- package/node_modules/get-proto/Reflect.getPrototypeOf.d.ts +3 -0
- package/node_modules/get-proto/Reflect.getPrototypeOf.js +4 -0
- package/node_modules/get-proto/index.d.ts +5 -0
- package/node_modules/get-proto/index.js +27 -0
- package/node_modules/get-proto/package.json +81 -0
- package/node_modules/get-proto/test/index.js +68 -0
- package/node_modules/get-proto/tsconfig.json +9 -0
- package/node_modules/gopd/.eslintrc +16 -0
- package/node_modules/gopd/.github/FUNDING.yml +12 -0
- package/node_modules/gopd/CHANGELOG.md +45 -0
- package/node_modules/gopd/LICENSE +21 -0
- package/node_modules/gopd/README.md +40 -0
- package/node_modules/gopd/gOPD.d.ts +1 -0
- package/node_modules/gopd/gOPD.js +4 -0
- package/node_modules/gopd/index.d.ts +5 -0
- package/node_modules/gopd/index.js +15 -0
- package/node_modules/gopd/package.json +77 -0
- package/node_modules/gopd/test/index.js +36 -0
- package/node_modules/gopd/tsconfig.json +9 -0
- package/node_modules/has-symbols/.eslintrc +11 -0
- package/node_modules/has-symbols/.github/FUNDING.yml +12 -0
- package/node_modules/has-symbols/.nycrc +9 -0
- package/node_modules/has-symbols/CHANGELOG.md +91 -0
- package/node_modules/has-symbols/LICENSE +21 -0
- package/node_modules/has-symbols/README.md +46 -0
- package/node_modules/has-symbols/index.d.ts +3 -0
- package/node_modules/has-symbols/index.js +14 -0
- package/node_modules/has-symbols/package.json +111 -0
- package/node_modules/has-symbols/shams.d.ts +3 -0
- package/node_modules/has-symbols/shams.js +45 -0
- package/node_modules/has-symbols/test/index.js +22 -0
- package/node_modules/has-symbols/test/shams/core-js.js +29 -0
- package/node_modules/has-symbols/test/shams/get-own-property-symbols.js +29 -0
- package/node_modules/has-symbols/test/tests.js +58 -0
- package/node_modules/has-symbols/tsconfig.json +10 -0
- package/node_modules/has-tostringtag/.eslintrc +5 -0
- package/node_modules/has-tostringtag/.github/FUNDING.yml +12 -0
- package/node_modules/has-tostringtag/.nycrc +13 -0
- package/node_modules/has-tostringtag/CHANGELOG.md +42 -0
- package/node_modules/has-tostringtag/LICENSE +21 -0
- package/node_modules/has-tostringtag/README.md +46 -0
- package/node_modules/has-tostringtag/index.d.ts +3 -0
- package/node_modules/has-tostringtag/index.js +8 -0
- package/node_modules/has-tostringtag/package.json +108 -0
- package/node_modules/has-tostringtag/shams.d.ts +3 -0
- package/node_modules/has-tostringtag/shams.js +8 -0
- package/node_modules/has-tostringtag/test/index.js +21 -0
- package/node_modules/has-tostringtag/test/shams/core-js.js +31 -0
- package/node_modules/has-tostringtag/test/shams/get-own-property-symbols.js +30 -0
- package/node_modules/has-tostringtag/test/tests.js +15 -0
- package/node_modules/has-tostringtag/tsconfig.json +49 -0
- package/node_modules/hasown/.eslintrc +5 -0
- package/node_modules/hasown/.github/FUNDING.yml +12 -0
- package/node_modules/hasown/.nycrc +13 -0
- package/node_modules/hasown/CHANGELOG.md +40 -0
- package/node_modules/hasown/LICENSE +21 -0
- package/node_modules/hasown/README.md +40 -0
- package/node_modules/hasown/index.d.ts +3 -0
- package/node_modules/hasown/index.js +8 -0
- package/node_modules/hasown/package.json +92 -0
- package/node_modules/hasown/tsconfig.json +6 -0
- package/node_modules/js-beautify/README.md +19 -8
- package/node_modules/js-beautify/js/lib/beautifier.js +35 -18
- package/node_modules/js-beautify/js/lib/beautifier.min.js +1 -1
- package/node_modules/js-beautify/js/lib/beautify-html.js +35 -18
- package/node_modules/js-beautify/js/lib/beautify.js +4 -0
- package/node_modules/js-beautify/js/src/core/templatablepattern.js +4 -0
- package/node_modules/js-beautify/js/src/html/beautifier.js +5 -4
- package/node_modules/js-beautify/js/src/html/tokenizer.js +26 -14
- package/node_modules/js-beautify/package.json +5 -5
- package/node_modules/math-intrinsics/.eslintrc +16 -0
- package/node_modules/math-intrinsics/.github/FUNDING.yml +12 -0
- package/node_modules/math-intrinsics/CHANGELOG.md +24 -0
- package/node_modules/math-intrinsics/LICENSE +21 -0
- package/node_modules/math-intrinsics/README.md +50 -0
- package/node_modules/math-intrinsics/abs.d.ts +1 -0
- package/node_modules/math-intrinsics/abs.js +4 -0
- package/node_modules/math-intrinsics/constants/maxArrayLength.d.ts +3 -0
- package/node_modules/math-intrinsics/constants/maxArrayLength.js +4 -0
- package/node_modules/math-intrinsics/constants/maxSafeInteger.d.ts +3 -0
- package/node_modules/math-intrinsics/constants/maxSafeInteger.js +5 -0
- package/node_modules/math-intrinsics/constants/maxValue.d.ts +3 -0
- package/node_modules/math-intrinsics/constants/maxValue.js +5 -0
- package/node_modules/math-intrinsics/floor.d.ts +1 -0
- package/node_modules/math-intrinsics/floor.js +4 -0
- package/node_modules/math-intrinsics/isFinite.d.ts +3 -0
- package/node_modules/math-intrinsics/isFinite.js +12 -0
- package/node_modules/math-intrinsics/isInteger.d.ts +3 -0
- package/node_modules/math-intrinsics/isInteger.js +16 -0
- package/node_modules/math-intrinsics/isNaN.d.ts +1 -0
- package/node_modules/math-intrinsics/isNaN.js +6 -0
- package/node_modules/math-intrinsics/isNegativeZero.d.ts +3 -0
- package/node_modules/math-intrinsics/isNegativeZero.js +6 -0
- package/node_modules/math-intrinsics/max.d.ts +1 -0
- package/node_modules/math-intrinsics/max.js +4 -0
- package/node_modules/math-intrinsics/min.d.ts +1 -0
- package/node_modules/math-intrinsics/min.js +4 -0
- package/node_modules/math-intrinsics/mod.d.ts +3 -0
- package/node_modules/math-intrinsics/mod.js +9 -0
- package/node_modules/math-intrinsics/package.json +86 -0
- package/node_modules/math-intrinsics/pow.d.ts +1 -0
- package/node_modules/math-intrinsics/pow.js +4 -0
- package/node_modules/math-intrinsics/round.d.ts +1 -0
- package/node_modules/math-intrinsics/round.js +4 -0
- package/node_modules/math-intrinsics/sign.d.ts +3 -0
- package/node_modules/math-intrinsics/sign.js +11 -0
- package/node_modules/math-intrinsics/test/index.js +192 -0
- package/node_modules/math-intrinsics/tsconfig.json +3 -0
- package/node_modules/nopt/README.md +9 -8
- package/node_modules/nopt/lib/nopt-lib.js +40 -5
- package/node_modules/nopt/lib/nopt.js +4 -0
- package/node_modules/nopt/package.json +10 -9
- package/node_modules/semver/README.md +14 -4
- package/node_modules/semver/bin/semver.js +2 -1
- package/node_modules/semver/classes/semver.js +22 -6
- package/node_modules/semver/functions/diff.js +5 -12
- package/node_modules/semver/internal/re.js +2 -0
- package/node_modules/semver/package.json +8 -7
- package/package.json +17 -17
- /package/node_modules/{path-scurry/node_modules/lru-cache → lru-cache}/LICENSE +0 -0
- /package/node_modules/{path-scurry/node_modules/lru-cache → lru-cache}/README.md +0 -0
- /package/node_modules/{path-scurry/node_modules/lru-cache → lru-cache}/dist/commonjs/index.d.ts +0 -0
- /package/node_modules/{path-scurry/node_modules/lru-cache → lru-cache}/dist/commonjs/index.d.ts.map +0 -0
- /package/node_modules/{path-scurry/node_modules/lru-cache → lru-cache}/dist/commonjs/index.js +0 -0
- /package/node_modules/{path-scurry/node_modules/lru-cache → lru-cache}/dist/commonjs/index.js.map +0 -0
- /package/node_modules/{path-scurry/node_modules/lru-cache → lru-cache}/dist/commonjs/index.min.js +0 -0
- /package/node_modules/{path-scurry/node_modules/lru-cache → lru-cache}/dist/commonjs/index.min.js.map +0 -0
- /package/node_modules/{path-scurry/node_modules/lru-cache → lru-cache}/dist/commonjs/package.json +0 -0
- /package/node_modules/{path-scurry/node_modules/lru-cache → lru-cache}/dist/esm/index.d.ts +0 -0
- /package/node_modules/{path-scurry/node_modules/lru-cache → lru-cache}/dist/esm/index.d.ts.map +0 -0
- /package/node_modules/{path-scurry/node_modules/lru-cache → lru-cache}/dist/esm/index.js +0 -0
- /package/node_modules/{path-scurry/node_modules/lru-cache → lru-cache}/dist/esm/index.js.map +0 -0
- /package/node_modules/{path-scurry/node_modules/lru-cache → lru-cache}/dist/esm/index.min.js +0 -0
- /package/node_modules/{path-scurry/node_modules/lru-cache → lru-cache}/dist/esm/index.min.js.map +0 -0
- /package/node_modules/{path-scurry/node_modules/lru-cache → lru-cache}/dist/esm/package.json +0 -0
- /package/node_modules/{path-scurry/node_modules/lru-cache → lru-cache}/package.json +0 -0
|
@@ -564,6 +564,23 @@ declare module "node:test" {
|
|
|
564
564
|
/**
|
|
565
565
|
* An object containing assertion methods bound to the test context.
|
|
566
566
|
* The top-level functions from the `node:assert` module are exposed here for the purpose of creating test plans.
|
|
567
|
+
*
|
|
568
|
+
* **Note:** Some of the functions from `node:assert` contain type assertions. If these are called via the
|
|
569
|
+
* TestContext `assert` object, then the context parameter in the test's function signature **must be explicitly typed**
|
|
570
|
+
* (ie. the parameter must have a type annotation), otherwise an error will be raised by the TypeScript compiler:
|
|
571
|
+
* ```ts
|
|
572
|
+
* import { test, type TestContext } from 'node:test';
|
|
573
|
+
*
|
|
574
|
+
* // The test function's context parameter must have a type annotation.
|
|
575
|
+
* test('example', (t: TestContext) => {
|
|
576
|
+
* t.assert.deepStrictEqual(actual, expected);
|
|
577
|
+
* });
|
|
578
|
+
*
|
|
579
|
+
* // Omitting the type annotation will result in a compilation error.
|
|
580
|
+
* test('example', t => {
|
|
581
|
+
* t.assert.deepStrictEqual(actual, expected); // Error: 't' needs an explicit type annotation.
|
|
582
|
+
* });
|
|
583
|
+
* ```
|
|
567
584
|
* @since v22.2.0, v20.15.0
|
|
568
585
|
*/
|
|
569
586
|
readonly assert: TestContextAssert;
|
|
@@ -741,139 +758,29 @@ declare module "node:test" {
|
|
|
741
758
|
*/
|
|
742
759
|
readonly mock: MockTracker;
|
|
743
760
|
}
|
|
744
|
-
interface TestContextAssert
|
|
745
|
-
|
|
746
|
-
|
|
747
|
-
|
|
748
|
-
|
|
749
|
-
|
|
750
|
-
|
|
751
|
-
|
|
752
|
-
|
|
753
|
-
|
|
754
|
-
|
|
755
|
-
|
|
756
|
-
|
|
757
|
-
|
|
758
|
-
|
|
759
|
-
|
|
760
|
-
|
|
761
|
-
|
|
762
|
-
|
|
763
|
-
|
|
764
|
-
|
|
765
|
-
|
|
766
|
-
|
|
767
|
-
*/
|
|
768
|
-
deepStrictEqual: typeof import("node:assert").deepStrictEqual;
|
|
769
|
-
/**
|
|
770
|
-
* Identical to the `doesNotMatch` function from the `node:assert` module, but bound to the test context.
|
|
771
|
-
*/
|
|
772
|
-
doesNotMatch: typeof import("node:assert").doesNotMatch;
|
|
773
|
-
/**
|
|
774
|
-
* Identical to the `doesNotReject` function from the `node:assert` module, but bound to the test context.
|
|
775
|
-
*/
|
|
776
|
-
doesNotReject: typeof import("node:assert").doesNotReject;
|
|
777
|
-
/**
|
|
778
|
-
* Identical to the `doesNotThrow` function from the `node:assert` module, but bound to the test context.
|
|
779
|
-
*/
|
|
780
|
-
doesNotThrow: typeof import("node:assert").doesNotThrow;
|
|
781
|
-
/**
|
|
782
|
-
* Identical to the `equal` function from the `node:assert` module, but bound to the test context.
|
|
783
|
-
*/
|
|
784
|
-
equal: typeof import("node:assert").equal;
|
|
785
|
-
/**
|
|
786
|
-
* Identical to the `fail` function from the `node:assert` module, but bound to the test context.
|
|
787
|
-
*/
|
|
788
|
-
fail: typeof import("node:assert").fail;
|
|
789
|
-
/**
|
|
790
|
-
* Identical to the `ifError` function from the `node:assert` module, but bound to the test context.
|
|
791
|
-
*
|
|
792
|
-
* **Note:** as this method returns a type assertion, the context parameter in the callback signature must have a
|
|
793
|
-
* type annotation, otherwise an error will be raised by the TypeScript compiler:
|
|
794
|
-
* ```ts
|
|
795
|
-
* import { test, type TestContext } from 'node:test';
|
|
796
|
-
*
|
|
797
|
-
* // The test function's context parameter must have a type annotation.
|
|
798
|
-
* test('example', (t: TestContext) => {
|
|
799
|
-
* t.assert.ifError(err);
|
|
800
|
-
* });
|
|
801
|
-
*
|
|
802
|
-
* // Omitting the type annotation will result in a compilation error.
|
|
803
|
-
* test('example', t => {
|
|
804
|
-
* t.assert.ifError(err); // Error: 't' needs an explicit type annotation.
|
|
805
|
-
* });
|
|
806
|
-
* ```
|
|
807
|
-
*/
|
|
808
|
-
ifError: typeof import("node:assert").ifError;
|
|
809
|
-
/**
|
|
810
|
-
* Identical to the `match` function from the `node:assert` module, but bound to the test context.
|
|
811
|
-
*/
|
|
812
|
-
match: typeof import("node:assert").match;
|
|
813
|
-
/**
|
|
814
|
-
* Identical to the `notDeepEqual` function from the `node:assert` module, but bound to the test context.
|
|
815
|
-
*/
|
|
816
|
-
notDeepEqual: typeof import("node:assert").notDeepEqual;
|
|
817
|
-
/**
|
|
818
|
-
* Identical to the `notDeepStrictEqual` function from the `node:assert` module, but bound to the test context.
|
|
819
|
-
*/
|
|
820
|
-
notDeepStrictEqual: typeof import("node:assert").notDeepStrictEqual;
|
|
821
|
-
/**
|
|
822
|
-
* Identical to the `notEqual` function from the `node:assert` module, but bound to the test context.
|
|
823
|
-
*/
|
|
824
|
-
notEqual: typeof import("node:assert").notEqual;
|
|
825
|
-
/**
|
|
826
|
-
* Identical to the `notStrictEqual` function from the `node:assert` module, but bound to the test context.
|
|
827
|
-
*/
|
|
828
|
-
notStrictEqual: typeof import("node:assert").notStrictEqual;
|
|
829
|
-
/**
|
|
830
|
-
* Identical to the `ok` function from the `node:assert` module, but bound to the test context.
|
|
831
|
-
*
|
|
832
|
-
* **Note:** as this method returns a type assertion, the context parameter in the callback signature must have a
|
|
833
|
-
* type annotation, otherwise an error will be raised by the TypeScript compiler:
|
|
834
|
-
* ```ts
|
|
835
|
-
* import { test, type TestContext } from 'node:test';
|
|
836
|
-
*
|
|
837
|
-
* // The test function's context parameter must have a type annotation.
|
|
838
|
-
* test('example', (t: TestContext) => {
|
|
839
|
-
* t.assert.ok(condition);
|
|
840
|
-
* });
|
|
841
|
-
*
|
|
842
|
-
* // Omitting the type annotation will result in a compilation error.
|
|
843
|
-
* test('example', t => {
|
|
844
|
-
* t.assert.ok(condition)); // Error: 't' needs an explicit type annotation.
|
|
845
|
-
* });
|
|
846
|
-
* ```
|
|
847
|
-
*/
|
|
848
|
-
ok: typeof import("node:assert").ok;
|
|
849
|
-
/**
|
|
850
|
-
* Identical to the `rejects` function from the `node:assert` module, but bound to the test context.
|
|
851
|
-
*/
|
|
852
|
-
rejects: typeof import("node:assert").rejects;
|
|
853
|
-
/**
|
|
854
|
-
* Identical to the `strictEqual` function from the `node:assert` module, but bound to the test context.
|
|
855
|
-
*
|
|
856
|
-
* **Note:** as this method returns a type assertion, the context parameter in the callback signature must have a
|
|
857
|
-
* type annotation, otherwise an error will be raised by the TypeScript compiler:
|
|
858
|
-
* ```ts
|
|
859
|
-
* import { test, type TestContext } from 'node:test';
|
|
860
|
-
*
|
|
861
|
-
* // The test function's context parameter must have a type annotation.
|
|
862
|
-
* test('example', (t: TestContext) => {
|
|
863
|
-
* t.assert.strictEqual(actual, expected);
|
|
864
|
-
* });
|
|
865
|
-
*
|
|
866
|
-
* // Omitting the type annotation will result in a compilation error.
|
|
867
|
-
* test('example', t => {
|
|
868
|
-
* t.assert.strictEqual(actual, expected); // Error: 't' needs an explicit type annotation.
|
|
869
|
-
* });
|
|
870
|
-
* ```
|
|
871
|
-
*/
|
|
872
|
-
strictEqual: typeof import("node:assert").strictEqual;
|
|
873
|
-
/**
|
|
874
|
-
* Identical to the `throws` function from the `node:assert` module, but bound to the test context.
|
|
875
|
-
*/
|
|
876
|
-
throws: typeof import("node:assert").throws;
|
|
761
|
+
interface TestContextAssert extends
|
|
762
|
+
Pick<
|
|
763
|
+
typeof import("assert"),
|
|
764
|
+
| "deepEqual"
|
|
765
|
+
| "deepStrictEqual"
|
|
766
|
+
| "doesNotMatch"
|
|
767
|
+
| "doesNotReject"
|
|
768
|
+
| "doesNotThrow"
|
|
769
|
+
| "equal"
|
|
770
|
+
| "fail"
|
|
771
|
+
| "ifError"
|
|
772
|
+
| "match"
|
|
773
|
+
| "notDeepEqual"
|
|
774
|
+
| "notDeepStrictEqual"
|
|
775
|
+
| "notEqual"
|
|
776
|
+
| "notStrictEqual"
|
|
777
|
+
| "ok"
|
|
778
|
+
| "partialDeepStrictEqual"
|
|
779
|
+
| "rejects"
|
|
780
|
+
| "strictEqual"
|
|
781
|
+
| "throws"
|
|
782
|
+
>
|
|
783
|
+
{
|
|
877
784
|
/**
|
|
878
785
|
* This function implements assertions for snapshot testing.
|
|
879
786
|
* ```js
|
|
@@ -887,10 +794,7 @@ declare module "node:test" {
|
|
|
887
794
|
* });
|
|
888
795
|
* });
|
|
889
796
|
* ```
|
|
890
|
-
*
|
|
891
|
-
* Only available through the [--experimental-test-snapshots](https://nodejs.org/api/cli.html#--experimental-test-snapshots) flag.
|
|
892
797
|
* @since v22.3.0
|
|
893
|
-
* @experimental
|
|
894
798
|
*/
|
|
895
799
|
snapshot(value: any, options?: AssertSnapshotOptions): void;
|
|
896
800
|
}
|
|
@@ -1691,9 +1595,7 @@ declare module "node:test" {
|
|
|
1691
1595
|
[Symbol.dispose](): void;
|
|
1692
1596
|
}
|
|
1693
1597
|
/**
|
|
1694
|
-
* Only available through the [--experimental-test-snapshots](https://nodejs.org/api/cli.html#--experimental-test-snapshots) flag.
|
|
1695
1598
|
* @since v22.3.0
|
|
1696
|
-
* @experimental
|
|
1697
1599
|
*/
|
|
1698
1600
|
namespace snapshot {
|
|
1699
1601
|
/**
|
|
@@ -108,14 +108,14 @@ declare module "util" {
|
|
|
108
108
|
export interface InspectOptionsStylized extends InspectOptions {
|
|
109
109
|
stylize(text: string, styleType: Style): string;
|
|
110
110
|
}
|
|
111
|
-
export interface
|
|
111
|
+
export interface CallSiteObject {
|
|
112
112
|
/**
|
|
113
|
-
* Returns the name of the function associated with this
|
|
113
|
+
* Returns the name of the function associated with this call site.
|
|
114
114
|
*/
|
|
115
115
|
functionName: string;
|
|
116
116
|
/**
|
|
117
117
|
* Returns the name of the resource that contains the script for the
|
|
118
|
-
* function for this
|
|
118
|
+
* function for this call site.
|
|
119
119
|
*/
|
|
120
120
|
scriptName: string;
|
|
121
121
|
/**
|
|
@@ -185,15 +185,22 @@ declare module "util" {
|
|
|
185
185
|
* @since v10.0.0
|
|
186
186
|
*/
|
|
187
187
|
export function formatWithOptions(inspectOptions: InspectOptions, format?: any, ...param: any[]): string;
|
|
188
|
+
interface GetCallSitesOptions {
|
|
189
|
+
/**
|
|
190
|
+
* Reconstruct the original location in the stacktrace from the source-map.
|
|
191
|
+
* Enabled by default with the flag `--enable-source-maps`.
|
|
192
|
+
*/
|
|
193
|
+
sourceMap?: boolean | undefined;
|
|
194
|
+
}
|
|
188
195
|
/**
|
|
189
|
-
* Returns an array of
|
|
196
|
+
* Returns an array of call site objects containing the stack of
|
|
190
197
|
* the caller function.
|
|
191
198
|
*
|
|
192
199
|
* ```js
|
|
193
200
|
* const util = require('node:util');
|
|
194
201
|
*
|
|
195
202
|
* function exampleFunction() {
|
|
196
|
-
* const callSites = util.
|
|
203
|
+
* const callSites = util.getCallSites();
|
|
197
204
|
*
|
|
198
205
|
* console.log('Call Sites:');
|
|
199
206
|
* callSites.forEach((callSite, index) => {
|
|
@@ -225,12 +232,40 @@ declare module "util" {
|
|
|
225
232
|
*
|
|
226
233
|
* anotherFunction();
|
|
227
234
|
* ```
|
|
228
|
-
*
|
|
235
|
+
*
|
|
236
|
+
* It is possible to reconstruct the original locations by setting the option `sourceMap` to `true`.
|
|
237
|
+
* If the source map is not available, the original location will be the same as the current location.
|
|
238
|
+
* When the `--enable-source-maps` flag is enabled, for example when using `--experimental-transform-types`,
|
|
239
|
+
* `sourceMap` will be true by default.
|
|
240
|
+
*
|
|
241
|
+
* ```ts
|
|
242
|
+
* import util from 'node:util';
|
|
243
|
+
*
|
|
244
|
+
* interface Foo {
|
|
245
|
+
* foo: string;
|
|
246
|
+
* }
|
|
247
|
+
*
|
|
248
|
+
* const callSites = util.getCallSites({ sourceMap: true });
|
|
249
|
+
*
|
|
250
|
+
* // With sourceMap:
|
|
251
|
+
* // Function Name: ''
|
|
252
|
+
* // Script Name: example.js
|
|
253
|
+
* // Line Number: 7
|
|
254
|
+
* // Column Number: 26
|
|
255
|
+
*
|
|
256
|
+
* // Without sourceMap:
|
|
257
|
+
* // Function Name: ''
|
|
258
|
+
* // Script Name: example.js
|
|
259
|
+
* // Line Number: 2
|
|
260
|
+
* // Column Number: 26
|
|
261
|
+
* ```
|
|
262
|
+
* @param frameCount Number of frames to capture as call site objects.
|
|
229
263
|
* **Default:** `10`. Allowable range is between 1 and 200.
|
|
230
|
-
* @return An array of
|
|
264
|
+
* @return An array of call site objects
|
|
231
265
|
* @since v22.9.0
|
|
232
266
|
*/
|
|
233
|
-
export function
|
|
267
|
+
export function getCallSites(frameCount?: number, options?: GetCallSitesOptions): CallSiteObject[];
|
|
268
|
+
export function getCallSites(options: GetCallSitesOptions): CallSiteObject[];
|
|
234
269
|
/**
|
|
235
270
|
* Returns the string name for a numeric error code that comes from a Node.js API.
|
|
236
271
|
* The mapping between error codes and error names is platform-dependent.
|
|
@@ -260,6 +295,20 @@ declare module "util" {
|
|
|
260
295
|
* @since v16.0.0, v14.17.0
|
|
261
296
|
*/
|
|
262
297
|
export function getSystemErrorMap(): Map<number, [string, string]>;
|
|
298
|
+
/**
|
|
299
|
+
* Returns the string message for a numeric error code that comes from a Node.js
|
|
300
|
+
* API.
|
|
301
|
+
* The mapping between error codes and string messages is platform-dependent.
|
|
302
|
+
*
|
|
303
|
+
* ```js
|
|
304
|
+
* fs.access('file/that/does/not/exist', (err) => {
|
|
305
|
+
* const name = util.getSystemErrorMessage(err.errno);
|
|
306
|
+
* console.error(name); // no such file or directory
|
|
307
|
+
* });
|
|
308
|
+
* ```
|
|
309
|
+
* @since v22.12.0
|
|
310
|
+
*/
|
|
311
|
+
export function getSystemErrorMessage(err: number): string;
|
|
263
312
|
/**
|
|
264
313
|
* The `util.log()` method prints the given `string` to `stdout` with an included
|
|
265
314
|
* timestamp.
|
|
@@ -303,27 +352,36 @@ declare module "util" {
|
|
|
303
352
|
*/
|
|
304
353
|
export function transferableAbortSignal(signal: AbortSignal): AbortSignal;
|
|
305
354
|
/**
|
|
306
|
-
* Listens to abort event on the provided `signal` and
|
|
307
|
-
*
|
|
308
|
-
*
|
|
309
|
-
*
|
|
355
|
+
* Listens to abort event on the provided `signal` and returns a promise that resolves when the `signal` is aborted.
|
|
356
|
+
* If `resource` is provided, it weakly references the operation's associated object,
|
|
357
|
+
* so if `resource` is garbage collected before the `signal` aborts,
|
|
358
|
+
* then returned promise shall remain pending.
|
|
359
|
+
* This prevents memory leaks in long-running or non-cancelable operations.
|
|
310
360
|
*
|
|
311
361
|
* ```js
|
|
312
362
|
* import { aborted } from 'node:util';
|
|
313
363
|
*
|
|
364
|
+
* // Obtain an object with an abortable signal, like a custom resource or operation.
|
|
314
365
|
* const dependent = obtainSomethingAbortable();
|
|
315
366
|
*
|
|
367
|
+
* // Pass `dependent` as the resource, indicating the promise should only resolve
|
|
368
|
+
* // if `dependent` is still in memory when the signal is aborted.
|
|
316
369
|
* aborted(dependent.signal, dependent).then(() => {
|
|
317
|
-
* //
|
|
370
|
+
* // This code runs when `dependent` is aborted.
|
|
371
|
+
* console.log('Dependent resource was aborted.');
|
|
318
372
|
* });
|
|
319
373
|
*
|
|
374
|
+
* // Simulate an event that triggers the abort.
|
|
320
375
|
* dependent.on('event', () => {
|
|
321
|
-
* dependent.abort();
|
|
376
|
+
* dependent.abort(); // This will cause the `aborted` promise to resolve.
|
|
322
377
|
* });
|
|
323
378
|
* ```
|
|
324
379
|
* @since v19.7.0
|
|
325
380
|
* @experimental
|
|
326
|
-
* @param resource Any non-null
|
|
381
|
+
* @param resource Any non-null object tied to the abortable operation and held weakly.
|
|
382
|
+
* If `resource` is garbage collected before the `signal` aborts, the promise remains pending,
|
|
383
|
+
* allowing Node.js to stop tracking it.
|
|
384
|
+
* This helps prevent memory leaks in long-running or non-cancelable operations.
|
|
327
385
|
*/
|
|
328
386
|
export function aborted(signal: AbortSignal, resource: any): Promise<void>;
|
|
329
387
|
/**
|
|
@@ -1307,8 +1365,6 @@ declare module "util" {
|
|
|
1307
1365
|
| "strikethrough"
|
|
1308
1366
|
| "underline";
|
|
1309
1367
|
/**
|
|
1310
|
-
* Stability: 1.1 - Active development
|
|
1311
|
-
*
|
|
1312
1368
|
* This function returns a formatted text considering the `format` passed.
|
|
1313
1369
|
*
|
|
1314
1370
|
* ```js
|
|
@@ -1917,6 +1973,18 @@ declare module "util/types" {
|
|
|
1917
1973
|
* @since v10.0.0
|
|
1918
1974
|
*/
|
|
1919
1975
|
function isBigInt64Array(value: unknown): value is BigInt64Array;
|
|
1976
|
+
/**
|
|
1977
|
+
* Returns `true` if the value is a BigInt object, e.g. created
|
|
1978
|
+
* by `Object(BigInt(123))`.
|
|
1979
|
+
*
|
|
1980
|
+
* ```js
|
|
1981
|
+
* util.types.isBigIntObject(Object(BigInt(123))); // Returns true
|
|
1982
|
+
* util.types.isBigIntObject(BigInt(123)); // Returns false
|
|
1983
|
+
* util.types.isBigIntObject(123); // Returns false
|
|
1984
|
+
* ```
|
|
1985
|
+
* @since v10.4.0
|
|
1986
|
+
*/
|
|
1987
|
+
function isBigIntObject(object: unknown): object is BigInt;
|
|
1920
1988
|
/**
|
|
1921
1989
|
* Returns `true` if the value is a `BigUint64Array` instance.
|
|
1922
1990
|
*
|
|
@@ -69,7 +69,7 @@ declare module "vm" {
|
|
|
69
69
|
* [Support of dynamic `import()` in compilation APIs](https://nodejs.org/docs/latest-v22.x/api/vm.html#support-of-dynamic-import-in-compilation-apis).
|
|
70
70
|
*/
|
|
71
71
|
importModuleDynamically?:
|
|
72
|
-
| ((specifier: string, script: Script, importAttributes: ImportAttributes) => Module)
|
|
72
|
+
| ((specifier: string, script: Script, importAttributes: ImportAttributes) => Module | Promise<Module>)
|
|
73
73
|
| typeof constants.USE_MAIN_CONTEXT_DEFAULT_LOADER
|
|
74
74
|
| undefined;
|
|
75
75
|
}
|
|
@@ -1,26 +1,27 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "abbrev",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "3.0.0",
|
|
4
4
|
"description": "Like ruby's abbrev module, but in js",
|
|
5
5
|
"author": "GitHub Inc.",
|
|
6
6
|
"main": "lib/index.js",
|
|
7
7
|
"scripts": {
|
|
8
8
|
"test": "tap",
|
|
9
|
-
"lint": "eslint
|
|
9
|
+
"lint": "npm run eslint",
|
|
10
10
|
"postlint": "template-oss-check",
|
|
11
11
|
"template-oss-apply": "template-oss-apply --force",
|
|
12
|
-
"lintfix": "npm run
|
|
12
|
+
"lintfix": "npm run eslint -- --fix",
|
|
13
13
|
"snap": "tap",
|
|
14
|
-
"posttest": "npm run lint"
|
|
14
|
+
"posttest": "npm run lint",
|
|
15
|
+
"eslint": "eslint \"**/*.{js,cjs,ts,mjs,jsx,tsx}\""
|
|
15
16
|
},
|
|
16
17
|
"repository": {
|
|
17
18
|
"type": "git",
|
|
18
|
-
"url": "https://github.com/npm/abbrev-js.git"
|
|
19
|
+
"url": "git+https://github.com/npm/abbrev-js.git"
|
|
19
20
|
},
|
|
20
21
|
"license": "ISC",
|
|
21
22
|
"devDependencies": {
|
|
22
|
-
"@npmcli/eslint-config": "^
|
|
23
|
-
"@npmcli/template-oss": "4.
|
|
23
|
+
"@npmcli/eslint-config": "^5.0.0",
|
|
24
|
+
"@npmcli/template-oss": "4.23.3",
|
|
24
25
|
"tap": "^16.3.0"
|
|
25
26
|
},
|
|
26
27
|
"tap": {
|
|
@@ -34,10 +35,11 @@
|
|
|
34
35
|
"lib/"
|
|
35
36
|
],
|
|
36
37
|
"engines": {
|
|
37
|
-
"node": "^
|
|
38
|
+
"node": "^18.17.0 || >=20.5.0"
|
|
38
39
|
},
|
|
39
40
|
"templateOSS": {
|
|
40
41
|
"//@npmcli/template-oss": "This file is partially managed by @npmcli/template-oss. Edits may be overwritten.",
|
|
41
|
-
"version": "4.
|
|
42
|
+
"version": "4.23.3",
|
|
43
|
+
"publish": true
|
|
42
44
|
}
|
|
43
45
|
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
# These are supported funding model platforms
|
|
2
|
+
|
|
3
|
+
github: [ljharb]
|
|
4
|
+
patreon: # Replace with a single Patreon username
|
|
5
|
+
open_collective: # Replace with a single Open Collective username
|
|
6
|
+
ko_fi: # Replace with a single Ko-fi username
|
|
7
|
+
tidelift: npm/call-bind-apply-helpers
|
|
8
|
+
community_bridge: # Replace with a single Community Bridge project-name e.g., cloud-foundry
|
|
9
|
+
liberapay: # Replace with a single Liberapay username
|
|
10
|
+
issuehunt: # Replace with a single IssueHunt username
|
|
11
|
+
otechie: # Replace with a single Otechie username
|
|
12
|
+
custom: # Replace with up to 4 custom sponsorship URLs e.g., ['link1', 'link2']
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
# Changelog
|
|
2
|
+
|
|
3
|
+
All notable changes to this project will be documented in this file.
|
|
4
|
+
|
|
5
|
+
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/)
|
|
6
|
+
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
|
7
|
+
|
|
8
|
+
## [v1.0.2](https://github.com/ljharb/call-bind-apply-helpers/compare/v1.0.1...v1.0.2) - 2025-02-12
|
|
9
|
+
|
|
10
|
+
### Commits
|
|
11
|
+
|
|
12
|
+
- [types] improve inferred types [`e6f9586`](https://github.com/ljharb/call-bind-apply-helpers/commit/e6f95860a3c72879cb861a858cdfb8138fbedec1)
|
|
13
|
+
- [Dev Deps] update `@arethetypeswrong/cli`, `@ljharb/tsconfig`, `@types/tape`, `es-value-fixtures`, `for-each`, `has-strict-mode`, `object-inspect` [`e43d540`](https://github.com/ljharb/call-bind-apply-helpers/commit/e43d5409f97543bfbb11f345d47d8ce4e066d8c1)
|
|
14
|
+
|
|
15
|
+
## [v1.0.1](https://github.com/ljharb/call-bind-apply-helpers/compare/v1.0.0...v1.0.1) - 2024-12-08
|
|
16
|
+
|
|
17
|
+
### Commits
|
|
18
|
+
|
|
19
|
+
- [types] `reflectApply`: fix types [`4efc396`](https://github.com/ljharb/call-bind-apply-helpers/commit/4efc3965351a4f02cc55e836fa391d3d11ef2ef8)
|
|
20
|
+
- [Fix] `reflectApply`: oops, Reflect is not a function [`83cc739`](https://github.com/ljharb/call-bind-apply-helpers/commit/83cc7395de6b79b7730bdf092f1436f0b1263c75)
|
|
21
|
+
- [Dev Deps] update `@arethetypeswrong/cli` [`80bd5d3`](https://github.com/ljharb/call-bind-apply-helpers/commit/80bd5d3ae58b4f6b6995ce439dd5a1bcb178a940)
|
|
22
|
+
|
|
23
|
+
## v1.0.0 - 2024-12-05
|
|
24
|
+
|
|
25
|
+
### Commits
|
|
26
|
+
|
|
27
|
+
- Initial implementation, tests, readme [`7879629`](https://github.com/ljharb/call-bind-apply-helpers/commit/78796290f9b7430c9934d6f33d94ae9bc89fce04)
|
|
28
|
+
- Initial commit [`3f1dc16`](https://github.com/ljharb/call-bind-apply-helpers/commit/3f1dc164afc43285631b114a5f9dd9137b2b952f)
|
|
29
|
+
- npm init [`081df04`](https://github.com/ljharb/call-bind-apply-helpers/commit/081df048c312fcee400922026f6e97281200a603)
|
|
30
|
+
- Only apps should have lockfiles [`5b9ca0f`](https://github.com/ljharb/call-bind-apply-helpers/commit/5b9ca0fe8101ebfaf309c549caac4e0a017ed930)
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2024 Jordan Harband
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
# call-bind-apply-helpers <sup>[![Version Badge][npm-version-svg]][package-url]</sup>
|
|
2
|
+
|
|
3
|
+
[![github actions][actions-image]][actions-url]
|
|
4
|
+
[![coverage][codecov-image]][codecov-url]
|
|
5
|
+
[![dependency status][deps-svg]][deps-url]
|
|
6
|
+
[![dev dependency status][dev-deps-svg]][dev-deps-url]
|
|
7
|
+
[![License][license-image]][license-url]
|
|
8
|
+
[![Downloads][downloads-image]][downloads-url]
|
|
9
|
+
|
|
10
|
+
[![npm badge][npm-badge-png]][package-url]
|
|
11
|
+
|
|
12
|
+
Helper functions around Function call/apply/bind, for use in `call-bind`.
|
|
13
|
+
|
|
14
|
+
The only packages that should likely ever use this package directly are `call-bind` and `get-intrinsic`.
|
|
15
|
+
Please use `call-bind` unless you have a very good reason not to.
|
|
16
|
+
|
|
17
|
+
## Getting started
|
|
18
|
+
|
|
19
|
+
```sh
|
|
20
|
+
npm install --save call-bind-apply-helpers
|
|
21
|
+
```
|
|
22
|
+
|
|
23
|
+
## Usage/Examples
|
|
24
|
+
|
|
25
|
+
```js
|
|
26
|
+
const assert = require('assert');
|
|
27
|
+
const callBindBasic = require('call-bind-apply-helpers');
|
|
28
|
+
|
|
29
|
+
function f(a, b) {
|
|
30
|
+
assert.equal(this, 1);
|
|
31
|
+
assert.equal(a, 2);
|
|
32
|
+
assert.equal(b, 3);
|
|
33
|
+
assert.equal(arguments.length, 2);
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
const fBound = callBindBasic([f, 1]);
|
|
37
|
+
|
|
38
|
+
delete Function.prototype.call;
|
|
39
|
+
delete Function.prototype.bind;
|
|
40
|
+
|
|
41
|
+
fBound(2, 3);
|
|
42
|
+
```
|
|
43
|
+
|
|
44
|
+
## Tests
|
|
45
|
+
|
|
46
|
+
Clone the repo, `npm install`, and run `npm test`
|
|
47
|
+
|
|
48
|
+
[package-url]: https://npmjs.org/package/call-bind-apply-helpers
|
|
49
|
+
[npm-version-svg]: https://versionbadg.es/ljharb/call-bind-apply-helpers.svg
|
|
50
|
+
[deps-svg]: https://david-dm.org/ljharb/call-bind-apply-helpers.svg
|
|
51
|
+
[deps-url]: https://david-dm.org/ljharb/call-bind-apply-helpers
|
|
52
|
+
[dev-deps-svg]: https://david-dm.org/ljharb/call-bind-apply-helpers/dev-status.svg
|
|
53
|
+
[dev-deps-url]: https://david-dm.org/ljharb/call-bind-apply-helpers#info=devDependencies
|
|
54
|
+
[npm-badge-png]: https://nodei.co/npm/call-bind-apply-helpers.png?downloads=true&stars=true
|
|
55
|
+
[license-image]: https://img.shields.io/npm/l/call-bind-apply-helpers.svg
|
|
56
|
+
[license-url]: LICENSE
|
|
57
|
+
[downloads-image]: https://img.shields.io/npm/dm/call-bind-apply-helpers.svg
|
|
58
|
+
[downloads-url]: https://npm-stat.com/charts.html?package=call-bind-apply-helpers
|
|
59
|
+
[codecov-image]: https://codecov.io/gh/ljharb/call-bind-apply-helpers/branch/main/graphs/badge.svg
|
|
60
|
+
[codecov-url]: https://app.codecov.io/gh/ljharb/call-bind-apply-helpers/
|
|
61
|
+
[actions-image]: https://img.shields.io/endpoint?url=https://github-actions-badge-u3jn4tfpocch.runkit.sh/ljharb/call-bind-apply-helpers
|
|
62
|
+
[actions-url]: https://github.com/ljharb/call-bind-apply-helpers/actions
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export = Reflect.apply;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var bind = require('function-bind');
|
|
4
|
+
|
|
5
|
+
var $apply = require('./functionApply');
|
|
6
|
+
var $call = require('./functionCall');
|
|
7
|
+
var $reflectApply = require('./reflectApply');
|
|
8
|
+
|
|
9
|
+
/** @type {import('./actualApply')} */
|
|
10
|
+
module.exports = $reflectApply || bind.call($call, $apply);
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import actualApply from './actualApply';
|
|
2
|
+
|
|
3
|
+
type TupleSplitHead<T extends any[], N extends number> = T['length'] extends N
|
|
4
|
+
? T
|
|
5
|
+
: T extends [...infer R, any]
|
|
6
|
+
? TupleSplitHead<R, N>
|
|
7
|
+
: never
|
|
8
|
+
|
|
9
|
+
type TupleSplitTail<T, N extends number, O extends any[] = []> = O['length'] extends N
|
|
10
|
+
? T
|
|
11
|
+
: T extends [infer F, ...infer R]
|
|
12
|
+
? TupleSplitTail<[...R], N, [...O, F]>
|
|
13
|
+
: never
|
|
14
|
+
|
|
15
|
+
type TupleSplit<T extends any[], N extends number> = [TupleSplitHead<T, N>, TupleSplitTail<T, N>]
|
|
16
|
+
|
|
17
|
+
declare function applyBind(...args: TupleSplit<Parameters<typeof actualApply>, 2>[1]): ReturnType<typeof actualApply>;
|
|
18
|
+
|
|
19
|
+
export = applyBind;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var bind = require('function-bind');
|
|
4
|
+
var $apply = require('./functionApply');
|
|
5
|
+
var actualApply = require('./actualApply');
|
|
6
|
+
|
|
7
|
+
/** @type {import('./applyBind')} */
|
|
8
|
+
module.exports = function applyBind() {
|
|
9
|
+
return actualApply(bind, $apply, arguments);
|
|
10
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export = Function.prototype.apply;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export = Function.prototype.call;
|