aws-local-stepfunctions 1.3.0 → 1.3.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/README.md CHANGED
@@ -41,6 +41,7 @@ This package lets you run AWS Step Functions state machines completely locally,
41
41
  - [Overriding Task and Wait states](#overriding-task-and-wait-states)
42
42
  - [Task state override](#task-state-override)
43
43
  - [Wait state override](#wait-state-override)
44
+ - [Retry field pause override](#retry-field-pause-override)
44
45
  - [Passing a custom Context Object](#passing-a-custom-context-object)
45
46
  - [Disabling ASL validations](#disabling-asl-validations)
46
47
  - [Exit codes](#exit-codes)
@@ -362,6 +363,54 @@ local-sfn \
362
363
 
363
364
  This command would execute the state machine, and override `Wait` states `WaitResponse` and `PauseUntilSignal` to pause the execution for 1500 and 250 milliseconds, respectively. The `Delay` state wouldn't be paused at all, since the override value is set to 0.
364
365
 
366
+ #### Retry field pause override
367
+
368
+ To override the duration of the pause in the `Retry` field of a state, pass the `-r, --override-retry` option. This option takes as value the name of the state whose `Retry` field you want to override, and a number that represents the amount in milliseconds that you want to pause the execution for before retrying the state. The state name and the milliseconds amount must be separated by a colon `:`.
369
+
370
+ For example, suppose the state machine definition contains a state called `TaskToRetry` that is defined as follows:
371
+
372
+ ```json
373
+ {
374
+ "Type": "Task",
375
+ "Resource": "arn:aws:lambda:us-east-1:123456789012:function:HelloWorld",
376
+ "Retry": [
377
+ { "ErrorEquals": ["States.Timeout", "SyntaxError"] },
378
+ { "ErrorEquals": ["RangeError"] },
379
+ { "ErrorEquals": ["States.ALL"] }
380
+ ],
381
+ "End": true
382
+ }
383
+ ```
384
+
385
+ Then, the following command is run:
386
+
387
+ ```sh
388
+ local-sfn -f state-machine.json -r TaskToRetry:100 '{ "num1": 1, "num2": 2 }'
389
+ ```
390
+
391
+ This command would execute the state machine, and if the `TaskToRetry` state fails, the execution would be paused for 100 milliseconds before retrying the state again, disregarding the `IntervalSeconds`, `BackoffRate`, `MaxDelaySeconds`, and `JitterStrategy` fields that could've been specified in any of the `Retry` field retriers.
392
+
393
+ Alternatively, you can also pass a list of comma-separated numbers as value, to override the duration of specific retriers, for instance:
394
+
395
+ ```sh
396
+ local-sfn -f state-machine.json -r TaskToRetry:100,-1,20 '{ "num1": 1, "num2": 2 }'
397
+ ```
398
+
399
+ The above command would pause the execution for 100 milliseconds if the state error is matched by the first retrier and it would pause for 20 milliseconds if the error matches the third retrier. Note that a -1 was passed for the second retrier. This means that the pause duration of the second retrier will not be overridden, instead, it will be calculated as usually with the `IntervalSeconds` and the other retrier fields, or use the default values if said fields are not specified.
400
+
401
+ Furthermore, you can pass this option multiple times, to override the `Retry` fields in multiple states. For example:
402
+
403
+ ```sh
404
+ local-sfn \
405
+ -f state-machine.json \
406
+ -r SendRequest:1500 \
407
+ -r ProcessData:250 \
408
+ -r MapResponses:0 \
409
+ '{ "num1": 1, "num2": 2 }'
410
+ ```
411
+
412
+ This command would execute the state machine, and override the duration of the retry pause in states `SendRequest` and `ProcessData` to pause the execution for 1500 and 250 milliseconds, respectively. The retry in the `MapResponses` state wouldn't be paused at all, since the override value is set to 0.
413
+
365
414
  ### Passing a custom Context Object
366
415
 
367
416
  If the JSONPaths in your definition reference the Context Object, you can provide a mock Context Object by passing either the `--context` or the `--context-file` option. For example, given the following definition:
package/bin/CLI.cjs CHANGED
@@ -38,7 +38,7 @@ var import_readline = __toESM(require("readline"), 1);
38
38
  var import_commander = require("commander");
39
39
 
40
40
  // package.json
41
- var version = "1.3.0";
41
+ var version = "1.3.1";
42
42
 
43
43
  // src/cli/ArgumentParsers.ts
44
44
  var import_fs = require("fs");
@@ -111,6 +111,15 @@ function parseOverrideWaitOption(value, previous = {}) {
111
111
  previous[waitStateName] = Number(duration);
112
112
  return previous;
113
113
  }
114
+ function parseOverrideRetryOption(value, previous = {}) {
115
+ const [stateName, duration] = value.split(":");
116
+ if (!isNaN(duration)) {
117
+ previous[stateName] = Number(duration);
118
+ } else {
119
+ previous[stateName] = duration.split(",").map(Number);
120
+ }
121
+ return previous;
122
+ }
114
123
  function parseContextOption(command, context) {
115
124
  const jsonOrError = tryJSONParse(context);
116
125
  if (jsonOrError instanceof Error) {
@@ -167,7 +176,8 @@ async function commandAction(inputs, options, command) {
167
176
  const { result } = stateMachine.run(input, {
168
177
  overrides: {
169
178
  taskResourceLocalHandlers: options.overrideTask,
170
- waitTimeOverrides: options.overrideWait
179
+ waitTimeOverrides: options.overrideWait,
180
+ retryIntervalOverrides: options.overrideRetry
171
181
  },
172
182
  context: options.context ?? options.contextFile
173
183
  });
@@ -207,7 +217,7 @@ function makeProgram() {
207
217
  const command = new import_commander.Command();
208
218
  command.name("local-sfn").description(
209
219
  `Execute an Amazon States Language state machine with the given inputs.
210
- The result of each execution will be output in a new line and in the same order as its corresponding input.`
220
+ The result of each execution will be printed in a new line and in the same order as its corresponding input.`
211
221
  ).helpOption("-h, --help", "Print help for command and exit.").configureHelp({ helpWidth: 80 }).addHelpText(
212
222
  "after",
213
223
  `
@@ -234,6 +244,11 @@ Example calls:
234
244
  "-w, --override-wait <mapping>",
235
245
  "Override a Wait state to pause for the specified amount of milliseconds, instead of pausing for the duration specified in the state definition. The mapping value has to be provided in the format [WaitStateToOverride]:[number]."
236
246
  ).argParser(parseOverrideWaitOption)
247
+ ).addOption(
248
+ new import_commander.Option(
249
+ "-r, --override-retry <mapping>",
250
+ "Override a 'Retry' field to pause for the specified amount of milliseconds, instead of pausing for the duration specified by the retry policy. The mapping value has to be provided in the format [NameOfStateWithRetryField]:[number]."
251
+ ).argParser(parseOverrideRetryOption)
237
252
  ).addOption(
238
253
  new import_commander.Option(
239
254
  "--context <json>",
@@ -23204,6 +23204,9 @@ var partitions_default = {
23204
23204
  "ca-central-1": {
23205
23205
  description: "Canada (Central)"
23206
23206
  },
23207
+ "ca-west-1": {
23208
+ description: "Canada West (Calgary)"
23209
+ },
23207
23210
  "eu-central-1": {
23208
23211
  description: "Europe (Frankfurt)"
23209
23212
  },
@@ -24819,6 +24822,114 @@ var Command = class {
24819
24822
  constructor() {
24820
24823
  this.middlewareStack = constructStack();
24821
24824
  }
24825
+ static classBuilder() {
24826
+ return new ClassBuilder();
24827
+ }
24828
+ resolveMiddlewareWithContext(clientStack, configuration, options, { middlewareFn, clientName, commandName, inputFilterSensitiveLog, outputFilterSensitiveLog, smithyContext, additionalContext, CommandCtor }) {
24829
+ for (const mw of middlewareFn.bind(this)(CommandCtor, clientStack, configuration, options)) {
24830
+ this.middlewareStack.use(mw);
24831
+ }
24832
+ const stack = clientStack.concat(this.middlewareStack);
24833
+ const { logger: logger2 } = configuration;
24834
+ const handlerExecutionContext = {
24835
+ logger: logger2,
24836
+ clientName,
24837
+ commandName,
24838
+ inputFilterSensitiveLog,
24839
+ outputFilterSensitiveLog,
24840
+ [SMITHY_CONTEXT_KEY]: {
24841
+ ...smithyContext
24842
+ },
24843
+ ...additionalContext
24844
+ };
24845
+ const { requestHandler } = configuration;
24846
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
24847
+ }
24848
+ };
24849
+ var ClassBuilder = class {
24850
+ constructor() {
24851
+ this._init = () => {
24852
+ };
24853
+ this._ep = {};
24854
+ this._middlewareFn = () => [];
24855
+ this._commandName = "";
24856
+ this._clientName = "";
24857
+ this._additionalContext = {};
24858
+ this._smithyContext = {};
24859
+ this._inputFilterSensitiveLog = (_) => _;
24860
+ this._outputFilterSensitiveLog = (_) => _;
24861
+ this._serializer = null;
24862
+ this._deserializer = null;
24863
+ }
24864
+ init(cb) {
24865
+ this._init = cb;
24866
+ }
24867
+ ep(endpointParameterInstructions) {
24868
+ this._ep = endpointParameterInstructions;
24869
+ return this;
24870
+ }
24871
+ m(middlewareSupplier) {
24872
+ this._middlewareFn = middlewareSupplier;
24873
+ return this;
24874
+ }
24875
+ s(service, operation, smithyContext = {}) {
24876
+ this._smithyContext = {
24877
+ service,
24878
+ operation,
24879
+ ...smithyContext
24880
+ };
24881
+ return this;
24882
+ }
24883
+ c(additionalContext = {}) {
24884
+ this._additionalContext = additionalContext;
24885
+ return this;
24886
+ }
24887
+ n(clientName, commandName) {
24888
+ this._clientName = clientName;
24889
+ this._commandName = commandName;
24890
+ return this;
24891
+ }
24892
+ f(inputFilter = (_) => _, outputFilter = (_) => _) {
24893
+ this._inputFilterSensitiveLog = inputFilter;
24894
+ this._outputFilterSensitiveLog = outputFilter;
24895
+ return this;
24896
+ }
24897
+ ser(serializer) {
24898
+ this._serializer = serializer;
24899
+ return this;
24900
+ }
24901
+ de(deserializer) {
24902
+ this._deserializer = deserializer;
24903
+ return this;
24904
+ }
24905
+ build() {
24906
+ const closure = this;
24907
+ let CommandRef;
24908
+ return CommandRef = class extends Command {
24909
+ static getEndpointParameterInstructions() {
24910
+ return closure._ep;
24911
+ }
24912
+ constructor(input) {
24913
+ super();
24914
+ this.input = input;
24915
+ this.serialize = closure._serializer;
24916
+ this.deserialize = closure._deserializer;
24917
+ closure._init(this);
24918
+ }
24919
+ resolveMiddleware(stack, configuration, options) {
24920
+ return this.resolveMiddlewareWithContext(stack, configuration, options, {
24921
+ CommandCtor: CommandRef,
24922
+ middlewareFn: closure._middlewareFn,
24923
+ clientName: closure._clientName,
24924
+ commandName: closure._commandName,
24925
+ inputFilterSensitiveLog: closure._inputFilterSensitiveLog,
24926
+ outputFilterSensitiveLog: closure._outputFilterSensitiveLog,
24927
+ smithyContext: closure._smithyContext,
24928
+ additionalContext: closure._additionalContext
24929
+ });
24930
+ }
24931
+ };
24932
+ }
24822
24933
  };
24823
24934
 
24824
24935
  // node_modules/@smithy/smithy-client/dist-es/constants.js
@@ -25302,12 +25413,18 @@ var resolveClientEndpointParameters = (options) => {
25302
25413
  defaultSigningName: "lambda"
25303
25414
  };
25304
25415
  };
25416
+ var commonParams = {
25417
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
25418
+ Endpoint: { type: "builtInParams", name: "endpoint" },
25419
+ Region: { type: "builtInParams", name: "region" },
25420
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }
25421
+ };
25305
25422
 
25306
25423
  // node_modules/@aws-sdk/client-lambda/package.json
25307
25424
  var package_default = {
25308
25425
  name: "@aws-sdk/client-lambda",
25309
25426
  description: "AWS SDK for JavaScript Lambda Client for Node.js, Browser and React Native",
25310
- version: "3.470.0",
25427
+ version: "3.481.0",
25311
25428
  scripts: {
25312
25429
  build: "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
25313
25430
  "build:cjs": "tsc -p tsconfig.cjs.json",
@@ -25326,20 +25443,21 @@ var package_default = {
25326
25443
  dependencies: {
25327
25444
  "@aws-crypto/sha256-browser": "3.0.0",
25328
25445
  "@aws-crypto/sha256-js": "3.0.0",
25329
- "@aws-sdk/client-sts": "3.470.0",
25330
- "@aws-sdk/core": "3.468.0",
25331
- "@aws-sdk/credential-provider-node": "3.470.0",
25446
+ "@aws-sdk/client-sts": "3.481.0",
25447
+ "@aws-sdk/core": "3.481.0",
25448
+ "@aws-sdk/credential-provider-node": "3.481.0",
25332
25449
  "@aws-sdk/middleware-host-header": "3.468.0",
25333
25450
  "@aws-sdk/middleware-logger": "3.468.0",
25334
25451
  "@aws-sdk/middleware-recursion-detection": "3.468.0",
25335
25452
  "@aws-sdk/middleware-signing": "3.468.0",
25336
- "@aws-sdk/middleware-user-agent": "3.470.0",
25453
+ "@aws-sdk/middleware-user-agent": "3.478.0",
25337
25454
  "@aws-sdk/region-config-resolver": "3.470.0",
25338
25455
  "@aws-sdk/types": "3.468.0",
25339
- "@aws-sdk/util-endpoints": "3.470.0",
25456
+ "@aws-sdk/util-endpoints": "3.478.0",
25340
25457
  "@aws-sdk/util-user-agent-browser": "3.468.0",
25341
25458
  "@aws-sdk/util-user-agent-node": "3.470.0",
25342
25459
  "@smithy/config-resolver": "^2.0.21",
25460
+ "@smithy/core": "^1.2.1",
25343
25461
  "@smithy/eventstream-serde-browser": "^2.0.15",
25344
25462
  "@smithy/eventstream-serde-config-resolver": "^2.0.15",
25345
25463
  "@smithy/eventstream-serde-node": "^2.0.15",
@@ -25348,20 +25466,20 @@ var package_default = {
25348
25466
  "@smithy/invalid-dependency": "^2.0.15",
25349
25467
  "@smithy/middleware-content-length": "^2.0.17",
25350
25468
  "@smithy/middleware-endpoint": "^2.2.3",
25351
- "@smithy/middleware-retry": "^2.0.24",
25469
+ "@smithy/middleware-retry": "^2.0.25",
25352
25470
  "@smithy/middleware-serde": "^2.0.15",
25353
25471
  "@smithy/middleware-stack": "^2.0.9",
25354
25472
  "@smithy/node-config-provider": "^2.1.8",
25355
25473
  "@smithy/node-http-handler": "^2.2.1",
25356
25474
  "@smithy/protocol-http": "^3.0.11",
25357
- "@smithy/smithy-client": "^2.1.18",
25475
+ "@smithy/smithy-client": "^2.2.0",
25358
25476
  "@smithy/types": "^2.7.0",
25359
25477
  "@smithy/url-parser": "^2.0.15",
25360
25478
  "@smithy/util-base64": "^2.0.1",
25361
25479
  "@smithy/util-body-length-browser": "^2.0.1",
25362
25480
  "@smithy/util-body-length-node": "^2.1.0",
25363
- "@smithy/util-defaults-mode-browser": "^2.0.22",
25364
- "@smithy/util-defaults-mode-node": "^2.0.29",
25481
+ "@smithy/util-defaults-mode-browser": "^2.0.23",
25482
+ "@smithy/util-defaults-mode-node": "^2.0.30",
25365
25483
  "@smithy/util-endpoints": "^1.0.7",
25366
25484
  "@smithy/util-retry": "^2.0.8",
25367
25485
  "@smithy/util-stream": "^2.0.23",
@@ -25808,6 +25926,110 @@ var LambdaClient = class extends Client {
25808
25926
  }
25809
25927
  };
25810
25928
 
25929
+ // node_modules/@smithy/core/dist-es/middleware-http-auth-scheme/getHttpAuthSchemeEndpointRuleSetPlugin.js
25930
+ var httpAuthSchemeEndpointRuleSetMiddlewareOptions = {
25931
+ step: "serialize",
25932
+ tags: ["HTTP_AUTH_SCHEME"],
25933
+ name: "httpAuthSchemeMiddleware",
25934
+ override: true,
25935
+ relation: "before",
25936
+ toMiddleware: endpointMiddlewareOptions.name
25937
+ };
25938
+
25939
+ // node_modules/@smithy/core/dist-es/middleware-http-auth-scheme/getHttpAuthSchemePlugin.js
25940
+ var httpAuthSchemeMiddlewareOptions = {
25941
+ step: "serialize",
25942
+ tags: ["HTTP_AUTH_SCHEME"],
25943
+ name: "httpAuthSchemeMiddleware",
25944
+ override: true,
25945
+ relation: "before",
25946
+ toMiddleware: serializerMiddlewareOption.name
25947
+ };
25948
+
25949
+ // node_modules/@smithy/core/dist-es/middleware-http-signing/getHttpSigningMiddleware.js
25950
+ var httpSigningMiddlewareOptions = {
25951
+ step: "finalizeRequest",
25952
+ tags: ["HTTP_SIGNING"],
25953
+ name: "httpSigningMiddleware",
25954
+ aliases: ["apiKeyMiddleware", "tokenMiddleware", "awsAuthMiddleware"],
25955
+ override: true,
25956
+ relation: "after",
25957
+ toMiddleware: retryMiddlewareOptions.name
25958
+ };
25959
+
25960
+ // node_modules/@smithy/core/dist-es/util-identity-and-auth/memoizeIdentityProvider.js
25961
+ var createIsIdentityExpiredFunction = (expirationMs) => (identity) => doesIdentityRequireRefresh(identity) && identity.expiration.getTime() - Date.now() < expirationMs;
25962
+ var EXPIRATION_MS = 3e5;
25963
+ var isIdentityExpired = createIsIdentityExpiredFunction(EXPIRATION_MS);
25964
+ var doesIdentityRequireRefresh = (identity) => identity.expiration !== void 0;
25965
+
25966
+ // node_modules/@smithy/core/dist-es/protocols/requestBuilder.js
25967
+ function requestBuilder(input, context) {
25968
+ return new RequestBuilder(input, context);
25969
+ }
25970
+ var RequestBuilder = class {
25971
+ constructor(input, context) {
25972
+ this.input = input;
25973
+ this.context = context;
25974
+ this.query = {};
25975
+ this.method = "";
25976
+ this.headers = {};
25977
+ this.path = "";
25978
+ this.body = null;
25979
+ this.hostname = "";
25980
+ this.resolvePathStack = [];
25981
+ }
25982
+ async build() {
25983
+ const { hostname, protocol = "https", port, path: basePath } = await this.context.endpoint();
25984
+ this.path = basePath;
25985
+ for (const resolvePath of this.resolvePathStack) {
25986
+ resolvePath(this.path);
25987
+ }
25988
+ return new HttpRequest({
25989
+ protocol,
25990
+ hostname: this.hostname || hostname,
25991
+ port,
25992
+ method: this.method,
25993
+ path: this.path,
25994
+ query: this.query,
25995
+ body: this.body,
25996
+ headers: this.headers
25997
+ });
25998
+ }
25999
+ hn(hostname) {
26000
+ this.hostname = hostname;
26001
+ return this;
26002
+ }
26003
+ bp(uriLabel) {
26004
+ this.resolvePathStack.push((basePath) => {
26005
+ this.path = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + uriLabel;
26006
+ });
26007
+ return this;
26008
+ }
26009
+ p(memberName, labelValueProvider, uriLabel, isGreedyLabel) {
26010
+ this.resolvePathStack.push((path) => {
26011
+ this.path = resolvedPath(path, this.input, memberName, labelValueProvider, uriLabel, isGreedyLabel);
26012
+ });
26013
+ return this;
26014
+ }
26015
+ h(headers) {
26016
+ this.headers = headers;
26017
+ return this;
26018
+ }
26019
+ q(query) {
26020
+ this.query = query;
26021
+ return this;
26022
+ }
26023
+ b(body) {
26024
+ this.body = body;
26025
+ return this;
26026
+ }
26027
+ m(method) {
26028
+ this.method = method;
26029
+ return this;
26030
+ }
26031
+ };
26032
+
25811
26033
  // node_modules/@aws-sdk/client-lambda/dist-es/models/LambdaServiceException.js
25812
26034
  var LambdaServiceException = class extends ServiceException {
25813
26035
  constructor(options) {
@@ -26254,32 +26476,24 @@ var InvocationResponseFilterSensitiveLog = (obj) => ({
26254
26476
 
26255
26477
  // node_modules/@aws-sdk/client-lambda/dist-es/protocols/Aws_restJson1.js
26256
26478
  var se_InvokeCommand = async (input, context) => {
26257
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
26479
+ const b3 = requestBuilder(input, context);
26258
26480
  const headers = map({}, isSerializableHeaderValue, {
26259
26481
  "content-type": "application/octet-stream",
26260
- "x-amz-invocation-type": input.InvocationType,
26261
- "x-amz-log-type": input.LogType,
26262
- "x-amz-client-context": input.ClientContext
26482
+ [_xait]: input[_IT],
26483
+ [_xalt]: input[_LT],
26484
+ [_xacc]: input[_CC]
26263
26485
  });
26264
- let resolvedPath2 = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}/2015-03-31/functions/{FunctionName}/invocations`;
26265
- resolvedPath2 = resolvedPath(resolvedPath2, input, "FunctionName", () => input.FunctionName, "{FunctionName}", false);
26486
+ b3.bp("/2015-03-31/functions/{FunctionName}/invocations");
26487
+ b3.p("FunctionName", () => input.FunctionName, "{FunctionName}", false);
26266
26488
  const query = map({
26267
- Qualifier: [, input.Qualifier]
26489
+ [_Q]: [, input[_Q]]
26268
26490
  });
26269
26491
  let body;
26270
26492
  if (input.Payload !== void 0) {
26271
26493
  body = input.Payload;
26272
26494
  }
26273
- return new HttpRequest({
26274
- protocol,
26275
- hostname,
26276
- port,
26277
- method: "POST",
26278
- headers,
26279
- path: resolvedPath2,
26280
- query,
26281
- body
26282
- });
26495
+ b3.m("POST").h(headers).q(query).b(body);
26496
+ return b3.build();
26283
26497
  };
26284
26498
  var de_InvokeCommand = async (output, context) => {
26285
26499
  if (output.statusCode !== 200 && output.statusCode >= 300) {
@@ -26287,9 +26501,9 @@ var de_InvokeCommand = async (output, context) => {
26287
26501
  }
26288
26502
  const contents = map({
26289
26503
  $metadata: deserializeMetadata2(output),
26290
- FunctionError: [, output.headers["x-amz-function-error"]],
26291
- LogResult: [, output.headers["x-amz-log-result"]],
26292
- ExecutedVersion: [, output.headers["x-amz-executed-version"]]
26504
+ [_FE]: [, output.headers[_xafe]],
26505
+ [_LR]: [, output.headers[_xalr]],
26506
+ [_EV]: [, output.headers[_xaev]]
26293
26507
  });
26294
26508
  const data = await collectBody(output.body, context);
26295
26509
  contents.Payload = data;
@@ -26800,7 +27014,7 @@ var de_SubnetIPAddressLimitReachedExceptionRes = async (parsedOutput, context) =
26800
27014
  };
26801
27015
  var de_TooManyRequestsExceptionRes = async (parsedOutput, context) => {
26802
27016
  const contents = map({
26803
- retryAfterSeconds: [, parsedOutput.headers["retry-after"]]
27017
+ [_rAS]: [, parsedOutput.headers[_ra]]
26804
27018
  });
26805
27019
  const data = parsedOutput.body;
26806
27020
  const doc = take(data, {
@@ -26837,6 +27051,21 @@ var deserializeMetadata2 = (output) => ({
26837
27051
  });
26838
27052
  var collectBodyString = (streamBody, context) => collectBody(streamBody, context).then((body) => context.utf8Encoder(body));
26839
27053
  var isSerializableHeaderValue = (value) => value !== void 0 && value !== null && value !== "" && (!Object.getOwnPropertyNames(value).includes("length") || value.length != 0) && (!Object.getOwnPropertyNames(value).includes("size") || value.size != 0);
27054
+ var _CC = "ClientContext";
27055
+ var _EV = "ExecutedVersion";
27056
+ var _FE = "FunctionError";
27057
+ var _IT = "InvocationType";
27058
+ var _LR = "LogResult";
27059
+ var _LT = "LogType";
27060
+ var _Q = "Qualifier";
27061
+ var _rAS = "retryAfterSeconds";
27062
+ var _ra = "retry-after";
27063
+ var _xacc = "x-amz-client-context";
27064
+ var _xaev = "x-amz-executed-version";
27065
+ var _xafe = "x-amz-function-error";
27066
+ var _xait = "x-amz-invocation-type";
27067
+ var _xalr = "x-amz-log-result";
27068
+ var _xalt = "x-amz-log-type";
26840
27069
  var parseBody = (streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
26841
27070
  if (encoded.length) {
26842
27071
  return JSON.parse(encoded);
@@ -26879,46 +27108,14 @@ var loadRestJsonErrorCode = (output, data) => {
26879
27108
  };
26880
27109
 
26881
27110
  // node_modules/@aws-sdk/client-lambda/dist-es/commands/InvokeCommand.js
26882
- var InvokeCommand = class extends Command {
26883
- static getEndpointParameterInstructions() {
26884
- return {
26885
- UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
26886
- Endpoint: { type: "builtInParams", name: "endpoint" },
26887
- Region: { type: "builtInParams", name: "region" },
26888
- UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }
26889
- };
26890
- }
26891
- constructor(input) {
26892
- super();
26893
- this.input = input;
26894
- }
26895
- resolveMiddleware(clientStack, configuration, options) {
26896
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
26897
- this.middlewareStack.use(getEndpointPlugin(configuration, InvokeCommand.getEndpointParameterInstructions()));
26898
- const stack = clientStack.concat(this.middlewareStack);
26899
- const { logger: logger2 } = configuration;
26900
- const clientName = "LambdaClient";
26901
- const commandName = "InvokeCommand";
26902
- const handlerExecutionContext = {
26903
- logger: logger2,
26904
- clientName,
26905
- commandName,
26906
- inputFilterSensitiveLog: InvocationRequestFilterSensitiveLog,
26907
- outputFilterSensitiveLog: InvocationResponseFilterSensitiveLog,
26908
- [SMITHY_CONTEXT_KEY]: {
26909
- service: "AWSGirApiService",
26910
- operation: "Invoke"
26911
- }
26912
- };
26913
- const { requestHandler } = configuration;
26914
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
26915
- }
26916
- serialize(input, context) {
26917
- return se_InvokeCommand(input, context);
26918
- }
26919
- deserialize(output, context) {
26920
- return de_InvokeCommand(output, context);
26921
- }
27111
+ var InvokeCommand = class extends Command.classBuilder().ep({
27112
+ ...commonParams
27113
+ }).m(function(Command2, cs, config, o3) {
27114
+ return [
27115
+ getSerdePlugin(config, this.serialize, this.deserialize),
27116
+ getEndpointPlugin(config, Command2.getEndpointParameterInstructions())
27117
+ ];
27118
+ }).s("AWSGirApiService", "Invoke", {}).n("LambdaClient", "InvokeCommand").f(InvocationRequestFilterSensitiveLog, InvocationResponseFilterSensitiveLog).ser(se_InvokeCommand).de(de_InvokeCommand).build() {
26922
27119
  };
26923
27120
 
26924
27121
  // node_modules/@aws-sdk/client-cognito-identity/dist-es/endpoint/EndpointParameters.js
@@ -26930,12 +27127,18 @@ var resolveClientEndpointParameters2 = (options) => {
26930
27127
  defaultSigningName: "cognito-identity"
26931
27128
  };
26932
27129
  };
27130
+ var commonParams2 = {
27131
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
27132
+ Endpoint: { type: "builtInParams", name: "endpoint" },
27133
+ Region: { type: "builtInParams", name: "region" },
27134
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }
27135
+ };
26933
27136
 
26934
27137
  // node_modules/@aws-sdk/client-cognito-identity/package.json
26935
27138
  var package_default2 = {
26936
27139
  name: "@aws-sdk/client-cognito-identity",
26937
27140
  description: "AWS SDK for JavaScript Cognito Identity Client for Node.js, Browser and React Native",
26938
- version: "3.470.0",
27141
+ version: "3.481.0",
26939
27142
  scripts: {
26940
27143
  build: "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
26941
27144
  "build:cjs": "tsc -p tsconfig.cjs.json",
@@ -26955,46 +27158,47 @@ var package_default2 = {
26955
27158
  dependencies: {
26956
27159
  "@aws-crypto/sha256-browser": "3.0.0",
26957
27160
  "@aws-crypto/sha256-js": "3.0.0",
26958
- "@aws-sdk/client-sts": "3.470.0",
26959
- "@aws-sdk/core": "3.468.0",
26960
- "@aws-sdk/credential-provider-node": "3.470.0",
27161
+ "@aws-sdk/client-sts": "3.481.0",
27162
+ "@aws-sdk/core": "3.481.0",
27163
+ "@aws-sdk/credential-provider-node": "3.481.0",
26961
27164
  "@aws-sdk/middleware-host-header": "3.468.0",
26962
27165
  "@aws-sdk/middleware-logger": "3.468.0",
26963
27166
  "@aws-sdk/middleware-recursion-detection": "3.468.0",
26964
27167
  "@aws-sdk/middleware-signing": "3.468.0",
26965
- "@aws-sdk/middleware-user-agent": "3.470.0",
27168
+ "@aws-sdk/middleware-user-agent": "3.478.0",
26966
27169
  "@aws-sdk/region-config-resolver": "3.470.0",
26967
27170
  "@aws-sdk/types": "3.468.0",
26968
- "@aws-sdk/util-endpoints": "3.470.0",
27171
+ "@aws-sdk/util-endpoints": "3.478.0",
26969
27172
  "@aws-sdk/util-user-agent-browser": "3.468.0",
26970
27173
  "@aws-sdk/util-user-agent-node": "3.470.0",
26971
27174
  "@smithy/config-resolver": "^2.0.21",
27175
+ "@smithy/core": "^1.2.1",
26972
27176
  "@smithy/fetch-http-handler": "^2.3.1",
26973
27177
  "@smithy/hash-node": "^2.0.17",
26974
27178
  "@smithy/invalid-dependency": "^2.0.15",
26975
27179
  "@smithy/middleware-content-length": "^2.0.17",
26976
27180
  "@smithy/middleware-endpoint": "^2.2.3",
26977
- "@smithy/middleware-retry": "^2.0.24",
27181
+ "@smithy/middleware-retry": "^2.0.25",
26978
27182
  "@smithy/middleware-serde": "^2.0.15",
26979
27183
  "@smithy/middleware-stack": "^2.0.9",
26980
27184
  "@smithy/node-config-provider": "^2.1.8",
26981
27185
  "@smithy/node-http-handler": "^2.2.1",
26982
27186
  "@smithy/protocol-http": "^3.0.11",
26983
- "@smithy/smithy-client": "^2.1.18",
27187
+ "@smithy/smithy-client": "^2.2.0",
26984
27188
  "@smithy/types": "^2.7.0",
26985
27189
  "@smithy/url-parser": "^2.0.15",
26986
27190
  "@smithy/util-base64": "^2.0.1",
26987
27191
  "@smithy/util-body-length-browser": "^2.0.1",
26988
27192
  "@smithy/util-body-length-node": "^2.1.0",
26989
- "@smithy/util-defaults-mode-browser": "^2.0.22",
26990
- "@smithy/util-defaults-mode-node": "^2.0.29",
27193
+ "@smithy/util-defaults-mode-browser": "^2.0.23",
27194
+ "@smithy/util-defaults-mode-node": "^2.0.30",
26991
27195
  "@smithy/util-endpoints": "^1.0.7",
26992
27196
  "@smithy/util-retry": "^2.0.8",
26993
27197
  "@smithy/util-utf8": "^2.0.2",
26994
27198
  tslib: "^2.5.0"
26995
27199
  },
26996
27200
  devDependencies: {
26997
- "@aws-sdk/client-iam": "3.470.0",
27201
+ "@aws-sdk/client-iam": "3.481.0",
26998
27202
  "@smithy/service-client-documentation-generator": "^2.0.0",
26999
27203
  "@tsconfig/node14": "1.0.3",
27000
27204
  "@types/chai": "^4.2.11",
@@ -27564,89 +27768,25 @@ var loadRestJsonErrorCode2 = (output, data) => {
27564
27768
  };
27565
27769
 
27566
27770
  // node_modules/@aws-sdk/client-cognito-identity/dist-es/commands/GetCredentialsForIdentityCommand.js
27567
- var GetCredentialsForIdentityCommand = class extends Command {
27568
- static getEndpointParameterInstructions() {
27569
- return {
27570
- UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
27571
- Endpoint: { type: "builtInParams", name: "endpoint" },
27572
- Region: { type: "builtInParams", name: "region" },
27573
- UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }
27574
- };
27575
- }
27576
- constructor(input) {
27577
- super();
27578
- this.input = input;
27579
- }
27580
- resolveMiddleware(clientStack, configuration, options) {
27581
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
27582
- this.middlewareStack.use(getEndpointPlugin(configuration, GetCredentialsForIdentityCommand.getEndpointParameterInstructions()));
27583
- const stack = clientStack.concat(this.middlewareStack);
27584
- const { logger: logger2 } = configuration;
27585
- const clientName = "CognitoIdentityClient";
27586
- const commandName = "GetCredentialsForIdentityCommand";
27587
- const handlerExecutionContext = {
27588
- logger: logger2,
27589
- clientName,
27590
- commandName,
27591
- inputFilterSensitiveLog: (_) => _,
27592
- outputFilterSensitiveLog: (_) => _,
27593
- [SMITHY_CONTEXT_KEY]: {
27594
- service: "AWSCognitoIdentityService",
27595
- operation: "GetCredentialsForIdentity"
27596
- }
27597
- };
27598
- const { requestHandler } = configuration;
27599
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
27600
- }
27601
- serialize(input, context) {
27602
- return se_GetCredentialsForIdentityCommand(input, context);
27603
- }
27604
- deserialize(output, context) {
27605
- return de_GetCredentialsForIdentityCommand(output, context);
27606
- }
27771
+ var GetCredentialsForIdentityCommand = class extends Command.classBuilder().ep({
27772
+ ...commonParams2
27773
+ }).m(function(Command2, cs, config, o3) {
27774
+ return [
27775
+ getSerdePlugin(config, this.serialize, this.deserialize),
27776
+ getEndpointPlugin(config, Command2.getEndpointParameterInstructions())
27777
+ ];
27778
+ }).s("AWSCognitoIdentityService", "GetCredentialsForIdentity", {}).n("CognitoIdentityClient", "GetCredentialsForIdentityCommand").f(void 0, void 0).ser(se_GetCredentialsForIdentityCommand).de(de_GetCredentialsForIdentityCommand).build() {
27607
27779
  };
27608
27780
 
27609
27781
  // node_modules/@aws-sdk/client-cognito-identity/dist-es/commands/GetIdCommand.js
27610
- var GetIdCommand = class extends Command {
27611
- static getEndpointParameterInstructions() {
27612
- return {
27613
- UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
27614
- Endpoint: { type: "builtInParams", name: "endpoint" },
27615
- Region: { type: "builtInParams", name: "region" },
27616
- UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }
27617
- };
27618
- }
27619
- constructor(input) {
27620
- super();
27621
- this.input = input;
27622
- }
27623
- resolveMiddleware(clientStack, configuration, options) {
27624
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
27625
- this.middlewareStack.use(getEndpointPlugin(configuration, GetIdCommand.getEndpointParameterInstructions()));
27626
- const stack = clientStack.concat(this.middlewareStack);
27627
- const { logger: logger2 } = configuration;
27628
- const clientName = "CognitoIdentityClient";
27629
- const commandName = "GetIdCommand";
27630
- const handlerExecutionContext = {
27631
- logger: logger2,
27632
- clientName,
27633
- commandName,
27634
- inputFilterSensitiveLog: (_) => _,
27635
- outputFilterSensitiveLog: (_) => _,
27636
- [SMITHY_CONTEXT_KEY]: {
27637
- service: "AWSCognitoIdentityService",
27638
- operation: "GetId"
27639
- }
27640
- };
27641
- const { requestHandler } = configuration;
27642
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
27643
- }
27644
- serialize(input, context) {
27645
- return se_GetIdCommand(input, context);
27646
- }
27647
- deserialize(output, context) {
27648
- return de_GetIdCommand(output, context);
27649
- }
27782
+ var GetIdCommand = class extends Command.classBuilder().ep({
27783
+ ...commonParams2
27784
+ }).m(function(Command2, cs, config, o3) {
27785
+ return [
27786
+ getSerdePlugin(config, this.serialize, this.deserialize),
27787
+ getEndpointPlugin(config, Command2.getEndpointParameterInstructions())
27788
+ ];
27789
+ }).s("AWSCognitoIdentityService", "GetId", {}).n("CognitoIdentityClient", "GetIdCommand").f(void 0, void 0).ser(se_GetIdCommand).de(de_GetIdCommand).build() {
27650
27790
  };
27651
27791
 
27652
27792
  // node_modules/@aws-sdk/credential-provider-cognito-identity/dist-es/resolveLogins.js
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "aws-local-stepfunctions",
3
- "version": "1.3.0",
3
+ "version": "1.3.1",
4
4
  "description": "Execute an AWS Step Function state machine locally",
5
5
  "keywords": [
6
6
  "aws",
@@ -60,7 +60,7 @@
60
60
  "@types/picomatch": "^2.3.3",
61
61
  "@typescript-eslint/eslint-plugin": "^5.62.0",
62
62
  "@typescript-eslint/parser": "^5.62.0",
63
- "eslint": "^8.55.0",
63
+ "eslint": "^8.56.0",
64
64
  "eslint-config-prettier": "^8.10.0",
65
65
  "eslint-plugin-prettier": "^4.2.1",
66
66
  "prettier": "^2.8.8",
@@ -69,8 +69,8 @@
69
69
  "typescript": "^4.9.5"
70
70
  },
71
71
  "dependencies": {
72
- "@aws-sdk/client-lambda": "^3.470.0",
73
- "@aws-sdk/credential-providers": "^3.470.0",
72
+ "@aws-sdk/client-lambda": "^3.481.0",
73
+ "@aws-sdk/credential-providers": "^3.481.0",
74
74
  "asl-validator": "^3.8.2",
75
75
  "commander": "^11.1.0",
76
76
  "crypto-js": "^4.2.0",