serverless-spy 2.3.16 → 2.3.18

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/.jsii CHANGED
@@ -4044,7 +4044,7 @@
4044
4044
  },
4045
4045
  "locationInModule": {
4046
4046
  "filename": "src/ServerlessSpy.ts",
4047
- "line": 774
4047
+ "line": 776
4048
4048
  },
4049
4049
  "name": "getConstructName",
4050
4050
  "parameters": [
@@ -4346,6 +4346,6 @@
4346
4346
  "symbolId": "src/ServerlessSpy:SpyFilter"
4347
4347
  }
4348
4348
  },
4349
- "version": "2.3.16",
4350
- "fingerprint": "CqVX/HY+A01BfbFscff+4t3wZHRXnJ8yEBFxYNk2bvM="
4349
+ "version": "2.3.18",
4350
+ "fingerprint": "1+VyOSSBMc/uINp5FeAgnRMs4NrJi9RHmEjhq0BUN/g="
4351
4351
  }
@@ -1 +1 @@
1
- v2.3.16
1
+ v2.3.18
@@ -162,7 +162,7 @@ function interceptConsole() {
162
162
  if (!currentContext) return;
163
163
 
164
164
  log(`Console ${type}`, JSON.stringify(args));
165
- const message = args?.shift();
165
+ const [message, ...rest] = args ?? [];
166
166
 
167
167
  const key = `Function#${
168
168
  process.env[envVariableNames.SSPY_FUNCTION_NAME]
@@ -174,7 +174,7 @@ function interceptConsole() {
174
174
  console: {
175
175
  type,
176
176
  message,
177
- optionalParams: args,
177
+ optionalParams: rest,
178
178
  },
179
179
  });
180
180
 
@@ -43491,7 +43491,7 @@ function interceptConsole() {
43491
43491
  if (!currentContext)
43492
43492
  return;
43493
43493
  log(`Console ${type}`, JSON.stringify(args));
43494
- const message = args?.shift();
43494
+ const [message, ...rest] = args ?? [];
43495
43495
  const key = `Function#${process.env["SSPY_FUNCTION_NAME" /* SSPY_FUNCTION_NAME */]}#Console`;
43496
43496
  const p = sendLambdaSpyEvent(key, {
43497
43497
  request: currentEvent,
@@ -43499,7 +43499,7 @@ function interceptConsole() {
43499
43499
  console: {
43500
43500
  type,
43501
43501
  message,
43502
- optionalParams: args
43502
+ optionalParams: rest
43503
43503
  }
43504
43504
  });
43505
43505
  promises.push(p);