cloudstructs 0.9.20 → 0.9.22

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 (63) hide show
  1. package/.jsii +23 -5
  2. package/API.md +14 -0
  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.d.ts +6 -0
  17. package/lib/toolkit-cleaner/index.js +4 -4
  18. package/lib/url-shortener/index.js +1 -1
  19. package/node_modules/@slack/logger/node_modules/@types/node/README.md +1 -1
  20. package/node_modules/@slack/logger/node_modules/@types/node/package.json +2 -2
  21. package/node_modules/@slack/logger/node_modules/@types/node/readline/promises.d.ts +14 -2
  22. package/node_modules/@slack/logger/node_modules/@types/node/readline.d.ts +57 -8
  23. package/node_modules/@slack/logger/node_modules/@types/node/test.d.ts +19 -0
  24. package/node_modules/@slack/logger/node_modules/@types/node/timers/promises.d.ts +1 -1
  25. package/node_modules/@slack/logger/node_modules/@types/node/tls.d.ts +6 -0
  26. package/node_modules/@slack/logger/node_modules/@types/node/util.d.ts +65 -0
  27. package/node_modules/@slack/web-api/node_modules/@types/node/README.md +1 -1
  28. package/node_modules/@slack/web-api/node_modules/@types/node/package.json +2 -2
  29. package/node_modules/@slack/web-api/node_modules/@types/node/readline/promises.d.ts +14 -2
  30. package/node_modules/@slack/web-api/node_modules/@types/node/readline.d.ts +57 -8
  31. package/node_modules/@slack/web-api/node_modules/@types/node/test.d.ts +19 -0
  32. package/node_modules/@slack/web-api/node_modules/@types/node/timers/promises.d.ts +1 -1
  33. package/node_modules/@slack/web-api/node_modules/@types/node/tls.d.ts +6 -0
  34. package/node_modules/@slack/web-api/node_modules/@types/node/util.d.ts +65 -0
  35. package/node_modules/@types/cacheable-request/node_modules/@types/node/README.md +1 -1
  36. package/node_modules/@types/cacheable-request/node_modules/@types/node/package.json +2 -2
  37. package/node_modules/@types/cacheable-request/node_modules/@types/node/readline/promises.d.ts +14 -2
  38. package/node_modules/@types/cacheable-request/node_modules/@types/node/readline.d.ts +57 -8
  39. package/node_modules/@types/cacheable-request/node_modules/@types/node/test.d.ts +19 -0
  40. package/node_modules/@types/cacheable-request/node_modules/@types/node/timers/promises.d.ts +1 -1
  41. package/node_modules/@types/cacheable-request/node_modules/@types/node/tls.d.ts +6 -0
  42. package/node_modules/@types/cacheable-request/node_modules/@types/node/util.d.ts +65 -0
  43. package/node_modules/@types/keyv/node_modules/@types/node/README.md +1 -1
  44. package/node_modules/@types/keyv/node_modules/@types/node/package.json +2 -2
  45. package/node_modules/@types/keyv/node_modules/@types/node/readline/promises.d.ts +14 -2
  46. package/node_modules/@types/keyv/node_modules/@types/node/readline.d.ts +57 -8
  47. package/node_modules/@types/keyv/node_modules/@types/node/test.d.ts +19 -0
  48. package/node_modules/@types/keyv/node_modules/@types/node/timers/promises.d.ts +1 -1
  49. package/node_modules/@types/keyv/node_modules/@types/node/tls.d.ts +6 -0
  50. package/node_modules/@types/keyv/node_modules/@types/node/util.d.ts +65 -0
  51. package/node_modules/@types/responselike/node_modules/@types/node/README.md +1 -1
  52. package/node_modules/@types/responselike/node_modules/@types/node/package.json +2 -2
  53. package/node_modules/@types/responselike/node_modules/@types/node/readline/promises.d.ts +14 -2
  54. package/node_modules/@types/responselike/node_modules/@types/node/readline.d.ts +57 -8
  55. package/node_modules/@types/responselike/node_modules/@types/node/test.d.ts +19 -0
  56. package/node_modules/@types/responselike/node_modules/@types/node/timers/promises.d.ts +1 -1
  57. package/node_modules/@types/responselike/node_modules/@types/node/tls.d.ts +6 -0
  58. package/node_modules/@types/responselike/node_modules/@types/node/util.d.ts +65 -0
  59. package/node_modules/cross-spawn/README.md +3 -10
  60. package/node_modules/cross-spawn/lib/enoent.js +1 -1
  61. package/node_modules/cross-spawn/lib/util/escape.js +4 -2
  62. package/node_modules/cross-spawn/package.json +1 -1
  63. package/package.json +18 -17
@@ -108,6 +108,25 @@ declare module "util" {
108
108
  export interface InspectOptionsStylized extends InspectOptions {
109
109
  stylize(text: string, styleType: Style): string;
110
110
  }
111
+ export interface StacktraceObject {
112
+ /**
113
+ * Returns the name of the function associated with this stack frame.
114
+ */
115
+ functionName: string;
116
+ /**
117
+ * Returns the name of the resource that contains the script for the
118
+ * function for this StackFrame.
119
+ */
120
+ scriptName: string;
121
+ /**
122
+ * Returns the number, 1-based, of the line for the associate function call.
123
+ */
124
+ lineNumber: number;
125
+ /**
126
+ * Returns the 1-based column offset on the line for the associated function call.
127
+ */
128
+ column: number;
129
+ }
111
130
  /**
112
131
  * The `util.format()` method returns a formatted string using the first argument
113
132
  * as a `printf`-like format string which can contain zero or more format
@@ -166,6 +185,52 @@ declare module "util" {
166
185
  * @since v10.0.0
167
186
  */
168
187
  export function formatWithOptions(inspectOptions: InspectOptions, format?: any, ...param: any[]): string;
188
+ /**
189
+ * Returns an array of stacktrace objects containing the stack of
190
+ * the caller function.
191
+ *
192
+ * ```js
193
+ * const util = require('node:util');
194
+ *
195
+ * function exampleFunction() {
196
+ * const callSites = util.getCallSite();
197
+ *
198
+ * console.log('Call Sites:');
199
+ * callSites.forEach((callSite, index) => {
200
+ * console.log(`CallSite ${index + 1}:`);
201
+ * console.log(`Function Name: ${callSite.functionName}`);
202
+ * console.log(`Script Name: ${callSite.scriptName}`);
203
+ * console.log(`Line Number: ${callSite.lineNumber}`);
204
+ * console.log(`Column Number: ${callSite.column}`);
205
+ * });
206
+ * // CallSite 1:
207
+ * // Function Name: exampleFunction
208
+ * // Script Name: /home/example.js
209
+ * // Line Number: 5
210
+ * // Column Number: 26
211
+ *
212
+ * // CallSite 2:
213
+ * // Function Name: anotherFunction
214
+ * // Script Name: /home/example.js
215
+ * // Line Number: 22
216
+ * // Column Number: 3
217
+ *
218
+ * // ...
219
+ * }
220
+ *
221
+ * // A function to simulate another stack layer
222
+ * function anotherFunction() {
223
+ * exampleFunction();
224
+ * }
225
+ *
226
+ * anotherFunction();
227
+ * ```
228
+ * @param frames Number of frames returned in the stacktrace.
229
+ * **Default:** `10`. Allowable range is between 1 and 200.
230
+ * @return An array of stacktrace objects
231
+ * @since v22.9.0
232
+ */
233
+ export function getCallSite(frames?: number): StacktraceObject[];
169
234
  /**
170
235
  * Returns the string name for a numeric error code that comes from a Node.js API.
171
236
  * The mapping between error codes and error names is platform-dependent.
@@ -1,24 +1,17 @@
1
1
  # cross-spawn
2
2
 
3
- [![NPM version][npm-image]][npm-url] [![Downloads][downloads-image]][npm-url] [![Build Status][travis-image]][travis-url] [![Build status][appveyor-image]][appveyor-url] [![Coverage Status][codecov-image]][codecov-url] [![Dependency status][david-dm-image]][david-dm-url] [![Dev Dependency status][david-dm-dev-image]][david-dm-dev-url]
3
+ [![NPM version][npm-image]][npm-url] [![Downloads][downloads-image]][npm-url] [![Build Status][ci-image]][ci-url] [![Build status][appveyor-image]][appveyor-url]
4
4
 
5
5
  [npm-url]:https://npmjs.org/package/cross-spawn
6
6
  [downloads-image]:https://img.shields.io/npm/dm/cross-spawn.svg
7
7
  [npm-image]:https://img.shields.io/npm/v/cross-spawn.svg
8
- [travis-url]:https://travis-ci.org/moxystudio/node-cross-spawn
9
- [travis-image]:https://img.shields.io/travis/moxystudio/node-cross-spawn/master.svg
8
+ [ci-url]:https://github.com/moxystudio/cross-spawn/actions/workflows/ci.yaml
9
+ [ci-image]:https://github.com/moxystudio/node-cross-spawn/actions/workflows/ci.yaml/badge.svg
10
10
  [appveyor-url]:https://ci.appveyor.com/project/satazor/node-cross-spawn
11
11
  [appveyor-image]:https://img.shields.io/appveyor/ci/satazor/node-cross-spawn/master.svg
12
- [codecov-url]:https://codecov.io/gh/moxystudio/node-cross-spawn
13
- [codecov-image]:https://img.shields.io/codecov/c/github/moxystudio/node-cross-spawn/master.svg
14
- [david-dm-url]:https://david-dm.org/moxystudio/node-cross-spawn
15
- [david-dm-image]:https://img.shields.io/david/moxystudio/node-cross-spawn.svg
16
- [david-dm-dev-url]:https://david-dm.org/moxystudio/node-cross-spawn?type=dev
17
- [david-dm-dev-image]:https://img.shields.io/david/dev/moxystudio/node-cross-spawn.svg
18
12
 
19
13
  A cross platform solution to node's spawn and spawnSync.
20
14
 
21
-
22
15
  ## Installation
23
16
 
24
17
  Node.js version 8 and up:
@@ -24,7 +24,7 @@ function hookChildProcess(cp, parsed) {
24
24
  // the command exists and emit an "error" instead
25
25
  // See https://github.com/IndigoUnited/node-cross-spawn/issues/16
26
26
  if (name === 'exit') {
27
- const err = verifyENOENT(arg1, parsed, 'spawn');
27
+ const err = verifyENOENT(arg1, parsed);
28
28
 
29
29
  if (err) {
30
30
  return originalEmit.call(cp, 'error', err);
@@ -15,15 +15,17 @@ function escapeArgument(arg, doubleEscapeMetaChars) {
15
15
  arg = `${arg}`;
16
16
 
17
17
  // Algorithm below is based on https://qntm.org/cmd
18
+ // It's slightly altered to disable JS backtracking to avoid hanging on specially crafted input
19
+ // Please see https://github.com/moxystudio/node-cross-spawn/pull/160 for more information
18
20
 
19
21
  // Sequence of backslashes followed by a double quote:
20
22
  // double up all the backslashes and escape the double quote
21
- arg = arg.replace(/(\\*)"/g, '$1$1\\"');
23
+ arg = arg.replace(/(?=(\\+?)?)\1"/g, '$1$1\\"');
22
24
 
23
25
  // Sequence of backslashes followed by the end of the string
24
26
  // (which will become a double quote later):
25
27
  // double up all the backslashes
26
- arg = arg.replace(/(\\*)$/, '$1$1');
28
+ arg = arg.replace(/(?=(\\+?)?)\1$/, '$1$1');
27
29
 
28
30
  // All other backslashes occur literally
29
31
 
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cross-spawn",
3
- "version": "7.0.3",
3
+ "version": "7.0.5",
4
4
  "description": "Cross platform child_process#spawn and child_process#spawnSync",
5
5
  "keywords": [
6
6
  "spawn",
package/package.json CHANGED
@@ -91,24 +91,25 @@
91
91
  "organization": false
92
92
  },
93
93
  "devDependencies": {
94
- "@aws-sdk/client-cloudformation": "^3.682.0",
95
- "@aws-sdk/client-dynamodb": "^3.682.0",
96
- "@aws-sdk/client-ecr": "^3.682.0",
97
- "@aws-sdk/client-ecs": "^3.683.0",
98
- "@aws-sdk/client-eventbridge": "^3.682.0",
99
- "@aws-sdk/client-iam": "^3.682.0",
100
- "@aws-sdk/client-s3": "^3.682.0",
101
- "@aws-sdk/client-secrets-manager": "^3.682.0",
102
- "@aws-sdk/client-sfn": "^3.682.0",
103
- "@aws-sdk/client-textract": "^3.682.0",
104
- "@aws-sdk/lib-dynamodb": "^3.682.0",
94
+ "@aws-sdk/client-cloudformation": "^3.691.0",
95
+ "@aws-sdk/client-dynamodb": "^3.691.0",
96
+ "@aws-sdk/client-ecr": "^3.691.0",
97
+ "@aws-sdk/client-ecs": "^3.691.0",
98
+ "@aws-sdk/client-eventbridge": "^3.691.0",
99
+ "@aws-sdk/client-iam": "^3.691.0",
100
+ "@aws-sdk/client-s3": "^3.691.0",
101
+ "@aws-sdk/client-secrets-manager": "^3.691.0",
102
+ "@aws-sdk/client-sfn": "^3.691.0",
103
+ "@aws-sdk/client-textract": "^3.691.0",
104
+ "@aws-sdk/lib-dynamodb": "^3.691.0",
105
+ "@stylistic/eslint-plugin": "^2",
105
106
  "@types/aws-lambda": "^8.10.145",
106
107
  "@types/jest": "^29",
107
108
  "@types/mjml": "^4.7.4",
108
109
  "@types/node": "^18",
109
110
  "@types/tsscmp": "^1.0.2",
110
- "@typescript-eslint/eslint-plugin": "^7",
111
- "@typescript-eslint/parser": "^7",
111
+ "@typescript-eslint/eslint-plugin": "^8",
112
+ "@typescript-eslint/parser": "^8",
112
113
  "aws-cdk": "^2",
113
114
  "aws-cdk-lib": "2.133.0",
114
115
  "aws-sdk-client-mock": "^2.2.0",
@@ -116,7 +117,7 @@
116
117
  "commit-and-tag-version": "^12",
117
118
  "constructs": "10.0.5",
118
119
  "esbuild": "^0.24.0",
119
- "eslint": "^8",
120
+ "eslint": "^9",
120
121
  "eslint-import-resolver-typescript": "^3.6.3",
121
122
  "eslint-plugin-import": "^2.31.0",
122
123
  "jest": "^29",
@@ -126,8 +127,8 @@
126
127
  "jsii-docgen": "^10.5.0",
127
128
  "jsii-pacmak": "^1.104.0",
128
129
  "jsii-rosetta": "5.x",
129
- "nock": "^13.5.5",
130
- "projen": "^0.90.0",
130
+ "nock": "^13.5.6",
131
+ "projen": "^0.90.2",
131
132
  "ts-jest": "^29",
132
133
  "ts-node": "^10.9.2",
133
134
  "typescript": "^5.6.3"
@@ -154,7 +155,7 @@
154
155
  "publishConfig": {
155
156
  "access": "public"
156
157
  },
157
- "version": "0.9.20",
158
+ "version": "0.9.22",
158
159
  "jest": {
159
160
  "coverageProvider": "v8",
160
161
  "testMatch": [