cloudstructs 0.9.28 → 0.9.29

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (136) hide show
  1. package/.jsii +4 -4
  2. package/assets/slack-textract/detect.lambda/index.js +63 -34
  3. package/lib/codecommit-mirror/index.js +2 -2
  4. package/lib/dmarc/index.js +1 -1
  5. package/lib/ecs-service-roller/index.js +2 -2
  6. package/lib/email-receiver/receiver.js +1 -1
  7. package/lib/mjml-template/index.js +1 -1
  8. package/lib/saml-identity-provider/index.js +2 -2
  9. package/lib/slack-app/manifest.js +1 -1
  10. package/lib/slack-app/slack-app.js +2 -2
  11. package/lib/slack-events/index.js +1 -1
  12. package/lib/slack-textract/index.js +1 -1
  13. package/lib/ssl-server-test/index.js +1 -1
  14. package/lib/state-machine-cr-provider/index.js +1 -1
  15. package/lib/static-website/index.js +1 -1
  16. package/lib/toolkit-cleaner/index.js +1 -1
  17. package/lib/url-shortener/index.js +1 -1
  18. package/node_modules/@babel/runtime/helpers/esm/wrapRegExp.js +4 -3
  19. package/node_modules/@babel/runtime/helpers/wrapRegExp.js +4 -3
  20. package/node_modules/@babel/runtime/package.json +1 -1
  21. package/node_modules/@slack/logger/node_modules/@types/node/README.md +1 -1
  22. package/node_modules/@slack/logger/node_modules/@types/node/buffer.buffer.d.ts +112 -38
  23. package/node_modules/@slack/logger/node_modules/@types/node/buffer.d.ts +4 -11
  24. package/node_modules/@slack/logger/node_modules/@types/node/constants.d.ts +14 -12
  25. package/node_modules/@slack/logger/node_modules/@types/node/crypto.d.ts +36 -1
  26. package/node_modules/@slack/logger/node_modules/@types/node/module.d.ts +4 -4
  27. package/node_modules/@slack/logger/node_modules/@types/node/package.json +2 -2
  28. package/node_modules/@slack/logger/node_modules/@types/node/stream/web.d.ts +6 -1
  29. package/node_modules/@slack/logger/node_modules/@types/node/stream.d.ts +936 -1005
  30. package/node_modules/@slack/logger/node_modules/@types/node/ts5.6/buffer.buffer.d.ts +107 -35
  31. package/node_modules/@slack/web-api/README.md +4 -4
  32. package/node_modules/@slack/web-api/dist/WebClient.d.ts +30 -1
  33. package/node_modules/@slack/web-api/dist/WebClient.d.ts.map +1 -1
  34. package/node_modules/@slack/web-api/dist/WebClient.js +15 -2
  35. package/node_modules/@slack/web-api/dist/WebClient.js.map +1 -1
  36. package/node_modules/@slack/web-api/dist/methods.d.ts +1 -1
  37. package/node_modules/@slack/web-api/dist/methods.js +1 -1
  38. package/node_modules/@slack/web-api/node_modules/@types/node/README.md +1 -1
  39. package/node_modules/@slack/web-api/node_modules/@types/node/buffer.buffer.d.ts +112 -38
  40. package/node_modules/@slack/web-api/node_modules/@types/node/buffer.d.ts +4 -11
  41. package/node_modules/@slack/web-api/node_modules/@types/node/constants.d.ts +14 -12
  42. package/node_modules/@slack/web-api/node_modules/@types/node/crypto.d.ts +36 -1
  43. package/node_modules/@slack/web-api/node_modules/@types/node/module.d.ts +4 -4
  44. package/node_modules/@slack/web-api/node_modules/@types/node/package.json +2 -2
  45. package/node_modules/@slack/web-api/node_modules/@types/node/stream/web.d.ts +6 -1
  46. package/node_modules/@slack/web-api/node_modules/@types/node/stream.d.ts +936 -1005
  47. package/node_modules/@slack/web-api/node_modules/@types/node/ts5.6/buffer.buffer.d.ts +107 -35
  48. package/node_modules/@slack/web-api/package.json +8 -6
  49. package/node_modules/@types/cacheable-request/node_modules/@types/node/README.md +1 -1
  50. package/node_modules/@types/cacheable-request/node_modules/@types/node/buffer.buffer.d.ts +112 -38
  51. package/node_modules/@types/cacheable-request/node_modules/@types/node/buffer.d.ts +4 -11
  52. package/node_modules/@types/cacheable-request/node_modules/@types/node/constants.d.ts +14 -12
  53. package/node_modules/@types/cacheable-request/node_modules/@types/node/crypto.d.ts +36 -1
  54. package/node_modules/@types/cacheable-request/node_modules/@types/node/module.d.ts +4 -4
  55. package/node_modules/@types/cacheable-request/node_modules/@types/node/package.json +2 -2
  56. package/node_modules/@types/cacheable-request/node_modules/@types/node/stream/web.d.ts +6 -1
  57. package/node_modules/@types/cacheable-request/node_modules/@types/node/stream.d.ts +936 -1005
  58. package/node_modules/@types/cacheable-request/node_modules/@types/node/ts5.6/buffer.buffer.d.ts +107 -35
  59. package/node_modules/@types/keyv/node_modules/@types/node/README.md +1 -1
  60. package/node_modules/@types/keyv/node_modules/@types/node/buffer.buffer.d.ts +112 -38
  61. package/node_modules/@types/keyv/node_modules/@types/node/buffer.d.ts +4 -11
  62. package/node_modules/@types/keyv/node_modules/@types/node/constants.d.ts +14 -12
  63. package/node_modules/@types/keyv/node_modules/@types/node/crypto.d.ts +36 -1
  64. package/node_modules/@types/keyv/node_modules/@types/node/module.d.ts +4 -4
  65. package/node_modules/@types/keyv/node_modules/@types/node/package.json +2 -2
  66. package/node_modules/@types/keyv/node_modules/@types/node/stream/web.d.ts +6 -1
  67. package/node_modules/@types/keyv/node_modules/@types/node/stream.d.ts +936 -1005
  68. package/node_modules/@types/keyv/node_modules/@types/node/ts5.6/buffer.buffer.d.ts +107 -35
  69. package/node_modules/@types/responselike/node_modules/@types/node/README.md +1 -1
  70. package/node_modules/@types/responselike/node_modules/@types/node/buffer.buffer.d.ts +112 -38
  71. package/node_modules/@types/responselike/node_modules/@types/node/buffer.d.ts +4 -11
  72. package/node_modules/@types/responselike/node_modules/@types/node/constants.d.ts +14 -12
  73. package/node_modules/@types/responselike/node_modules/@types/node/crypto.d.ts +36 -1
  74. package/node_modules/@types/responselike/node_modules/@types/node/module.d.ts +4 -4
  75. package/node_modules/@types/responselike/node_modules/@types/node/package.json +2 -2
  76. package/node_modules/@types/responselike/node_modules/@types/node/stream/web.d.ts +6 -1
  77. package/node_modules/@types/responselike/node_modules/@types/node/stream.d.ts +936 -1005
  78. package/node_modules/@types/responselike/node_modules/@types/node/ts5.6/buffer.buffer.d.ts +107 -35
  79. package/node_modules/abbrev/package.json +9 -11
  80. package/node_modules/axios/CHANGELOG.md +97 -0
  81. package/node_modules/axios/README.md +35 -13
  82. package/node_modules/axios/dist/axios.js +14 -25
  83. package/node_modules/axios/dist/axios.js.map +1 -1
  84. package/node_modules/axios/dist/axios.min.js +2 -1
  85. package/node_modules/axios/dist/axios.min.js.map +1 -1
  86. package/node_modules/axios/dist/browser/axios.cjs +14 -28
  87. package/node_modules/axios/dist/browser/axios.cjs.map +1 -1
  88. package/node_modules/axios/dist/esm/axios.js +14 -28
  89. package/node_modules/axios/dist/esm/axios.js.map +1 -1
  90. package/node_modules/axios/dist/esm/axios.min.js +2 -1
  91. package/node_modules/axios/dist/esm/axios.min.js.map +1 -1
  92. package/node_modules/axios/dist/node/axios.cjs +44 -31
  93. package/node_modules/axios/dist/node/axios.cjs.map +1 -1
  94. package/node_modules/axios/index.d.cts +1 -0
  95. package/node_modules/axios/index.d.ts +1 -0
  96. package/node_modules/axios/lib/adapters/http.js +1 -1
  97. package/node_modules/axios/lib/core/Axios.js +10 -1
  98. package/node_modules/axios/lib/core/buildFullPath.js +3 -2
  99. package/node_modules/axios/lib/env/data.js +1 -1
  100. package/node_modules/axios/lib/helpers/formDataToStream.js +3 -2
  101. package/node_modules/axios/lib/helpers/resolveConfig.js +1 -1
  102. package/node_modules/axios/lib/platform/node/index.js +26 -0
  103. package/node_modules/axios/lib/utils.js +0 -22
  104. package/node_modules/axios/package.json +4 -4
  105. package/node_modules/foreground-child/dist/commonjs/all-signals.d.ts +0 -1
  106. package/node_modules/foreground-child/dist/commonjs/all-signals.d.ts.map +1 -1
  107. package/node_modules/foreground-child/dist/commonjs/index.d.ts +1 -8
  108. package/node_modules/foreground-child/dist/commonjs/index.d.ts.map +1 -1
  109. package/node_modules/foreground-child/dist/commonjs/index.js +2 -2
  110. package/node_modules/foreground-child/dist/commonjs/index.js.map +1 -1
  111. package/node_modules/foreground-child/dist/commonjs/proxy-signals.d.ts +0 -1
  112. package/node_modules/foreground-child/dist/commonjs/proxy-signals.d.ts.map +1 -1
  113. package/node_modules/foreground-child/dist/commonjs/watchdog.d.ts +0 -1
  114. package/node_modules/foreground-child/dist/commonjs/watchdog.d.ts.map +1 -1
  115. package/node_modules/foreground-child/dist/esm/all-signals.d.ts +0 -1
  116. package/node_modules/foreground-child/dist/esm/all-signals.d.ts.map +1 -1
  117. package/node_modules/foreground-child/dist/esm/index.d.ts +1 -8
  118. package/node_modules/foreground-child/dist/esm/index.d.ts.map +1 -1
  119. package/node_modules/foreground-child/dist/esm/proxy-signals.d.ts +0 -1
  120. package/node_modules/foreground-child/dist/esm/proxy-signals.d.ts.map +1 -1
  121. package/node_modules/foreground-child/dist/esm/watchdog.d.ts +0 -1
  122. package/node_modules/foreground-child/dist/esm/watchdog.d.ts.map +1 -1
  123. package/node_modules/foreground-child/package.json +6 -11
  124. package/node_modules/js-beautify/README.md +8 -8
  125. package/node_modules/js-beautify/package.json +2 -2
  126. package/node_modules/nopt/README.md +8 -9
  127. package/node_modules/nopt/lib/nopt-lib.js +5 -40
  128. package/node_modules/nopt/lib/nopt.js +0 -4
  129. package/node_modules/nopt/package.json +9 -10
  130. package/package.json +19 -19
  131. package/node_modules/axios/SECURITY.md +0 -6
  132. /package/node_modules/{path-key → cross-spawn/node_modules/path-key}/index.d.ts +0 -0
  133. /package/node_modules/{path-key → cross-spawn/node_modules/path-key}/index.js +0 -0
  134. /package/node_modules/{path-key → cross-spawn/node_modules/path-key}/license +0 -0
  135. /package/node_modules/{path-key → cross-spawn/node_modules/path-key}/package.json +0 -0
  136. /package/node_modules/{path-key → cross-spawn/node_modules/path-key}/readme.md +0 -0
@@ -25,9 +25,7 @@ function nopt (args, {
25
25
  types,
26
26
  shorthands,
27
27
  typeDefs,
28
- invalidHandler, // opt is configured but its value does not validate against given type
29
- unknownHandler, // opt is not configured
30
- abbrevHandler, // opt is being expanded via abbrev
28
+ invalidHandler,
31
29
  typeDefault,
32
30
  dynamicTypes,
33
31
  } = {}) {
@@ -40,9 +38,7 @@ function nopt (args, {
40
38
  original: args.slice(0),
41
39
  }
42
40
 
43
- parse(args, data, argv.remain, {
44
- typeDefs, types, dynamicTypes, shorthands, unknownHandler, abbrevHandler,
45
- })
41
+ parse(args, data, argv.remain, { typeDefs, types, dynamicTypes, shorthands })
46
42
 
47
43
  // now data is full
48
44
  clean(data, { types, dynamicTypes, typeDefs, invalidHandler, typeDefault })
@@ -251,8 +247,6 @@ function parse (args, data, remain, {
251
247
  typeDefs = {},
252
248
  shorthands = {},
253
249
  dynamicTypes,
254
- unknownHandler,
255
- abbrevHandler,
256
250
  } = {}) {
257
251
  const StringType = typeDefs.String?.type
258
252
  const NumberType = typeDefs.Number?.type
@@ -288,7 +282,7 @@ function parse (args, data, remain, {
288
282
 
289
283
  // see if it's a shorthand
290
284
  // if so, splice and back up to re-parse it.
291
- const shRes = resolveShort(arg, shortAbbr, abbrevs, { shorthands, abbrevHandler })
285
+ const shRes = resolveShort(arg, shortAbbr, abbrevs, { shorthands })
292
286
  debug('arg=%j shRes=%j', arg, shRes)
293
287
  if (shRes) {
294
288
  args.splice.apply(args, [i, 1].concat(shRes))
@@ -304,13 +298,7 @@ function parse (args, data, remain, {
304
298
  arg = arg.slice(3)
305
299
  }
306
300
 
307
- // abbrev includes the original full string in its abbrev list
308
- if (abbrevs[arg] && abbrevs[arg] !== arg) {
309
- if (abbrevHandler) {
310
- abbrevHandler(arg, abbrevs[arg])
311
- } else if (abbrevHandler !== false) {
312
- debug(`abbrev: ${arg} -> ${abbrevs[arg]}`)
313
- }
301
+ if (abbrevs[arg]) {
314
302
  arg = abbrevs[arg]
315
303
  }
316
304
 
@@ -343,23 +331,6 @@ function parse (args, data, remain, {
343
331
  (argType === null ||
344
332
  isTypeArray && ~argType.indexOf(null)))
345
333
 
346
- if (typeof argType === 'undefined') {
347
- // la is going to unexpectedly be parsed outside the context of this arg
348
- const hangingLa = !hadEq && la && !la?.startsWith('-') && !['true', 'false'].includes(la)
349
- if (unknownHandler) {
350
- if (hangingLa) {
351
- unknownHandler(arg, la)
352
- } else {
353
- unknownHandler(arg)
354
- }
355
- } else if (unknownHandler !== false) {
356
- debug(`unknown: ${arg}`)
357
- if (hangingLa) {
358
- debug(`unknown: ${la} parsed as normal opt`)
359
- }
360
- }
361
- }
362
-
363
334
  if (isBool) {
364
335
  // just set and move along
365
336
  val = !no
@@ -449,7 +420,7 @@ const singleCharacters = (arg, shorthands) => {
449
420
  }
450
421
 
451
422
  function resolveShort (arg, ...rest) {
452
- const { abbrevHandler, types = {}, shorthands = {} } = rest.length ? rest.pop() : {}
423
+ const { types = {}, shorthands = {} } = rest.length ? rest.pop() : {}
453
424
  const shortAbbr = rest[0] ?? abbrev(Object.keys(shorthands))
454
425
  const abbrevs = rest[1] ?? abbrev(Object.keys(types))
455
426
 
@@ -486,13 +457,7 @@ function resolveShort (arg, ...rest) {
486
457
  }
487
458
 
488
459
  // if it's an abbr for a shorthand, then use that
489
- // exact match has already happened so we don't need to account for that here
490
460
  if (shortAbbr[arg]) {
491
- if (abbrevHandler) {
492
- abbrevHandler(arg, shortAbbr[arg])
493
- } else if (abbrevHandler !== false) {
494
- debug(`abbrev: ${arg} -> ${shortAbbr[arg]}`)
495
- }
496
461
  arg = shortAbbr[arg]
497
462
  }
498
463
 
@@ -18,8 +18,6 @@ function nopt (types, shorthands, args = process.argv, slice = 2) {
18
18
  shorthands: shorthands || {},
19
19
  typeDefs: exports.typeDefs,
20
20
  invalidHandler: exports.invalidHandler,
21
- unknownHandler: exports.unknownHandler,
22
- abbrevHandler: exports.abbrevHandler,
23
21
  })
24
22
  }
25
23
 
@@ -28,7 +26,5 @@ function clean (data, types, typeDefs = exports.typeDefs) {
28
26
  types: types || {},
29
27
  typeDefs,
30
28
  invalidHandler: exports.invalidHandler,
31
- unknownHandler: exports.unknownHandler,
32
- abbrevHandler: exports.abbrevHandler,
33
29
  })
34
30
  }
@@ -1,18 +1,17 @@
1
1
  {
2
2
  "name": "nopt",
3
- "version": "8.1.0",
3
+ "version": "7.2.1",
4
4
  "description": "Option parsing for Node, supporting types, shorthands, etc. Used by npm.",
5
5
  "author": "GitHub Inc.",
6
6
  "main": "lib/nopt.js",
7
7
  "scripts": {
8
8
  "test": "tap",
9
- "lint": "npm run eslint",
9
+ "lint": "eslint \"**/*.{js,cjs,ts,mjs,jsx,tsx}\"",
10
10
  "postlint": "template-oss-check",
11
11
  "template-oss-apply": "template-oss-apply --force",
12
- "lintfix": "npm run eslint -- --fix",
12
+ "lintfix": "npm run lint -- --fix",
13
13
  "snap": "tap",
14
- "posttest": "npm run lint",
15
- "eslint": "eslint \"**/*.{js,cjs,ts,mjs,jsx,tsx}\""
14
+ "posttest": "npm run lint"
16
15
  },
17
16
  "repository": {
18
17
  "type": "git",
@@ -23,11 +22,11 @@
23
22
  },
24
23
  "license": "ISC",
25
24
  "dependencies": {
26
- "abbrev": "^3.0.0"
25
+ "abbrev": "^2.0.0"
27
26
  },
28
27
  "devDependencies": {
29
- "@npmcli/eslint-config": "^5.0.0",
30
- "@npmcli/template-oss": "4.23.6",
28
+ "@npmcli/eslint-config": "^4.0.0",
29
+ "@npmcli/template-oss": "4.22.0",
31
30
  "tap": "^16.3.0"
32
31
  },
33
32
  "tap": {
@@ -41,12 +40,12 @@
41
40
  "lib/"
42
41
  ],
43
42
  "engines": {
44
- "node": "^18.17.0 || >=20.5.0"
43
+ "node": "^14.17.0 || ^16.13.0 || >=18.0.0"
45
44
  },
46
45
  "templateOSS": {
47
46
  "//@npmcli/template-oss": "This file is partially managed by @npmcli/template-oss. Edits may be overwritten.",
48
47
  "windowsCI": false,
49
- "version": "4.23.6",
48
+ "version": "4.22.0",
50
49
  "publish": true
51
50
  }
52
51
  }
package/package.json CHANGED
@@ -91,17 +91,17 @@
91
91
  "organization": false
92
92
  },
93
93
  "devDependencies": {
94
- "@aws-sdk/client-cloudformation": "^3.750.0",
95
- "@aws-sdk/client-dynamodb": "^3.751.0",
96
- "@aws-sdk/client-ecr": "^3.750.0",
97
- "@aws-sdk/client-ecs": "^3.752.0",
98
- "@aws-sdk/client-eventbridge": "^3.750.0",
99
- "@aws-sdk/client-iam": "^3.750.0",
100
- "@aws-sdk/client-s3": "^3.750.0",
101
- "@aws-sdk/client-secrets-manager": "^3.750.0",
102
- "@aws-sdk/client-sfn": "^3.750.0",
103
- "@aws-sdk/client-textract": "^3.750.0",
104
- "@aws-sdk/lib-dynamodb": "^3.751.0",
94
+ "@aws-sdk/client-cloudformation": "^3.758.0",
95
+ "@aws-sdk/client-dynamodb": "^3.767.0",
96
+ "@aws-sdk/client-ecr": "^3.766.0",
97
+ "@aws-sdk/client-ecs": "^3.766.0",
98
+ "@aws-sdk/client-eventbridge": "^3.758.0",
99
+ "@aws-sdk/client-iam": "^3.758.0",
100
+ "@aws-sdk/client-s3": "^3.758.0",
101
+ "@aws-sdk/client-secrets-manager": "^3.758.0",
102
+ "@aws-sdk/client-sfn": "^3.758.0",
103
+ "@aws-sdk/client-textract": "^3.758.0",
104
+ "@aws-sdk/lib-dynamodb": "^3.767.0",
105
105
  "@stylistic/eslint-plugin": "^2",
106
106
  "@types/aws-lambda": "^8.10.147",
107
107
  "@types/jest": "^29",
@@ -116,29 +116,29 @@
116
116
  "aws-sdk-client-mock-jest": "^2.2.0",
117
117
  "commit-and-tag-version": "^12",
118
118
  "constructs": "10.0.5",
119
- "esbuild": "^0.25.0",
119
+ "esbuild": "^0.25.1",
120
120
  "eslint": "^9",
121
- "eslint-import-resolver-typescript": "^3.8.3",
121
+ "eslint-import-resolver-typescript": "^3.9.1",
122
122
  "eslint-plugin-import": "^2.31.0",
123
123
  "jest": "^29",
124
124
  "jest-junit": "^16",
125
125
  "jsii": "5.x",
126
- "jsii-diff": "^1.107.0",
126
+ "jsii-diff": "^1.110.0",
127
127
  "jsii-docgen": "^10.5.0",
128
- "jsii-pacmak": "^1.107.0",
128
+ "jsii-pacmak": "^1.110.0",
129
129
  "jsii-rosetta": "5.x",
130
130
  "nock": "^13.5.6",
131
- "projen": "^0.91.13",
131
+ "projen": "^0.91.18",
132
132
  "ts-jest": "^29",
133
133
  "ts-node": "^10.9.2",
134
- "typescript": "^5.7.3"
134
+ "typescript": "^5.8.2"
135
135
  },
136
136
  "peerDependencies": {
137
137
  "aws-cdk-lib": "^2.133.0",
138
138
  "constructs": "^10.0.5"
139
139
  },
140
140
  "dependencies": {
141
- "@slack/web-api": "^7.8.0",
141
+ "@slack/web-api": "^7.9.0",
142
142
  "got": "^11.8.6",
143
143
  "mjml": "^4.15.3"
144
144
  },
@@ -155,7 +155,7 @@
155
155
  "publishConfig": {
156
156
  "access": "public"
157
157
  },
158
- "version": "0.9.28",
158
+ "version": "0.9.29",
159
159
  "jest": {
160
160
  "coverageProvider": "v8",
161
161
  "testMatch": [
@@ -1,6 +0,0 @@
1
- # Reporting a Vulnerability
2
-
3
- If you discover a security vulnerability in axios please disclose it via [our huntr page](https://huntr.dev/repos/axios/axios/). Bounty eligibility, CVE assignment, response times and past reports are all there.
4
-
5
-
6
- Thank you for improving the security of axios.