cloudstructs 0.9.42 → 0.9.44
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 +5 -5
- package/API.md +209 -13
- package/assets/slack-textract/detect.lambda/index.js +354 -90
- 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/@slack/logger/node_modules/@types/node/README.md +1 -1
- package/node_modules/@slack/logger/node_modules/@types/node/assert.d.ts +36 -1
- package/node_modules/@slack/logger/node_modules/@types/node/buffer.buffer.d.ts +9 -0
- package/node_modules/@slack/logger/node_modules/@types/node/buffer.d.ts +8 -4
- package/node_modules/@slack/logger/node_modules/@types/node/child_process.d.ts +50 -33
- package/node_modules/@slack/logger/node_modules/@types/node/console.d.ts +3 -2
- package/node_modules/@slack/logger/node_modules/@types/node/crypto.d.ts +198 -164
- package/node_modules/@slack/logger/node_modules/@types/node/dgram.d.ts +9 -8
- package/node_modules/@slack/logger/node_modules/@types/node/fs/promises.d.ts +39 -21
- package/node_modules/@slack/logger/node_modules/@types/node/fs.d.ts +89 -76
- package/node_modules/@slack/logger/node_modules/@types/node/globals.typedarray.d.ts +19 -0
- package/node_modules/@slack/logger/node_modules/@types/node/http.d.ts +52 -22
- package/node_modules/@slack/logger/node_modules/@types/node/http2.d.ts +29 -22
- package/node_modules/@slack/logger/node_modules/@types/node/https.d.ts +82 -50
- package/node_modules/@slack/logger/node_modules/@types/node/net.d.ts +7 -6
- package/node_modules/@slack/logger/node_modules/@types/node/os.d.ts +3 -2
- package/node_modules/@slack/logger/node_modules/@types/node/package.json +3 -3
- package/node_modules/@slack/logger/node_modules/@types/node/process.d.ts +13 -5
- package/node_modules/@slack/logger/node_modules/@types/node/sqlite.d.ts +221 -7
- package/node_modules/@slack/logger/node_modules/@types/node/stream/consumers.d.ts +2 -2
- package/node_modules/@slack/logger/node_modules/@types/node/string_decoder.d.ts +2 -2
- package/node_modules/@slack/logger/node_modules/@types/node/tls.d.ts +88 -64
- package/node_modules/@slack/logger/node_modules/@types/node/ts5.6/buffer.buffer.d.ts +10 -2
- package/node_modules/@slack/logger/node_modules/@types/node/ts5.6/globals.typedarray.d.ts +16 -0
- package/node_modules/@slack/logger/node_modules/@types/node/url.d.ts +34 -10
- package/node_modules/@slack/logger/node_modules/@types/node/util.d.ts +11 -2
- package/node_modules/@slack/logger/node_modules/@types/node/v8.d.ts +20 -3
- package/node_modules/@slack/logger/node_modules/@types/node/vm.d.ts +24 -3
- package/node_modules/@slack/logger/node_modules/@types/node/worker_threads.d.ts +40 -3
- package/node_modules/@slack/logger/node_modules/@types/node/zlib.d.ts +25 -24
- package/node_modules/@slack/logger/node_modules/undici-types/agent.d.ts +1 -0
- package/node_modules/@slack/logger/node_modules/undici-types/diagnostics-channel.d.ts +0 -1
- package/node_modules/@slack/logger/node_modules/undici-types/errors.d.ts +5 -15
- package/node_modules/@slack/logger/node_modules/undici-types/interceptors.d.ts +5 -0
- package/node_modules/@slack/logger/node_modules/undici-types/package.json +1 -1
- package/node_modules/@slack/logger/node_modules/undici-types/snapshot-agent.d.ts +5 -3
- package/node_modules/@slack/logger/node_modules/undici-types/webidl.d.ts +82 -21
- package/node_modules/@slack/types/dist/block-kit/block-elements.d.ts +4 -0
- package/node_modules/@slack/types/dist/block-kit/block-elements.d.ts.map +1 -1
- package/node_modules/@slack/types/dist/block-kit/blocks.d.ts +36 -2
- package/node_modules/@slack/types/dist/block-kit/blocks.d.ts.map +1 -1
- package/node_modules/@slack/types/dist/block-kit/composition-objects.d.ts +14 -0
- package/node_modules/@slack/types/dist/block-kit/composition-objects.d.ts.map +1 -1
- package/node_modules/@slack/types/dist/block-kit/extensions.d.ts +2 -0
- package/node_modules/@slack/types/dist/block-kit/extensions.d.ts.map +1 -1
- package/node_modules/@slack/types/dist/events/entity-details-requested.d.ts +21 -0
- package/node_modules/@slack/types/dist/events/entity-details-requested.d.ts.map +1 -0
- package/node_modules/@slack/types/dist/events/entity-details-requested.js +3 -0
- package/node_modules/@slack/types/dist/events/entity-details-requested.js.map +1 -0
- package/node_modules/@slack/types/dist/events/index.d.ts +2 -1
- package/node_modules/@slack/types/dist/events/index.d.ts.map +1 -1
- package/node_modules/@slack/types/dist/events/index.js.map +1 -1
- package/node_modules/@slack/types/dist/message-metadata.d.ts +260 -1
- package/node_modules/@slack/types/dist/message-metadata.d.ts.map +1 -1
- package/node_modules/@slack/types/dist/message-metadata.js +24 -0
- package/node_modules/@slack/types/dist/message-metadata.js.map +1 -1
- package/node_modules/@slack/types/package.json +1 -1
- package/node_modules/@slack/web-api/dist/WebClient.d.ts +2 -0
- package/node_modules/@slack/web-api/dist/WebClient.d.ts.map +1 -1
- package/node_modules/@slack/web-api/dist/WebClient.js +2 -0
- package/node_modules/@slack/web-api/dist/WebClient.js.map +1 -1
- package/node_modules/@slack/web-api/dist/methods.d.ts +80 -2
- package/node_modules/@slack/web-api/dist/methods.d.ts.map +1 -1
- package/node_modules/@slack/web-api/dist/methods.js +78 -0
- package/node_modules/@slack/web-api/dist/methods.js.map +1 -1
- package/node_modules/@slack/web-api/dist/types/request/chat.d.ts +37 -9
- package/node_modules/@slack/web-api/dist/types/request/chat.d.ts.map +1 -1
- package/node_modules/@slack/web-api/dist/types/request/entity.d.ts +46 -0
- package/node_modules/@slack/web-api/dist/types/request/entity.d.ts.map +1 -0
- package/node_modules/@slack/web-api/dist/types/request/entity.js +3 -0
- package/node_modules/@slack/web-api/dist/types/request/entity.js.map +1 -0
- package/node_modules/@slack/web-api/dist/types/request/index.d.ts +2 -0
- package/node_modules/@slack/web-api/dist/types/request/index.d.ts.map +1 -1
- package/node_modules/@slack/web-api/dist/types/request/manifest.d.ts +1 -1
- package/node_modules/@slack/web-api/dist/types/request/manifest.d.ts.map +1 -1
- package/node_modules/@slack/web-api/dist/types/request/search.d.ts +10 -1
- package/node_modules/@slack/web-api/dist/types/request/search.d.ts.map +1 -1
- package/node_modules/@slack/web-api/dist/types/request/slackLists.d.ts +806 -0
- package/node_modules/@slack/web-api/dist/types/request/slackLists.d.ts.map +1 -0
- package/node_modules/@slack/web-api/dist/types/request/slackLists.js +3 -0
- package/node_modules/@slack/web-api/dist/types/request/slackLists.js.map +1 -0
- package/node_modules/@slack/web-api/dist/types/response/EntityPresentDetailsResponse.d.ts +9 -0
- package/node_modules/@slack/web-api/dist/types/response/EntityPresentDetailsResponse.d.ts.map +1 -0
- package/node_modules/@slack/web-api/dist/types/response/EntityPresentDetailsResponse.js +11 -0
- package/node_modules/@slack/web-api/dist/types/response/EntityPresentDetailsResponse.js.map +1 -0
- package/node_modules/@slack/web-api/dist/types/response/SlackListsAccessDeleteResponse.d.ts +8 -0
- package/node_modules/@slack/web-api/dist/types/response/SlackListsAccessDeleteResponse.d.ts.map +1 -0
- package/node_modules/@slack/web-api/dist/types/response/SlackListsAccessDeleteResponse.js +3 -0
- package/node_modules/@slack/web-api/dist/types/response/SlackListsAccessDeleteResponse.js.map +1 -0
- package/node_modules/@slack/web-api/dist/types/response/SlackListsAccessSetResponse.d.ts +8 -0
- package/node_modules/@slack/web-api/dist/types/response/SlackListsAccessSetResponse.d.ts.map +1 -0
- package/node_modules/@slack/web-api/dist/types/response/SlackListsAccessSetResponse.js +3 -0
- package/node_modules/@slack/web-api/dist/types/response/SlackListsAccessSetResponse.js.map +1 -0
- package/node_modules/@slack/web-api/dist/types/response/SlackListsCreateResponse.d.ts +14 -0
- package/node_modules/@slack/web-api/dist/types/response/SlackListsCreateResponse.d.ts.map +1 -0
- package/node_modules/@slack/web-api/dist/types/response/SlackListsCreateResponse.js +3 -0
- package/node_modules/@slack/web-api/dist/types/response/SlackListsCreateResponse.js.map +1 -0
- package/node_modules/@slack/web-api/dist/types/response/SlackListsDownloadGetResponse.d.ts +10 -0
- package/node_modules/@slack/web-api/dist/types/response/SlackListsDownloadGetResponse.d.ts.map +1 -0
- package/node_modules/@slack/web-api/dist/types/response/SlackListsDownloadGetResponse.js +3 -0
- package/node_modules/@slack/web-api/dist/types/response/SlackListsDownloadGetResponse.js.map +1 -0
- package/node_modules/@slack/web-api/dist/types/response/SlackListsDownloadStartResponse.d.ts +9 -0
- package/node_modules/@slack/web-api/dist/types/response/SlackListsDownloadStartResponse.d.ts.map +1 -0
- package/node_modules/@slack/web-api/dist/types/response/SlackListsDownloadStartResponse.js +3 -0
- package/node_modules/@slack/web-api/dist/types/response/SlackListsDownloadStartResponse.js.map +1 -0
- package/node_modules/@slack/web-api/dist/types/response/SlackListsItemsCreateResponse.d.ts +10 -0
- package/node_modules/@slack/web-api/dist/types/response/SlackListsItemsCreateResponse.d.ts.map +1 -0
- package/node_modules/@slack/web-api/dist/types/response/SlackListsItemsCreateResponse.js +3 -0
- package/node_modules/@slack/web-api/dist/types/response/SlackListsItemsCreateResponse.js.map +1 -0
- package/node_modules/@slack/web-api/dist/types/response/SlackListsItemsDeleteMultipleResponse.d.ts +8 -0
- package/node_modules/@slack/web-api/dist/types/response/SlackListsItemsDeleteMultipleResponse.d.ts.map +1 -0
- package/node_modules/@slack/web-api/dist/types/response/SlackListsItemsDeleteMultipleResponse.js +3 -0
- package/node_modules/@slack/web-api/dist/types/response/SlackListsItemsDeleteMultipleResponse.js.map +1 -0
- package/node_modules/@slack/web-api/dist/types/response/SlackListsItemsDeleteResponse.d.ts +8 -0
- package/node_modules/@slack/web-api/dist/types/response/SlackListsItemsDeleteResponse.d.ts.map +1 -0
- package/node_modules/@slack/web-api/dist/types/response/SlackListsItemsDeleteResponse.js +3 -0
- package/node_modules/@slack/web-api/dist/types/response/SlackListsItemsDeleteResponse.js.map +1 -0
- package/node_modules/@slack/web-api/dist/types/response/SlackListsItemsInfoResponse.d.ts +12 -0
- package/node_modules/@slack/web-api/dist/types/response/SlackListsItemsInfoResponse.d.ts.map +1 -0
- package/node_modules/@slack/web-api/dist/types/response/SlackListsItemsInfoResponse.js +3 -0
- package/node_modules/@slack/web-api/dist/types/response/SlackListsItemsInfoResponse.js.map +1 -0
- package/node_modules/@slack/web-api/dist/types/response/SlackListsItemsListResponse.d.ts +13 -0
- package/node_modules/@slack/web-api/dist/types/response/SlackListsItemsListResponse.d.ts.map +1 -0
- package/node_modules/@slack/web-api/dist/types/response/SlackListsItemsListResponse.js +3 -0
- package/node_modules/@slack/web-api/dist/types/response/SlackListsItemsListResponse.js.map +1 -0
- package/node_modules/@slack/web-api/dist/types/response/SlackListsItemsUpdateResponse.d.ts +8 -0
- package/node_modules/@slack/web-api/dist/types/response/SlackListsItemsUpdateResponse.d.ts.map +1 -0
- package/node_modules/@slack/web-api/dist/types/response/SlackListsItemsUpdateResponse.js +3 -0
- package/node_modules/@slack/web-api/dist/types/response/SlackListsItemsUpdateResponse.js.map +1 -0
- package/node_modules/@slack/web-api/dist/types/response/SlackListsUpdateResponse.d.ts +8 -0
- package/node_modules/@slack/web-api/dist/types/response/SlackListsUpdateResponse.d.ts.map +1 -0
- package/node_modules/@slack/web-api/dist/types/response/SlackListsUpdateResponse.js +3 -0
- package/node_modules/@slack/web-api/dist/types/response/SlackListsUpdateResponse.js.map +1 -0
- package/node_modules/@slack/web-api/dist/types/response/index.d.ts +13 -0
- package/node_modules/@slack/web-api/dist/types/response/index.d.ts.map +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 +36 -1
- package/node_modules/@slack/web-api/node_modules/@types/node/buffer.buffer.d.ts +9 -0
- package/node_modules/@slack/web-api/node_modules/@types/node/buffer.d.ts +8 -4
- package/node_modules/@slack/web-api/node_modules/@types/node/child_process.d.ts +50 -33
- package/node_modules/@slack/web-api/node_modules/@types/node/console.d.ts +3 -2
- package/node_modules/@slack/web-api/node_modules/@types/node/crypto.d.ts +198 -164
- package/node_modules/@slack/web-api/node_modules/@types/node/dgram.d.ts +9 -8
- package/node_modules/@slack/web-api/node_modules/@types/node/fs/promises.d.ts +39 -21
- package/node_modules/@slack/web-api/node_modules/@types/node/fs.d.ts +89 -76
- package/node_modules/@slack/web-api/node_modules/@types/node/globals.typedarray.d.ts +19 -0
- package/node_modules/@slack/web-api/node_modules/@types/node/http.d.ts +52 -22
- package/node_modules/@slack/web-api/node_modules/@types/node/http2.d.ts +29 -22
- package/node_modules/@slack/web-api/node_modules/@types/node/https.d.ts +82 -50
- package/node_modules/@slack/web-api/node_modules/@types/node/net.d.ts +7 -6
- package/node_modules/@slack/web-api/node_modules/@types/node/os.d.ts +3 -2
- package/node_modules/@slack/web-api/node_modules/@types/node/package.json +3 -3
- package/node_modules/@slack/web-api/node_modules/@types/node/process.d.ts +13 -5
- package/node_modules/@slack/web-api/node_modules/@types/node/sqlite.d.ts +221 -7
- package/node_modules/@slack/web-api/node_modules/@types/node/stream/consumers.d.ts +2 -2
- package/node_modules/@slack/web-api/node_modules/@types/node/string_decoder.d.ts +2 -2
- package/node_modules/@slack/web-api/node_modules/@types/node/tls.d.ts +88 -64
- package/node_modules/@slack/web-api/node_modules/@types/node/ts5.6/buffer.buffer.d.ts +10 -2
- package/node_modules/@slack/web-api/node_modules/@types/node/ts5.6/globals.typedarray.d.ts +16 -0
- package/node_modules/@slack/web-api/node_modules/@types/node/url.d.ts +34 -10
- package/node_modules/@slack/web-api/node_modules/@types/node/util.d.ts +11 -2
- package/node_modules/@slack/web-api/node_modules/@types/node/v8.d.ts +20 -3
- package/node_modules/@slack/web-api/node_modules/@types/node/vm.d.ts +24 -3
- package/node_modules/@slack/web-api/node_modules/@types/node/worker_threads.d.ts +40 -3
- package/node_modules/@slack/web-api/node_modules/@types/node/zlib.d.ts +25 -24
- package/node_modules/@slack/web-api/node_modules/undici-types/agent.d.ts +1 -0
- package/node_modules/@slack/web-api/node_modules/undici-types/diagnostics-channel.d.ts +0 -1
- package/node_modules/@slack/web-api/node_modules/undici-types/errors.d.ts +5 -15
- package/node_modules/@slack/web-api/node_modules/undici-types/interceptors.d.ts +5 -0
- package/node_modules/@slack/web-api/node_modules/undici-types/package.json +1 -1
- package/node_modules/@slack/web-api/node_modules/undici-types/snapshot-agent.d.ts +5 -3
- package/node_modules/@slack/web-api/node_modules/undici-types/webidl.d.ts +82 -21
- package/node_modules/@slack/web-api/package.json +3 -3
- 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 +36 -1
- package/node_modules/@types/cacheable-request/node_modules/@types/node/buffer.buffer.d.ts +9 -0
- package/node_modules/@types/cacheable-request/node_modules/@types/node/buffer.d.ts +8 -4
- package/node_modules/@types/cacheable-request/node_modules/@types/node/child_process.d.ts +50 -33
- package/node_modules/@types/cacheable-request/node_modules/@types/node/console.d.ts +3 -2
- package/node_modules/@types/cacheable-request/node_modules/@types/node/crypto.d.ts +198 -164
- package/node_modules/@types/cacheable-request/node_modules/@types/node/dgram.d.ts +9 -8
- package/node_modules/@types/cacheable-request/node_modules/@types/node/fs/promises.d.ts +39 -21
- package/node_modules/@types/cacheable-request/node_modules/@types/node/fs.d.ts +89 -76
- package/node_modules/@types/cacheable-request/node_modules/@types/node/globals.typedarray.d.ts +19 -0
- package/node_modules/@types/cacheable-request/node_modules/@types/node/http.d.ts +52 -22
- package/node_modules/@types/cacheable-request/node_modules/@types/node/http2.d.ts +29 -22
- package/node_modules/@types/cacheable-request/node_modules/@types/node/https.d.ts +82 -50
- package/node_modules/@types/cacheable-request/node_modules/@types/node/net.d.ts +7 -6
- package/node_modules/@types/cacheable-request/node_modules/@types/node/os.d.ts +3 -2
- package/node_modules/@types/cacheable-request/node_modules/@types/node/package.json +3 -3
- package/node_modules/@types/cacheable-request/node_modules/@types/node/process.d.ts +13 -5
- package/node_modules/@types/cacheable-request/node_modules/@types/node/sqlite.d.ts +221 -7
- package/node_modules/@types/cacheable-request/node_modules/@types/node/stream/consumers.d.ts +2 -2
- package/node_modules/@types/cacheable-request/node_modules/@types/node/string_decoder.d.ts +2 -2
- package/node_modules/@types/cacheable-request/node_modules/@types/node/tls.d.ts +88 -64
- package/node_modules/@types/cacheable-request/node_modules/@types/node/ts5.6/buffer.buffer.d.ts +10 -2
- package/node_modules/@types/cacheable-request/node_modules/@types/node/ts5.6/globals.typedarray.d.ts +16 -0
- package/node_modules/@types/cacheable-request/node_modules/@types/node/url.d.ts +34 -10
- package/node_modules/@types/cacheable-request/node_modules/@types/node/util.d.ts +11 -2
- package/node_modules/@types/cacheable-request/node_modules/@types/node/v8.d.ts +20 -3
- package/node_modules/@types/cacheable-request/node_modules/@types/node/vm.d.ts +24 -3
- package/node_modules/@types/cacheable-request/node_modules/@types/node/worker_threads.d.ts +40 -3
- package/node_modules/@types/cacheable-request/node_modules/@types/node/zlib.d.ts +25 -24
- package/node_modules/@types/cacheable-request/node_modules/undici-types/agent.d.ts +1 -0
- package/node_modules/@types/cacheable-request/node_modules/undici-types/diagnostics-channel.d.ts +0 -1
- package/node_modules/@types/cacheable-request/node_modules/undici-types/errors.d.ts +5 -15
- package/node_modules/@types/cacheable-request/node_modules/undici-types/interceptors.d.ts +5 -0
- package/node_modules/@types/cacheable-request/node_modules/undici-types/package.json +1 -1
- package/node_modules/@types/cacheable-request/node_modules/undici-types/snapshot-agent.d.ts +5 -3
- package/node_modules/@types/cacheable-request/node_modules/undici-types/webidl.d.ts +82 -21
- 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 +36 -1
- package/node_modules/@types/keyv/node_modules/@types/node/buffer.buffer.d.ts +9 -0
- package/node_modules/@types/keyv/node_modules/@types/node/buffer.d.ts +8 -4
- package/node_modules/@types/keyv/node_modules/@types/node/child_process.d.ts +50 -33
- package/node_modules/@types/keyv/node_modules/@types/node/console.d.ts +3 -2
- package/node_modules/@types/keyv/node_modules/@types/node/crypto.d.ts +198 -164
- package/node_modules/@types/keyv/node_modules/@types/node/dgram.d.ts +9 -8
- package/node_modules/@types/keyv/node_modules/@types/node/fs/promises.d.ts +39 -21
- package/node_modules/@types/keyv/node_modules/@types/node/fs.d.ts +89 -76
- package/node_modules/@types/keyv/node_modules/@types/node/globals.typedarray.d.ts +19 -0
- package/node_modules/@types/keyv/node_modules/@types/node/http.d.ts +52 -22
- package/node_modules/@types/keyv/node_modules/@types/node/http2.d.ts +29 -22
- package/node_modules/@types/keyv/node_modules/@types/node/https.d.ts +82 -50
- package/node_modules/@types/keyv/node_modules/@types/node/net.d.ts +7 -6
- package/node_modules/@types/keyv/node_modules/@types/node/os.d.ts +3 -2
- package/node_modules/@types/keyv/node_modules/@types/node/package.json +3 -3
- package/node_modules/@types/keyv/node_modules/@types/node/process.d.ts +13 -5
- package/node_modules/@types/keyv/node_modules/@types/node/sqlite.d.ts +221 -7
- package/node_modules/@types/keyv/node_modules/@types/node/stream/consumers.d.ts +2 -2
- package/node_modules/@types/keyv/node_modules/@types/node/string_decoder.d.ts +2 -2
- package/node_modules/@types/keyv/node_modules/@types/node/tls.d.ts +88 -64
- package/node_modules/@types/keyv/node_modules/@types/node/ts5.6/buffer.buffer.d.ts +10 -2
- package/node_modules/@types/keyv/node_modules/@types/node/ts5.6/globals.typedarray.d.ts +16 -0
- package/node_modules/@types/keyv/node_modules/@types/node/url.d.ts +34 -10
- package/node_modules/@types/keyv/node_modules/@types/node/util.d.ts +11 -2
- package/node_modules/@types/keyv/node_modules/@types/node/v8.d.ts +20 -3
- package/node_modules/@types/keyv/node_modules/@types/node/vm.d.ts +24 -3
- package/node_modules/@types/keyv/node_modules/@types/node/worker_threads.d.ts +40 -3
- package/node_modules/@types/keyv/node_modules/@types/node/zlib.d.ts +25 -24
- package/node_modules/@types/keyv/node_modules/undici-types/agent.d.ts +1 -0
- package/node_modules/@types/keyv/node_modules/undici-types/diagnostics-channel.d.ts +0 -1
- package/node_modules/@types/keyv/node_modules/undici-types/errors.d.ts +5 -15
- package/node_modules/@types/keyv/node_modules/undici-types/interceptors.d.ts +5 -0
- package/node_modules/@types/keyv/node_modules/undici-types/package.json +1 -1
- package/node_modules/@types/keyv/node_modules/undici-types/snapshot-agent.d.ts +5 -3
- package/node_modules/@types/keyv/node_modules/undici-types/webidl.d.ts +82 -21
- 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 +36 -1
- package/node_modules/@types/responselike/node_modules/@types/node/buffer.buffer.d.ts +9 -0
- package/node_modules/@types/responselike/node_modules/@types/node/buffer.d.ts +8 -4
- package/node_modules/@types/responselike/node_modules/@types/node/child_process.d.ts +50 -33
- package/node_modules/@types/responselike/node_modules/@types/node/console.d.ts +3 -2
- package/node_modules/@types/responselike/node_modules/@types/node/crypto.d.ts +198 -164
- package/node_modules/@types/responselike/node_modules/@types/node/dgram.d.ts +9 -8
- package/node_modules/@types/responselike/node_modules/@types/node/fs/promises.d.ts +39 -21
- package/node_modules/@types/responselike/node_modules/@types/node/fs.d.ts +89 -76
- package/node_modules/@types/responselike/node_modules/@types/node/globals.typedarray.d.ts +19 -0
- package/node_modules/@types/responselike/node_modules/@types/node/http.d.ts +52 -22
- package/node_modules/@types/responselike/node_modules/@types/node/http2.d.ts +29 -22
- package/node_modules/@types/responselike/node_modules/@types/node/https.d.ts +82 -50
- package/node_modules/@types/responselike/node_modules/@types/node/net.d.ts +7 -6
- package/node_modules/@types/responselike/node_modules/@types/node/os.d.ts +3 -2
- package/node_modules/@types/responselike/node_modules/@types/node/package.json +3 -3
- package/node_modules/@types/responselike/node_modules/@types/node/process.d.ts +13 -5
- package/node_modules/@types/responselike/node_modules/@types/node/sqlite.d.ts +221 -7
- package/node_modules/@types/responselike/node_modules/@types/node/stream/consumers.d.ts +2 -2
- package/node_modules/@types/responselike/node_modules/@types/node/string_decoder.d.ts +2 -2
- package/node_modules/@types/responselike/node_modules/@types/node/tls.d.ts +88 -64
- package/node_modules/@types/responselike/node_modules/@types/node/ts5.6/buffer.buffer.d.ts +10 -2
- package/node_modules/@types/responselike/node_modules/@types/node/ts5.6/globals.typedarray.d.ts +16 -0
- package/node_modules/@types/responselike/node_modules/@types/node/url.d.ts +34 -10
- package/node_modules/@types/responselike/node_modules/@types/node/util.d.ts +11 -2
- package/node_modules/@types/responselike/node_modules/@types/node/v8.d.ts +20 -3
- package/node_modules/@types/responselike/node_modules/@types/node/vm.d.ts +24 -3
- package/node_modules/@types/responselike/node_modules/@types/node/worker_threads.d.ts +40 -3
- package/node_modules/@types/responselike/node_modules/@types/node/zlib.d.ts +25 -24
- package/node_modules/@types/responselike/node_modules/undici-types/agent.d.ts +1 -0
- package/node_modules/@types/responselike/node_modules/undici-types/diagnostics-channel.d.ts +0 -1
- package/node_modules/@types/responselike/node_modules/undici-types/errors.d.ts +5 -15
- package/node_modules/@types/responselike/node_modules/undici-types/interceptors.d.ts +5 -0
- package/node_modules/@types/responselike/node_modules/undici-types/package.json +1 -1
- package/node_modules/@types/responselike/node_modules/undici-types/snapshot-agent.d.ts +5 -3
- package/node_modules/@types/responselike/node_modules/undici-types/webidl.d.ts +82 -21
- package/node_modules/axios/CHANGELOG.md +410 -346
- package/node_modules/axios/README.md +79 -51
- package/node_modules/axios/dist/axios.js +121 -46
- package/node_modules/axios/dist/axios.js.map +1 -1
- package/node_modules/axios/dist/axios.min.js +2 -2
- package/node_modules/axios/dist/axios.min.js.map +1 -1
- package/node_modules/axios/dist/browser/axios.cjs +126 -57
- package/node_modules/axios/dist/browser/axios.cjs.map +1 -1
- package/node_modules/axios/dist/esm/axios.js +126 -57
- package/node_modules/axios/dist/esm/axios.js.map +1 -1
- package/node_modules/axios/dist/esm/axios.min.js +2 -2
- package/node_modules/axios/dist/esm/axios.min.js.map +1 -1
- package/node_modules/axios/dist/node/axios.cjs +351 -97
- package/node_modules/axios/dist/node/axios.cjs.map +1 -1
- package/node_modules/axios/index.d.cts +4 -0
- package/node_modules/axios/index.d.ts +4 -0
- package/node_modules/axios/lib/adapters/adapters.js +85 -40
- package/node_modules/axios/lib/adapters/fetch.js +1 -1
- package/node_modules/axios/lib/adapters/http.js +224 -42
- package/node_modules/axios/lib/core/InterceptorManager.js +1 -1
- package/node_modules/axios/lib/core/mergeConfig.js +4 -4
- package/node_modules/axios/lib/env/data.js +1 -1
- package/node_modules/axios/lib/helpers/HttpStatusCode.js +6 -0
- package/node_modules/axios/lib/helpers/bind.js +7 -0
- package/node_modules/axios/lib/helpers/cookies.js +24 -13
- package/node_modules/axios/package.json +9 -4
- package/node_modules/form-data/CHANGELOG.md +60 -2
- package/node_modules/form-data/README.md +4 -4
- package/node_modules/form-data/lib/form_data.js +2 -2
- package/node_modules/form-data/package.json +4 -4
- package/node_modules/js-beautify/node_modules/glob/dist/commonjs/has-magic.d.ts.map +1 -1
- package/node_modules/js-beautify/node_modules/glob/dist/commonjs/index.d.ts +2 -2
- package/node_modules/js-beautify/node_modules/glob/dist/esm/bin.mjs +111 -35
- package/node_modules/js-beautify/node_modules/glob/dist/esm/bin.mjs.map +1 -1
- package/node_modules/js-beautify/node_modules/glob/dist/esm/has-magic.d.ts.map +1 -1
- package/node_modules/js-beautify/node_modules/glob/dist/esm/index.d.ts +2 -2
- package/node_modules/js-beautify/node_modules/glob/package.json +1 -1
- package/node_modules/mjml/LICENSE.md +21 -0
- package/node_modules/mjml/package.json +9 -8
- package/node_modules/mjml-accordion/LICENSE.md +21 -0
- package/node_modules/mjml-accordion/README.md +2 -2
- package/node_modules/mjml-accordion/lib/Accordion.js +8 -0
- package/node_modules/mjml-accordion/lib/AccordionElement.js +8 -0
- package/node_modules/mjml-accordion/lib/AccordionText.js +17 -3
- package/node_modules/mjml-accordion/lib/AccordionTitle.js +17 -3
- package/node_modules/mjml-accordion/package.json +4 -3
- package/node_modules/mjml-body/LICENSE.md +21 -0
- package/node_modules/mjml-body/package.json +4 -3
- package/node_modules/mjml-button/LICENSE.md +21 -0
- package/node_modules/mjml-button/README.md +1 -1
- package/node_modules/mjml-button/package.json +4 -3
- package/node_modules/mjml-carousel/LICENSE.md +21 -0
- package/node_modules/mjml-carousel/README.md +5 -5
- package/node_modules/mjml-carousel/lib/Carousel.js +15 -2
- package/node_modules/mjml-carousel/lib/CarouselImage.js +8 -1
- package/node_modules/mjml-carousel/package.json +4 -3
- package/node_modules/mjml-cli/LICENSE.md +21 -0
- package/node_modules/mjml-cli/node_modules/glob/dist/commonjs/has-magic.d.ts.map +1 -1
- package/node_modules/mjml-cli/node_modules/glob/dist/commonjs/index.d.ts +2 -2
- package/node_modules/mjml-cli/node_modules/glob/dist/esm/bin.mjs +111 -35
- package/node_modules/mjml-cli/node_modules/glob/dist/esm/bin.mjs.map +1 -1
- package/node_modules/mjml-cli/node_modules/glob/dist/esm/has-magic.d.ts.map +1 -1
- package/node_modules/mjml-cli/node_modules/glob/dist/esm/index.d.ts +2 -2
- package/node_modules/mjml-cli/node_modules/glob/package.json +1 -1
- package/node_modules/mjml-cli/package.json +7 -6
- package/node_modules/mjml-column/LICENSE.md +21 -0
- package/node_modules/mjml-column/lib/index.js +29 -3
- package/node_modules/mjml-column/package.json +4 -3
- package/node_modules/mjml-core/LICENSE.md +21 -0
- package/node_modules/mjml-core/lib/createComponent.js +4 -2
- package/node_modules/mjml-core/lib/index.js +3 -0
- package/node_modules/mjml-core/package.json +6 -5
- package/node_modules/mjml-divider/LICENSE.md +21 -0
- package/node_modules/mjml-divider/package.json +4 -3
- package/node_modules/mjml-group/LICENSE.md +21 -0
- package/node_modules/mjml-group/README.md +4 -4
- package/node_modules/mjml-group/package.json +4 -3
- package/node_modules/mjml-head/LICENSE.md +21 -0
- package/node_modules/mjml-head/package.json +4 -3
- package/node_modules/mjml-head-attributes/LICENSE.md +21 -0
- package/node_modules/mjml-head-attributes/package.json +4 -3
- package/node_modules/mjml-head-breakpoint/LICENSE.md +21 -0
- package/node_modules/mjml-head-breakpoint/package.json +4 -3
- package/node_modules/mjml-head-font/LICENSE.md +21 -0
- package/node_modules/mjml-head-font/package.json +4 -3
- package/node_modules/mjml-head-html-attributes/LICENSE.md +21 -0
- package/node_modules/mjml-head-html-attributes/package.json +4 -3
- package/node_modules/mjml-head-preview/LICENSE.md +21 -0
- package/node_modules/mjml-head-preview/package.json +4 -3
- package/node_modules/mjml-head-style/LICENSE.md +21 -0
- package/node_modules/mjml-head-style/package.json +4 -3
- package/node_modules/mjml-head-title/LICENSE.md +21 -0
- package/node_modules/mjml-head-title/package.json +4 -3
- package/node_modules/mjml-hero/LICENSE.md +21 -0
- package/node_modules/mjml-hero/README.md +4 -4
- package/node_modules/mjml-hero/package.json +4 -3
- package/node_modules/mjml-image/LICENSE.md +21 -0
- package/node_modules/mjml-image/README.md +1 -1
- package/node_modules/mjml-image/package.json +4 -3
- package/node_modules/mjml-migrate/package.json +5 -4
- package/node_modules/mjml-navbar/LICENSE.md +21 -0
- package/node_modules/mjml-navbar/README.md +4 -4
- package/node_modules/mjml-navbar/lib/Navbar.js +2 -2
- package/node_modules/mjml-navbar/package.json +4 -3
- package/node_modules/mjml-parser-xml/package.json +4 -4
- package/node_modules/mjml-preset-core/LICENSE.md +21 -0
- package/node_modules/mjml-preset-core/package.json +28 -27
- package/node_modules/mjml-raw/LICENSE.md +21 -0
- package/node_modules/mjml-raw/package.json +4 -3
- package/node_modules/mjml-section/LICENSE.md +21 -0
- package/node_modules/mjml-section/lib/index.js +20 -4
- package/node_modules/mjml-section/package.json +4 -3
- package/node_modules/mjml-social/LICENSE.md +21 -0
- package/node_modules/mjml-social/README.md +1 -1
- package/node_modules/mjml-social/lib/SocialElement.js +3 -4
- package/node_modules/mjml-social/package.json +4 -3
- package/node_modules/mjml-spacer/LICENSE.md +21 -0
- package/node_modules/mjml-spacer/package.json +4 -3
- package/node_modules/mjml-table/LICENSE.md +21 -0
- package/node_modules/mjml-table/lib/index.js +12 -1
- package/node_modules/mjml-table/package.json +4 -3
- package/node_modules/mjml-text/LICENSE.md +21 -0
- package/node_modules/mjml-text/package.json +4 -3
- package/node_modules/mjml-validator/package.json +2 -2
- package/node_modules/mjml-wrapper/LICENSE.md +21 -0
- package/node_modules/mjml-wrapper/README.md +2 -1
- package/node_modules/mjml-wrapper/lib/index.js +12 -0
- package/node_modules/mjml-wrapper/package.json +5 -4
- package/package.json +19 -19
|
@@ -5,27 +5,38 @@ export default platform.hasStandardBrowserEnv ?
|
|
|
5
5
|
|
|
6
6
|
// Standard browser envs support document.cookie
|
|
7
7
|
{
|
|
8
|
-
write(name, value, expires, path, domain, secure) {
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
utils.
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
8
|
+
write(name, value, expires, path, domain, secure, sameSite) {
|
|
9
|
+
if (typeof document === 'undefined') return;
|
|
10
|
+
|
|
11
|
+
const cookie = [`${name}=${encodeURIComponent(value)}`];
|
|
12
|
+
|
|
13
|
+
if (utils.isNumber(expires)) {
|
|
14
|
+
cookie.push(`expires=${new Date(expires).toUTCString()}`);
|
|
15
|
+
}
|
|
16
|
+
if (utils.isString(path)) {
|
|
17
|
+
cookie.push(`path=${path}`);
|
|
18
|
+
}
|
|
19
|
+
if (utils.isString(domain)) {
|
|
20
|
+
cookie.push(`domain=${domain}`);
|
|
21
|
+
}
|
|
22
|
+
if (secure === true) {
|
|
23
|
+
cookie.push('secure');
|
|
24
|
+
}
|
|
25
|
+
if (utils.isString(sameSite)) {
|
|
26
|
+
cookie.push(`SameSite=${sameSite}`);
|
|
27
|
+
}
|
|
18
28
|
|
|
19
29
|
document.cookie = cookie.join('; ');
|
|
20
30
|
},
|
|
21
31
|
|
|
22
32
|
read(name) {
|
|
23
|
-
|
|
24
|
-
|
|
33
|
+
if (typeof document === 'undefined') return null;
|
|
34
|
+
const match = document.cookie.match(new RegExp('(?:^|; )' + name + '=([^;]*)'));
|
|
35
|
+
return match ? decodeURIComponent(match[1]) : null;
|
|
25
36
|
},
|
|
26
37
|
|
|
27
38
|
remove(name) {
|
|
28
|
-
this.write(name, '', Date.now() - 86400000);
|
|
39
|
+
this.write(name, '', Date.now() - 86400000, '/');
|
|
29
40
|
}
|
|
30
41
|
}
|
|
31
42
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "axios",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.13.2",
|
|
4
4
|
"description": "Promise based HTTP client for the browser and node.js",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"exports": {
|
|
@@ -80,7 +80,12 @@
|
|
|
80
80
|
"http",
|
|
81
81
|
"ajax",
|
|
82
82
|
"promise",
|
|
83
|
-
"node"
|
|
83
|
+
"node",
|
|
84
|
+
"browser",
|
|
85
|
+
"fetch",
|
|
86
|
+
"rest",
|
|
87
|
+
"api",
|
|
88
|
+
"client"
|
|
84
89
|
],
|
|
85
90
|
"author": "Matt Zabriskie",
|
|
86
91
|
"license": "MIT",
|
|
@@ -141,11 +146,11 @@
|
|
|
141
146
|
"rollup-plugin-auto-external": "^2.0.0",
|
|
142
147
|
"rollup-plugin-bundle-size": "^1.0.3",
|
|
143
148
|
"rollup-plugin-terser": "^7.0.2",
|
|
149
|
+
"selfsigned": "^3.0.1",
|
|
144
150
|
"sinon": "^4.5.0",
|
|
145
151
|
"stream-throttle": "^0.1.3",
|
|
146
152
|
"string-replace-async": "^3.0.2",
|
|
147
153
|
"tar-stream": "^3.1.7",
|
|
148
|
-
"terser-webpack-plugin": "^4.2.3",
|
|
149
154
|
"typescript": "^4.9.5"
|
|
150
155
|
},
|
|
151
156
|
"browser": {
|
|
@@ -185,7 +190,7 @@
|
|
|
185
190
|
"Remco Haszing (https://github.com/remcohaszing)",
|
|
186
191
|
"Rikki Gibson (https://github.com/RikkiGibson)",
|
|
187
192
|
"Willian Agostini (https://github.com/WillianAgostini)",
|
|
188
|
-
"
|
|
193
|
+
"Ben Carp (https://github.com/carpben)"
|
|
189
194
|
],
|
|
190
195
|
"sideEffects": false,
|
|
191
196
|
"release-it": {
|
|
@@ -5,6 +5,14 @@ All notable changes to this project will be documented in this file.
|
|
|
5
5
|
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/)
|
|
6
6
|
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
|
7
7
|
|
|
8
|
+
## [v4.0.5](https://github.com/form-data/form-data/compare/v4.0.4...v4.0.5) - 2025-11-17
|
|
9
|
+
|
|
10
|
+
### Commits
|
|
11
|
+
|
|
12
|
+
- [Tests] Switch to newer v8 prediction library; enable node 24 testing [`16e0076`](https://github.com/form-data/form-data/commit/16e00765342106876f98a1c9703314006c9e937a)
|
|
13
|
+
- [Dev Deps] update `@ljharb/eslint-config`, `eslint` [`5822467`](https://github.com/form-data/form-data/commit/5822467f0ec21f6ad613c1c90856375e498793c7)
|
|
14
|
+
- [Fix] set Symbol.toStringTag in the proper place [`76d0dee`](https://github.com/form-data/form-data/commit/76d0dee43933b5e167f7f09e5d9cbbd1cf911aa7)
|
|
15
|
+
|
|
8
16
|
## [v4.0.4](https://github.com/form-data/form-data/compare/v4.0.3...v4.0.4) - 2025-07-16
|
|
9
17
|
|
|
10
18
|
### Commits
|
|
@@ -86,7 +94,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
86
94
|
- fix (npmignore): ignore temporary build files [`335ad19`](https://github.com/form-data/form-data/commit/335ad19c6e17dc2d7298ffe0e9b37ba63600e94b)
|
|
87
95
|
- fix: move util.isArray to Array.isArray [`440d3be`](https://github.com/form-data/form-data/commit/440d3bed752ac2f9213b4c2229dbccefe140e5fa)
|
|
88
96
|
|
|
89
|
-
## [v4.0.0](https://github.com/form-data/form-data/compare/v3.0.
|
|
97
|
+
## [v4.0.0](https://github.com/form-data/form-data/compare/v3.0.4...v4.0.0) - 2021-02-15
|
|
90
98
|
|
|
91
99
|
### Merged
|
|
92
100
|
|
|
@@ -97,6 +105,27 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
97
105
|
- Fix typo [`e705c0a`](https://github.com/form-data/form-data/commit/e705c0a1fdaf90d21501f56460b93e43a18bd435)
|
|
98
106
|
- Update README for custom stream behavior [`6dd8624`](https://github.com/form-data/form-data/commit/6dd8624b2999e32768d62752c9aae5845a803b0d)
|
|
99
107
|
|
|
108
|
+
## [v3.0.4](https://github.com/form-data/form-data/compare/v3.0.3...v3.0.4) - 2025-07-16
|
|
109
|
+
|
|
110
|
+
### Fixed
|
|
111
|
+
|
|
112
|
+
- [Fix] `append`: avoid a crash on nullish values [`#577`](https://github.com/form-data/form-data/issues/577)
|
|
113
|
+
|
|
114
|
+
### Commits
|
|
115
|
+
|
|
116
|
+
- [eslint] update linting config [`f5e7eb0`](https://github.com/form-data/form-data/commit/f5e7eb024bc3fc7e2074ff80f143a4f4cbc1dbda)
|
|
117
|
+
- [meta] add `auto-changelog` [`d2eb290`](https://github.com/form-data/form-data/commit/d2eb290a3e47ed5bcad7020d027daa15b3cf5ef5)
|
|
118
|
+
- [Tests] handle predict-v8-randomness failures in node < 17 and node > 23 [`e8c574c`](https://github.com/form-data/form-data/commit/e8c574cb07ff3a0de2ecc0912d783ef22e190c1f)
|
|
119
|
+
- [Fix] Switch to using `crypto` random for boundary values [`c6ced61`](https://github.com/form-data/form-data/commit/c6ced61d4fae8f617ee2fd692133ed87baa5d0fd)
|
|
120
|
+
- [Refactor] use `hasown` [`1a78b5d`](https://github.com/form-data/form-data/commit/1a78b5dd05e508d67e97764d812ac7c6d92ea88d)
|
|
121
|
+
- [Fix] validate boundary type in `setBoundary()` method [`70bbaa0`](https://github.com/form-data/form-data/commit/70bbaa0b395ca0fb975c309de8d7286979254cc4)
|
|
122
|
+
- [Tests] add tests to check the behavior of `getBoundary` with non-strings [`b22a64e`](https://github.com/form-data/form-data/commit/b22a64ef94ba4f3f6ff7d1ac72a54cca128567df)
|
|
123
|
+
- [meta] actually ensure the readme backup isn’t published [`0150851`](https://github.com/form-data/form-data/commit/01508513ffb26fd662ae7027834b325af8efb9ea)
|
|
124
|
+
- [meta] remove local commit hooks [`fc42bb9`](https://github.com/form-data/form-data/commit/fc42bb9315b641bfa6dae51cb4e188a86bb04769)
|
|
125
|
+
- [Dev Deps] remove unused deps [`a14d09e`](https://github.com/form-data/form-data/commit/a14d09ea8ed7e0a2e1705269ce6fb54bb7ee6bdb)
|
|
126
|
+
- [meta] fix scripts to use prepublishOnly [`11d9f73`](https://github.com/form-data/form-data/commit/11d9f7338f18a59b431832a3562b49baece0a432)
|
|
127
|
+
- [meta] fix readme capitalization [`fc38b48`](https://github.com/form-data/form-data/commit/fc38b4834a117a1856f3d877eb2f5b7496a24932)
|
|
128
|
+
|
|
100
129
|
## [v3.0.3](https://github.com/form-data/form-data/compare/v3.0.2...v3.0.3) - 2025-02-14
|
|
101
130
|
|
|
102
131
|
### Merged
|
|
@@ -137,7 +166,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
137
166
|
|
|
138
167
|
- feat: add setBoundary method [`55d90ce`](https://github.com/form-data/form-data/commit/55d90ce4a4c22b0ea0647991d85cb946dfb7395b)
|
|
139
168
|
|
|
140
|
-
## [v3.0.0](https://github.com/form-data/form-data/compare/v2.5.
|
|
169
|
+
## [v3.0.0](https://github.com/form-data/form-data/compare/v2.5.5...v3.0.0) - 2019-11-05
|
|
141
170
|
|
|
142
171
|
### Merged
|
|
143
172
|
|
|
@@ -161,6 +190,35 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
161
190
|
- Pass options to constructor if not used with new [`4bde68e`](https://github.com/form-data/form-data/commit/4bde68e12de1ba90fefad2e7e643f6375b902763)
|
|
162
191
|
- Make userHeaders optional [`2b4e478`](https://github.com/form-data/form-data/commit/2b4e4787031490942f2d1ee55c56b85a250875a7)
|
|
163
192
|
|
|
193
|
+
## [v2.5.5](https://github.com/form-data/form-data/compare/v2.5.4...v2.5.5) - 2025-07-18
|
|
194
|
+
|
|
195
|
+
### Commits
|
|
196
|
+
|
|
197
|
+
- [meta] actually ensure the readme backup isn’t published [`10626c0`](https://github.com/form-data/form-data/commit/10626c0a9b78c7d3fcaa51772265015ee0afc25c)
|
|
198
|
+
- [Fix] use proper dependency [`026abe5`](https://github.com/form-data/form-data/commit/026abe5c5c0489d8a2ccb59d5cfd14fb63078377)
|
|
199
|
+
|
|
200
|
+
## [v2.5.4](https://github.com/form-data/form-data/compare/v2.5.3...v2.5.4) - 2025-07-17
|
|
201
|
+
|
|
202
|
+
### Fixed
|
|
203
|
+
|
|
204
|
+
- [Fix] `append`: avoid a crash on nullish values [`#577`](https://github.com/form-data/form-data/issues/577)
|
|
205
|
+
|
|
206
|
+
### Commits
|
|
207
|
+
|
|
208
|
+
- [eslint] update linting config [`8bf2492`](https://github.com/form-data/form-data/commit/8bf2492e0555d41ff58fa04c91593af998f87a3c)
|
|
209
|
+
- [meta] add `auto-changelog` [`b5101ad`](https://github.com/form-data/form-data/commit/b5101ad3d5f73cfd0143aae3735b92826fd731ea)
|
|
210
|
+
- [Tests] handle predict-v8-randomness failures in node < 17 and node > 23 [`0e93122`](https://github.com/form-data/form-data/commit/0e93122358414942393d9c2dc434ae69e58be7c8)
|
|
211
|
+
- [Fix] Switch to using `crypto` random for boundary values [`b88316c`](https://github.com/form-data/form-data/commit/b88316c94bb004323669cd3639dc8bb8262539eb)
|
|
212
|
+
- [Fix] validate boundary type in `setBoundary()` method [`131ae5e`](https://github.com/form-data/form-data/commit/131ae5efa30b9c608add4faef3befb38aa2e1bf1)
|
|
213
|
+
- [Tests] Switch to newer v8 prediction library; enable node 24 testing [`c97cfbe`](https://github.com/form-data/form-data/commit/c97cfbed9eb6d2d4b5d53090f69ded4bf9fd8a21)
|
|
214
|
+
- [Refactor] use `hasown` [`97ac9c2`](https://github.com/form-data/form-data/commit/97ac9c208be0b83faeee04bb3faef1ed3474ee4c)
|
|
215
|
+
- [meta] remove local commit hooks [`be99d4e`](https://github.com/form-data/form-data/commit/be99d4eea5ce47139c23c1f0914596194019d7fb)
|
|
216
|
+
- [Dev Deps] remove unused deps [`ddbc89b`](https://github.com/form-data/form-data/commit/ddbc89b6d6d64f730bcb27cb33b7544068466a05)
|
|
217
|
+
- [meta] fix scripts to use prepublishOnly [`e351a97`](https://github.com/form-data/form-data/commit/e351a97e9f6c57c74ffd01625e83b09de805d08a)
|
|
218
|
+
- [Dev Deps] remove unused script [`8f23366`](https://github.com/form-data/form-data/commit/8f233664842da5bd605ce85541defc713d1d1e0a)
|
|
219
|
+
- [Dev Deps] add missing peer dep [`02ff026`](https://github.com/form-data/form-data/commit/02ff026fda71f9943cfdd5754727c628adb8d135)
|
|
220
|
+
- [meta] fix readme capitalization [`2fd5f61`](https://github.com/form-data/form-data/commit/2fd5f61ebfb526cd015fb8e7b8b8c1add4a38872)
|
|
221
|
+
|
|
164
222
|
## [v2.5.3](https://github.com/form-data/form-data/compare/v2.5.2...v2.5.3) - 2025-02-14
|
|
165
223
|
|
|
166
224
|
### Merged
|
|
@@ -6,11 +6,11 @@ The API of this library is inspired by the [XMLHttpRequest-2 FormData Interface]
|
|
|
6
6
|
|
|
7
7
|
[xhr2-fd]: http://dev.w3.org/2006/webapi/XMLHttpRequest-2/Overview.html#the-formdata-interface
|
|
8
8
|
|
|
9
|
-
[](https://travis-ci.org/form-data/form-data)
|
|
10
|
+
[](https://travis-ci.org/form-data/form-data)
|
|
11
|
+
[](https://travis-ci.org/form-data/form-data)
|
|
12
12
|
|
|
13
|
-
[](https://coveralls.io/github/form-data/form-data?branch=master)
|
|
14
14
|
[](https://david-dm.org/form-data/form-data)
|
|
15
15
|
|
|
16
16
|
## Install
|
|
@@ -464,7 +464,7 @@ FormData.prototype.submit = function (params, cb) {
|
|
|
464
464
|
request.removeListener('error', callback);
|
|
465
465
|
request.removeListener('response', onResponse);
|
|
466
466
|
|
|
467
|
-
return cb.call(this, error, responce);
|
|
467
|
+
return cb.call(this, error, responce);
|
|
468
468
|
};
|
|
469
469
|
|
|
470
470
|
onResponse = callback.bind(this, null);
|
|
@@ -488,7 +488,7 @@ FormData.prototype._error = function (err) {
|
|
|
488
488
|
FormData.prototype.toString = function () {
|
|
489
489
|
return '[object FormData]';
|
|
490
490
|
};
|
|
491
|
-
setToStringTag(FormData, 'FormData');
|
|
491
|
+
setToStringTag(FormData.prototype, 'FormData');
|
|
492
492
|
|
|
493
493
|
// Public API
|
|
494
494
|
module.exports = FormData;
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"author": "Felix Geisendörfer <felix@debuggable.com> (http://debuggable.com/)",
|
|
3
3
|
"name": "form-data",
|
|
4
4
|
"description": "A library to create readable \"multipart/form-data\" streams. Can be used to submit forms and file uploads to other web applications.",
|
|
5
|
-
"version": "4.0.
|
|
5
|
+
"version": "4.0.5",
|
|
6
6
|
"repository": {
|
|
7
7
|
"type": "git",
|
|
8
8
|
"url": "git://github.com/form-data/form-data.git"
|
|
@@ -47,23 +47,23 @@
|
|
|
47
47
|
"mime-types": "^2.1.12"
|
|
48
48
|
},
|
|
49
49
|
"devDependencies": {
|
|
50
|
-
"@ljharb/eslint-config": "^21.
|
|
50
|
+
"@ljharb/eslint-config": "^21.4.0",
|
|
51
51
|
"auto-changelog": "^2.5.0",
|
|
52
52
|
"browserify": "^13.3.0",
|
|
53
53
|
"browserify-istanbul": "^2.0.0",
|
|
54
54
|
"coveralls": "^3.1.1",
|
|
55
55
|
"cross-spawn": "^6.0.6",
|
|
56
|
-
"eslint": "
|
|
56
|
+
"eslint": "^8.57.1",
|
|
57
57
|
"fake": "^0.2.2",
|
|
58
58
|
"far": "^0.0.7",
|
|
59
59
|
"formidable": "^1.2.6",
|
|
60
60
|
"in-publish": "^2.0.1",
|
|
61
61
|
"is-node-modern": "^1.0.0",
|
|
62
62
|
"istanbul": "^0.4.5",
|
|
63
|
+
"js-randomness-predictor": "^1.5.5",
|
|
63
64
|
"obake": "^0.1.2",
|
|
64
65
|
"pkgfiles": "^2.3.2",
|
|
65
66
|
"pre-commit": "^1.2.2",
|
|
66
|
-
"predict-v8-randomness": "^1.0.35",
|
|
67
67
|
"puppeteer": "^1.20.0",
|
|
68
68
|
"request": "~2.87.0",
|
|
69
69
|
"rimraf": "^2.7.1",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"has-magic.d.ts","sourceRoot":"","sources":["../../src/has-magic.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,WAAW,EAAE,MAAM,WAAW,CAAA;AAEvC;;;;;;;;;;GAUG;AACH,eAAO,MAAM,QAAQ,
|
|
1
|
+
{"version":3,"file":"has-magic.d.ts","sourceRoot":"","sources":["../../src/has-magic.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,WAAW,EAAE,MAAM,WAAW,CAAA;AAEvC;;;;;;;;;;GAUG;AACH,eAAO,MAAM,QAAQ,GACnB,SAAS,MAAM,GAAG,MAAM,EAAE,EAC1B,UAAS,WAAgB,KACxB,OAQF,CAAA"}
|
|
@@ -91,7 +91,7 @@ export declare const glob: typeof glob_ & {
|
|
|
91
91
|
iterateSync: typeof globIterateSync;
|
|
92
92
|
Glob: typeof Glob;
|
|
93
93
|
hasMagic: (pattern: string | string[], options?: GlobOptions) => boolean;
|
|
94
|
-
escape: (s: string, { windowsPathsNoEscape, }?: Pick<import("minimatch").MinimatchOptions, "windowsPathsNoEscape">) => string;
|
|
95
|
-
unescape: (s: string, { windowsPathsNoEscape, }?: Pick<import("minimatch").MinimatchOptions, "windowsPathsNoEscape">) => string;
|
|
94
|
+
escape: (s: string, { windowsPathsNoEscape, magicalBraces, }?: Pick<import("minimatch").MinimatchOptions, "windowsPathsNoEscape" | "magicalBraces">) => string;
|
|
95
|
+
unescape: (s: string, { windowsPathsNoEscape, magicalBraces, }?: Pick<import("minimatch").MinimatchOptions, "windowsPathsNoEscape" | "magicalBraces">) => string;
|
|
96
96
|
};
|
|
97
97
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -3,7 +3,7 @@ import { foregroundChild } from 'foreground-child';
|
|
|
3
3
|
import { existsSync } from 'fs';
|
|
4
4
|
import { jack } from 'jackspeak';
|
|
5
5
|
import { loadPackageJson } from 'package-json-from-dist';
|
|
6
|
-
import { join } from 'path';
|
|
6
|
+
import { basename, join } from 'path';
|
|
7
7
|
import { globStream } from './index.js';
|
|
8
8
|
const { version } = loadPackageJson(import.meta.url, '../package.json');
|
|
9
9
|
const j = jack({
|
|
@@ -30,6 +30,50 @@ const j = jack({
|
|
|
30
30
|
description: `If no positional arguments are provided, glob will use
|
|
31
31
|
this pattern`,
|
|
32
32
|
},
|
|
33
|
+
})
|
|
34
|
+
.flag({
|
|
35
|
+
shell: {
|
|
36
|
+
default: false,
|
|
37
|
+
description: `Interpret the command as a shell command by passing it
|
|
38
|
+
to the shell, with all matched filesystem paths appended,
|
|
39
|
+
**even if this cannot be done safely**.
|
|
40
|
+
|
|
41
|
+
This is **not** unsafe (and usually unnecessary) when using
|
|
42
|
+
the known Unix shells sh, bash, zsh, and fish, as these can
|
|
43
|
+
all be executed in such a way as to pass positional
|
|
44
|
+
arguments safely.
|
|
45
|
+
|
|
46
|
+
**Note**: THIS IS UNSAFE IF THE FILE PATHS ARE UNTRUSTED,
|
|
47
|
+
because a path like \`'some/path/\\$\\(cmd)'\` will be
|
|
48
|
+
executed by the shell.
|
|
49
|
+
|
|
50
|
+
If you do have positional arguments that you wish to pass to
|
|
51
|
+
the command ahead of the glob pattern matches, use the
|
|
52
|
+
\`--cmd-arg\`/\`-g\` option instead.
|
|
53
|
+
|
|
54
|
+
The next major release of glob will fully remove the ability
|
|
55
|
+
to use this option unsafely.`,
|
|
56
|
+
},
|
|
57
|
+
})
|
|
58
|
+
.optList({
|
|
59
|
+
'cmd-arg': {
|
|
60
|
+
short: 'g',
|
|
61
|
+
hint: 'arg',
|
|
62
|
+
default: [],
|
|
63
|
+
description: `Pass the provided values to the supplied command, ahead of
|
|
64
|
+
the glob matches.
|
|
65
|
+
|
|
66
|
+
For example, the command:
|
|
67
|
+
|
|
68
|
+
glob -c echo -g"hello" -g"world" *.txt
|
|
69
|
+
|
|
70
|
+
might output:
|
|
71
|
+
|
|
72
|
+
hello world a.txt b.txt
|
|
73
|
+
|
|
74
|
+
This is a safer (and future-proof) alternative than putting
|
|
75
|
+
positional arguments in the \`-c\`/\`--cmd\` option.`,
|
|
76
|
+
},
|
|
33
77
|
})
|
|
34
78
|
.flag({
|
|
35
79
|
all: {
|
|
@@ -74,7 +118,7 @@ const j = jack({
|
|
|
74
118
|
description: `Always resolve to posix style paths, using '/' as the
|
|
75
119
|
directory separator, even on Windows. Drive letter
|
|
76
120
|
absolute matches on Windows will be expanded to their
|
|
77
|
-
full resolved UNC
|
|
121
|
+
full resolved UNC paths, eg instead of 'C:\\foo\\bar',
|
|
78
122
|
it will expand to '//?/C:/foo/bar'.
|
|
79
123
|
`,
|
|
80
124
|
},
|
|
@@ -209,8 +253,10 @@ const j = jack({
|
|
|
209
253
|
description: `Output a huge amount of noisy debug information about
|
|
210
254
|
patterns as they are parsed and used to match files.`,
|
|
211
255
|
},
|
|
212
|
-
|
|
213
|
-
|
|
256
|
+
version: {
|
|
257
|
+
short: 'V',
|
|
258
|
+
description: `Output the version (${version})`,
|
|
259
|
+
},
|
|
214
260
|
help: {
|
|
215
261
|
short: 'h',
|
|
216
262
|
description: 'Show this usage information',
|
|
@@ -218,48 +264,78 @@ const j = jack({
|
|
|
218
264
|
});
|
|
219
265
|
try {
|
|
220
266
|
const { positionals, values } = j.parse();
|
|
221
|
-
|
|
267
|
+
const { cmd, shell, all, default: def, version: showVersion, help, absolute, cwd, dot, 'dot-relative': dotRelative, follow, ignore, 'match-base': matchBase, 'max-depth': maxDepth, mark, nobrace, nocase, nodir, noext, noglobstar, platform, realpath, root, stat, debug, posix, 'cmd-arg': cmdArg, } = values;
|
|
268
|
+
if (showVersion) {
|
|
269
|
+
console.log(version);
|
|
270
|
+
process.exit(0);
|
|
271
|
+
}
|
|
272
|
+
if (help) {
|
|
222
273
|
console.log(j.usage());
|
|
223
274
|
process.exit(0);
|
|
224
275
|
}
|
|
225
|
-
|
|
276
|
+
//const { shell, help } = values
|
|
277
|
+
if (positionals.length === 0 && !def)
|
|
226
278
|
throw 'No patterns provided';
|
|
227
|
-
if (positionals.length === 0 &&
|
|
228
|
-
positionals.push(
|
|
229
|
-
const patterns =
|
|
230
|
-
const matches =
|
|
231
|
-
[]
|
|
232
|
-
: positionals.filter(p => existsSync(p)).map(p => join(p));
|
|
279
|
+
if (positionals.length === 0 && def)
|
|
280
|
+
positionals.push(def);
|
|
281
|
+
const patterns = all ? positionals : positionals.filter(p => !existsSync(p));
|
|
282
|
+
const matches = all ? [] : positionals.filter(p => existsSync(p)).map(p => join(p));
|
|
233
283
|
const stream = globStream(patterns, {
|
|
234
|
-
absolute
|
|
235
|
-
cwd
|
|
236
|
-
dot
|
|
237
|
-
dotRelative
|
|
238
|
-
follow
|
|
239
|
-
ignore
|
|
240
|
-
mark
|
|
241
|
-
matchBase
|
|
242
|
-
maxDepth
|
|
243
|
-
nobrace
|
|
244
|
-
nocase
|
|
245
|
-
nodir
|
|
246
|
-
noext
|
|
247
|
-
noglobstar
|
|
248
|
-
platform:
|
|
249
|
-
realpath
|
|
250
|
-
root
|
|
251
|
-
stat
|
|
252
|
-
debug
|
|
253
|
-
posix
|
|
284
|
+
absolute,
|
|
285
|
+
cwd,
|
|
286
|
+
dot,
|
|
287
|
+
dotRelative,
|
|
288
|
+
follow,
|
|
289
|
+
ignore,
|
|
290
|
+
mark,
|
|
291
|
+
matchBase,
|
|
292
|
+
maxDepth,
|
|
293
|
+
nobrace,
|
|
294
|
+
nocase,
|
|
295
|
+
nodir,
|
|
296
|
+
noext,
|
|
297
|
+
noglobstar,
|
|
298
|
+
platform: platform,
|
|
299
|
+
realpath,
|
|
300
|
+
root,
|
|
301
|
+
stat,
|
|
302
|
+
debug,
|
|
303
|
+
posix,
|
|
254
304
|
});
|
|
255
|
-
const cmd = values.cmd;
|
|
256
305
|
if (!cmd) {
|
|
257
306
|
matches.forEach(m => console.log(m));
|
|
258
307
|
stream.on('data', f => console.log(f));
|
|
259
308
|
}
|
|
260
309
|
else {
|
|
261
|
-
|
|
262
|
-
stream.on('
|
|
310
|
+
cmdArg.push(...matches);
|
|
311
|
+
stream.on('data', f => cmdArg.push(f));
|
|
312
|
+
// Attempt to support commands that contain spaces and otherwise require
|
|
313
|
+
// shell interpretation, but do NOT shell-interpret the arguments, to avoid
|
|
314
|
+
// injections via filenames. This affordance can only be done on known Unix
|
|
315
|
+
// shells, unfortunately.
|
|
316
|
+
//
|
|
317
|
+
// 'bash', ['-c', cmd + ' "$@"', 'bash', ...matches]
|
|
318
|
+
// 'zsh', ['-c', cmd + ' "$@"', 'zsh', ...matches]
|
|
319
|
+
// 'fish', ['-c', cmd + ' "$argv"', ...matches]
|
|
320
|
+
const { SHELL = 'unknown' } = process.env;
|
|
321
|
+
const shellBase = basename(SHELL);
|
|
322
|
+
const knownShells = ['sh', 'ksh', 'zsh', 'bash', 'fish'];
|
|
323
|
+
if ((shell || /[ "']/.test(cmd)) &&
|
|
324
|
+
knownShells.includes(shellBase)) {
|
|
325
|
+
const cmdWithArgs = `${cmd} "\$${shellBase === 'fish' ? 'argv' : '@'}"`;
|
|
326
|
+
if (shellBase !== 'fish') {
|
|
327
|
+
cmdArg.unshift(SHELL);
|
|
328
|
+
}
|
|
329
|
+
cmdArg.unshift('-c', cmdWithArgs);
|
|
330
|
+
stream.on('end', () => foregroundChild(SHELL, cmdArg));
|
|
331
|
+
}
|
|
332
|
+
else {
|
|
333
|
+
if (shell) {
|
|
334
|
+
process.emitWarning('The --shell option is unsafe, and will be removed. To pass ' +
|
|
335
|
+
'positional arguments to the subprocess, use -g/--cmd-arg instead.', 'DeprecationWarning', 'GLOB_SHELL');
|
|
336
|
+
}
|
|
337
|
+
stream.on('end', () => foregroundChild(cmd, cmdArg, { shell }));
|
|
338
|
+
}
|
|
263
339
|
}
|
|
264
340
|
}
|
|
265
341
|
catch (e) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"bin.mjs","sourceRoot":"","sources":["../../src/bin.mts"],"names":[],"mappings":";AACA,OAAO,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAA;AAClD,OAAO,EAAE,UAAU,EAAE,MAAM,IAAI,CAAA;AAC/B,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAA;AAChC,OAAO,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAA;AACxD,OAAO,EAAE,IAAI,EAAE,MAAM,MAAM,CAAA;AAC3B,OAAO,EAAE,UAAU,EAAE,MAAM,YAAY,CAAA;AAEvC,MAAM,EAAE,OAAO,EAAE,GAAG,eAAe,CAAC,MAAM,CAAC,IAAI,CAAC,GAAG,EAAE,iBAAiB,CAAC,CAAA;AAEvE,MAAM,CAAC,GAAG,IAAI,CAAC;IACb,KAAK,EAAE,4CAA4C;CACpD,CAAC;KACC,WAAW,CACV;YACQ,OAAO;;;;GAIhB,CACA;KACA,GAAG,CAAC;IACH,GAAG,EAAE;QACH,KAAK,EAAE,GAAG;QACV,IAAI,EAAE,SAAS;QACf,WAAW,EAAE;0CACuB;KACrC;CACF,CAAC;KACD,GAAG,CAAC;IACH,OAAO,EAAE;QACP,KAAK,EAAE,GAAG;QACV,IAAI,EAAE,SAAS;QACf,WAAW,EAAE;iCACc;KAC5B;CACF,CAAC;KACD,IAAI,CAAC;IACJ,GAAG,EAAE;QACH,KAAK,EAAE,GAAG;QACV,WAAW,EAAE;;;;;;;;;;;;;;;;;;;;;OAqBZ;KACF;IACD,QAAQ,EAAE;QACR,KAAK,EAAE,GAAG;QACV,WAAW,EAAE,0BAA0B;KACxC;IACD,cAAc,EAAE;QACd,KAAK,EAAE,GAAG;QACV,WAAW,EAAE,kCAAkC;KAChD;IACD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CAAC,MAAM,EAAE,CAAC,CAAC,EAAE,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,CAAA;QACvC,MAAM,CAAC,EAAE,CAAC,KAAK,EAAE,GAAG,EAAE,CAAC,eAAe,CAAC,GAAG,EAAE,OAAO,EAAE,EAAE,KAAK,EAAE,IAAI,EAAE,CAAC,CAAC,CAAA;IACxE,CAAC;AACH,CAAC;AAAC,OAAO,CAAC,EAAE,CAAC;IACX,OAAO,CAAC,KAAK,CAAC,CAAC,CAAC,KAAK,EAAE,CAAC,CAAA;IACxB,OAAO,CAAC,KAAK,CAAC,CAAC,YAAY,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,CAAA;IACzD,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAA;AACjB,CAAC","sourcesContent":["#!/usr/bin/env node\nimport { foregroundChild } from 'foreground-child'\nimport { existsSync } from 'fs'\nimport { jack } from 'jackspeak'\nimport { loadPackageJson } from 'package-json-from-dist'\nimport { join } from 'path'\nimport { globStream } from './index.js'\n\nconst { version } = loadPackageJson(import.meta.url, '../package.json')\n\nconst j = jack({\n usage: 'glob [options] [<pattern> [<pattern> ...]]',\n})\n .description(\n `\n Glob v${version}\n\n Expand the positional glob expression arguments into any matching file\n system paths found.\n `,\n )\n .opt({\n cmd: {\n short: 'c',\n hint: 'command',\n description: `Run the command provided, passing the glob expression\n matches as arguments.`,\n },\n })\n .opt({\n default: {\n short: 'p',\n hint: 'pattern',\n description: `If no positional arguments are provided, glob will use\n this pattern`,\n },\n })\n .flag({\n all: {\n short: 'A',\n description: `By default, the glob cli command will not expand any\n arguments that are an exact match to a file on disk.\n\n This prevents double-expanding, in case the shell expands\n an argument whose filename is a glob expression.\n\n For example, if 'app/*.ts' would match 'app/[id].ts', then\n on Windows powershell or cmd.exe, 'glob app/*.ts' will\n expand to 'app/[id].ts', as expected. However, in posix\n shells such as bash or zsh, the shell will first expand\n 'app/*.ts' to a list of filenames. Then glob will look\n for a file matching 'app/[id].ts' (ie, 'app/i.ts' or\n 'app/d.ts'), which is unexpected.\n\n Setting '--all' prevents this behavior, causing glob\n to treat ALL patterns as glob expressions to be expanded,\n even if they are an exact match to a file on disk.\n\n When setting this option, be sure to enquote arguments\n so that the shell will not expand them prior to passing\n them to the glob command process.\n `,\n },\n absolute: {\n short: 'a',\n description: 'Expand to absolute paths',\n },\n 'dot-relative': {\n short: 'd',\n description: `Prepend './' on relative matches`,\n },\n mark: {\n short: 'm',\n description: `Append a / on any directories matched`,\n },\n posix: {\n short: 'x',\n description: `Always resolve to posix style paths, using '/' as the\n directory separator, even on Windows. Drive letter\n absolute matches on Windows will be expanded to their\n full resolved UNC maths, eg instead of 'C:\\\\foo\\\\bar',\n it will expand to '//?/C:/foo/bar'.\n `,\n },\n\n follow: {\n short: 'f',\n description: `Follow symlinked directories when expanding '**'`,\n },\n realpath: {\n short: 'R',\n description: `Call 'fs.realpath' on all of the results. In the case\n of an entry that cannot be resolved, the entry is\n omitted. This incurs a slight performance penalty, of\n course, because of the added system calls.`,\n },\n stat: {\n short: 's',\n description: `Call 'fs.lstat' on all entries, whether required or not\n to determine if it's a valid match.`,\n },\n 'match-base': {\n short: 'b',\n description: `Perform a basename-only match if the pattern does not\n contain any slash characters. That is, '*.js' would be\n treated as equivalent to '**/*.js', matching js files\n in all directories.\n `,\n },\n\n dot: {\n description: `Allow patterns to match files/directories that start\n with '.', even if the pattern does not start with '.'\n `,\n },\n nobrace: {\n description: 'Do not expand {...} patterns',\n },\n nocase: {\n description: `Perform a case-insensitive match. This defaults to\n 'true' on macOS and Windows platforms, and false on\n all others.\n\n Note: 'nocase' should only be explicitly set when it is\n known that the filesystem's case sensitivity differs\n from the platform default. If set 'true' on\n case-insensitive file systems, then the walk may return\n more or less results than expected.\n `,\n },\n nodir: {\n description: `Do not match directories, only files.\n\n Note: to *only* match directories, append a '/' at the\n end of the pattern.\n `,\n },\n noext: {\n description: `Do not expand extglob patterns, such as '+(a|b)'`,\n },\n noglobstar: {\n description: `Do not expand '**' against multiple path portions.\n Ie, treat it as a normal '*' instead.`,\n },\n 'windows-path-no-escape': {\n description: `Use '\\\\' as a path separator *only*, and *never* as an\n escape character. If set, all '\\\\' characters are\n replaced with '/' in the pattern.`,\n },\n })\n .num({\n 'max-depth': {\n short: 'D',\n description: `Maximum depth to traverse from the current\n working directory`,\n },\n })\n .opt({\n cwd: {\n short: 'C',\n description: 'Current working directory to execute/match in',\n default: process.cwd(),\n },\n root: {\n short: 'r',\n description: `A string path resolved against the 'cwd', which is\n used as the starting point for absolute patterns that\n start with '/' (but not drive letters or UNC paths\n on Windows).\n\n Note that this *doesn't* necessarily limit the walk to\n the 'root' directory, and doesn't affect the cwd\n starting point for non-absolute patterns. A pattern\n containing '..' will still be able to traverse out of\n the root directory, if it is not an actual root directory\n on the filesystem, and any non-absolute patterns will\n still be matched in the 'cwd'.\n\n To start absolute and non-absolute patterns in the same\n path, you can use '--root=' to set it to the empty\n string. However, be aware that on Windows systems, a\n pattern like 'x:/*' or '//host/share/*' will *always*\n start in the 'x:/' or '//host/share/' directory,\n regardless of the --root setting.\n `,\n },\n platform: {\n description: `Defaults to the value of 'process.platform' if\n available, or 'linux' if not. Setting --platform=win32\n on non-Windows systems may cause strange behavior!`,\n validOptions: [\n 'aix',\n 'android',\n 'darwin',\n 'freebsd',\n 'haiku',\n 'linux',\n 'openbsd',\n 'sunos',\n 'win32',\n 'cygwin',\n 'netbsd',\n ],\n },\n })\n .optList({\n ignore: {\n short: 'i',\n description: `Glob patterns to ignore`,\n },\n })\n .flag({\n debug: {\n short: 'v',\n description: `Output a huge amount of noisy debug information about\n patterns as they are parsed and used to match files.`,\n },\n })\n .flag({\n help: {\n short: 'h',\n description: 'Show this usage information',\n },\n })\n\ntry {\n const { positionals, values } = j.parse()\n if (values.help) {\n console.log(j.usage())\n process.exit(0)\n }\n if (positionals.length === 0 && !values.default)\n throw 'No patterns provided'\n if (positionals.length === 0 && values.default)\n positionals.push(values.default)\n const patterns =\n values.all ? positionals : positionals.filter(p => !existsSync(p))\n const matches =\n values.all ?\n []\n : positionals.filter(p => existsSync(p)).map(p => join(p))\n const stream = globStream(patterns, {\n absolute: values.absolute,\n cwd: values.cwd,\n dot: values.dot,\n dotRelative: values['dot-relative'],\n follow: values.follow,\n ignore: values.ignore,\n mark: values.mark,\n matchBase: values['match-base'],\n maxDepth: values['max-depth'],\n nobrace: values.nobrace,\n nocase: values.nocase,\n nodir: values.nodir,\n noext: values.noext,\n noglobstar: values.noglobstar,\n platform: values.platform as undefined | NodeJS.Platform,\n realpath: values.realpath,\n root: values.root,\n stat: values.stat,\n debug: values.debug,\n posix: values.posix,\n })\n\n const cmd = values.cmd\n if (!cmd) {\n matches.forEach(m => console.log(m))\n stream.on('data', f => console.log(f))\n } else {\n stream.on('data', f => matches.push(f))\n stream.on('end', () => foregroundChild(cmd, matches, { shell: true }))\n }\n} catch (e) {\n console.error(j.usage())\n console.error(e instanceof Error ? e.message : String(e))\n process.exit(1)\n}\n"]}
|
|
1
|
+
{"version":3,"file":"bin.mjs","sourceRoot":"","sources":["../../src/bin.mts"],"names":[],"mappings":";AACA,OAAO,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAA;AAClD,OAAO,EAAE,UAAU,EAAE,MAAM,IAAI,CAAA;AAC/B,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAA;AAChC,OAAO,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAA;AACxD,OAAO,EAAE,QAAQ,EAAE,IAAI,EAAE,MAAM,MAAM,CAAA;AACrC,OAAO,EAAE,UAAU,EAAE,MAAM,YAAY,CAAA;AAEvC,MAAM,EAAE,OAAO,EAAE,GAAG,eAAe,CAAC,MAAM,CAAC,IAAI,CAAC,GAAG,EAAE,iBAAiB,CAAC,CAAA;AAEvE,MAAM,CAAC,GAAG,IAAI,CAAC;IACb,KAAK,EAAE,4CAA4C;CACpD,CAA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foregroundChild } from 'foreground-child'\nimport { existsSync } from 'fs'\nimport { jack } from 'jackspeak'\nimport { loadPackageJson } from 'package-json-from-dist'\nimport { basename, join } from 'path'\nimport { globStream } from './index.js'\n\nconst { version } = loadPackageJson(import.meta.url, '../package.json')\n\nconst j = jack({\n usage: 'glob [options] [<pattern> [<pattern> ...]]',\n})\n .description(\n `\n Glob v${version}\n\n Expand the positional glob expression arguments into any matching file\n system paths found.\n `,\n )\n .opt({\n cmd: {\n short: 'c',\n hint: 'command',\n description: `Run the command provided, passing the glob expression\n matches as arguments.`,\n },\n })\n .opt({\n default: {\n short: 'p',\n hint: 'pattern',\n description: `If no positional arguments are provided, glob will use\n this pattern`,\n },\n })\n .flag({\n shell: {\n default: false,\n description: `Interpret the command as a shell command by passing it\n to the shell, with all matched filesystem paths appended,\n **even if this cannot be done safely**.\n\n This is **not** unsafe (and usually unnecessary) when using\n the known Unix shells sh, bash, zsh, and fish, as these can\n all be executed in such a way as to pass positional\n arguments safely.\n\n **Note**: THIS IS UNSAFE IF THE FILE PATHS ARE UNTRUSTED,\n because a path like \\`'some/path/\\\\$\\\\(cmd)'\\` will be\n executed by the shell.\n\n If you do have positional arguments that you wish to pass to\n the command ahead of the glob pattern matches, use the\n \\`--cmd-arg\\`/\\`-g\\` option instead.\n\n The next major release of glob will fully remove the ability\n to use this option unsafely.`,\n },\n })\n .optList({\n 'cmd-arg': {\n short: 'g',\n hint: 'arg',\n default: [],\n description: `Pass the provided values to the supplied command, ahead of\n the glob matches.\n\n For example, the command:\n\n glob -c echo -g\"hello\" -g\"world\" *.txt\n\n might output:\n\n hello world a.txt b.txt\n\n This is a safer (and future-proof) alternative than putting\n positional arguments in the \\`-c\\`/\\`--cmd\\` option.`,\n },\n })\n .flag({\n all: {\n short: 'A',\n description: `By default, the glob cli command will not expand any\n arguments that are an exact match to a file on disk.\n\n This prevents double-expanding, in case the shell expands\n an argument whose filename is a glob expression.\n\n For example, if 'app/*.ts' would match 'app/[id].ts', then\n on Windows powershell or cmd.exe, 'glob app/*.ts' will\n expand to 'app/[id].ts', as expected. However, in posix\n shells such as bash or zsh, the shell will first expand\n 'app/*.ts' to a list of filenames. Then glob will look\n for a file matching 'app/[id].ts' (ie, 'app/i.ts' or\n 'app/d.ts'), which is unexpected.\n\n Setting '--all' prevents this behavior, causing glob\n to treat ALL patterns as glob expressions to be expanded,\n even if they are an exact match to a file on disk.\n\n When setting this option, be sure to enquote arguments\n so that the shell will not expand them prior to passing\n them to the glob command process.\n `,\n },\n absolute: {\n short: 'a',\n description: 'Expand to absolute paths',\n },\n 'dot-relative': {\n short: 'd',\n description: `Prepend './' on relative matches`,\n },\n mark: {\n short: 'm',\n description: `Append a / on any directories matched`,\n },\n posix: {\n short: 'x',\n description: `Always resolve to posix style paths, using '/' as the\n directory separator, even on Windows. Drive letter\n absolute matches on Windows will be expanded to their\n full resolved UNC paths, eg instead of 'C:\\\\foo\\\\bar',\n it will expand to '//?/C:/foo/bar'.\n `,\n },\n\n follow: {\n short: 'f',\n description: `Follow symlinked directories when expanding '**'`,\n },\n realpath: {\n short: 'R',\n description: `Call 'fs.realpath' on all of the results. In the case\n of an entry that cannot be resolved, the entry is\n omitted. This incurs a slight performance penalty, of\n course, because of the added system calls.`,\n },\n stat: {\n short: 's',\n description: `Call 'fs.lstat' on all entries, whether required or not\n to determine if it's a valid match.`,\n },\n 'match-base': {\n short: 'b',\n description: `Perform a basename-only match if the pattern does not\n contain any slash characters. That is, '*.js' would be\n treated as equivalent to '**/*.js', matching js files\n in all directories.\n `,\n },\n\n dot: {\n description: `Allow patterns to match files/directories that start\n with '.', even if the pattern does not start with '.'\n `,\n },\n nobrace: {\n description: 'Do not expand {...} patterns',\n },\n nocase: {\n description: `Perform a case-insensitive match. This defaults to\n 'true' on macOS and Windows platforms, and false on\n all others.\n\n Note: 'nocase' should only be explicitly set when it is\n known that the filesystem's case sensitivity differs\n from the platform default. If set 'true' on\n case-insensitive file systems, then the walk may return\n more or less results than expected.\n `,\n },\n nodir: {\n description: `Do not match directories, only files.\n\n Note: to *only* match directories, append a '/' at the\n end of the pattern.\n `,\n },\n noext: {\n description: `Do not expand extglob patterns, such as '+(a|b)'`,\n },\n noglobstar: {\n description: `Do not expand '**' against multiple path portions.\n Ie, treat it as a normal '*' instead.`,\n },\n 'windows-path-no-escape': {\n description: `Use '\\\\' as a path separator *only*, and *never* as an\n escape character. If set, all '\\\\' characters are\n replaced with '/' in the pattern.`,\n },\n })\n .num({\n 'max-depth': {\n short: 'D',\n description: `Maximum depth to traverse from the current\n working directory`,\n },\n })\n .opt({\n cwd: {\n short: 'C',\n description: 'Current working directory to execute/match in',\n default: process.cwd(),\n },\n root: {\n short: 'r',\n description: `A string path resolved against the 'cwd', which is\n used as the starting point for absolute patterns that\n start with '/' (but not drive letters or UNC paths\n on Windows).\n\n Note that this *doesn't* necessarily limit the walk to\n the 'root' directory, and doesn't affect the cwd\n starting point for non-absolute patterns. A pattern\n containing '..' will still be able to traverse out of\n the root directory, if it is not an actual root directory\n on the filesystem, and any non-absolute patterns will\n still be matched in the 'cwd'.\n\n To start absolute and non-absolute patterns in the same\n path, you can use '--root=' to set it to the empty\n string. However, be aware that on Windows systems, a\n pattern like 'x:/*' or '//host/share/*' will *always*\n start in the 'x:/' or '//host/share/' directory,\n regardless of the --root setting.\n `,\n },\n platform: {\n description: `Defaults to the value of 'process.platform' if\n available, or 'linux' if not. Setting --platform=win32\n on non-Windows systems may cause strange behavior!`,\n validOptions: [\n 'aix',\n 'android',\n 'darwin',\n 'freebsd',\n 'haiku',\n 'linux',\n 'openbsd',\n 'sunos',\n 'win32',\n 'cygwin',\n 'netbsd',\n ],\n },\n })\n .optList({\n ignore: {\n short: 'i',\n description: `Glob patterns to ignore`,\n },\n })\n .flag({\n debug: {\n short: 'v',\n description: `Output a huge amount of noisy debug information about\n patterns as they are parsed and used to match files.`,\n },\n version: {\n short: 'V',\n description: `Output the version (${version})`,\n },\n help: {\n short: 'h',\n description: 'Show this usage information',\n },\n })\n\ntry {\n const { positionals, values } = j.parse()\n const {\n cmd,\n shell,\n all,\n default: def,\n version: showVersion,\n help,\n absolute,\n cwd,\n dot,\n\n 'dot-relative': dotRelative,\n follow,\n ignore,\n 'match-base': matchBase,\n 'max-depth': maxDepth,\n mark,\n nobrace,\n nocase,\n nodir,\n noext,\n noglobstar,\n platform,\n realpath,\n root,\n stat,\n debug,\n posix,\n 'cmd-arg': cmdArg,\n } = values\n if (showVersion) {\n console.log(version)\n process.exit(0)\n }\n if (help) {\n console.log(j.usage())\n process.exit(0)\n }\n //const { shell, help } = values\n if (positionals.length === 0 && !def) throw 'No patterns provided'\n if (positionals.length === 0 && def) positionals.push(def)\n const patterns =\n all ? positionals : positionals.filter(p => !existsSync(p))\n const matches =\n all ? [] : positionals.filter(p => existsSync(p)).map(p => join(p))\n\n const stream = globStream(patterns, {\n absolute,\n cwd,\n dot,\n dotRelative,\n follow,\n ignore,\n mark,\n matchBase,\n maxDepth,\n nobrace,\n nocase,\n nodir,\n noext,\n noglobstar,\n platform: platform as undefined | NodeJS.Platform,\n realpath,\n root,\n stat,\n debug,\n posix,\n })\n\n if (!cmd) {\n matches.forEach(m => console.log(m))\n stream.on('data', f => console.log(f))\n } else {\n cmdArg.push(...matches)\n stream.on('data', f => cmdArg.push(f))\n // Attempt to support commands that contain spaces and otherwise require\n // shell interpretation, but do NOT shell-interpret the arguments, to avoid\n // injections via filenames. This affordance can only be done on known Unix\n // shells, unfortunately.\n //\n // 'bash', ['-c', cmd + ' \"$@\"', 'bash', ...matches]\n // 'zsh', ['-c', cmd + ' \"$@\"', 'zsh', ...matches]\n // 'fish', ['-c', cmd + ' \"$argv\"', ...matches]\n const { SHELL = 'unknown' } = process.env\n const shellBase = basename(SHELL)\n const knownShells = ['sh', 'ksh', 'zsh', 'bash', 'fish']\n if (\n (shell || /[ \"']/.test(cmd)) &&\n knownShells.includes(shellBase)\n ) {\n const cmdWithArgs = `${cmd} \"\\$${shellBase === 'fish' ? 'argv' : '@'}\"`\n if (shellBase !== 'fish') {\n cmdArg.unshift(SHELL)\n }\n cmdArg.unshift('-c', cmdWithArgs)\n stream.on('end', () => foregroundChild(SHELL, cmdArg))\n } else {\n if (shell) {\n process.emitWarning(\n 'The --shell option is unsafe, and will be removed. To pass ' +\n 'positional arguments to the subprocess, use -g/--cmd-arg instead.',\n 'DeprecationWarning',\n 'GLOB_SHELL',\n )\n }\n stream.on('end', () => foregroundChild(cmd, cmdArg, { shell }))\n }\n }\n} catch (e) {\n console.error(j.usage())\n console.error(e instanceof Error ? e.message : String(e))\n process.exit(1)\n}\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"has-magic.d.ts","sourceRoot":"","sources":["../../src/has-magic.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,WAAW,EAAE,MAAM,WAAW,CAAA;AAEvC;;;;;;;;;;GAUG;AACH,eAAO,MAAM,QAAQ,
|
|
1
|
+
{"version":3,"file":"has-magic.d.ts","sourceRoot":"","sources":["../../src/has-magic.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,WAAW,EAAE,MAAM,WAAW,CAAA;AAEvC;;;;;;;;;;GAUG;AACH,eAAO,MAAM,QAAQ,GACnB,SAAS,MAAM,GAAG,MAAM,EAAE,EAC1B,UAAS,WAAgB,KACxB,OAQF,CAAA"}
|
|
@@ -91,7 +91,7 @@ export declare const glob: typeof glob_ & {
|
|
|
91
91
|
iterateSync: typeof globIterateSync;
|
|
92
92
|
Glob: typeof Glob;
|
|
93
93
|
hasMagic: (pattern: string | string[], options?: GlobOptions) => boolean;
|
|
94
|
-
escape: (s: string, { windowsPathsNoEscape, }?: Pick<import("minimatch").MinimatchOptions, "windowsPathsNoEscape">) => string;
|
|
95
|
-
unescape: (s: string, { windowsPathsNoEscape, }?: Pick<import("minimatch").MinimatchOptions, "windowsPathsNoEscape">) => string;
|
|
94
|
+
escape: (s: string, { windowsPathsNoEscape, magicalBraces, }?: Pick<import("minimatch").MinimatchOptions, "windowsPathsNoEscape" | "magicalBraces">) => string;
|
|
95
|
+
unescape: (s: string, { windowsPathsNoEscape, magicalBraces, }?: Pick<import("minimatch").MinimatchOptions, "windowsPathsNoEscape" | "magicalBraces">) => string;
|
|
96
96
|
};
|
|
97
97
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
The MIT License (MIT)
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2016 Mailjet SAS, https://mjml.io
|
|
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.
|