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
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var test = require('tape');
|
|
4
|
+
var hasSymbols = require('../');
|
|
5
|
+
var runSymbolTests = require('./tests');
|
|
6
|
+
|
|
7
|
+
test('interface', function (t) {
|
|
8
|
+
t.equal(typeof hasSymbols, 'function', 'is a function');
|
|
9
|
+
t.equal(typeof hasSymbols(), 'boolean', 'returns a boolean');
|
|
10
|
+
t.end();
|
|
11
|
+
});
|
|
12
|
+
|
|
13
|
+
test('Symbols are supported', { skip: !hasSymbols() }, function (t) {
|
|
14
|
+
runSymbolTests(t);
|
|
15
|
+
t.end();
|
|
16
|
+
});
|
|
17
|
+
|
|
18
|
+
test('Symbols are not supported', { skip: hasSymbols() }, function (t) {
|
|
19
|
+
t.equal(typeof Symbol, 'undefined', 'global Symbol is undefined');
|
|
20
|
+
t.equal(typeof Object.getOwnPropertySymbols, 'undefined', 'Object.getOwnPropertySymbols does not exist');
|
|
21
|
+
t.end();
|
|
22
|
+
});
|
|
@@ -0,0 +1,29 @@
|
|
|
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 TS is stupid and doesn't know about top level return
|
|
12
|
+
return;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
var hasSymbols = require('../../shams');
|
|
16
|
+
|
|
17
|
+
test('polyfilled Symbols', function (t) {
|
|
18
|
+
/* eslint-disable global-require */
|
|
19
|
+
t.equal(hasSymbols(), false, 'hasSymbols is false before polyfilling');
|
|
20
|
+
require('core-js/fn/symbol');
|
|
21
|
+
require('core-js/fn/symbol/to-string-tag');
|
|
22
|
+
|
|
23
|
+
require('../tests')(t);
|
|
24
|
+
|
|
25
|
+
var hasSymbolsAfter = hasSymbols();
|
|
26
|
+
t.equal(hasSymbolsAfter, true, 'hasSymbols is true after polyfilling');
|
|
27
|
+
/* eslint-enable global-require */
|
|
28
|
+
t.end();
|
|
29
|
+
});
|
|
@@ -0,0 +1,29 @@
|
|
|
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 TS is stupid and doesn't know about top level return
|
|
12
|
+
return;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
var hasSymbols = require('../../shams');
|
|
16
|
+
|
|
17
|
+
test('polyfilled Symbols', function (t) {
|
|
18
|
+
/* eslint-disable global-require */
|
|
19
|
+
t.equal(hasSymbols(), false, 'hasSymbols is false before polyfilling');
|
|
20
|
+
|
|
21
|
+
require('get-own-property-symbols');
|
|
22
|
+
|
|
23
|
+
require('../tests')(t);
|
|
24
|
+
|
|
25
|
+
var hasSymbolsAfter = hasSymbols();
|
|
26
|
+
t.equal(hasSymbolsAfter, true, 'hasSymbols is true after polyfilling');
|
|
27
|
+
/* eslint-enable global-require */
|
|
28
|
+
t.end();
|
|
29
|
+
});
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
/** @type {(t: import('tape').Test) => false | void} */
|
|
4
|
+
// eslint-disable-next-line consistent-return
|
|
5
|
+
module.exports = function runSymbolTests(t) {
|
|
6
|
+
t.equal(typeof Symbol, 'function', 'global Symbol is a function');
|
|
7
|
+
|
|
8
|
+
if (typeof Symbol !== 'function') { return false; }
|
|
9
|
+
|
|
10
|
+
t.notEqual(Symbol(), Symbol(), 'two symbols are not equal');
|
|
11
|
+
|
|
12
|
+
/*
|
|
13
|
+
t.equal(
|
|
14
|
+
Symbol.prototype.toString.call(Symbol('foo')),
|
|
15
|
+
Symbol.prototype.toString.call(Symbol('foo')),
|
|
16
|
+
'two symbols with the same description stringify the same'
|
|
17
|
+
);
|
|
18
|
+
*/
|
|
19
|
+
|
|
20
|
+
/*
|
|
21
|
+
var foo = Symbol('foo');
|
|
22
|
+
|
|
23
|
+
t.notEqual(
|
|
24
|
+
String(foo),
|
|
25
|
+
String(Symbol('bar')),
|
|
26
|
+
'two symbols with different descriptions do not stringify the same'
|
|
27
|
+
);
|
|
28
|
+
*/
|
|
29
|
+
|
|
30
|
+
t.equal(typeof Symbol.prototype.toString, 'function', 'Symbol#toString is a function');
|
|
31
|
+
// t.equal(String(foo), Symbol.prototype.toString.call(foo), 'Symbol#toString equals String of the same symbol');
|
|
32
|
+
|
|
33
|
+
t.equal(typeof Object.getOwnPropertySymbols, 'function', 'Object.getOwnPropertySymbols is a function');
|
|
34
|
+
|
|
35
|
+
/** @type {{ [k in symbol]?: unknown }} */
|
|
36
|
+
var obj = {};
|
|
37
|
+
var sym = Symbol('test');
|
|
38
|
+
var symObj = Object(sym);
|
|
39
|
+
t.notEqual(typeof sym, 'string', 'Symbol is not a string');
|
|
40
|
+
t.equal(Object.prototype.toString.call(sym), '[object Symbol]', 'symbol primitive Object#toStrings properly');
|
|
41
|
+
t.equal(Object.prototype.toString.call(symObj), '[object Symbol]', 'symbol primitive Object#toStrings properly');
|
|
42
|
+
|
|
43
|
+
var symVal = 42;
|
|
44
|
+
obj[sym] = symVal;
|
|
45
|
+
// eslint-disable-next-line no-restricted-syntax, no-unused-vars
|
|
46
|
+
for (var _ in obj) { t.fail('symbol property key was found in for..in of object'); }
|
|
47
|
+
|
|
48
|
+
t.deepEqual(Object.keys(obj), [], 'no enumerable own keys on symbol-valued object');
|
|
49
|
+
t.deepEqual(Object.getOwnPropertyNames(obj), [], 'no own names on symbol-valued object');
|
|
50
|
+
t.deepEqual(Object.getOwnPropertySymbols(obj), [sym], 'one own symbol on symbol-valued object');
|
|
51
|
+
t.equal(Object.prototype.propertyIsEnumerable.call(obj, sym), true, 'symbol is enumerable');
|
|
52
|
+
t.deepEqual(Object.getOwnPropertyDescriptor(obj, sym), {
|
|
53
|
+
configurable: true,
|
|
54
|
+
enumerable: true,
|
|
55
|
+
value: 42,
|
|
56
|
+
writable: true
|
|
57
|
+
}, 'property descriptor is correct');
|
|
58
|
+
};
|
|
@@ -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/has-tostringtag
|
|
8
|
+
community_bridge: # Replace with a single Community Bridge project-name e.g., cloud-foundry
|
|
9
|
+
liberapay: # Replace with a single Liberapay username
|
|
10
|
+
issuehunt: # Replace with a single IssueHunt username
|
|
11
|
+
otechie: # Replace with a single Otechie username
|
|
12
|
+
custom: # Replace with up to 4 custom sponsorship URLs e.g., ['link1', 'link2']
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
# Changelog
|
|
2
|
+
|
|
3
|
+
All notable changes to this project will be documented in this file.
|
|
4
|
+
|
|
5
|
+
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/)
|
|
6
|
+
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
|
7
|
+
|
|
8
|
+
## [v1.0.2](https://github.com/inspect-js/has-tostringtag/compare/v1.0.1...v1.0.2) - 2024-02-01
|
|
9
|
+
|
|
10
|
+
### Fixed
|
|
11
|
+
|
|
12
|
+
- [Fix] move `has-symbols` back to prod deps [`#3`](https://github.com/inspect-js/has-tostringtag/issues/3)
|
|
13
|
+
|
|
14
|
+
## [v1.0.1](https://github.com/inspect-js/has-tostringtag/compare/v1.0.0...v1.0.1) - 2024-02-01
|
|
15
|
+
|
|
16
|
+
### Commits
|
|
17
|
+
|
|
18
|
+
- [patch] add types [`9276414`](https://github.com/inspect-js/has-tostringtag/commit/9276414b22fab3eeb234688841722c4be113201f)
|
|
19
|
+
- [meta] use `npmignore` to autogenerate an npmignore file [`5c0dcd1`](https://github.com/inspect-js/has-tostringtag/commit/5c0dcd1ff66419562a30d1fd88b966cc36bce5fc)
|
|
20
|
+
- [actions] reuse common workflows [`dee9509`](https://github.com/inspect-js/has-tostringtag/commit/dee950904ab5719b62cf8d73d2ac950b09093266)
|
|
21
|
+
- [actions] update codecov uploader [`b8cb3a0`](https://github.com/inspect-js/has-tostringtag/commit/b8cb3a0b8ffbb1593012c4c2daa45fb25642825d)
|
|
22
|
+
- [Tests] generate coverage [`be5b288`](https://github.com/inspect-js/has-tostringtag/commit/be5b28889e2735cdbcef387f84c2829995f2f05e)
|
|
23
|
+
- [Dev Deps] update `eslint`, `@ljharb/eslint-config`, `safe-publish-latest`, `tape` [`69a0827`](https://github.com/inspect-js/has-tostringtag/commit/69a0827974e9b877b2c75b70b057555da8f25a65)
|
|
24
|
+
- [Dev Deps] update `eslint`, `@ljharb/eslint-config`, `aud`, `auto-changelog`, `tape` [`4c9e210`](https://github.com/inspect-js/has-tostringtag/commit/4c9e210a5682f0557a3235d36b68ce809d7fb825)
|
|
25
|
+
- [actions] update rebase action to use reusable workflow [`ca8dcd3`](https://github.com/inspect-js/has-tostringtag/commit/ca8dcd3a6f3f5805d7e3fd461b654aedba0946e7)
|
|
26
|
+
- [Dev Deps] update `@ljharb/eslint-config`, `aud`, `npmignore`, `tape` [`07f3eaf`](https://github.com/inspect-js/has-tostringtag/commit/07f3eafa45dd98208c94479737da77f9a69b94c4)
|
|
27
|
+
- [Deps] update `has-symbols` [`999e009`](https://github.com/inspect-js/has-tostringtag/commit/999e0095a7d1749a58f55472ec8bf8108cdfdcf3)
|
|
28
|
+
- [Tests] remove staging tests since they fail on modern node [`9d9526b`](https://github.com/inspect-js/has-tostringtag/commit/9d9526b1dc1ca7f2292b52efda4c3d857b0e39bd)
|
|
29
|
+
|
|
30
|
+
## v1.0.0 - 2021-08-05
|
|
31
|
+
|
|
32
|
+
### Commits
|
|
33
|
+
|
|
34
|
+
- Tests [`6b6f573`](https://github.com/inspect-js/has-tostringtag/commit/6b6f5734dc2058badb300ff0783efdad95fe1a65)
|
|
35
|
+
- Initial commit [`2f8190e`](https://github.com/inspect-js/has-tostringtag/commit/2f8190e799fac32ba9b95a076c0255e01d7ce475)
|
|
36
|
+
- [meta] do not publish github action workflow files [`6e08cc4`](https://github.com/inspect-js/has-tostringtag/commit/6e08cc4e0fea7ec71ef66e70734b2af2c4a8b71b)
|
|
37
|
+
- readme [`94bed6c`](https://github.com/inspect-js/has-tostringtag/commit/94bed6c9560cbbfda034f8d6c260bb7b0db33c1a)
|
|
38
|
+
- npm init [`be67840`](https://github.com/inspect-js/has-tostringtag/commit/be67840ab92ee7adb98bcc65261975543f815fa5)
|
|
39
|
+
- Implementation [`c4914ec`](https://github.com/inspect-js/has-tostringtag/commit/c4914ecc51ddee692c85b471ae0a5d8123030fbf)
|
|
40
|
+
- [meta] use `auto-changelog` [`4aaf768`](https://github.com/inspect-js/has-tostringtag/commit/4aaf76895ae01d7b739f2b19f967ef2372506cd7)
|
|
41
|
+
- Only apps should have lockfiles [`bc4d99e`](https://github.com/inspect-js/has-tostringtag/commit/bc4d99e4bf494afbaa235c5f098df6e642edf724)
|
|
42
|
+
- [meta] add `safe-publish-latest` [`6523c05`](https://github.com/inspect-js/has-tostringtag/commit/6523c05c9b87140f3ae74c9daf91633dd9ff4e1f)
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2021 Inspect JS
|
|
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,46 @@
|
|
|
1
|
+
# has-tostringtag <sup>[![Version Badge][2]][1]</sup>
|
|
2
|
+
|
|
3
|
+
[![github actions][actions-image]][actions-url]
|
|
4
|
+
[![coverage][codecov-image]][codecov-url]
|
|
5
|
+
[![dependency status][5]][6]
|
|
6
|
+
[![dev dependency status][7]][8]
|
|
7
|
+
[![License][license-image]][license-url]
|
|
8
|
+
[![Downloads][downloads-image]][downloads-url]
|
|
9
|
+
|
|
10
|
+
[![npm badge][11]][1]
|
|
11
|
+
|
|
12
|
+
Determine if the JS environment has `Symbol.toStringTag` support. Supports spec, or shams.
|
|
13
|
+
|
|
14
|
+
## Example
|
|
15
|
+
|
|
16
|
+
```js
|
|
17
|
+
var hasSymbolToStringTag = require('has-tostringtag');
|
|
18
|
+
|
|
19
|
+
hasSymbolToStringTag() === true; // if the environment has native Symbol.toStringTag support. Not polyfillable, not forgeable.
|
|
20
|
+
|
|
21
|
+
var hasSymbolToStringTagKinda = require('has-tostringtag/shams');
|
|
22
|
+
hasSymbolToStringTagKinda() === true; // if the environment has a Symbol.toStringTag sham that mostly follows the spec.
|
|
23
|
+
```
|
|
24
|
+
|
|
25
|
+
## Supported Symbol shams
|
|
26
|
+
- get-own-property-symbols [npm](https://www.npmjs.com/package/get-own-property-symbols) | [github](https://github.com/WebReflection/get-own-property-symbols)
|
|
27
|
+
- core-js [npm](https://www.npmjs.com/package/core-js) | [github](https://github.com/zloirock/core-js)
|
|
28
|
+
|
|
29
|
+
## Tests
|
|
30
|
+
Simply clone the repo, `npm install`, and run `npm test`
|
|
31
|
+
|
|
32
|
+
[1]: https://npmjs.org/package/has-tostringtag
|
|
33
|
+
[2]: https://versionbadg.es/inspect-js/has-tostringtag.svg
|
|
34
|
+
[5]: https://david-dm.org/inspect-js/has-tostringtag.svg
|
|
35
|
+
[6]: https://david-dm.org/inspect-js/has-tostringtag
|
|
36
|
+
[7]: https://david-dm.org/inspect-js/has-tostringtag/dev-status.svg
|
|
37
|
+
[8]: https://david-dm.org/inspect-js/has-tostringtag#info=devDependencies
|
|
38
|
+
[11]: https://nodei.co/npm/has-tostringtag.png?downloads=true&stars=true
|
|
39
|
+
[license-image]: https://img.shields.io/npm/l/has-tostringtag.svg
|
|
40
|
+
[license-url]: LICENSE
|
|
41
|
+
[downloads-image]: https://img.shields.io/npm/dm/has-tostringtag.svg
|
|
42
|
+
[downloads-url]: https://npm-stat.com/charts.html?package=has-tostringtag
|
|
43
|
+
[codecov-image]: https://codecov.io/gh/inspect-js/has-tostringtag/branch/main/graphs/badge.svg
|
|
44
|
+
[codecov-url]: https://app.codecov.io/gh/inspect-js/has-tostringtag/
|
|
45
|
+
[actions-image]: https://img.shields.io/endpoint?url=https://github-actions-badge-u3jn4tfpocch.runkit.sh/inspect-js/has-tostringtag
|
|
46
|
+
[actions-url]: https://github.com/inspect-js/has-tostringtag/actions
|
|
@@ -0,0 +1,108 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "has-tostringtag",
|
|
3
|
+
"version": "1.0.2",
|
|
4
|
+
"author": {
|
|
5
|
+
"name": "Jordan Harband",
|
|
6
|
+
"email": "ljharb@gmail.com",
|
|
7
|
+
"url": "http://ljharb.codes"
|
|
8
|
+
},
|
|
9
|
+
"funding": {
|
|
10
|
+
"url": "https://github.com/sponsors/ljharb"
|
|
11
|
+
},
|
|
12
|
+
"contributors": [
|
|
13
|
+
{
|
|
14
|
+
"name": "Jordan Harband",
|
|
15
|
+
"email": "ljharb@gmail.com",
|
|
16
|
+
"url": "http://ljharb.codes"
|
|
17
|
+
}
|
|
18
|
+
],
|
|
19
|
+
"description": "Determine if the JS environment has `Symbol.toStringTag` support. Supports spec, or shams.",
|
|
20
|
+
"license": "MIT",
|
|
21
|
+
"main": "index.js",
|
|
22
|
+
"types": "./index.d.ts",
|
|
23
|
+
"exports": {
|
|
24
|
+
".": [
|
|
25
|
+
{
|
|
26
|
+
"types": "./index.d.ts",
|
|
27
|
+
"default": "./index.js"
|
|
28
|
+
},
|
|
29
|
+
"./index.js"
|
|
30
|
+
],
|
|
31
|
+
"./shams": [
|
|
32
|
+
{
|
|
33
|
+
"types": "./shams.d.ts",
|
|
34
|
+
"default": "./shams.js"
|
|
35
|
+
},
|
|
36
|
+
"./shams.js"
|
|
37
|
+
],
|
|
38
|
+
"./package.json": "./package.json"
|
|
39
|
+
},
|
|
40
|
+
"scripts": {
|
|
41
|
+
"prepack": "npmignore --auto --commentLines=autogenerated",
|
|
42
|
+
"prepublishOnly": "safe-publish-latest",
|
|
43
|
+
"prepublish": "not-in-publish || npm run prepublishOnly",
|
|
44
|
+
"pretest": "npm run --silent lint",
|
|
45
|
+
"test": "npm run tests-only",
|
|
46
|
+
"posttest": "aud --production",
|
|
47
|
+
"tests-only": "npm run test:stock && npm run test:shams",
|
|
48
|
+
"test:stock": "nyc node test",
|
|
49
|
+
"test:staging": "nyc node --harmony --es-staging test",
|
|
50
|
+
"test:shams": "npm run --silent test:shams:getownpropertysymbols && npm run --silent test:shams:corejs",
|
|
51
|
+
"test:shams:corejs": "nyc node test/shams/core-js.js",
|
|
52
|
+
"test:shams:getownpropertysymbols": "nyc node test/shams/get-own-property-symbols.js",
|
|
53
|
+
"lint": "eslint --ext=js,mjs .",
|
|
54
|
+
"version": "auto-changelog && git add CHANGELOG.md",
|
|
55
|
+
"postversion": "auto-changelog && git add CHANGELOG.md && git commit --no-edit --amend && git tag -f \"v$(node -e \"console.log(require('./package.json').version)\")\""
|
|
56
|
+
},
|
|
57
|
+
"repository": {
|
|
58
|
+
"type": "git",
|
|
59
|
+
"url": "git+https://github.com/inspect-js/has-tostringtag.git"
|
|
60
|
+
},
|
|
61
|
+
"bugs": {
|
|
62
|
+
"url": "https://github.com/inspect-js/has-tostringtag/issues"
|
|
63
|
+
},
|
|
64
|
+
"homepage": "https://github.com/inspect-js/has-tostringtag#readme",
|
|
65
|
+
"keywords": [
|
|
66
|
+
"javascript",
|
|
67
|
+
"ecmascript",
|
|
68
|
+
"symbol",
|
|
69
|
+
"symbols",
|
|
70
|
+
"tostringtag",
|
|
71
|
+
"Symbol.toStringTag"
|
|
72
|
+
],
|
|
73
|
+
"devDependencies": {
|
|
74
|
+
"@ljharb/eslint-config": "^21.1.0",
|
|
75
|
+
"@types/has-symbols": "^1.0.2",
|
|
76
|
+
"@types/tape": "^5.6.4",
|
|
77
|
+
"aud": "^2.0.4",
|
|
78
|
+
"auto-changelog": "^2.4.0",
|
|
79
|
+
"core-js": "^2.6.12",
|
|
80
|
+
"eslint": "=8.8.0",
|
|
81
|
+
"get-own-property-symbols": "^0.9.5",
|
|
82
|
+
"in-publish": "^2.0.1",
|
|
83
|
+
"npmignore": "^0.3.1",
|
|
84
|
+
"nyc": "^10.3.2",
|
|
85
|
+
"safe-publish-latest": "^2.0.0",
|
|
86
|
+
"tape": "^5.7.4",
|
|
87
|
+
"typescript": "next"
|
|
88
|
+
},
|
|
89
|
+
"engines": {
|
|
90
|
+
"node": ">= 0.4"
|
|
91
|
+
},
|
|
92
|
+
"auto-changelog": {
|
|
93
|
+
"output": "CHANGELOG.md",
|
|
94
|
+
"template": "keepachangelog",
|
|
95
|
+
"unreleased": false,
|
|
96
|
+
"commitLimit": false,
|
|
97
|
+
"backfillLimit": false,
|
|
98
|
+
"hideCredit": true
|
|
99
|
+
},
|
|
100
|
+
"publishConfig": {
|
|
101
|
+
"ignore": [
|
|
102
|
+
".github/workflows"
|
|
103
|
+
]
|
|
104
|
+
},
|
|
105
|
+
"dependencies": {
|
|
106
|
+
"has-symbols": "^1.0.3"
|
|
107
|
+
}
|
|
108
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var test = require('tape');
|
|
4
|
+
var hasSymbolToStringTag = require('../');
|
|
5
|
+
var runSymbolTests = require('./tests');
|
|
6
|
+
|
|
7
|
+
test('interface', function (t) {
|
|
8
|
+
t.equal(typeof hasSymbolToStringTag, 'function', 'is a function');
|
|
9
|
+
t.equal(typeof hasSymbolToStringTag(), 'boolean', 'returns a boolean');
|
|
10
|
+
t.end();
|
|
11
|
+
});
|
|
12
|
+
|
|
13
|
+
test('Symbol.toStringTag exists', { skip: !hasSymbolToStringTag() }, function (t) {
|
|
14
|
+
runSymbolTests(t);
|
|
15
|
+
t.end();
|
|
16
|
+
});
|
|
17
|
+
|
|
18
|
+
test('Symbol.toStringTag does not exist', { skip: hasSymbolToStringTag() }, function (t) {
|
|
19
|
+
t.equal(typeof Symbol === 'undefined' ? 'undefined' : typeof Symbol.toStringTag, 'undefined', 'global Symbol.toStringTag is undefined');
|
|
20
|
+
t.end();
|
|
21
|
+
});
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var test = require('tape');
|
|
4
|
+
|
|
5
|
+
if (typeof Symbol === 'function' && typeof Symbol.toStringTag === 'symbol') {
|
|
6
|
+
test('has native Symbol.toStringTag support', function (t) {
|
|
7
|
+
t.equal(typeof Symbol, 'function');
|
|
8
|
+
t.equal(typeof Symbol.toStringTag, '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
|
+
// @ts-expect-error no types defined
|
|
21
|
+
require('core-js/fn/symbol');
|
|
22
|
+
// @ts-expect-error no types defined
|
|
23
|
+
require('core-js/fn/symbol/to-string-tag');
|
|
24
|
+
|
|
25
|
+
require('../tests')(t);
|
|
26
|
+
|
|
27
|
+
var hasToStringTagAfter = hasSymbolToStringTag();
|
|
28
|
+
t.equal(hasToStringTagAfter, true, 'hasSymbolToStringTag is true after polyfilling');
|
|
29
|
+
/* eslint-enable global-require */
|
|
30
|
+
t.end();
|
|
31
|
+
});
|
|
@@ -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
|