cloudstructs 0.9.27 → 0.9.29
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 +4 -4
- package/assets/slack-textract/detect.lambda/index.js +929 -51
- 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/esm/wrapRegExp.js +4 -3
- 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/helpers/wrapRegExp.js +4 -3
- 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 +114 -39
- package/node_modules/@slack/logger/node_modules/@types/node/buffer.d.ts +4 -11
- package/node_modules/@slack/logger/node_modules/@types/node/constants.d.ts +14 -12
- package/node_modules/@slack/logger/node_modules/@types/node/crypto.d.ts +36 -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 +530 -237
- 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/web.d.ts +6 -1
- package/node_modules/@slack/logger/node_modules/@types/node/stream.d.ts +936 -1000
- package/node_modules/@slack/logger/node_modules/@types/node/test.d.ts +40 -138
- package/node_modules/@slack/logger/node_modules/@types/node/ts5.6/buffer.buffer.d.ts +107 -35
- 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/README.md +4 -4
- package/node_modules/@slack/web-api/dist/WebClient.d.ts +30 -1
- package/node_modules/@slack/web-api/dist/WebClient.d.ts.map +1 -1
- package/node_modules/@slack/web-api/dist/WebClient.js +15 -2
- package/node_modules/@slack/web-api/dist/WebClient.js.map +1 -1
- package/node_modules/@slack/web-api/dist/methods.d.ts +1 -1
- package/node_modules/@slack/web-api/dist/methods.js +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 +114 -39
- package/node_modules/@slack/web-api/node_modules/@types/node/buffer.d.ts +4 -11
- package/node_modules/@slack/web-api/node_modules/@types/node/constants.d.ts +14 -12
- package/node_modules/@slack/web-api/node_modules/@types/node/crypto.d.ts +36 -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 +530 -237
- 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/web.d.ts +6 -1
- package/node_modules/@slack/web-api/node_modules/@types/node/stream.d.ts +936 -1000
- 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/ts5.6/buffer.buffer.d.ts +107 -35
- 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/@slack/web-api/package.json +8 -6
- 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 +114 -39
- package/node_modules/@types/cacheable-request/node_modules/@types/node/buffer.d.ts +4 -11
- package/node_modules/@types/cacheable-request/node_modules/@types/node/constants.d.ts +14 -12
- package/node_modules/@types/cacheable-request/node_modules/@types/node/crypto.d.ts +36 -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 +530 -237
- 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/web.d.ts +6 -1
- package/node_modules/@types/cacheable-request/node_modules/@types/node/stream.d.ts +936 -1000
- 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/ts5.6/buffer.buffer.d.ts +107 -35
- 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 +114 -39
- package/node_modules/@types/keyv/node_modules/@types/node/buffer.d.ts +4 -11
- package/node_modules/@types/keyv/node_modules/@types/node/constants.d.ts +14 -12
- package/node_modules/@types/keyv/node_modules/@types/node/crypto.d.ts +36 -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 +530 -237
- 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/web.d.ts +6 -1
- package/node_modules/@types/keyv/node_modules/@types/node/stream.d.ts +936 -1000
- package/node_modules/@types/keyv/node_modules/@types/node/test.d.ts +40 -138
- package/node_modules/@types/keyv/node_modules/@types/node/ts5.6/buffer.buffer.d.ts +107 -35
- 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 +114 -39
- package/node_modules/@types/responselike/node_modules/@types/node/buffer.d.ts +4 -11
- package/node_modules/@types/responselike/node_modules/@types/node/constants.d.ts +14 -12
- package/node_modules/@types/responselike/node_modules/@types/node/crypto.d.ts +36 -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 +530 -237
- 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/web.d.ts +6 -1
- package/node_modules/@types/responselike/node_modules/@types/node/stream.d.ts +936 -1000
- package/node_modules/@types/responselike/node_modules/@types/node/test.d.ts +40 -138
- package/node_modules/@types/responselike/node_modules/@types/node/ts5.6/buffer.buffer.d.ts +107 -35
- 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/axios/CHANGELOG.md +97 -0
- package/node_modules/axios/README.md +35 -13
- package/node_modules/axios/dist/axios.js +14 -25
- package/node_modules/axios/dist/axios.js.map +1 -1
- package/node_modules/axios/dist/axios.min.js +2 -1
- package/node_modules/axios/dist/axios.min.js.map +1 -1
- package/node_modules/axios/dist/browser/axios.cjs +14 -28
- package/node_modules/axios/dist/browser/axios.cjs.map +1 -1
- package/node_modules/axios/dist/esm/axios.js +14 -28
- package/node_modules/axios/dist/esm/axios.js.map +1 -1
- package/node_modules/axios/dist/esm/axios.min.js +2 -1
- package/node_modules/axios/dist/esm/axios.min.js.map +1 -1
- package/node_modules/axios/dist/node/axios.cjs +44 -31
- package/node_modules/axios/dist/node/axios.cjs.map +1 -1
- package/node_modules/axios/index.d.cts +1 -0
- package/node_modules/axios/index.d.ts +1 -0
- package/node_modules/axios/lib/adapters/http.js +1 -1
- package/node_modules/axios/lib/core/Axios.js +10 -1
- package/node_modules/axios/lib/core/buildFullPath.js +3 -2
- package/node_modules/axios/lib/env/data.js +1 -1
- package/node_modules/axios/lib/helpers/formDataToStream.js +3 -2
- package/node_modules/axios/lib/helpers/resolveConfig.js +1 -1
- package/node_modules/axios/lib/platform/node/index.js +26 -0
- package/node_modules/axios/lib/utils.js +0 -22
- package/node_modules/axios/package.json +4 -4
- 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/foreground-child/dist/commonjs/all-signals.d.ts +0 -1
- package/node_modules/foreground-child/dist/commonjs/all-signals.d.ts.map +1 -1
- package/node_modules/foreground-child/dist/commonjs/index.d.ts +1 -8
- package/node_modules/foreground-child/dist/commonjs/index.d.ts.map +1 -1
- package/node_modules/foreground-child/dist/commonjs/index.js +2 -2
- package/node_modules/foreground-child/dist/commonjs/index.js.map +1 -1
- package/node_modules/foreground-child/dist/commonjs/proxy-signals.d.ts +0 -1
- package/node_modules/foreground-child/dist/commonjs/proxy-signals.d.ts.map +1 -1
- package/node_modules/foreground-child/dist/commonjs/watchdog.d.ts +0 -1
- package/node_modules/foreground-child/dist/commonjs/watchdog.d.ts.map +1 -1
- package/node_modules/foreground-child/dist/esm/all-signals.d.ts +0 -1
- package/node_modules/foreground-child/dist/esm/all-signals.d.ts.map +1 -1
- package/node_modules/foreground-child/dist/esm/index.d.ts +1 -8
- package/node_modules/foreground-child/dist/esm/index.d.ts.map +1 -1
- package/node_modules/foreground-child/dist/esm/proxy-signals.d.ts +0 -1
- package/node_modules/foreground-child/dist/esm/proxy-signals.d.ts.map +1 -1
- package/node_modules/foreground-child/dist/esm/watchdog.d.ts +0 -1
- package/node_modules/foreground-child/dist/esm/watchdog.d.ts.map +1 -1
- package/node_modules/foreground-child/package.json +6 -11
- 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/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 +19 -19
- package/node_modules/axios/SECURITY.md +0 -6
- /package/node_modules/{path-key → cross-spawn/node_modules/path-key}/index.d.ts +0 -0
- /package/node_modules/{path-key → cross-spawn/node_modules/path-key}/index.js +0 -0
- /package/node_modules/{path-key → cross-spawn/node_modules/path-key}/license +0 -0
- /package/node_modules/{path-key → cross-spawn/node_modules/path-key}/package.json +0 -0
- /package/node_modules/{path-key → cross-spawn/node_modules/path-key}/readme.md +0 -0
- /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
|
@@ -1615,6 +1615,10 @@ TemplatablePattern.prototype.__set_templated_pattern = function() {
|
|
|
1615
1615
|
if (!this._disabled.handlebars) {
|
|
1616
1616
|
items.push(this.__patterns.handlebars._starting_pattern.source);
|
|
1617
1617
|
}
|
|
1618
|
+
if (!this._disabled.angular) {
|
|
1619
|
+
// Handlebars ('{{' and '}}') are also special tokens in Angular)
|
|
1620
|
+
items.push(this.__patterns.handlebars._starting_pattern.source);
|
|
1621
|
+
}
|
|
1618
1622
|
if (!this._disabled.erb) {
|
|
1619
1623
|
items.push(this.__patterns.erb._starting_pattern.source);
|
|
1620
1624
|
}
|
|
@@ -2040,7 +2044,7 @@ Beautifier.prototype.beautify = function() {
|
|
|
2040
2044
|
type: ''
|
|
2041
2045
|
};
|
|
2042
2046
|
|
|
2043
|
-
var last_tag_token = new TagOpenParserToken();
|
|
2047
|
+
var last_tag_token = new TagOpenParserToken(this._options);
|
|
2044
2048
|
|
|
2045
2049
|
var printer = new Printer(this._options, baseIndentString);
|
|
2046
2050
|
var tokens = new Tokenizer(source_text, this._options).tokenize();
|
|
@@ -2363,7 +2367,7 @@ Beautifier.prototype._handle_tag_open = function(printer, raw_token, last_tag_to
|
|
|
2363
2367
|
return parser_token;
|
|
2364
2368
|
};
|
|
2365
2369
|
|
|
2366
|
-
var TagOpenParserToken = function(parent, raw_token) {
|
|
2370
|
+
var TagOpenParserToken = function(options, parent, raw_token) {
|
|
2367
2371
|
this.parent = parent || null;
|
|
2368
2372
|
this.text = '';
|
|
2369
2373
|
this.type = 'TK_TAG_OPEN';
|
|
@@ -2430,13 +2434,14 @@ var TagOpenParserToken = function(parent, raw_token) {
|
|
|
2430
2434
|
}
|
|
2431
2435
|
|
|
2432
2436
|
// handlebars tags that don't start with # or ^ are single_tags, and so also start and end.
|
|
2437
|
+
// if they start with # or ^, they are still considered single tags if indenting of handlebars is set to false
|
|
2433
2438
|
this.is_end_tag = this.is_end_tag ||
|
|
2434
|
-
(this.tag_start_char === '{' && (this.text.length < 3 || (/[^#\^]/.test(this.text.charAt(handlebar_starts)))));
|
|
2439
|
+
(this.tag_start_char === '{' && (!options.indent_handlebars || this.text.length < 3 || (/[^#\^]/.test(this.text.charAt(handlebar_starts)))));
|
|
2435
2440
|
}
|
|
2436
2441
|
};
|
|
2437
2442
|
|
|
2438
2443
|
Beautifier.prototype._get_tag_open_token = function(raw_token) { //function to get a full tag and parse its type
|
|
2439
|
-
var parser_token = new TagOpenParserToken(this._tag_stack.get_parser_token(), raw_token);
|
|
2444
|
+
var parser_token = new TagOpenParserToken(this._options, this._tag_stack.get_parser_token(), raw_token);
|
|
2440
2445
|
|
|
2441
2446
|
parser_token.alignment_size = this._options.wrap_attributes_indent_size;
|
|
2442
2447
|
|
|
@@ -2903,6 +2908,7 @@ Tokenizer.prototype._get_next_token = function(previous_token, open_token) { //
|
|
|
2903
2908
|
token = token || this._read_open_handlebars(c, open_token);
|
|
2904
2909
|
token = token || this._read_attribute(c, previous_token, open_token);
|
|
2905
2910
|
token = token || this._read_close(c, open_token);
|
|
2911
|
+
token = token || this._read_script_and_style(c, previous_token);
|
|
2906
2912
|
token = token || this._read_control_flows(c, open_token);
|
|
2907
2913
|
token = token || this._read_raw_content(c, previous_token, open_token);
|
|
2908
2914
|
token = token || this._read_content_word(c, open_token);
|
|
@@ -2988,8 +2994,8 @@ Tokenizer.prototype._read_open_handlebars = function(c, open_token) {
|
|
|
2988
2994
|
var resulting_string = null;
|
|
2989
2995
|
var token = null;
|
|
2990
2996
|
if (!open_token || open_token.type === TOKEN.CONTROL_FLOW_OPEN) {
|
|
2991
|
-
if (this._options.indent_handlebars && c === '{' && this._input.peek(1) === '{') {
|
|
2992
|
-
if (this._input.peek(2) === '!') {
|
|
2997
|
+
if ((this._options.templating.includes('angular') || this._options.indent_handlebars) && c === '{' && this._input.peek(1) === '{') {
|
|
2998
|
+
if (this._options.indent_handlebars && this._input.peek(2) === '!') {
|
|
2993
2999
|
resulting_string = this.__patterns.handlebars_comment.read();
|
|
2994
3000
|
resulting_string = resulting_string || this.__patterns.handlebars.read();
|
|
2995
3001
|
token = this._create_token(TOKEN.COMMENT, resulting_string);
|
|
@@ -3005,8 +3011,8 @@ Tokenizer.prototype._read_open_handlebars = function(c, open_token) {
|
|
|
3005
3011
|
Tokenizer.prototype._read_control_flows = function(c, open_token) {
|
|
3006
3012
|
var resulting_string = '';
|
|
3007
3013
|
var token = null;
|
|
3008
|
-
// Only check for control flows if angular templating is set
|
|
3009
|
-
if (!this._options.templating.includes('angular')
|
|
3014
|
+
// Only check for control flows if angular templating is set
|
|
3015
|
+
if (!this._options.templating.includes('angular')) {
|
|
3010
3016
|
return token;
|
|
3011
3017
|
}
|
|
3012
3018
|
|
|
@@ -3099,7 +3105,6 @@ Tokenizer.prototype._is_content_unformatted = function(tag_name) {
|
|
|
3099
3105
|
this._options.unformatted.indexOf(tag_name) !== -1);
|
|
3100
3106
|
};
|
|
3101
3107
|
|
|
3102
|
-
|
|
3103
3108
|
Tokenizer.prototype._read_raw_content = function(c, previous_token, open_token) { // jshint unused:false
|
|
3104
3109
|
var resulting_string = '';
|
|
3105
3110
|
if (open_token && open_token.text[0] === '{') {
|
|
@@ -3107,6 +3112,22 @@ Tokenizer.prototype._read_raw_content = function(c, previous_token, open_token)
|
|
|
3107
3112
|
} else if (previous_token.type === TOKEN.TAG_CLOSE &&
|
|
3108
3113
|
previous_token.opened.text[0] === '<' && previous_token.text[0] !== '/') {
|
|
3109
3114
|
// ^^ empty tag has no content
|
|
3115
|
+
var tag_name = previous_token.opened.text.substr(1).toLowerCase();
|
|
3116
|
+
if (this._is_content_unformatted(tag_name)) {
|
|
3117
|
+
|
|
3118
|
+
resulting_string = this._input.readUntil(new RegExp('</' + tag_name + '[\\n\\r\\t ]*?>', 'ig'));
|
|
3119
|
+
}
|
|
3120
|
+
}
|
|
3121
|
+
|
|
3122
|
+
if (resulting_string) {
|
|
3123
|
+
return this._create_token(TOKEN.TEXT, resulting_string);
|
|
3124
|
+
}
|
|
3125
|
+
|
|
3126
|
+
return null;
|
|
3127
|
+
};
|
|
3128
|
+
|
|
3129
|
+
Tokenizer.prototype._read_script_and_style = function(c, previous_token) { // jshint unused:false
|
|
3130
|
+
if (previous_token.type === TOKEN.TAG_CLOSE && previous_token.opened.text[0] === '<' && previous_token.text[0] !== '/') {
|
|
3110
3131
|
var tag_name = previous_token.opened.text.substr(1).toLowerCase();
|
|
3111
3132
|
if (tag_name === 'script' || tag_name === 'style') {
|
|
3112
3133
|
// Script and style tags are allowed to have comments wrapping their content
|
|
@@ -3116,17 +3137,12 @@ Tokenizer.prototype._read_raw_content = function(c, previous_token, open_token)
|
|
|
3116
3137
|
token.type = TOKEN.TEXT;
|
|
3117
3138
|
return token;
|
|
3118
3139
|
}
|
|
3119
|
-
resulting_string = this._input.readUntil(new RegExp('</' + tag_name + '[\\n\\r\\t ]*?>', 'ig'));
|
|
3120
|
-
|
|
3121
|
-
|
|
3122
|
-
|
|
3140
|
+
var resulting_string = this._input.readUntil(new RegExp('</' + tag_name + '[\\n\\r\\t ]*?>', 'ig'));
|
|
3141
|
+
if (resulting_string) {
|
|
3142
|
+
return this._create_token(TOKEN.TEXT, resulting_string);
|
|
3143
|
+
}
|
|
3123
3144
|
}
|
|
3124
3145
|
}
|
|
3125
|
-
|
|
3126
|
-
if (resulting_string) {
|
|
3127
|
-
return this._create_token(TOKEN.TEXT, resulting_string);
|
|
3128
|
-
}
|
|
3129
|
-
|
|
3130
3146
|
return null;
|
|
3131
3147
|
};
|
|
3132
3148
|
|
|
@@ -3144,6 +3160,7 @@ Tokenizer.prototype._read_content_word = function(c, open_token) {
|
|
|
3144
3160
|
if (resulting_string) {
|
|
3145
3161
|
return this._create_token(TOKEN.TEXT, resulting_string);
|
|
3146
3162
|
}
|
|
3163
|
+
return null;
|
|
3147
3164
|
};
|
|
3148
3165
|
|
|
3149
3166
|
module.exports.Tokenizer = Tokenizer;
|
|
@@ -3912,6 +3912,10 @@ TemplatablePattern.prototype.__set_templated_pattern = function() {
|
|
|
3912
3912
|
if (!this._disabled.handlebars) {
|
|
3913
3913
|
items.push(this.__patterns.handlebars._starting_pattern.source);
|
|
3914
3914
|
}
|
|
3915
|
+
if (!this._disabled.angular) {
|
|
3916
|
+
// Handlebars ('{{' and '}}') are also special tokens in Angular)
|
|
3917
|
+
items.push(this.__patterns.handlebars._starting_pattern.source);
|
|
3918
|
+
}
|
|
3915
3919
|
if (!this._disabled.erb) {
|
|
3916
3920
|
items.push(this.__patterns.erb._starting_pattern.source);
|
|
3917
3921
|
}
|
|
@@ -135,6 +135,10 @@ TemplatablePattern.prototype.__set_templated_pattern = function() {
|
|
|
135
135
|
if (!this._disabled.handlebars) {
|
|
136
136
|
items.push(this.__patterns.handlebars._starting_pattern.source);
|
|
137
137
|
}
|
|
138
|
+
if (!this._disabled.angular) {
|
|
139
|
+
// Handlebars ('{{' and '}}') are also special tokens in Angular)
|
|
140
|
+
items.push(this.__patterns.handlebars._starting_pattern.source);
|
|
141
|
+
}
|
|
138
142
|
if (!this._disabled.erb) {
|
|
139
143
|
items.push(this.__patterns.erb._starting_pattern.source);
|
|
140
144
|
}
|
|
@@ -291,7 +291,7 @@ Beautifier.prototype.beautify = function() {
|
|
|
291
291
|
type: ''
|
|
292
292
|
};
|
|
293
293
|
|
|
294
|
-
var last_tag_token = new TagOpenParserToken();
|
|
294
|
+
var last_tag_token = new TagOpenParserToken(this._options);
|
|
295
295
|
|
|
296
296
|
var printer = new Printer(this._options, baseIndentString);
|
|
297
297
|
var tokens = new Tokenizer(source_text, this._options).tokenize();
|
|
@@ -614,7 +614,7 @@ Beautifier.prototype._handle_tag_open = function(printer, raw_token, last_tag_to
|
|
|
614
614
|
return parser_token;
|
|
615
615
|
};
|
|
616
616
|
|
|
617
|
-
var TagOpenParserToken = function(parent, raw_token) {
|
|
617
|
+
var TagOpenParserToken = function(options, parent, raw_token) {
|
|
618
618
|
this.parent = parent || null;
|
|
619
619
|
this.text = '';
|
|
620
620
|
this.type = 'TK_TAG_OPEN';
|
|
@@ -681,13 +681,14 @@ var TagOpenParserToken = function(parent, raw_token) {
|
|
|
681
681
|
}
|
|
682
682
|
|
|
683
683
|
// handlebars tags that don't start with # or ^ are single_tags, and so also start and end.
|
|
684
|
+
// if they start with # or ^, they are still considered single tags if indenting of handlebars is set to false
|
|
684
685
|
this.is_end_tag = this.is_end_tag ||
|
|
685
|
-
(this.tag_start_char === '{' && (this.text.length < 3 || (/[^#\^]/.test(this.text.charAt(handlebar_starts)))));
|
|
686
|
+
(this.tag_start_char === '{' && (!options.indent_handlebars || this.text.length < 3 || (/[^#\^]/.test(this.text.charAt(handlebar_starts)))));
|
|
686
687
|
}
|
|
687
688
|
};
|
|
688
689
|
|
|
689
690
|
Beautifier.prototype._get_tag_open_token = function(raw_token) { //function to get a full tag and parse its type
|
|
690
|
-
var parser_token = new TagOpenParserToken(this._tag_stack.get_parser_token(), raw_token);
|
|
691
|
+
var parser_token = new TagOpenParserToken(this._options, this._tag_stack.get_parser_token(), raw_token);
|
|
691
692
|
|
|
692
693
|
parser_token.alignment_size = this._options.wrap_attributes_indent_size;
|
|
693
694
|
|
|
@@ -130,6 +130,7 @@ Tokenizer.prototype._get_next_token = function(previous_token, open_token) { //
|
|
|
130
130
|
token = token || this._read_open_handlebars(c, open_token);
|
|
131
131
|
token = token || this._read_attribute(c, previous_token, open_token);
|
|
132
132
|
token = token || this._read_close(c, open_token);
|
|
133
|
+
token = token || this._read_script_and_style(c, previous_token);
|
|
133
134
|
token = token || this._read_control_flows(c, open_token);
|
|
134
135
|
token = token || this._read_raw_content(c, previous_token, open_token);
|
|
135
136
|
token = token || this._read_content_word(c, open_token);
|
|
@@ -215,8 +216,8 @@ Tokenizer.prototype._read_open_handlebars = function(c, open_token) {
|
|
|
215
216
|
var resulting_string = null;
|
|
216
217
|
var token = null;
|
|
217
218
|
if (!open_token || open_token.type === TOKEN.CONTROL_FLOW_OPEN) {
|
|
218
|
-
if (this._options.indent_handlebars && c === '{' && this._input.peek(1) === '{') {
|
|
219
|
-
if (this._input.peek(2) === '!') {
|
|
219
|
+
if ((this._options.templating.includes('angular') || this._options.indent_handlebars) && c === '{' && this._input.peek(1) === '{') {
|
|
220
|
+
if (this._options.indent_handlebars && this._input.peek(2) === '!') {
|
|
220
221
|
resulting_string = this.__patterns.handlebars_comment.read();
|
|
221
222
|
resulting_string = resulting_string || this.__patterns.handlebars.read();
|
|
222
223
|
token = this._create_token(TOKEN.COMMENT, resulting_string);
|
|
@@ -232,8 +233,8 @@ Tokenizer.prototype._read_open_handlebars = function(c, open_token) {
|
|
|
232
233
|
Tokenizer.prototype._read_control_flows = function(c, open_token) {
|
|
233
234
|
var resulting_string = '';
|
|
234
235
|
var token = null;
|
|
235
|
-
// Only check for control flows if angular templating is set
|
|
236
|
-
if (!this._options.templating.includes('angular')
|
|
236
|
+
// Only check for control flows if angular templating is set
|
|
237
|
+
if (!this._options.templating.includes('angular')) {
|
|
237
238
|
return token;
|
|
238
239
|
}
|
|
239
240
|
|
|
@@ -326,7 +327,6 @@ Tokenizer.prototype._is_content_unformatted = function(tag_name) {
|
|
|
326
327
|
this._options.unformatted.indexOf(tag_name) !== -1);
|
|
327
328
|
};
|
|
328
329
|
|
|
329
|
-
|
|
330
330
|
Tokenizer.prototype._read_raw_content = function(c, previous_token, open_token) { // jshint unused:false
|
|
331
331
|
var resulting_string = '';
|
|
332
332
|
if (open_token && open_token.text[0] === '{') {
|
|
@@ -334,6 +334,22 @@ Tokenizer.prototype._read_raw_content = function(c, previous_token, open_token)
|
|
|
334
334
|
} else if (previous_token.type === TOKEN.TAG_CLOSE &&
|
|
335
335
|
previous_token.opened.text[0] === '<' && previous_token.text[0] !== '/') {
|
|
336
336
|
// ^^ empty tag has no content
|
|
337
|
+
var tag_name = previous_token.opened.text.substr(1).toLowerCase();
|
|
338
|
+
if (this._is_content_unformatted(tag_name)) {
|
|
339
|
+
|
|
340
|
+
resulting_string = this._input.readUntil(new RegExp('</' + tag_name + '[\\n\\r\\t ]*?>', 'ig'));
|
|
341
|
+
}
|
|
342
|
+
}
|
|
343
|
+
|
|
344
|
+
if (resulting_string) {
|
|
345
|
+
return this._create_token(TOKEN.TEXT, resulting_string);
|
|
346
|
+
}
|
|
347
|
+
|
|
348
|
+
return null;
|
|
349
|
+
};
|
|
350
|
+
|
|
351
|
+
Tokenizer.prototype._read_script_and_style = function(c, previous_token) { // jshint unused:false
|
|
352
|
+
if (previous_token.type === TOKEN.TAG_CLOSE && previous_token.opened.text[0] === '<' && previous_token.text[0] !== '/') {
|
|
337
353
|
var tag_name = previous_token.opened.text.substr(1).toLowerCase();
|
|
338
354
|
if (tag_name === 'script' || tag_name === 'style') {
|
|
339
355
|
// Script and style tags are allowed to have comments wrapping their content
|
|
@@ -343,17 +359,12 @@ Tokenizer.prototype._read_raw_content = function(c, previous_token, open_token)
|
|
|
343
359
|
token.type = TOKEN.TEXT;
|
|
344
360
|
return token;
|
|
345
361
|
}
|
|
346
|
-
resulting_string = this._input.readUntil(new RegExp('</' + tag_name + '[\\n\\r\\t ]*?>', 'ig'));
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
362
|
+
var resulting_string = this._input.readUntil(new RegExp('</' + tag_name + '[\\n\\r\\t ]*?>', 'ig'));
|
|
363
|
+
if (resulting_string) {
|
|
364
|
+
return this._create_token(TOKEN.TEXT, resulting_string);
|
|
365
|
+
}
|
|
350
366
|
}
|
|
351
367
|
}
|
|
352
|
-
|
|
353
|
-
if (resulting_string) {
|
|
354
|
-
return this._create_token(TOKEN.TEXT, resulting_string);
|
|
355
|
-
}
|
|
356
|
-
|
|
357
368
|
return null;
|
|
358
369
|
};
|
|
359
370
|
|
|
@@ -371,6 +382,7 @@ Tokenizer.prototype._read_content_word = function(c, open_token) {
|
|
|
371
382
|
if (resulting_string) {
|
|
372
383
|
return this._create_token(TOKEN.TEXT, resulting_string);
|
|
373
384
|
}
|
|
385
|
+
return null;
|
|
374
386
|
};
|
|
375
387
|
|
|
376
388
|
module.exports.Tokenizer = Tokenizer;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "js-beautify",
|
|
3
|
-
"version": "1.15.
|
|
3
|
+
"version": "1.15.4",
|
|
4
4
|
"description": "beautifier.io for node",
|
|
5
5
|
"main": "js/index.js",
|
|
6
6
|
"bin": {
|
|
@@ -51,9 +51,9 @@
|
|
|
51
51
|
"dependencies": {
|
|
52
52
|
"config-chain": "^1.1.13",
|
|
53
53
|
"editorconfig": "^1.0.4",
|
|
54
|
-
"glob": "^10.
|
|
54
|
+
"glob": "^10.4.2",
|
|
55
55
|
"js-cookie": "^3.0.5",
|
|
56
|
-
"nopt": "^7.2.
|
|
56
|
+
"nopt": "^7.2.1"
|
|
57
57
|
},
|
|
58
58
|
"devDependencies": {
|
|
59
59
|
"ansi-regex": "^6.0.1",
|
|
@@ -62,12 +62,12 @@
|
|
|
62
62
|
"jquery": "^3.6.4",
|
|
63
63
|
"jshint": "^2.13.6",
|
|
64
64
|
"minimist": "^1.2.8",
|
|
65
|
-
"mocha": "^
|
|
65
|
+
"mocha": "^11.0.1",
|
|
66
66
|
"mustache": "^4.2.0",
|
|
67
67
|
"requirejs": "^2.3.6",
|
|
68
68
|
"serve": "^14.2.0",
|
|
69
69
|
"strip-ansi": "^7.0.1",
|
|
70
70
|
"webpack": "^5.81.0",
|
|
71
|
-
"webpack-cli": "^
|
|
71
|
+
"webpack-cli": "^6.0.1"
|
|
72
72
|
}
|
|
73
73
|
}
|
|
@@ -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/math-intrinsics
|
|
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,24 @@
|
|
|
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.1.0](https://github.com/es-shims/math-intrinsics/compare/v1.0.0...v1.1.0) - 2024-12-18
|
|
9
|
+
|
|
10
|
+
### Commits
|
|
11
|
+
|
|
12
|
+
- [New] add `round` [`7cfb044`](https://github.com/es-shims/math-intrinsics/commit/7cfb04460c0fbdf1ca101eecbac3f59d11994130)
|
|
13
|
+
- [Tests] add attw [`e96be8f`](https://github.com/es-shims/math-intrinsics/commit/e96be8fbf58449eafe976446a0470e6ea561ad8d)
|
|
14
|
+
- [Dev Deps] update `@types/tape` [`30d0023`](https://github.com/es-shims/math-intrinsics/commit/30d00234ce8a3fa0094a61cd55d6686eb91e36ec)
|
|
15
|
+
|
|
16
|
+
## v1.0.0 - 2024-12-11
|
|
17
|
+
|
|
18
|
+
### Commits
|
|
19
|
+
|
|
20
|
+
- Initial implementation, tests, readme, types [`b898caa`](https://github.com/es-shims/math-intrinsics/commit/b898caae94e9994a94a42b8740f7bbcfd0a868fe)
|
|
21
|
+
- Initial commit [`02745b0`](https://github.com/es-shims/math-intrinsics/commit/02745b03a62255af8a332771987b55d127538d9c)
|
|
22
|
+
- [New] add `constants/maxArrayLength`, `mod` [`b978178`](https://github.com/es-shims/math-intrinsics/commit/b978178a57685bd23ed1c7efe2137f3784f5fcc5)
|
|
23
|
+
- npm init [`a39fc57`](https://github.com/es-shims/math-intrinsics/commit/a39fc57e5639a645d0bd52a0dc56202480223be2)
|
|
24
|
+
- Only apps should have lockfiles [`9451580`](https://github.com/es-shims/math-intrinsics/commit/94515800fb34db4f3cc7e99290042d45609ac7bd)
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2024 ECMAScript Shims
|
|
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,50 @@
|
|
|
1
|
+
# math-intrinsics <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
|
+
ES Math-related intrinsics and helpers, robustly cached.
|
|
11
|
+
|
|
12
|
+
- `abs`
|
|
13
|
+
- `floor`
|
|
14
|
+
- `isFinite`
|
|
15
|
+
- `isInteger`
|
|
16
|
+
- `isNaN`
|
|
17
|
+
- `isNegativeZero`
|
|
18
|
+
- `max`
|
|
19
|
+
- `min`
|
|
20
|
+
- `mod`
|
|
21
|
+
- `pow`
|
|
22
|
+
- `round`
|
|
23
|
+
- `sign`
|
|
24
|
+
- `constants/maxArrayLength`
|
|
25
|
+
- `constants/maxSafeInteger`
|
|
26
|
+
- `constants/maxValue`
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
## Tests
|
|
30
|
+
Simply clone the repo, `npm install`, and run `npm test`
|
|
31
|
+
|
|
32
|
+
## Security
|
|
33
|
+
|
|
34
|
+
Please email [@ljharb](https://github.com/ljharb) or see https://tidelift.com/security if you have a potential security vulnerability to report.
|
|
35
|
+
|
|
36
|
+
[package-url]: https://npmjs.org/package/math-intrinsics
|
|
37
|
+
[npm-version-svg]: https://versionbadg.es/es-shims/math-intrinsics.svg
|
|
38
|
+
[deps-svg]: https://david-dm.org/es-shims/math-intrinsics.svg
|
|
39
|
+
[deps-url]: https://david-dm.org/es-shims/math-intrinsics
|
|
40
|
+
[dev-deps-svg]: https://david-dm.org/es-shims/math-intrinsics/dev-status.svg
|
|
41
|
+
[dev-deps-url]: https://david-dm.org/es-shims/math-intrinsics#info=devDependencies
|
|
42
|
+
[npm-badge-png]: https://nodei.co/npm/math-intrinsics.png?downloads=true&stars=true
|
|
43
|
+
[license-image]: https://img.shields.io/npm/l/math-intrinsics.svg
|
|
44
|
+
[license-url]: LICENSE
|
|
45
|
+
[downloads-image]: https://img.shields.io/npm/dm/es-object.svg
|
|
46
|
+
[downloads-url]: https://npm-stat.com/charts.html?package=math-intrinsics
|
|
47
|
+
[codecov-image]: https://codecov.io/gh/es-shims/math-intrinsics/branch/main/graphs/badge.svg
|
|
48
|
+
[codecov-url]: https://app.codecov.io/gh/es-shims/math-intrinsics/
|
|
49
|
+
[actions-image]: https://img.shields.io/endpoint?url=https://github-actions-badge-u3jn4tfpocch.runkit.sh/es-shims/math-intrinsics
|
|
50
|
+
[actions-url]: https://github.com/es-shims/math-intrinsics/actions
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export = Math.abs;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export = Math.floor;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var $isNaN = require('./isNaN');
|
|
4
|
+
|
|
5
|
+
/** @type {import('./isFinite')} */
|
|
6
|
+
module.exports = function isFinite(x) {
|
|
7
|
+
return (typeof x === 'number' || typeof x === 'bigint')
|
|
8
|
+
&& !$isNaN(x)
|
|
9
|
+
&& x !== Infinity
|
|
10
|
+
&& x !== -Infinity;
|
|
11
|
+
};
|
|
12
|
+
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var $abs = require('./abs');
|
|
4
|
+
var $floor = require('./floor');
|
|
5
|
+
|
|
6
|
+
var $isNaN = require('./isNaN');
|
|
7
|
+
var $isFinite = require('./isFinite');
|
|
8
|
+
|
|
9
|
+
/** @type {import('./isInteger')} */
|
|
10
|
+
module.exports = function isInteger(argument) {
|
|
11
|
+
if (typeof argument !== 'number' || $isNaN(argument) || !$isFinite(argument)) {
|
|
12
|
+
return false;
|
|
13
|
+
}
|
|
14
|
+
var absValue = $abs(argument);
|
|
15
|
+
return $floor(absValue) === absValue;
|
|
16
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export = Number.isNaN;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export = Math.max;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export = Math.min;
|