@awsless/awsless 0.0.96 → 0.0.97

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/bin.js CHANGED
@@ -1382,7 +1382,7 @@ var ReservedConcurrentExecutionsSchema = z6.number().int().min(0);
1382
1382
  var EnvironmentSchema = z6.record(z6.string(), z6.string()).optional();
1383
1383
  var ArchitectureSchema = z6.enum(["x86_64", "arm64"]);
1384
1384
  var RetryAttemptsSchema = z6.number().int().min(0).max(2);
1385
- var RuntimeSchema = z6.enum(["nodejs18.x"]);
1385
+ var RuntimeSchema = z6.enum(["nodejs18.x", "nodejs20.x"]);
1386
1386
  var PermissionSchema = z6.object({
1387
1387
  effect: z6.enum(["allow", "deny"]).default("allow"),
1388
1388
  actions: z6.string().array(),
@@ -1509,9 +1509,9 @@ var schema = z6.object({
1509
1509
  */
1510
1510
  timeout: TimeoutSchema.default("10 seconds"),
1511
1511
  /** The identifier of the function's runtime.
1512
- * @default 'nodejs18.x'
1512
+ * @default 'nodejs20.x'
1513
1513
  */
1514
- runtime: RuntimeSchema.default("nodejs18.x"),
1514
+ runtime: RuntimeSchema.default("nodejs20.x"),
1515
1515
  /** The amount of memory available to the function at runtime.
1516
1516
  * Increasing the function memory also increases its CPU allocation.
1517
1517
  * The value can be any multiple of 1 MB.
@@ -1583,8 +1583,8 @@ type Invoke<Name extends string, F extends Func> = {
1583
1583
  (payload: Parameters<F>[0], options?: Omit<InvokeOptions, 'name' | 'payload'>): InvokeResponse<F>
1584
1584
  }
1585
1585
 
1586
- type Response<F extends Func> = PartialDeep<Awaited<InvokeResponse<F>>>
1587
- type MockHandle<F extends Func> = (payload: Parameters<F>[0]) => Promise<Response<F>> | Response<F> | void
1586
+ type Response<F extends Func> = PartialDeep<Awaited<InvokeResponse<F>>, { recurseIntoArrays: true }>
1587
+ type MockHandle<F extends Func> = (payload: Parameters<F>[0]) => Promise<Response<F>> | Response<F> | void | Promise<void> | Promise<Promise<void>>
1588
1588
  type MockHandleOrResponse<F extends Func> = MockHandle<F> | Response<F>
1589
1589
  type MockBuilder<F extends Func> = (handleOrResponse?: MockHandleOrResponse<F>) => void
1590
1590
  `;