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
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var test = require('tape');
|
|
4
|
+
|
|
5
|
+
if (typeof Symbol === 'function' && typeof Symbol() === 'symbol') {
|
|
6
|
+
test('has native Symbol support', function (t) {
|
|
7
|
+
t.equal(typeof Symbol, 'function');
|
|
8
|
+
t.equal(typeof Symbol(), 'symbol');
|
|
9
|
+
t.end();
|
|
10
|
+
});
|
|
11
|
+
// @ts-expect-error CJS has top-level return
|
|
12
|
+
return;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
var hasSymbolToStringTag = require('../../shams');
|
|
16
|
+
|
|
17
|
+
test('polyfilled Symbols', function (t) {
|
|
18
|
+
/* eslint-disable global-require */
|
|
19
|
+
t.equal(hasSymbolToStringTag(), false, 'hasSymbolToStringTag is false before polyfilling');
|
|
20
|
+
|
|
21
|
+
// @ts-expect-error no types defined
|
|
22
|
+
require('get-own-property-symbols');
|
|
23
|
+
|
|
24
|
+
require('../tests')(t);
|
|
25
|
+
|
|
26
|
+
var hasToStringTagAfter = hasSymbolToStringTag();
|
|
27
|
+
t.equal(hasToStringTagAfter, true, 'hasSymbolToStringTag is true after polyfilling');
|
|
28
|
+
/* eslint-enable global-require */
|
|
29
|
+
t.end();
|
|
30
|
+
});
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
// eslint-disable-next-line consistent-return
|
|
4
|
+
module.exports = /** @type {(t: import('tape').Test) => void | false} */ function runSymbolTests(t) {
|
|
5
|
+
t.equal(typeof Symbol, 'function', 'global Symbol is a function');
|
|
6
|
+
t.ok(Symbol.toStringTag, 'Symbol.toStringTag exists');
|
|
7
|
+
|
|
8
|
+
if (typeof Symbol !== 'function' || !Symbol.toStringTag) { return false; }
|
|
9
|
+
|
|
10
|
+
/** @type {{ [Symbol.toStringTag]?: 'test'}} */
|
|
11
|
+
var obj = {};
|
|
12
|
+
obj[Symbol.toStringTag] = 'test';
|
|
13
|
+
|
|
14
|
+
t.equal(Object.prototype.toString.call(obj), '[object test]');
|
|
15
|
+
};
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
{
|
|
2
|
+
"compilerOptions": {
|
|
3
|
+
/* Visit https://aka.ms/tsconfig to read more about this file */
|
|
4
|
+
|
|
5
|
+
/* Projects */
|
|
6
|
+
|
|
7
|
+
/* Language and Environment */
|
|
8
|
+
"target": "ESNext", /* Set the JavaScript language version for emitted JavaScript and include compatible library declarations. */
|
|
9
|
+
// "lib": [], /* Specify a set of bundled library declaration files that describe the target runtime environment. */
|
|
10
|
+
// "noLib": true, /* Disable including any library files, including the default lib.d.ts. */
|
|
11
|
+
"useDefineForClassFields": true, /* Emit ECMAScript-standard-compliant class fields. */
|
|
12
|
+
// "moduleDetection": "auto", /* Control what method is used to detect module-format JS files. */
|
|
13
|
+
|
|
14
|
+
/* Modules */
|
|
15
|
+
"module": "commonjs", /* Specify what module code is generated. */
|
|
16
|
+
// "rootDir": "./", /* Specify the root folder within your source files. */
|
|
17
|
+
// "moduleResolution": "node10", /* Specify how TypeScript looks up a file from a given module specifier. */
|
|
18
|
+
// "baseUrl": "./", /* Specify the base directory to resolve non-relative module names. */
|
|
19
|
+
// "paths": {}, /* Specify a set of entries that re-map imports to additional lookup locations. */
|
|
20
|
+
// "rootDirs": [], /* Allow multiple folders to be treated as one when resolving modules. */
|
|
21
|
+
"typeRoots": ["types"], /* Specify multiple folders that act like './node_modules/@types'. */
|
|
22
|
+
"resolveJsonModule": true, /* Enable importing .json files. */
|
|
23
|
+
// "allowArbitraryExtensions": true, /* Enable importing files with any extension, provided a declaration file is present. */
|
|
24
|
+
|
|
25
|
+
/* JavaScript Support */
|
|
26
|
+
"allowJs": true, /* Allow JavaScript files to be a part of your program. Use the 'checkJS' option to get errors from these files. */
|
|
27
|
+
"checkJs": true, /* Enable error reporting in type-checked JavaScript files. */
|
|
28
|
+
"maxNodeModuleJsDepth": 0, /* Specify the maximum folder depth used for checking JavaScript files from 'node_modules'. Only applicable with 'allowJs'. */
|
|
29
|
+
|
|
30
|
+
/* Emit */
|
|
31
|
+
"declaration": true, /* Generate .d.ts files from TypeScript and JavaScript files in your project. */
|
|
32
|
+
"declarationMap": true, /* Create sourcemaps for d.ts files. */
|
|
33
|
+
"noEmit": true, /* Disable emitting files from a compilation. */
|
|
34
|
+
|
|
35
|
+
/* Interop Constraints */
|
|
36
|
+
"allowSyntheticDefaultImports": true, /* Allow 'import x from y' when a module doesn't have a default export. */
|
|
37
|
+
"esModuleInterop": true, /* Emit additional JavaScript to ease support for importing CommonJS modules. This enables 'allowSyntheticDefaultImports' for type compatibility. */
|
|
38
|
+
"forceConsistentCasingInFileNames": true, /* Ensure that casing is correct in imports. */
|
|
39
|
+
|
|
40
|
+
/* Type Checking */
|
|
41
|
+
"strict": true, /* Enable all strict type-checking options. */
|
|
42
|
+
|
|
43
|
+
/* Completeness */
|
|
44
|
+
//"skipLibCheck": true /* Skip type checking all .d.ts files. */
|
|
45
|
+
},
|
|
46
|
+
"exclude": [
|
|
47
|
+
"coverage"
|
|
48
|
+
]
|
|
49
|
+
}
|
|
@@ -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/hasown
|
|
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 a single custom sponsorship URL
|
|
@@ -0,0 +1,40 @@
|
|
|
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
|
+
## [v2.0.2](https://github.com/inspect-js/hasOwn/compare/v2.0.1...v2.0.2) - 2024-03-10
|
|
9
|
+
|
|
10
|
+
### Commits
|
|
11
|
+
|
|
12
|
+
- [types] use shared config [`68e9d4d`](https://github.com/inspect-js/hasOwn/commit/68e9d4dab6facb4f05f02c6baea94a3f2a4e44b2)
|
|
13
|
+
- [actions] remove redundant finisher; use reusable workflow [`241a68e`](https://github.com/inspect-js/hasOwn/commit/241a68e13ea1fe52bec5ba7f74144befc31fae7b)
|
|
14
|
+
- [Tests] increase coverage [`4125c0d`](https://github.com/inspect-js/hasOwn/commit/4125c0d6121db56ae30e38346dfb0c000b04f0a7)
|
|
15
|
+
- [Tests] skip `npm ls` in old node due to TS [`01b9282`](https://github.com/inspect-js/hasOwn/commit/01b92822f9971dea031eafdd14767df41d61c202)
|
|
16
|
+
- [types] improve predicate type [`d340f85`](https://github.com/inspect-js/hasOwn/commit/d340f85ce02e286ef61096cbbb6697081d40a12b)
|
|
17
|
+
- [Dev Deps] update `tape` [`70089fc`](https://github.com/inspect-js/hasOwn/commit/70089fcf544e64acc024cbe60f5a9b00acad86de)
|
|
18
|
+
- [Tests] use `@arethetypeswrong/cli` [`50b272c`](https://github.com/inspect-js/hasOwn/commit/50b272c829f40d053a3dd91c9796e0ac0b2af084)
|
|
19
|
+
|
|
20
|
+
## [v2.0.1](https://github.com/inspect-js/hasOwn/compare/v2.0.0...v2.0.1) - 2024-02-10
|
|
21
|
+
|
|
22
|
+
### Commits
|
|
23
|
+
|
|
24
|
+
- [types] use a handwritten d.ts file; fix exported type [`012b989`](https://github.com/inspect-js/hasOwn/commit/012b9898ccf91dc441e2ebf594ff70270a5fda58)
|
|
25
|
+
- [Dev Deps] update `@types/function-bind`, `@types/mock-property`, `@types/tape`, `aud`, `mock-property`, `npmignore`, `tape`, `typescript` [`977a56f`](https://github.com/inspect-js/hasOwn/commit/977a56f51a1f8b20566f3c471612137894644025)
|
|
26
|
+
- [meta] add `sideEffects` flag [`3a60b7b`](https://github.com/inspect-js/hasOwn/commit/3a60b7bf42fccd8c605e5f145a6fcc83b13cb46f)
|
|
27
|
+
|
|
28
|
+
## [v2.0.0](https://github.com/inspect-js/hasOwn/compare/v1.0.1...v2.0.0) - 2023-10-19
|
|
29
|
+
|
|
30
|
+
### Commits
|
|
31
|
+
|
|
32
|
+
- revamped implementation, tests, readme [`72bf8b3`](https://github.com/inspect-js/hasOwn/commit/72bf8b338e77a638f0a290c63ffaed18339c36b4)
|
|
33
|
+
- [meta] revamp package.json [`079775f`](https://github.com/inspect-js/hasOwn/commit/079775fb1ec72c1c6334069593617a0be3847458)
|
|
34
|
+
- Only apps should have lockfiles [`6640e23`](https://github.com/inspect-js/hasOwn/commit/6640e233d1bb8b65260880f90787637db157d215)
|
|
35
|
+
|
|
36
|
+
## v1.0.1 - 2023-10-10
|
|
37
|
+
|
|
38
|
+
### Commits
|
|
39
|
+
|
|
40
|
+
- Initial commit [`8dbfde6`](https://github.com/inspect-js/hasOwn/commit/8dbfde6e8fb0ebb076fab38d138f2984eb340a62)
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) Jordan Harband and contributors
|
|
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,40 @@
|
|
|
1
|
+
# hasown <sup>[![Version Badge][npm-version-svg]][package-url]</sup>
|
|
2
|
+
|
|
3
|
+
[![github actions][actions-image]][actions-url]
|
|
4
|
+
[![coverage][codecov-image]][codecov-url]
|
|
5
|
+
[![License][license-image]][license-url]
|
|
6
|
+
[![Downloads][downloads-image]][downloads-url]
|
|
7
|
+
|
|
8
|
+
[![npm badge][npm-badge-png]][package-url]
|
|
9
|
+
|
|
10
|
+
A robust, ES3 compatible, "has own property" predicate.
|
|
11
|
+
|
|
12
|
+
## Example
|
|
13
|
+
|
|
14
|
+
```js
|
|
15
|
+
const assert = require('assert');
|
|
16
|
+
const hasOwn = require('hasown');
|
|
17
|
+
|
|
18
|
+
assert.equal(hasOwn({}, 'toString'), false);
|
|
19
|
+
assert.equal(hasOwn([], 'length'), true);
|
|
20
|
+
assert.equal(hasOwn({ a: 42 }, 'a'), true);
|
|
21
|
+
```
|
|
22
|
+
|
|
23
|
+
## Tests
|
|
24
|
+
Simply clone the repo, `npm install`, and run `npm test`
|
|
25
|
+
|
|
26
|
+
[package-url]: https://npmjs.org/package/hasown
|
|
27
|
+
[npm-version-svg]: https://versionbadg.es/inspect-js/hasown.svg
|
|
28
|
+
[deps-svg]: https://david-dm.org/inspect-js/hasOwn.svg
|
|
29
|
+
[deps-url]: https://david-dm.org/inspect-js/hasOwn
|
|
30
|
+
[dev-deps-svg]: https://david-dm.org/inspect-js/hasOwn/dev-status.svg
|
|
31
|
+
[dev-deps-url]: https://david-dm.org/inspect-js/hasOwn#info=devDependencies
|
|
32
|
+
[npm-badge-png]: https://nodei.co/npm/hasown.png?downloads=true&stars=true
|
|
33
|
+
[license-image]: https://img.shields.io/npm/l/hasown.svg
|
|
34
|
+
[license-url]: LICENSE
|
|
35
|
+
[downloads-image]: https://img.shields.io/npm/dm/hasown.svg
|
|
36
|
+
[downloads-url]: https://npm-stat.com/charts.html?package=hasown
|
|
37
|
+
[codecov-image]: https://codecov.io/gh/inspect-js/hasOwn/branch/main/graphs/badge.svg
|
|
38
|
+
[codecov-url]: https://app.codecov.io/gh/inspect-js/hasOwn/
|
|
39
|
+
[actions-image]: https://img.shields.io/endpoint?url=https://github-actions-badge-u3jn4tfpocch.runkit.sh/inspect-js/hasOwn
|
|
40
|
+
[actions-url]: https://github.com/inspect-js/hasOwn/actions
|
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "hasown",
|
|
3
|
+
"version": "2.0.2",
|
|
4
|
+
"description": "A robust, ES3 compatible, \"has own property\" predicate.",
|
|
5
|
+
"main": "index.js",
|
|
6
|
+
"exports": {
|
|
7
|
+
".": "./index.js",
|
|
8
|
+
"./package.json": "./package.json"
|
|
9
|
+
},
|
|
10
|
+
"types": "index.d.ts",
|
|
11
|
+
"sideEffects": false,
|
|
12
|
+
"scripts": {
|
|
13
|
+
"prepack": "npmignore --auto --commentLines=autogenerated",
|
|
14
|
+
"prepublish": "not-in-publish || npm run prepublishOnly",
|
|
15
|
+
"prepublishOnly": "safe-publish-latest",
|
|
16
|
+
"prelint": "evalmd README.md",
|
|
17
|
+
"lint": "eslint --ext=js,mjs .",
|
|
18
|
+
"postlint": "npm run tsc",
|
|
19
|
+
"pretest": "npm run lint",
|
|
20
|
+
"tsc": "tsc -p .",
|
|
21
|
+
"posttsc": "attw -P",
|
|
22
|
+
"tests-only": "nyc tape 'test/**/*.js'",
|
|
23
|
+
"test": "npm run tests-only",
|
|
24
|
+
"posttest": "aud --production",
|
|
25
|
+
"version": "auto-changelog && git add CHANGELOG.md",
|
|
26
|
+
"postversion": "auto-changelog && git add CHANGELOG.md && git commit --no-edit --amend && git tag -f \"v$(node -e \"console.log(require('./package.json').version)\")\""
|
|
27
|
+
},
|
|
28
|
+
"repository": {
|
|
29
|
+
"type": "git",
|
|
30
|
+
"url": "git+https://github.com/inspect-js/hasOwn.git"
|
|
31
|
+
},
|
|
32
|
+
"keywords": [
|
|
33
|
+
"has",
|
|
34
|
+
"hasOwnProperty",
|
|
35
|
+
"hasOwn",
|
|
36
|
+
"has-own",
|
|
37
|
+
"own",
|
|
38
|
+
"has",
|
|
39
|
+
"property",
|
|
40
|
+
"in",
|
|
41
|
+
"javascript",
|
|
42
|
+
"ecmascript"
|
|
43
|
+
],
|
|
44
|
+
"author": "Jordan Harband <ljharb@gmail.com>",
|
|
45
|
+
"license": "MIT",
|
|
46
|
+
"bugs": {
|
|
47
|
+
"url": "https://github.com/inspect-js/hasOwn/issues"
|
|
48
|
+
},
|
|
49
|
+
"homepage": "https://github.com/inspect-js/hasOwn#readme",
|
|
50
|
+
"dependencies": {
|
|
51
|
+
"function-bind": "^1.1.2"
|
|
52
|
+
},
|
|
53
|
+
"devDependencies": {
|
|
54
|
+
"@arethetypeswrong/cli": "^0.15.1",
|
|
55
|
+
"@ljharb/eslint-config": "^21.1.0",
|
|
56
|
+
"@ljharb/tsconfig": "^0.2.0",
|
|
57
|
+
"@types/function-bind": "^1.1.10",
|
|
58
|
+
"@types/mock-property": "^1.0.2",
|
|
59
|
+
"@types/tape": "^5.6.4",
|
|
60
|
+
"aud": "^2.0.4",
|
|
61
|
+
"auto-changelog": "^2.4.0",
|
|
62
|
+
"eslint": "=8.8.0",
|
|
63
|
+
"evalmd": "^0.0.19",
|
|
64
|
+
"in-publish": "^2.0.1",
|
|
65
|
+
"mock-property": "^1.0.3",
|
|
66
|
+
"npmignore": "^0.3.1",
|
|
67
|
+
"nyc": "^10.3.2",
|
|
68
|
+
"safe-publish-latest": "^2.0.0",
|
|
69
|
+
"tape": "^5.7.5",
|
|
70
|
+
"typescript": "next"
|
|
71
|
+
},
|
|
72
|
+
"engines": {
|
|
73
|
+
"node": ">= 0.4"
|
|
74
|
+
},
|
|
75
|
+
"testling": {
|
|
76
|
+
"files": "test/index.js"
|
|
77
|
+
},
|
|
78
|
+
"auto-changelog": {
|
|
79
|
+
"output": "CHANGELOG.md",
|
|
80
|
+
"template": "keepachangelog",
|
|
81
|
+
"unreleased": false,
|
|
82
|
+
"commitLimit": false,
|
|
83
|
+
"backfillLimit": false,
|
|
84
|
+
"hideCredit": true
|
|
85
|
+
},
|
|
86
|
+
"publishConfig": {
|
|
87
|
+
"ignore": [
|
|
88
|
+
".github/workflows",
|
|
89
|
+
"test"
|
|
90
|
+
]
|
|
91
|
+
}
|
|
92
|
+
}
|
|
@@ -58,13 +58,13 @@ JS Beautifier is hosted on two CDN services: [cdnjs](https://cdnjs.com/libraries
|
|
|
58
58
|
|
|
59
59
|
To pull the latest version from one of these services include one set of the script tags below in your document:
|
|
60
60
|
```html
|
|
61
|
-
<script src="https://cdnjs.cloudflare.com/ajax/libs/js-beautify/1.15.
|
|
62
|
-
<script src="https://cdnjs.cloudflare.com/ajax/libs/js-beautify/1.15.
|
|
63
|
-
<script src="https://cdnjs.cloudflare.com/ajax/libs/js-beautify/1.15.
|
|
61
|
+
<script src="https://cdnjs.cloudflare.com/ajax/libs/js-beautify/1.15.3/beautify.js"></script>
|
|
62
|
+
<script src="https://cdnjs.cloudflare.com/ajax/libs/js-beautify/1.15.3/beautify-css.js"></script>
|
|
63
|
+
<script src="https://cdnjs.cloudflare.com/ajax/libs/js-beautify/1.15.3/beautify-html.js"></script>
|
|
64
64
|
|
|
65
|
-
<script src="https://cdnjs.cloudflare.com/ajax/libs/js-beautify/1.15.
|
|
66
|
-
<script src="https://cdnjs.cloudflare.com/ajax/libs/js-beautify/1.15.
|
|
67
|
-
<script src="https://cdnjs.cloudflare.com/ajax/libs/js-beautify/1.15.
|
|
65
|
+
<script src="https://cdnjs.cloudflare.com/ajax/libs/js-beautify/1.15.3/beautify.min.js"></script>
|
|
66
|
+
<script src="https://cdnjs.cloudflare.com/ajax/libs/js-beautify/1.15.3/beautify-css.min.js"></script>
|
|
67
|
+
<script src="https://cdnjs.cloudflare.com/ajax/libs/js-beautify/1.15.3/beautify-html.min.js"></script>
|
|
68
68
|
```
|
|
69
69
|
|
|
70
70
|
Example usage of a JS tag in html:
|
|
@@ -76,7 +76,7 @@ Example usage of a JS tag in html:
|
|
|
76
76
|
|
|
77
77
|
. . .
|
|
78
78
|
|
|
79
|
-
<script src="https://cdnjs.cloudflare.com/ajax/libs/js-beautify/1.15.
|
|
79
|
+
<script src="https://cdnjs.cloudflare.com/ajax/libs/js-beautify/1.15.3/beautify.min.js"></script>
|
|
80
80
|
<script src="script.js"></script>
|
|
81
81
|
</body>
|
|
82
82
|
</html>
|
|
@@ -152,6 +152,17 @@ fs.readFile('foo.js', 'utf8', function (err, data) {
|
|
|
152
152
|
});
|
|
153
153
|
```
|
|
154
154
|
|
|
155
|
+
If you are using ESM Imports, you can import `js-beautify` like this:
|
|
156
|
+
|
|
157
|
+
```js
|
|
158
|
+
// 'beautify' can be any name here.
|
|
159
|
+
import beautify from 'js-beautify';
|
|
160
|
+
|
|
161
|
+
beautify.js(data, options);
|
|
162
|
+
beautify.html(data, options);
|
|
163
|
+
beautify.css(data, options);
|
|
164
|
+
```
|
|
165
|
+
|
|
155
166
|
## Python
|
|
156
167
|
After installing, to beautify using Python:
|
|
157
168
|
|
|
@@ -434,4 +445,4 @@ Thanks also to Jason Diamond, Patrick Hof, Nochum Sossonko, Andreas Schneider, D
|
|
|
434
445
|
Vasilevsky, Vital Batmanov, Ron Baldwin, Gabriel Harrison, Chris J. Shull,
|
|
435
446
|
Mathias Bynens, Vittorio Gambaletta and others.
|
|
436
447
|
|
|
437
|
-
(README.md: js-beautify@1.15.
|
|
448
|
+
(README.md: js-beautify@1.15.3)
|
|
@@ -3881,6 +3881,10 @@ TemplatablePattern.prototype.__set_templated_pattern = function() {
|
|
|
3881
3881
|
if (!this._disabled.handlebars) {
|
|
3882
3882
|
items.push(this.__patterns.handlebars._starting_pattern.source);
|
|
3883
3883
|
}
|
|
3884
|
+
if (!this._disabled.angular) {
|
|
3885
|
+
// Handlebars ('{{' and '}}') are also special tokens in Angular)
|
|
3886
|
+
items.push(this.__patterns.handlebars._starting_pattern.source);
|
|
3887
|
+
}
|
|
3884
3888
|
if (!this._disabled.erb) {
|
|
3885
3889
|
items.push(this.__patterns.erb._starting_pattern.source);
|
|
3886
3890
|
}
|
|
@@ -4966,7 +4970,7 @@ Beautifier.prototype.beautify = function() {
|
|
|
4966
4970
|
type: ''
|
|
4967
4971
|
};
|
|
4968
4972
|
|
|
4969
|
-
var last_tag_token = new TagOpenParserToken();
|
|
4973
|
+
var last_tag_token = new TagOpenParserToken(this._options);
|
|
4970
4974
|
|
|
4971
4975
|
var printer = new Printer(this._options, baseIndentString);
|
|
4972
4976
|
var tokens = new Tokenizer(source_text, this._options).tokenize();
|
|
@@ -5289,7 +5293,7 @@ Beautifier.prototype._handle_tag_open = function(printer, raw_token, last_tag_to
|
|
|
5289
5293
|
return parser_token;
|
|
5290
5294
|
};
|
|
5291
5295
|
|
|
5292
|
-
var TagOpenParserToken = function(parent, raw_token) {
|
|
5296
|
+
var TagOpenParserToken = function(options, parent, raw_token) {
|
|
5293
5297
|
this.parent = parent || null;
|
|
5294
5298
|
this.text = '';
|
|
5295
5299
|
this.type = 'TK_TAG_OPEN';
|
|
@@ -5356,13 +5360,14 @@ var TagOpenParserToken = function(parent, raw_token) {
|
|
|
5356
5360
|
}
|
|
5357
5361
|
|
|
5358
5362
|
// handlebars tags that don't start with # or ^ are single_tags, and so also start and end.
|
|
5363
|
+
// if they start with # or ^, they are still considered single tags if indenting of handlebars is set to false
|
|
5359
5364
|
this.is_end_tag = this.is_end_tag ||
|
|
5360
|
-
(this.tag_start_char === '{' && (this.text.length < 3 || (/[^#\^]/.test(this.text.charAt(handlebar_starts)))));
|
|
5365
|
+
(this.tag_start_char === '{' && (!options.indent_handlebars || this.text.length < 3 || (/[^#\^]/.test(this.text.charAt(handlebar_starts)))));
|
|
5361
5366
|
}
|
|
5362
5367
|
};
|
|
5363
5368
|
|
|
5364
5369
|
Beautifier.prototype._get_tag_open_token = function(raw_token) { //function to get a full tag and parse its type
|
|
5365
|
-
var parser_token = new TagOpenParserToken(this._tag_stack.get_parser_token(), raw_token);
|
|
5370
|
+
var parser_token = new TagOpenParserToken(this._options, this._tag_stack.get_parser_token(), raw_token);
|
|
5366
5371
|
|
|
5367
5372
|
parser_token.alignment_size = this._options.wrap_attributes_indent_size;
|
|
5368
5373
|
|
|
@@ -5829,6 +5834,7 @@ Tokenizer.prototype._get_next_token = function(previous_token, open_token) { //
|
|
|
5829
5834
|
token = token || this._read_open_handlebars(c, open_token);
|
|
5830
5835
|
token = token || this._read_attribute(c, previous_token, open_token);
|
|
5831
5836
|
token = token || this._read_close(c, open_token);
|
|
5837
|
+
token = token || this._read_script_and_style(c, previous_token);
|
|
5832
5838
|
token = token || this._read_control_flows(c, open_token);
|
|
5833
5839
|
token = token || this._read_raw_content(c, previous_token, open_token);
|
|
5834
5840
|
token = token || this._read_content_word(c, open_token);
|
|
@@ -5914,8 +5920,8 @@ Tokenizer.prototype._read_open_handlebars = function(c, open_token) {
|
|
|
5914
5920
|
var resulting_string = null;
|
|
5915
5921
|
var token = null;
|
|
5916
5922
|
if (!open_token || open_token.type === TOKEN.CONTROL_FLOW_OPEN) {
|
|
5917
|
-
if (this._options.indent_handlebars && c === '{' && this._input.peek(1) === '{') {
|
|
5918
|
-
if (this._input.peek(2) === '!') {
|
|
5923
|
+
if ((this._options.templating.includes('angular') || this._options.indent_handlebars) && c === '{' && this._input.peek(1) === '{') {
|
|
5924
|
+
if (this._options.indent_handlebars && this._input.peek(2) === '!') {
|
|
5919
5925
|
resulting_string = this.__patterns.handlebars_comment.read();
|
|
5920
5926
|
resulting_string = resulting_string || this.__patterns.handlebars.read();
|
|
5921
5927
|
token = this._create_token(TOKEN.COMMENT, resulting_string);
|
|
@@ -5931,8 +5937,8 @@ Tokenizer.prototype._read_open_handlebars = function(c, open_token) {
|
|
|
5931
5937
|
Tokenizer.prototype._read_control_flows = function(c, open_token) {
|
|
5932
5938
|
var resulting_string = '';
|
|
5933
5939
|
var token = null;
|
|
5934
|
-
// Only check for control flows if angular templating is set
|
|
5935
|
-
if (!this._options.templating.includes('angular')
|
|
5940
|
+
// Only check for control flows if angular templating is set
|
|
5941
|
+
if (!this._options.templating.includes('angular')) {
|
|
5936
5942
|
return token;
|
|
5937
5943
|
}
|
|
5938
5944
|
|
|
@@ -6025,7 +6031,6 @@ Tokenizer.prototype._is_content_unformatted = function(tag_name) {
|
|
|
6025
6031
|
this._options.unformatted.indexOf(tag_name) !== -1);
|
|
6026
6032
|
};
|
|
6027
6033
|
|
|
6028
|
-
|
|
6029
6034
|
Tokenizer.prototype._read_raw_content = function(c, previous_token, open_token) { // jshint unused:false
|
|
6030
6035
|
var resulting_string = '';
|
|
6031
6036
|
if (open_token && open_token.text[0] === '{') {
|
|
@@ -6033,6 +6038,22 @@ Tokenizer.prototype._read_raw_content = function(c, previous_token, open_token)
|
|
|
6033
6038
|
} else if (previous_token.type === TOKEN.TAG_CLOSE &&
|
|
6034
6039
|
previous_token.opened.text[0] === '<' && previous_token.text[0] !== '/') {
|
|
6035
6040
|
// ^^ empty tag has no content
|
|
6041
|
+
var tag_name = previous_token.opened.text.substr(1).toLowerCase();
|
|
6042
|
+
if (this._is_content_unformatted(tag_name)) {
|
|
6043
|
+
|
|
6044
|
+
resulting_string = this._input.readUntil(new RegExp('</' + tag_name + '[\\n\\r\\t ]*?>', 'ig'));
|
|
6045
|
+
}
|
|
6046
|
+
}
|
|
6047
|
+
|
|
6048
|
+
if (resulting_string) {
|
|
6049
|
+
return this._create_token(TOKEN.TEXT, resulting_string);
|
|
6050
|
+
}
|
|
6051
|
+
|
|
6052
|
+
return null;
|
|
6053
|
+
};
|
|
6054
|
+
|
|
6055
|
+
Tokenizer.prototype._read_script_and_style = function(c, previous_token) { // jshint unused:false
|
|
6056
|
+
if (previous_token.type === TOKEN.TAG_CLOSE && previous_token.opened.text[0] === '<' && previous_token.text[0] !== '/') {
|
|
6036
6057
|
var tag_name = previous_token.opened.text.substr(1).toLowerCase();
|
|
6037
6058
|
if (tag_name === 'script' || tag_name === 'style') {
|
|
6038
6059
|
// Script and style tags are allowed to have comments wrapping their content
|
|
@@ -6042,17 +6063,12 @@ Tokenizer.prototype._read_raw_content = function(c, previous_token, open_token)
|
|
|
6042
6063
|
token.type = TOKEN.TEXT;
|
|
6043
6064
|
return token;
|
|
6044
6065
|
}
|
|
6045
|
-
resulting_string = this._input.readUntil(new RegExp('</' + tag_name + '[\\n\\r\\t ]*?>', 'ig'));
|
|
6046
|
-
|
|
6047
|
-
|
|
6048
|
-
|
|
6066
|
+
var resulting_string = this._input.readUntil(new RegExp('</' + tag_name + '[\\n\\r\\t ]*?>', 'ig'));
|
|
6067
|
+
if (resulting_string) {
|
|
6068
|
+
return this._create_token(TOKEN.TEXT, resulting_string);
|
|
6069
|
+
}
|
|
6049
6070
|
}
|
|
6050
6071
|
}
|
|
6051
|
-
|
|
6052
|
-
if (resulting_string) {
|
|
6053
|
-
return this._create_token(TOKEN.TEXT, resulting_string);
|
|
6054
|
-
}
|
|
6055
|
-
|
|
6056
6072
|
return null;
|
|
6057
6073
|
};
|
|
6058
6074
|
|
|
@@ -6070,6 +6086,7 @@ Tokenizer.prototype._read_content_word = function(c, open_token) {
|
|
|
6070
6086
|
if (resulting_string) {
|
|
6071
6087
|
return this._create_token(TOKEN.TEXT, resulting_string);
|
|
6072
6088
|
}
|
|
6089
|
+
return null;
|
|
6073
6090
|
};
|
|
6074
6091
|
|
|
6075
6092
|
module.exports.Tokenizer = Tokenizer;
|