@openclaw/slack 2026.10.10 → 2026.11.5-beta.1
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/dist/.setup/{account-inspect-Bc7TVU8F.mjs → account-inspect-DgQgj0wk.mjs} +11 -8
- package/dist/.setup/{accounts-CEgdyqoW.mjs → accounts-EaPP0fFY.mjs} +10 -1
- package/dist/.setup/{action-runtime-DPoxYao5.mjs → action-runtime-CK9QZgQl.mjs} +38 -45
- package/dist/.setup/action-runtime.runtime-CpZktret.mjs +1 -0
- package/dist/.setup/{actions-PF2cP6to.mjs → actions-s3CcFO45.mjs} +89 -76
- package/dist/.setup/{approval-handler.runtime-BtRklemy.mjs → approval-handler.runtime-Ch7BecYK.mjs} +26 -30
- package/dist/.setup/{approval-message-updates-CpwbsEj6.mjs → approval-message-updates-CqcRoa28.mjs} +1 -1
- package/dist/.setup/{channel-B6bRmYmX.mjs → channel-CAvo_WNZ.mjs} +566 -338
- package/dist/.setup/{channel-type-Dh4vwh1Y.mjs → channel-type-9Lw6yLf2.mjs} +4 -8
- package/dist/.setup/{channel.setup-BBzT6uKA.mjs → channel.setup-BlgXNuCJ.mjs} +13 -13
- package/dist/.setup/{config-schema-Cz3uId-c.mjs → config-schema-Bx1tCZB0.mjs} +3 -7
- package/dist/.setup/cursor-pages-jVn3Vkfi.mjs +309 -0
- package/dist/.setup/{directory-config-BEPra1E2.mjs → directory-config-CGvKYg9F.mjs} +3 -3
- package/dist/.setup/{directory-live-BkUwPrS0.mjs → directory-live-DNdw97LA.mjs} +4 -4
- package/dist/.setup/{doctor-contract-HK8aedwU.mjs → doctor-contract-BB2KJ9Ni.mjs} +37 -45
- package/dist/.setup/{message-tool-api-DeiQJoRV.mjs → message-tool-api-B38BpEaE.mjs} +4 -3
- package/dist/.setup/{monitor-DsZUQtTM.mjs → monitor-BD86SotB.mjs} +3397 -3672
- package/dist/.setup/{outbound-adapter-C0R5jz6S.mjs → outbound-adapter-BH6iPWBj.mjs} +30 -36
- package/dist/.setup/paths-CQZI_5WY.mjs +7 -0
- package/dist/.setup/{pipeline.runtime-CIFVL0kf.mjs → pipeline.runtime-C4ELxaRU.mjs} +415 -534
- package/dist/.setup/{policy-Bp1FvE6m.mjs → policy-C6_DdlSf.mjs} +1 -2
- package/dist/.setup/{session-status-CHkEn3HM.mjs → probe-B_Ax1vS1.mjs} +985 -622
- package/dist/.setup/question-delivery-D3qAIwuv.mjs +38 -0
- package/dist/.setup/{relay-source-DFBDTA5Z.mjs → relay-source-a8jodKuO.mjs} +11 -4
- package/dist/.setup/{replies-7DRN46EL.mjs → replies-Bq7n0gfM.mjs} +34 -19
- package/dist/.setup/{reply-blocks-DOjiDr44.mjs → reply-blocks-DyYYRrP_.mjs} +200 -205
- package/dist/.setup/{resolve-channels-BNQ1KZXh.mjs → resolve-channels-CF2JME9q.mjs} +4 -7
- package/dist/.setup/{resolve-users-C4dC8Z7D.mjs → resolve-users-DDcCAjH1.mjs} +8 -16
- package/dist/.setup/{scopes-C1aeCBa6.mjs → scopes-CzHC_dwV.mjs} +2 -1
- package/dist/.setup/{secret-contract-D0UY2JWF.mjs → secret-contract-CqVqR7MP.mjs} +4 -2
- package/dist/.setup/{secret-contract-api-BhzGpUb0.mjs → secret-contract-api-DaCXZ47j.mjs} +1 -1
- package/dist/.setup/{send-C5uXkmZV.mjs → send-WJZ73VSf.mjs} +297 -333
- package/dist/.setup/{send-results-D-o6PgtS.mjs → send-results-Bm6V1ekL.mjs} +3 -4
- package/dist/.setup/setup-plugin-api-DJXIB8CF.mjs +2 -0
- package/dist/.setup/{setup-surface-CtM1pm-9.mjs → setup-surface-uIqP2B0Y.mjs} +5 -6
- package/dist/.setup/{slash-dispatch.runtime-Bnn9a5qB.mjs → slash-dispatch.runtime-Cwuwv7FL.mjs} +2 -2
- package/dist/.setup/{target-parsing-0pRZtahO.mjs → target-parsing-DwYAP3ts.mjs} +1 -2
- package/dist/.setup/{targets-BqXz7CpG.mjs → targets-eeOxA_b_.mjs} +1 -1
- package/dist/.source-module-urls/c5ffd0957b234c7c12090e7de4eca2482ef339b8561e078da55b734211b0ba58.json +1 -0
- package/dist/account-inspect-api.js +1 -1
- package/dist/api.js +16 -17
- package/dist/channel-config-api.js +1 -1
- package/dist/channel-plugin-api.js +1 -1
- package/dist/directory-contract-api.js +1 -1
- package/dist/doctor-contract-api.js +1 -1
- package/dist/index.js +0 -6
- package/dist/message-tool-api.js +1 -1
- package/dist/runtime-api.js +10 -12
- package/dist/secret-contract-api.js +1 -1
- package/dist/setup-entry.js +2 -2
- package/dist/setup-plugin-api.js +1 -1
- package/node_modules/@slack/bolt/node_modules/@types/node/README.md +1 -1
- package/node_modules/@slack/bolt/node_modules/@types/node/package.json +2 -2
- package/node_modules/@slack/bolt/node_modules/@types/node/util.d.ts +6 -3
- package/node_modules/@slack/bolt/node_modules/body-parser/README.md +13 -17
- package/node_modules/@slack/bolt/node_modules/body-parser/lib/read.js +57 -74
- package/node_modules/@slack/bolt/node_modules/body-parser/lib/types/json.js +11 -11
- package/node_modules/@slack/bolt/node_modules/body-parser/lib/types/urlencoded.js +5 -5
- package/node_modules/@slack/bolt/node_modules/body-parser/lib/utils.js +15 -0
- package/node_modules/@slack/bolt/node_modules/body-parser/package.json +12 -7
- package/node_modules/@slack/bolt/node_modules/content-disposition/README.md +105 -35
- package/node_modules/@slack/bolt/node_modules/content-disposition/dist/index.d.ts +72 -0
- package/node_modules/@slack/bolt/node_modules/content-disposition/dist/index.js +388 -0
- package/node_modules/@slack/bolt/node_modules/content-disposition/dist/index.js.map +1 -0
- package/node_modules/@slack/bolt/node_modules/content-disposition/package.json +31 -19
- package/node_modules/@slack/bolt/node_modules/content-type/README.md +34 -57
- package/node_modules/@slack/bolt/node_modules/content-type/package.json +35 -25
- package/node_modules/@slack/bolt/node_modules/express/Readme.md +15 -9
- package/node_modules/@slack/bolt/node_modules/express/lib/application.js +2 -2
- package/node_modules/@slack/bolt/node_modules/express/lib/request.js +32 -19
- package/node_modules/@slack/bolt/node_modules/express/lib/response.js +27 -30
- package/node_modules/@slack/bolt/node_modules/express/package.json +10 -10
- package/node_modules/@slack/bolt/node_modules/qs/.github/THREAT_MODEL.md +4 -2
- package/node_modules/@slack/bolt/node_modules/qs/CHANGELOG.md +38 -14
- package/node_modules/@slack/bolt/node_modules/qs/README.md +31 -3
- package/node_modules/@slack/bolt/node_modules/qs/dist/qs.js +20 -20
- package/node_modules/@slack/bolt/node_modules/qs/lib/parse.js +94 -4
- package/node_modules/@slack/bolt/node_modules/qs/lib/stringify.js +4 -4
- package/node_modules/@slack/bolt/node_modules/qs/lib/utils.js +130 -6
- package/node_modules/@slack/bolt/node_modules/qs/package.json +4 -4
- package/node_modules/@slack/bolt/node_modules/qs/test/parse.js +174 -0
- package/node_modules/@slack/bolt/node_modules/qs/test/stringify.js +263 -33
- package/node_modules/@slack/bolt/node_modules/qs/test/utils.js +184 -0
- package/node_modules/@slack/web-api/node_modules/@types/node/README.md +1 -1
- package/node_modules/@slack/web-api/node_modules/@types/node/package.json +2 -2
- package/node_modules/@slack/web-api/node_modules/@types/node/util.d.ts +6 -3
- package/node_modules/typebox/build/format/duration.d.mts +2 -2
- package/node_modules/typebox/build/format/duration.mjs +2 -2
- package/node_modules/typebox/build/format/idn_email.d.mts +1 -0
- package/node_modules/typebox/build/format/idn_email.mjs +1 -0
- package/node_modules/typebox/build/format/idn_hostname.d.mts +1 -1
- package/node_modules/typebox/build/format/idn_hostname.mjs +1 -1
- package/node_modules/typebox/build/format/ipv4.d.mts +2 -2
- package/node_modules/typebox/build/format/ipv4.mjs +2 -2
- package/node_modules/typebox/build/format/ipv6.d.mts +1 -1
- package/node_modules/typebox/build/format/ipv6.mjs +1 -1
- package/node_modules/typebox/build/format/relative_json_pointer.d.mts +2 -2
- package/node_modules/typebox/build/format/relative_json_pointer.mjs +2 -2
- package/node_modules/typebox/build/schema/build.mjs +1 -0
- package/node_modules/typebox/build/schema/engine/_unique.d.mts +4 -2
- package/node_modules/typebox/build/schema/engine/_unique.mjs +7 -3
- package/node_modules/typebox/build/schema/engine/additionalItems.mjs +3 -3
- package/node_modules/typebox/build/schema/engine/additionalProperties.d.mts +0 -3
- package/node_modules/typebox/build/schema/engine/additionalProperties.mjs +15 -17
- package/node_modules/typebox/build/schema/engine/contains.mjs +3 -3
- package/node_modules/typebox/build/schema/engine/index.d.mts +1 -0
- package/node_modules/typebox/build/schema/engine/index.mjs +1 -0
- package/node_modules/typebox/build/schema/engine/items.mjs +7 -4
- package/node_modules/typebox/build/schema/engine/maxContains.mjs +2 -2
- package/node_modules/typebox/build/schema/engine/minContains.mjs +3 -3
- package/node_modules/typebox/build/schema/engine/oneOf.mjs +2 -2
- package/node_modules/typebox/build/schema/engine/patternProperties.mjs +2 -2
- package/node_modules/typebox/build/schema/engine/propertyNames.mjs +2 -2
- package/node_modules/typebox/build/schema/engine/unevaluatedItems.mjs +2 -2
- package/node_modules/typebox/build/schema/engine/unevaluatedProperties.mjs +2 -2
- package/node_modules/typebox/build/system/hashing/hash.mjs +63 -34
- package/node_modules/typebox/build/system/locale/en_US.mjs +2 -1
- package/node_modules/typebox/build/system/memory/assign.d.mts +2 -8
- package/node_modules/typebox/build/system/memory/assign.mjs +13 -6
- package/node_modules/typebox/build/system/memory/clone.d.mts +4 -5
- package/node_modules/typebox/build/system/memory/clone.mjs +8 -96
- package/node_modules/typebox/build/system/memory/create.d.mts +1 -5
- package/node_modules/typebox/build/system/memory/create.mjs +18 -13
- package/node_modules/typebox/build/system/memory/deep.d.mts +2 -0
- package/node_modules/typebox/build/system/memory/deep.mjs +108 -0
- package/node_modules/typebox/build/system/memory/discard.d.mts +1 -1
- package/node_modules/typebox/build/system/memory/discard.mjs +9 -8
- package/node_modules/typebox/build/system/memory/finalize.d.mts +4 -0
- package/node_modules/typebox/build/system/memory/finalize.mjs +30 -0
- package/node_modules/typebox/build/system/memory/keys.d.mts +2 -0
- package/node_modules/typebox/build/system/memory/keys.mjs +8 -0
- package/node_modules/typebox/build/system/memory/update.d.mts +1 -4
- package/node_modules/typebox/build/system/memory/update.mjs +43 -16
- package/node_modules/typebox/build/type/engine/call/index.d.mts +1 -0
- package/node_modules/typebox/build/type/engine/call/index.mjs +1 -0
- package/node_modules/typebox/build/type/engine/evaluate/composite.d.mts +2 -24
- package/node_modules/typebox/build/type/engine/evaluate/composite.mjs +2 -29
- package/node_modules/typebox/build/type/engine/evaluate/index.d.mts +1 -0
- package/node_modules/typebox/build/type/engine/evaluate/index.mjs +1 -0
- package/node_modules/typebox/build/type/engine/evaluate/narrow.d.mts +5 -1
- package/node_modules/typebox/build/type/engine/evaluate/narrow.mjs +6 -1
- package/node_modules/typebox/build/type/engine/evaluate/property.d.mts +30 -0
- package/node_modules/typebox/build/type/engine/evaluate/property.mjs +29 -0
- package/node_modules/typebox/build/type/engine/immutable/instantiate_add.d.mts +1 -3
- package/node_modules/typebox/build/type/engine/immutable/instantiate_add.mjs +1 -4
- package/node_modules/typebox/build/type/engine/object/from_intersect.d.mts +2 -2
- package/node_modules/typebox/build/type/engine/object/from_intersect.mjs +2 -2
- package/node_modules/typebox/build/type/engine/object/from_union.d.mts +2 -2
- package/node_modules/typebox/build/type/engine/object/from_union.mjs +2 -2
- package/node_modules/typebox/build/type/engine/optional/instantiate_add.d.mts +1 -3
- package/node_modules/typebox/build/type/engine/optional/instantiate_add.mjs +1 -4
- package/node_modules/typebox/build/type/engine/readonly/instantiate_add.d.mts +1 -3
- package/node_modules/typebox/build/type/engine/readonly/instantiate_add.mjs +1 -4
- package/node_modules/typebox/build/type/engine/this/index.d.mts +1 -0
- package/node_modules/typebox/build/type/engine/this/index.mjs +1 -0
- package/node_modules/typebox/build/value/clone/clone.d.mts +4 -3
- package/node_modules/typebox/build/value/clone/clone.mjs +5 -7
- package/node_modules/typebox/build/value/repair/from_cyclic.d.mts +2 -0
- package/node_modules/typebox/build/value/repair/from_cyclic.mjs +6 -0
- package/node_modules/typebox/build/value/shared/union_priority_sort.mjs +25 -14
- package/node_modules/typebox/package.json +1 -1
- package/node_modules/typebox/readme.md +1 -1
- package/node_modules/undici/docs/docs/api/Interceptors.md +15 -2
- package/node_modules/undici/lib/dispatcher/client-h2.js +78 -3
- package/node_modules/undici/lib/dispatcher/pool-base.js +20 -3
- package/node_modules/undici/package.json +3 -3
- package/node_modules/undici/types/api.d.ts +1 -1
- package/node_modules/undici/types/utility.d.ts +4 -4
- package/node_modules/zod/package.json +1 -1
- package/node_modules/zod/src/v4/classic/tests/array.test.ts +27 -0
- package/node_modules/zod/src/v4/classic/tests/map.test.ts +7 -0
- package/node_modules/zod/src/v4/classic/tests/set.test.ts +6 -0
- package/node_modules/zod/src/v4/core/compile.ts +9 -0
- package/node_modules/zod/src/v4/core/schemas.ts +35 -1
- package/node_modules/zod/src/v4/core/util.ts +13 -0
- package/node_modules/zod/src/v4/core/versions.ts +1 -1
- package/node_modules/zod/v4/core/compile.cjs +8 -0
- package/node_modules/zod/v4/core/compile.js +8 -0
- package/node_modules/zod/v4/core/schemas.cjs +30 -0
- package/node_modules/zod/v4/core/schemas.d.cts +3 -1
- package/node_modules/zod/v4/core/schemas.d.ts +3 -1
- package/node_modules/zod/v4/core/schemas.js +30 -0
- package/node_modules/zod/v4/core/util.cjs +15 -0
- package/node_modules/zod/v4/core/util.d.cts +2 -0
- package/node_modules/zod/v4/core/util.d.ts +2 -0
- package/node_modules/zod/v4/core/util.js +14 -0
- package/node_modules/zod/v4/core/versions.cjs +1 -1
- package/node_modules/zod/v4/core/versions.js +1 -1
- package/openclaw.plugin.json +6 -30
- package/package.json +7 -7
- package/dist/.setup/action-runtime.runtime-DWKWaKgC.mjs +0 -1
- package/dist/.setup/http-GpAVKwSX.mjs +0 -2
- package/dist/.setup/plugin-routes-lXsy_bNV.mjs +0 -21
- package/dist/.setup/probe-C5VWf3sz.mjs +0 -686
- package/dist/.setup/registry-1G0f1zuZ.mjs +0 -34
- package/dist/.setup/setup-plugin-api-D7DoueEh.mjs +0 -2
- package/dist/.setup/shared-CohTHxM1.mjs +0 -255
- package/dist/.source-module-urls/562d694877afe9d9dcbb3b32a8883c16974738f2aa892c48d45572cdc9a62529.json +0 -1
- package/dist/http-routes-api.js +0 -1
- package/node_modules/@slack/bolt/node_modules/body-parser/node_modules/content-type/LICENSE +0 -22
- package/node_modules/@slack/bolt/node_modules/body-parser/node_modules/content-type/README.md +0 -71
- package/node_modules/@slack/bolt/node_modules/body-parser/node_modules/content-type/package.json +0 -52
- package/node_modules/@slack/bolt/node_modules/content-disposition/index.js +0 -536
- package/node_modules/@slack/bolt/node_modules/content-type/HISTORY.md +0 -29
- package/node_modules/@slack/bolt/node_modules/content-type/index.js +0 -225
- package/node_modules/@slack/bolt/node_modules/negotiator/node_modules/content-type/LICENSE +0 -22
- package/node_modules/@slack/bolt/node_modules/negotiator/node_modules/content-type/README.md +0 -71
- package/node_modules/@slack/bolt/node_modules/negotiator/node_modules/content-type/dist/index.d.ts +0 -46
- package/node_modules/@slack/bolt/node_modules/negotiator/node_modules/content-type/dist/index.js +0 -176
- package/node_modules/@slack/bolt/node_modules/negotiator/node_modules/content-type/dist/index.js.map +0 -1
- package/node_modules/@slack/bolt/node_modules/negotiator/node_modules/content-type/package.json +0 -52
- package/node_modules/@slack/bolt/node_modules/type-is/node_modules/content-type/LICENSE +0 -22
- package/node_modules/@slack/bolt/node_modules/type-is/node_modules/content-type/README.md +0 -71
- package/node_modules/@slack/bolt/node_modules/type-is/node_modules/content-type/dist/index.d.ts +0 -46
- package/node_modules/@slack/bolt/node_modules/type-is/node_modules/content-type/dist/index.js +0 -176
- package/node_modules/@slack/bolt/node_modules/type-is/node_modules/content-type/dist/index.js.map +0 -1
- package/node_modules/@slack/bolt/node_modules/type-is/node_modules/content-type/package.json +0 -52
- package/node_modules/typebox/build/system/memory/freeze.d.mts +0 -4
- package/node_modules/typebox/build/system/memory/freeze.mjs +0 -6
- /package/node_modules/@slack/bolt/node_modules/{body-parser/node_modules/content-type → content-type}/dist/index.d.ts +0 -0
- /package/node_modules/@slack/bolt/node_modules/{body-parser/node_modules/content-type → content-type}/dist/index.js +0 -0
- /package/node_modules/@slack/bolt/node_modules/{body-parser/node_modules/content-type → content-type}/dist/index.js.map +0 -0
|
@@ -1,225 +0,0 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* content-type
|
|
3
|
-
* Copyright(c) 2015 Douglas Christopher Wilson
|
|
4
|
-
* MIT Licensed
|
|
5
|
-
*/
|
|
6
|
-
|
|
7
|
-
'use strict'
|
|
8
|
-
|
|
9
|
-
/**
|
|
10
|
-
* RegExp to match *( ";" parameter ) in RFC 7231 sec 3.1.1.1
|
|
11
|
-
*
|
|
12
|
-
* parameter = token "=" ( token / quoted-string )
|
|
13
|
-
* token = 1*tchar
|
|
14
|
-
* tchar = "!" / "#" / "$" / "%" / "&" / "'" / "*"
|
|
15
|
-
* / "+" / "-" / "." / "^" / "_" / "`" / "|" / "~"
|
|
16
|
-
* / DIGIT / ALPHA
|
|
17
|
-
* ; any VCHAR, except delimiters
|
|
18
|
-
* quoted-string = DQUOTE *( qdtext / quoted-pair ) DQUOTE
|
|
19
|
-
* qdtext = HTAB / SP / %x21 / %x23-5B / %x5D-7E / obs-text
|
|
20
|
-
* obs-text = %x80-FF
|
|
21
|
-
* quoted-pair = "\" ( HTAB / SP / VCHAR / obs-text )
|
|
22
|
-
*/
|
|
23
|
-
var PARAM_REGEXP = /; *([!#$%&'*+.^_`|~0-9A-Za-z-]+) *= *("(?:[\u000b\u0020\u0021\u0023-\u005b\u005d-\u007e\u0080-\u00ff]|\\[\u000b\u0020-\u00ff])*"|[!#$%&'*+.^_`|~0-9A-Za-z-]+) */g // eslint-disable-line no-control-regex
|
|
24
|
-
var TEXT_REGEXP = /^[\u000b\u0020-\u007e\u0080-\u00ff]+$/ // eslint-disable-line no-control-regex
|
|
25
|
-
var TOKEN_REGEXP = /^[!#$%&'*+.^_`|~0-9A-Za-z-]+$/
|
|
26
|
-
|
|
27
|
-
/**
|
|
28
|
-
* RegExp to match quoted-pair in RFC 7230 sec 3.2.6
|
|
29
|
-
*
|
|
30
|
-
* quoted-pair = "\" ( HTAB / SP / VCHAR / obs-text )
|
|
31
|
-
* obs-text = %x80-FF
|
|
32
|
-
*/
|
|
33
|
-
var QESC_REGEXP = /\\([\u000b\u0020-\u00ff])/g // eslint-disable-line no-control-regex
|
|
34
|
-
|
|
35
|
-
/**
|
|
36
|
-
* RegExp to match chars that must be quoted-pair in RFC 7230 sec 3.2.6
|
|
37
|
-
*/
|
|
38
|
-
var QUOTE_REGEXP = /([\\"])/g
|
|
39
|
-
|
|
40
|
-
/**
|
|
41
|
-
* RegExp to match type in RFC 7231 sec 3.1.1.1
|
|
42
|
-
*
|
|
43
|
-
* media-type = type "/" subtype
|
|
44
|
-
* type = token
|
|
45
|
-
* subtype = token
|
|
46
|
-
*/
|
|
47
|
-
var TYPE_REGEXP = /^[!#$%&'*+.^_`|~0-9A-Za-z-]+\/[!#$%&'*+.^_`|~0-9A-Za-z-]+$/
|
|
48
|
-
|
|
49
|
-
/**
|
|
50
|
-
* Module exports.
|
|
51
|
-
* @public
|
|
52
|
-
*/
|
|
53
|
-
|
|
54
|
-
exports.format = format
|
|
55
|
-
exports.parse = parse
|
|
56
|
-
|
|
57
|
-
/**
|
|
58
|
-
* Format object to media type.
|
|
59
|
-
*
|
|
60
|
-
* @param {object} obj
|
|
61
|
-
* @return {string}
|
|
62
|
-
* @public
|
|
63
|
-
*/
|
|
64
|
-
|
|
65
|
-
function format (obj) {
|
|
66
|
-
if (!obj || typeof obj !== 'object') {
|
|
67
|
-
throw new TypeError('argument obj is required')
|
|
68
|
-
}
|
|
69
|
-
|
|
70
|
-
var parameters = obj.parameters
|
|
71
|
-
var type = obj.type
|
|
72
|
-
|
|
73
|
-
if (!type || !TYPE_REGEXP.test(type)) {
|
|
74
|
-
throw new TypeError('invalid type')
|
|
75
|
-
}
|
|
76
|
-
|
|
77
|
-
var string = type
|
|
78
|
-
|
|
79
|
-
// append parameters
|
|
80
|
-
if (parameters && typeof parameters === 'object') {
|
|
81
|
-
var param
|
|
82
|
-
var params = Object.keys(parameters).sort()
|
|
83
|
-
|
|
84
|
-
for (var i = 0; i < params.length; i++) {
|
|
85
|
-
param = params[i]
|
|
86
|
-
|
|
87
|
-
if (!TOKEN_REGEXP.test(param)) {
|
|
88
|
-
throw new TypeError('invalid parameter name')
|
|
89
|
-
}
|
|
90
|
-
|
|
91
|
-
string += '; ' + param + '=' + qstring(parameters[param])
|
|
92
|
-
}
|
|
93
|
-
}
|
|
94
|
-
|
|
95
|
-
return string
|
|
96
|
-
}
|
|
97
|
-
|
|
98
|
-
/**
|
|
99
|
-
* Parse media type to object.
|
|
100
|
-
*
|
|
101
|
-
* @param {string|object} string
|
|
102
|
-
* @return {Object}
|
|
103
|
-
* @public
|
|
104
|
-
*/
|
|
105
|
-
|
|
106
|
-
function parse (string) {
|
|
107
|
-
if (!string) {
|
|
108
|
-
throw new TypeError('argument string is required')
|
|
109
|
-
}
|
|
110
|
-
|
|
111
|
-
// support req/res-like objects as argument
|
|
112
|
-
var header = typeof string === 'object'
|
|
113
|
-
? getcontenttype(string)
|
|
114
|
-
: string
|
|
115
|
-
|
|
116
|
-
if (typeof header !== 'string') {
|
|
117
|
-
throw new TypeError('argument string is required to be a string')
|
|
118
|
-
}
|
|
119
|
-
|
|
120
|
-
var index = header.indexOf(';')
|
|
121
|
-
var type = index !== -1
|
|
122
|
-
? header.slice(0, index).trim()
|
|
123
|
-
: header.trim()
|
|
124
|
-
|
|
125
|
-
if (!TYPE_REGEXP.test(type)) {
|
|
126
|
-
throw new TypeError('invalid media type')
|
|
127
|
-
}
|
|
128
|
-
|
|
129
|
-
var obj = new ContentType(type.toLowerCase())
|
|
130
|
-
|
|
131
|
-
// parse parameters
|
|
132
|
-
if (index !== -1) {
|
|
133
|
-
var key
|
|
134
|
-
var match
|
|
135
|
-
var value
|
|
136
|
-
|
|
137
|
-
PARAM_REGEXP.lastIndex = index
|
|
138
|
-
|
|
139
|
-
while ((match = PARAM_REGEXP.exec(header))) {
|
|
140
|
-
if (match.index !== index) {
|
|
141
|
-
throw new TypeError('invalid parameter format')
|
|
142
|
-
}
|
|
143
|
-
|
|
144
|
-
index += match[0].length
|
|
145
|
-
key = match[1].toLowerCase()
|
|
146
|
-
value = match[2]
|
|
147
|
-
|
|
148
|
-
if (value.charCodeAt(0) === 0x22 /* " */) {
|
|
149
|
-
// remove quotes
|
|
150
|
-
value = value.slice(1, -1)
|
|
151
|
-
|
|
152
|
-
// remove escapes
|
|
153
|
-
if (value.indexOf('\\') !== -1) {
|
|
154
|
-
value = value.replace(QESC_REGEXP, '$1')
|
|
155
|
-
}
|
|
156
|
-
}
|
|
157
|
-
|
|
158
|
-
obj.parameters[key] = value
|
|
159
|
-
}
|
|
160
|
-
|
|
161
|
-
if (index !== header.length) {
|
|
162
|
-
throw new TypeError('invalid parameter format')
|
|
163
|
-
}
|
|
164
|
-
}
|
|
165
|
-
|
|
166
|
-
return obj
|
|
167
|
-
}
|
|
168
|
-
|
|
169
|
-
/**
|
|
170
|
-
* Get content-type from req/res objects.
|
|
171
|
-
*
|
|
172
|
-
* @param {object}
|
|
173
|
-
* @return {Object}
|
|
174
|
-
* @private
|
|
175
|
-
*/
|
|
176
|
-
|
|
177
|
-
function getcontenttype (obj) {
|
|
178
|
-
var header
|
|
179
|
-
|
|
180
|
-
if (typeof obj.getHeader === 'function') {
|
|
181
|
-
// res-like
|
|
182
|
-
header = obj.getHeader('content-type')
|
|
183
|
-
} else if (typeof obj.headers === 'object') {
|
|
184
|
-
// req-like
|
|
185
|
-
header = obj.headers && obj.headers['content-type']
|
|
186
|
-
}
|
|
187
|
-
|
|
188
|
-
if (typeof header !== 'string') {
|
|
189
|
-
throw new TypeError('content-type header is missing from object')
|
|
190
|
-
}
|
|
191
|
-
|
|
192
|
-
return header
|
|
193
|
-
}
|
|
194
|
-
|
|
195
|
-
/**
|
|
196
|
-
* Quote a string if necessary.
|
|
197
|
-
*
|
|
198
|
-
* @param {string} val
|
|
199
|
-
* @return {string}
|
|
200
|
-
* @private
|
|
201
|
-
*/
|
|
202
|
-
|
|
203
|
-
function qstring (val) {
|
|
204
|
-
var str = String(val)
|
|
205
|
-
|
|
206
|
-
// no need to quote tokens
|
|
207
|
-
if (TOKEN_REGEXP.test(str)) {
|
|
208
|
-
return str
|
|
209
|
-
}
|
|
210
|
-
|
|
211
|
-
if (str.length > 0 && !TEXT_REGEXP.test(str)) {
|
|
212
|
-
throw new TypeError('invalid parameter value')
|
|
213
|
-
}
|
|
214
|
-
|
|
215
|
-
return '"' + str.replace(QUOTE_REGEXP, '\\$1') + '"'
|
|
216
|
-
}
|
|
217
|
-
|
|
218
|
-
/**
|
|
219
|
-
* Class to represent a content type.
|
|
220
|
-
* @private
|
|
221
|
-
*/
|
|
222
|
-
function ContentType (type) {
|
|
223
|
-
this.parameters = Object.create(null)
|
|
224
|
-
this.type = type
|
|
225
|
-
}
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
(The MIT License)
|
|
2
|
-
|
|
3
|
-
Copyright (c) 2015 Douglas Christopher Wilson
|
|
4
|
-
|
|
5
|
-
Permission is hereby granted, free of charge, to any person obtaining
|
|
6
|
-
a copy of this software and associated documentation files (the
|
|
7
|
-
'Software'), to deal in the Software without restriction, including
|
|
8
|
-
without limitation the rights to use, copy, modify, merge, publish,
|
|
9
|
-
distribute, sublicense, and/or sell copies of the Software, and to
|
|
10
|
-
permit persons to whom the Software is furnished to do so, subject to
|
|
11
|
-
the following conditions:
|
|
12
|
-
|
|
13
|
-
The above copyright notice and this permission notice shall be
|
|
14
|
-
included in all copies or substantial portions of the Software.
|
|
15
|
-
|
|
16
|
-
THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,
|
|
17
|
-
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
|
18
|
-
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
|
|
19
|
-
IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
|
|
20
|
-
CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
|
|
21
|
-
TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
|
|
22
|
-
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
package/node_modules/@slack/bolt/node_modules/negotiator/node_modules/content-type/README.md
DELETED
|
@@ -1,71 +0,0 @@
|
|
|
1
|
-
# content-type
|
|
2
|
-
|
|
3
|
-
[![NPM version][npm-image]][npm-url]
|
|
4
|
-
[![NPM downloads][downloads-image]][downloads-url]
|
|
5
|
-
[![Build status][build-image]][build-url]
|
|
6
|
-
[![Build coverage][coverage-image]][coverage-url]
|
|
7
|
-
[![License][license-image]][license-url]
|
|
8
|
-
|
|
9
|
-
Create and parse HTTP `Content-Type` header.
|
|
10
|
-
|
|
11
|
-
## Installation
|
|
12
|
-
|
|
13
|
-
```sh
|
|
14
|
-
npm install content-type
|
|
15
|
-
```
|
|
16
|
-
|
|
17
|
-
## API
|
|
18
|
-
|
|
19
|
-
```js
|
|
20
|
-
const contentType = require("content-type");
|
|
21
|
-
```
|
|
22
|
-
|
|
23
|
-
### contentType.parse(string, options?)
|
|
24
|
-
|
|
25
|
-
```js
|
|
26
|
-
const obj = contentType.parse("image/svg+xml; charset=utf-8");
|
|
27
|
-
```
|
|
28
|
-
|
|
29
|
-
Parse a `Content-Type` header. This will return an object with the following properties (examples are shown for the string `'image/svg+xml; charset=utf-8'`):
|
|
30
|
-
|
|
31
|
-
- `type`: The media type. Example: `'image/svg+xml'`.
|
|
32
|
-
- `parameters`: An object of the parameters in the media type (parameter name is always lower case). Example: `{charset: 'utf-8'}`.
|
|
33
|
-
|
|
34
|
-
The parser is lenient and does not error. You should validate `type` and `parameters` before trusting them.
|
|
35
|
-
|
|
36
|
-
#### Options
|
|
37
|
-
|
|
38
|
-
- `parameters` (default: `true`): Set to `false` to skip parameters.
|
|
39
|
-
- `comma` (default: `false`): Set to `true` to stop on a comma. This can be used to parse the media range in an `Accept` header.
|
|
40
|
-
- `start` (default: `0`): Set index to start parsing from.
|
|
41
|
-
|
|
42
|
-
### contentType.format(obj)
|
|
43
|
-
|
|
44
|
-
```js
|
|
45
|
-
const str = contentType.format({
|
|
46
|
-
type: "image/svg+xml",
|
|
47
|
-
parameters: { charset: "utf-8" },
|
|
48
|
-
});
|
|
49
|
-
```
|
|
50
|
-
|
|
51
|
-
Format an object into a `Content-Type` header. This will return a string of the content type for the given object with the following properties (examples are shown that produce the string `'image/svg+xml; charset=utf-8'`):
|
|
52
|
-
|
|
53
|
-
- `type`: The media type. Example: `'image/svg+xml'`.
|
|
54
|
-
- `parameters`: An optional object of the parameters in the media type. Example: `{charset: 'utf-8'}`.
|
|
55
|
-
|
|
56
|
-
Throws a `TypeError` if the object contains an invalid type or parameter names.
|
|
57
|
-
|
|
58
|
-
## License
|
|
59
|
-
|
|
60
|
-
[MIT](LICENSE)
|
|
61
|
-
|
|
62
|
-
[npm-image]: https://img.shields.io/npm/v/content-type
|
|
63
|
-
[npm-url]: https://npmjs.org/package/content-type
|
|
64
|
-
[downloads-image]: https://img.shields.io/npm/dm/content-type
|
|
65
|
-
[downloads-url]: https://npmjs.org/package/content-type
|
|
66
|
-
[build-image]: https://img.shields.io/github/actions/workflow/status/jshttp/content-type/ci.yml?branch=master
|
|
67
|
-
[build-url]: https://github.com/jshttp/content-type/actions/workflows/ci.yml?query=branch%3Amaster
|
|
68
|
-
[coverage-image]: https://img.shields.io/codecov/c/gh/jshttp/content-type
|
|
69
|
-
[coverage-url]: https://codecov.io/gh/jshttp/content-type
|
|
70
|
-
[license-image]: http://img.shields.io/npm/l/content-type.svg?style=flat
|
|
71
|
-
[license-url]: LICENSE
|
package/node_modules/@slack/bolt/node_modules/negotiator/node_modules/content-type/dist/index.d.ts
DELETED
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* content-type
|
|
3
|
-
* Copyright(c) 2015 Douglas Christopher Wilson
|
|
4
|
-
* MIT Licensed
|
|
5
|
-
*/
|
|
6
|
-
/**
|
|
7
|
-
* The content type object contains a type string and optional parameters.
|
|
8
|
-
*/
|
|
9
|
-
export interface ContentType {
|
|
10
|
-
type: string;
|
|
11
|
-
index: number;
|
|
12
|
-
parameters: Record<string, string>;
|
|
13
|
-
}
|
|
14
|
-
/**
|
|
15
|
-
* Format an object into a `Content-Type` header.
|
|
16
|
-
*/
|
|
17
|
-
export declare function format(obj: Partial<ContentType>): string;
|
|
18
|
-
/**
|
|
19
|
-
* Options for parsing a `Content-Type` header.
|
|
20
|
-
*/
|
|
21
|
-
export interface ParseOptions {
|
|
22
|
-
/**
|
|
23
|
-
* Exit early on the first semicolon, returning only the type.
|
|
24
|
-
* This is useful for parsing the MIME from `Content-Type` headers.
|
|
25
|
-
*
|
|
26
|
-
* @default false
|
|
27
|
-
*/
|
|
28
|
-
parameters?: boolean;
|
|
29
|
-
/**
|
|
30
|
-
* Exits early on a comma, returning the first value and parameters.
|
|
31
|
-
* This is useful for parsing `Accept` headers.
|
|
32
|
-
*
|
|
33
|
-
* @default false
|
|
34
|
-
*/
|
|
35
|
-
comma?: boolean;
|
|
36
|
-
/**
|
|
37
|
-
* The index to start parsing from.
|
|
38
|
-
*
|
|
39
|
-
* @default 0
|
|
40
|
-
*/
|
|
41
|
-
start?: number;
|
|
42
|
-
}
|
|
43
|
-
/**
|
|
44
|
-
* Parse a `Content-Type` header.
|
|
45
|
-
*/
|
|
46
|
-
export declare function parse(header: string, options?: ParseOptions): ContentType;
|
package/node_modules/@slack/bolt/node_modules/negotiator/node_modules/content-type/dist/index.js
DELETED
|
@@ -1,176 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/*!
|
|
3
|
-
* content-type
|
|
4
|
-
* Copyright(c) 2015 Douglas Christopher Wilson
|
|
5
|
-
* MIT Licensed
|
|
6
|
-
*/
|
|
7
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
|
-
exports.format = format;
|
|
9
|
-
exports.parse = parse;
|
|
10
|
-
const TEXT_REGEXP = /^[\u0009\u0020-\u007e\u0080-\u00ff]*$/;
|
|
11
|
-
const TOKEN_REGEXP = /^[!#$%&'*+.^_`|~0-9A-Za-z-]+$/;
|
|
12
|
-
/**
|
|
13
|
-
* RegExp to match chars that must be quoted-pair in RFC 9110 sec 5.6.4
|
|
14
|
-
*/
|
|
15
|
-
const QUOTE_REGEXP = /[\\"]/g;
|
|
16
|
-
/**
|
|
17
|
-
* RegExp to match type in RFC 9110 sec 8.3.1
|
|
18
|
-
*
|
|
19
|
-
* media-type = type "/" subtype
|
|
20
|
-
* type = token
|
|
21
|
-
* subtype = token
|
|
22
|
-
*/
|
|
23
|
-
const TYPE_REGEXP = /^[!#$%&'*+.^_`|~0-9A-Za-z-]+\/[!#$%&'*+.^_`|~0-9A-Za-z-]+$/;
|
|
24
|
-
/**
|
|
25
|
-
* Null object perf optimization. Faster than `Object.create(null)` and `{ __proto__: null }`.
|
|
26
|
-
*/
|
|
27
|
-
const NullObject = /* @__PURE__ */ (() => {
|
|
28
|
-
const C = function () { };
|
|
29
|
-
C.prototype = Object.create(null);
|
|
30
|
-
return C;
|
|
31
|
-
})();
|
|
32
|
-
/**
|
|
33
|
-
* Format an object into a `Content-Type` header.
|
|
34
|
-
*/
|
|
35
|
-
function format(obj) {
|
|
36
|
-
const { type, parameters } = obj;
|
|
37
|
-
if (!type || !TYPE_REGEXP.test(type)) {
|
|
38
|
-
throw new TypeError(`Invalid type: ${type}`);
|
|
39
|
-
}
|
|
40
|
-
let result = type;
|
|
41
|
-
if (parameters) {
|
|
42
|
-
for (const param of Object.keys(parameters)) {
|
|
43
|
-
if (!TOKEN_REGEXP.test(param)) {
|
|
44
|
-
throw new TypeError(`Invalid parameter name: ${param}`);
|
|
45
|
-
}
|
|
46
|
-
result += `; ${param}=${qstring(parameters[param])}`;
|
|
47
|
-
}
|
|
48
|
-
}
|
|
49
|
-
return result;
|
|
50
|
-
}
|
|
51
|
-
/**
|
|
52
|
-
* Parse a `Content-Type` header.
|
|
53
|
-
*/
|
|
54
|
-
function parse(header, options) {
|
|
55
|
-
const stopChar = options?.comma === true ? COMMA : 65536; // Sentinel for "no stop char".
|
|
56
|
-
const len = header.length;
|
|
57
|
-
let index = skipOWS(header, options?.start ?? 0, len);
|
|
58
|
-
const valueStart = index;
|
|
59
|
-
index = skipValue(header, index, len, stopChar);
|
|
60
|
-
const valueEnd = trailingOWS(header, valueStart, index);
|
|
61
|
-
const type = header.slice(valueStart, valueEnd).toLowerCase();
|
|
62
|
-
if (options?.parameters === false) {
|
|
63
|
-
return { type, index, parameters: new NullObject() };
|
|
64
|
-
}
|
|
65
|
-
return parseParameters(header, type, index, len, stopChar);
|
|
66
|
-
}
|
|
67
|
-
const SP = 32; // " "
|
|
68
|
-
const HTAB = 9; // "\t"
|
|
69
|
-
const SEMI = 59; // ";"
|
|
70
|
-
const EQ = 61; // "="
|
|
71
|
-
const DQUOTE = 34; // '"'
|
|
72
|
-
const BSLASH = 92; // "\\"
|
|
73
|
-
const COMMA = 44; // ","
|
|
74
|
-
/**
|
|
75
|
-
* Parses the parameters of a `Content-Type` header starting at the given index.
|
|
76
|
-
*/
|
|
77
|
-
function parseParameters(header, type, index, len, stopChar) {
|
|
78
|
-
const parameters = new NullObject();
|
|
79
|
-
parameter: while (index < len) {
|
|
80
|
-
if (header.charCodeAt(index) === stopChar)
|
|
81
|
-
break;
|
|
82
|
-
index = skipOWS(header, index + 1 /* Skip over ; */, len);
|
|
83
|
-
const keyStart = index;
|
|
84
|
-
while (index < len) {
|
|
85
|
-
const code = header.charCodeAt(index);
|
|
86
|
-
if (code === stopChar)
|
|
87
|
-
break parameter;
|
|
88
|
-
if (code === SEMI)
|
|
89
|
-
continue parameter;
|
|
90
|
-
if (code === EQ) {
|
|
91
|
-
const keyEnd = trailingOWS(header, keyStart, index);
|
|
92
|
-
const key = header.slice(keyStart, keyEnd).toLowerCase();
|
|
93
|
-
index = skipOWS(header, index + 1, len);
|
|
94
|
-
if (index < len && header.charCodeAt(index) === DQUOTE) {
|
|
95
|
-
index++;
|
|
96
|
-
let value = "";
|
|
97
|
-
while (index < len) {
|
|
98
|
-
const code = header.charCodeAt(index++);
|
|
99
|
-
if (code === DQUOTE) {
|
|
100
|
-
index = skipValue(header, index, len, stopChar);
|
|
101
|
-
if (parameters[key] === undefined)
|
|
102
|
-
parameters[key] = value;
|
|
103
|
-
break;
|
|
104
|
-
}
|
|
105
|
-
if (code === BSLASH && index < len) {
|
|
106
|
-
value += header[index++];
|
|
107
|
-
continue;
|
|
108
|
-
}
|
|
109
|
-
value += String.fromCharCode(code);
|
|
110
|
-
}
|
|
111
|
-
continue parameter;
|
|
112
|
-
}
|
|
113
|
-
const valueStart = index;
|
|
114
|
-
index = skipValue(header, index, len, stopChar);
|
|
115
|
-
if (parameters[key] === undefined) {
|
|
116
|
-
const valueEnd = trailingOWS(header, valueStart, index);
|
|
117
|
-
parameters[key] = header.slice(valueStart, valueEnd);
|
|
118
|
-
}
|
|
119
|
-
continue parameter;
|
|
120
|
-
}
|
|
121
|
-
index++;
|
|
122
|
-
}
|
|
123
|
-
}
|
|
124
|
-
return { type, index, parameters };
|
|
125
|
-
}
|
|
126
|
-
/**
|
|
127
|
-
* Skip over characters until a semicolon or other exit character.
|
|
128
|
-
*/
|
|
129
|
-
function skipValue(str, index, len, stopChar) {
|
|
130
|
-
while (index < len) {
|
|
131
|
-
const code = str.charCodeAt(index);
|
|
132
|
-
if (code === SEMI || code === stopChar)
|
|
133
|
-
break;
|
|
134
|
-
index++;
|
|
135
|
-
}
|
|
136
|
-
return index;
|
|
137
|
-
}
|
|
138
|
-
/**
|
|
139
|
-
* Skip optional whitespace (OWS) in an HTTP header value.
|
|
140
|
-
*
|
|
141
|
-
* OWS is defined in RFC 9110 sec 5.6.3 as SP (" ") or HTAB ("\t").
|
|
142
|
-
*/
|
|
143
|
-
function skipOWS(header, index, len) {
|
|
144
|
-
while (index < len) {
|
|
145
|
-
const char = header.charCodeAt(index);
|
|
146
|
-
if (char !== SP && char !== HTAB)
|
|
147
|
-
break;
|
|
148
|
-
index++;
|
|
149
|
-
}
|
|
150
|
-
return index;
|
|
151
|
-
}
|
|
152
|
-
/**
|
|
153
|
-
* Trim optional whitespace (OWS) from the end of a substring.
|
|
154
|
-
*
|
|
155
|
-
* OWS is defined in RFC 9110 sec 5.6.3 as SP (" ") or HTAB ("\t").
|
|
156
|
-
*/
|
|
157
|
-
function trailingOWS(header, start, end) {
|
|
158
|
-
while (end > start) {
|
|
159
|
-
const char = header.charCodeAt(end - 1);
|
|
160
|
-
if (char !== SP && char !== HTAB)
|
|
161
|
-
break;
|
|
162
|
-
end--;
|
|
163
|
-
}
|
|
164
|
-
return end;
|
|
165
|
-
}
|
|
166
|
-
/**
|
|
167
|
-
* Serialize a parameter value.
|
|
168
|
-
*/
|
|
169
|
-
function qstring(str) {
|
|
170
|
-
if (TOKEN_REGEXP.test(str))
|
|
171
|
-
return str;
|
|
172
|
-
if (TEXT_REGEXP.test(str))
|
|
173
|
-
return `"${str.replace(QUOTE_REGEXP, "\\$&")}"`;
|
|
174
|
-
throw new TypeError(`Invalid parameter value: ${str}`);
|
|
175
|
-
}
|
|
176
|
-
//# sourceMappingURL=index.js.map
|
package/node_modules/@slack/bolt/node_modules/negotiator/node_modules/content-type/dist/index.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";AAAA;;;;GAIG;;AAyCH,wBAoBC;AA+BD,sBAeC;AAzGD,MAAM,WAAW,GAAG,uCAAuC,CAAC;AAC5D,MAAM,YAAY,GAAG,+BAA+B,CAAC;AAErD;;GAEG;AACH,MAAM,YAAY,GAAG,QAAQ,CAAC;AAE9B;;;;;;GAMG;AACH,MAAM,WAAW,GACf,4DAA4D,CAAC;AAE/D;;GAEG;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AAI,IAAI,KAAK,IAAI;YAAE,MAAM;QACxC,KAAK,EAAE,CAAC;IACV,CAAC;IACD,OAAO,KAAK,CAAC;AACf,CAAC;AAED;;;;GAIG;AACH,SAAS,WAAW,CAAC,MAAc,EAAE,KAAa,EAAE,GAAW;IAC7D,OAAO,GAAG,GAAG,KAAK,EAAE,CAAC;QACnB,MAAM,IAAI,GAAG,MAAM,CAAC,UAAU,CAAC,GAAG,GAAG,CAAC,CAAC,CAAC;QACxC,IAAI,IAAI,KAAK,EAAE,IAAI,IAAI,KAAK,IAAI;YAAE,MAAM;QACxC,GAAG,EAAE,CAAC;IACR,CAAC;IACD,OAAO,GAAG,CAAC;AACb,CAAC;AAED;;GAEG;AACH,SAAS,OAAO,CAAC,GAAW;IAC1B,IAAI,YAAY,CAAC,IAAI,CAAC,GAAG,CAAC;QAAE,OAAO,GAAG,CAAC;IACvC,IAAI,WAAW,CAAC,IAAI,CAAC,GAAG,CAAC;QAAE,OAAO,IAAI,GAAG,CAAC,OAAO,CAAC,YAAY,EAAE,MAAM,CAAC,GAAG,CAAC;IAE3E,MAAM,IAAI,SAAS,CAAC,4BAA4B,GAAG,EAAE,CAAC,CAAC;AACzD,CAAC","sourcesContent":["/*!\n * content-type\n * Copyright(c) 2015 Douglas Christopher Wilson\n * MIT Licensed\n */\n\nconst TEXT_REGEXP = /^[\\u0009\\u0020-\\u007e\\u0080-\\u00ff]*$/;\nconst TOKEN_REGEXP = /^[!#$%&'*+.^_`|~0-9A-Za-z-]+$/;\n\n/**\n * RegExp to match chars that must be quoted-pair in RFC 9110 sec 5.6.4\n */\nconst QUOTE_REGEXP = /[\\\\\"]/g;\n\n/**\n * RegExp to match type in RFC 9110 sec 8.3.1\n *\n * media-type = type \"/\" subtype\n * type = token\n * subtype = token\n */\nconst TYPE_REGEXP =\n /^[!#$%&'*+.^_`|~0-9A-Za-z-]+\\/[!#$%&'*+.^_`|~0-9A-Za-z-]+$/;\n\n/**\n * Null object perf optimization. Faster than `Object.create(null)` and `{ __proto__: null }`.\n */\nconst NullObject = /* @__PURE__ */ (() => {\n const C = function () {};\n C.prototype = Object.create(null);\n return C;\n})() as unknown as { new (): any };\n\n/**\n * The content type object contains a type string and optional parameters.\n */\nexport interface ContentType {\n type: string;\n index: number;\n parameters: Record<string, string>;\n}\n\n/**\n * Format an object into a `Content-Type` header.\n */\nexport function format(obj: Partial<ContentType>): string {\n const { type, parameters } = obj;\n\n if (!type || !TYPE_REGEXP.test(type)) {\n throw new TypeError(`Invalid type: ${type}`);\n }\n\n let result = type;\n\n if (parameters) {\n for (const param of Object.keys(parameters)) {\n if (!TOKEN_REGEXP.test(param)) {\n throw new TypeError(`Invalid parameter name: ${param}`);\n }\n\n result += `; ${param}=${qstring(parameters[param])}`;\n }\n }\n\n return result;\n}\n\n/**\n * Options for parsing a `Content-Type` header.\n */\nexport interface ParseOptions {\n /**\n * Exit early on the first semicolon, returning only the type.\n * This is useful for parsing the MIME from `Content-Type` headers.\n *\n * @default false\n */\n parameters?: boolean;\n /**\n * Exits early on a comma, returning the first value and parameters.\n * This is useful for parsing `Accept` headers.\n *\n * @default false\n */\n comma?: boolean;\n /**\n * The index to start parsing from.\n *\n * @default 0\n */\n start?: number;\n}\n\n/**\n * Parse a `Content-Type` header.\n */\nexport function parse(header: string, options?: ParseOptions): ContentType {\n const stopChar = options?.comma === true ? COMMA : 65_536; // Sentinel for \"no stop char\".\n const len = header.length;\n let index = skipOWS(header, options?.start ?? 0, len);\n\n const valueStart = index;\n index = skipValue(header, index, len, stopChar);\n const valueEnd = trailingOWS(header, valueStart, index);\n const type = header.slice(valueStart, valueEnd).toLowerCase();\n\n if (options?.parameters === false) {\n return { type, index, parameters: new NullObject() };\n }\n\n return parseParameters(header, type, index, len, stopChar);\n}\n\nconst SP = 32; // \" \"\nconst HTAB = 9; // \"\\t\"\nconst SEMI = 59; // \";\"\nconst EQ = 61; // \"=\"\nconst DQUOTE = 34; // '\"'\nconst BSLASH = 92; // \"\\\\\"\nconst COMMA = 44; // \",\"\n\n/**\n * Parses the parameters of a `Content-Type` header starting at the given index.\n */\nfunction parseParameters(\n header: string,\n type: string,\n index: number,\n len: number,\n stopChar: number,\n): ContentType {\n const parameters: Record<string, string> = new NullObject();\n\n parameter: while (index < len) {\n if (header.charCodeAt(index) === stopChar) break;\n\n index = skipOWS(header, index + 1 /* Skip over ; */, len);\n\n const keyStart = index;\n\n while (index < len) {\n const code = header.charCodeAt(index);\n if (code === stopChar) break parameter;\n\n if (code === SEMI) continue parameter;\n\n if (code === EQ) {\n const keyEnd = trailingOWS(header, keyStart, index);\n const key = header.slice(keyStart, keyEnd).toLowerCase();\n\n index = skipOWS(header, index + 1, len);\n\n if (index < len && header.charCodeAt(index) === DQUOTE) {\n index++;\n\n let value = \"\";\n while (index < len) {\n const code = header.charCodeAt(index++);\n if (code === DQUOTE) {\n index = skipValue(header, index, len, stopChar);\n if (parameters[key] === undefined) parameters[key] = value;\n break;\n }\n\n if (code === BSLASH && index < len) {\n value += header[index++];\n continue;\n }\n\n value += String.fromCharCode(code);\n }\n\n continue parameter;\n }\n\n const valueStart = index;\n index = skipValue(header, index, len, stopChar);\n\n if (parameters[key] === undefined) {\n const valueEnd = trailingOWS(header, valueStart, index);\n parameters[key] = header.slice(valueStart, valueEnd);\n }\n\n continue parameter;\n }\n\n index++;\n }\n }\n\n return { type, index, parameters };\n}\n\n/**\n * Skip over characters until a semicolon or other exit character.\n */\nfunction skipValue(\n str: string,\n index: number,\n len: number,\n stopChar: number,\n): number {\n while (index < len) {\n const code = str.charCodeAt(index);\n if (code === SEMI || code === stopChar) break;\n index++;\n }\n return index;\n}\n\n/**\n * Skip optional whitespace (OWS) in an HTTP header value.\n *\n * OWS is defined in RFC 9110 sec 5.6.3 as SP (\" \") or HTAB (\"\\t\").\n */\nfunction skipOWS(header: string, index: number, len: number): number {\n while (index < len) {\n const char = header.charCodeAt(index);\n if (char !== SP && char !== HTAB) break;\n index++;\n }\n return index;\n}\n\n/**\n * Trim optional whitespace (OWS) from the end of a substring.\n *\n * OWS is defined in RFC 9110 sec 5.6.3 as SP (\" \") or HTAB (\"\\t\").\n */\nfunction trailingOWS(header: string, start: number, end: number): number {\n while (end > start) {\n const char = header.charCodeAt(end - 1);\n if (char !== SP && char !== HTAB) break;\n end--;\n }\n return end;\n}\n\n/**\n * Serialize a parameter value.\n */\nfunction qstring(str: string): string {\n if (TOKEN_REGEXP.test(str)) return str;\n if (TEXT_REGEXP.test(str)) return `\"${str.replace(QUOTE_REGEXP, \"\\\\$&\")}\"`;\n\n throw new TypeError(`Invalid parameter value: ${str}`);\n}\n"]}
|
package/node_modules/@slack/bolt/node_modules/negotiator/node_modules/content-type/package.json
DELETED
|
@@ -1,52 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "content-type",
|
|
3
|
-
"version": "2.1.0",
|
|
4
|
-
"description": "Create and parse HTTP Content-Type header",
|
|
5
|
-
"keywords": [
|
|
6
|
-
"content-type",
|
|
7
|
-
"http",
|
|
8
|
-
"req",
|
|
9
|
-
"res",
|
|
10
|
-
"rfc7231",
|
|
11
|
-
"rfc9110"
|
|
12
|
-
],
|
|
13
|
-
"repository": "jshttp/content-type",
|
|
14
|
-
"funding": {
|
|
15
|
-
"type": "opencollective",
|
|
16
|
-
"url": "https://opencollective.com/express"
|
|
17
|
-
},
|
|
18
|
-
"license": "MIT",
|
|
19
|
-
"author": "Douglas Christopher Wilson <doug@somethingdoug.com>",
|
|
20
|
-
"type": "commonjs",
|
|
21
|
-
"exports": "./dist/index.js",
|
|
22
|
-
"main": "./dist/index.js",
|
|
23
|
-
"typings": "./dist/index.d.ts",
|
|
24
|
-
"files": [
|
|
25
|
-
"dist/"
|
|
26
|
-
],
|
|
27
|
-
"scripts": {
|
|
28
|
-
"bench": "vitest bench",
|
|
29
|
-
"build": "ts-scripts build",
|
|
30
|
-
"format": "ts-scripts format",
|
|
31
|
-
"prepare": "ts-scripts install && npm run build",
|
|
32
|
-
"specs": "ts-scripts specs",
|
|
33
|
-
"test": "ts-scripts test"
|
|
34
|
-
},
|
|
35
|
-
"devDependencies": {
|
|
36
|
-
"@borderless/ts-scripts": "^0.15.0",
|
|
37
|
-
"@vitest/coverage-v8": "^3.0.5",
|
|
38
|
-
"typescript": "^5.7.3",
|
|
39
|
-
"vitest": "^3.2.4"
|
|
40
|
-
},
|
|
41
|
-
"engines": {
|
|
42
|
-
"node": ">=18"
|
|
43
|
-
},
|
|
44
|
-
"ts-scripts": {
|
|
45
|
-
"dist": [
|
|
46
|
-
"dist"
|
|
47
|
-
],
|
|
48
|
-
"project": [
|
|
49
|
-
"tsconfig.build.json"
|
|
50
|
-
]
|
|
51
|
-
}
|
|
52
|
-
}
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
(The MIT License)
|
|
2
|
-
|
|
3
|
-
Copyright (c) 2015 Douglas Christopher Wilson
|
|
4
|
-
|
|
5
|
-
Permission is hereby granted, free of charge, to any person obtaining
|
|
6
|
-
a copy of this software and associated documentation files (the
|
|
7
|
-
'Software'), to deal in the Software without restriction, including
|
|
8
|
-
without limitation the rights to use, copy, modify, merge, publish,
|
|
9
|
-
distribute, sublicense, and/or sell copies of the Software, and to
|
|
10
|
-
permit persons to whom the Software is furnished to do so, subject to
|
|
11
|
-
the following conditions:
|
|
12
|
-
|
|
13
|
-
The above copyright notice and this permission notice shall be
|
|
14
|
-
included in all copies or substantial portions of the Software.
|
|
15
|
-
|
|
16
|
-
THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,
|
|
17
|
-
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
|
18
|
-
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
|
|
19
|
-
IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
|
|
20
|
-
CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
|
|
21
|
-
TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
|
|
22
|
-
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|