sst 2.48.1 → 2.48.3

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.
@@ -15,7 +15,7 @@ import { PolicyStatement } from "aws-cdk-lib/aws-iam";
15
15
  import { RetentionDays } from "aws-cdk-lib/aws-logs";
16
16
  import { VisibleError } from "../error.js";
17
17
  import { Logger } from "../logger.js";
18
- const DEFAULT_OPEN_NEXT_VERSION = "3.2.2";
18
+ const DEFAULT_OPEN_NEXT_VERSION = "3.5.4";
19
19
  /**
20
20
  * The `NextjsSite` construct is a higher level CDK construct that makes it easy to create a Next.js app.
21
21
  * @example
@@ -1,7 +1,7 @@
1
1
  export interface EventBusResources {
2
2
  }
3
3
  export declare const EventBus: EventBusResources;
4
- import { PutEventsCommandOutput } from "@aws-sdk/client-eventbridge";
4
+ import { EventBridgeClient, PutEventsCommandOutput } from "@aws-sdk/client-eventbridge";
5
5
  import { EventBridgeEvent } from "aws-lambda";
6
6
  import { ZodObject, ZodSchema, z } from "zod";
7
7
  /**
@@ -23,6 +23,7 @@ export declare function createEventBuilder<Bus extends keyof typeof EventBus, Me
23
23
  metadata?: MetadataSchema;
24
24
  metadataFn?: MetadataFunction;
25
25
  validator: Validator;
26
+ client?: EventBridgeClient;
26
27
  }): <Type extends string, Schema extends Parameters<Validator>[0]>(type: Type, schema: Schema) => {
27
28
  publish: undefined extends MetadataSchema ? (properties: inferParser<Schema>["in"], options?: PublishOptions) => Promise<PutEventsCommandOutput> : (properties: inferParser<Schema>["in"], metadata: inferParser<MetadataSchema>["in"], options?: PublishOptions) => Promise<void>;
28
29
  type: Type;
@@ -5,7 +5,7 @@ import { EventBridgeClient, PutEventsCommand, } from "@aws-sdk/client-eventbridg
5
5
  import { useLoader } from "../util/loader.js";
6
6
  import { Config } from "../config/index.js";
7
7
  export function createEventBuilder(input) {
8
- const client = new EventBridgeClient({});
8
+ const client = input.client || new EventBridgeClient({});
9
9
  const validator = input.validator;
10
10
  const metadataValidator = input.metadata ? validator(input.metadata) : null;
11
11
  return function event(type, schema) {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "sideEffects": false,
3
3
  "name": "sst",
4
- "version": "2.48.1",
4
+ "version": "2.48.3",
5
5
  "bin": {
6
6
  "sst": "cli/sst.js"
7
7
  },
@@ -69,7 +69,7 @@
69
69
  "dotenv": "^16.0.3",
70
70
  "esbuild": "0.18.13",
71
71
  "express": "^4.18.2",
72
- "fast-jwt": "^3.1.1",
72
+ "fast-jwt": "^5.0.5",
73
73
  "get-port": "^6.1.2",
74
74
  "glob": "^10.0.0",
75
75
  "graphql": "*",
package/package.json.bak CHANGED
@@ -5,7 +5,7 @@
5
5
  },
6
6
  "sideEffects": false,
7
7
  "name": "sst",
8
- "version": "2.48.1",
8
+ "version": "2.48.3",
9
9
  "bin": {
10
10
  "sst": "cli/sst.js"
11
11
  },
@@ -79,7 +79,7 @@
79
79
  "dotenv": "^16.0.3",
80
80
  "esbuild": "0.18.13",
81
81
  "express": "^4.18.2",
82
- "fast-jwt": "^3.1.1",
82
+ "fast-jwt": "^5.0.5",
83
83
  "get-port": "^6.1.2",
84
84
  "glob": "^10.0.0",
85
85
  "graphql": "*",
package/util/process.d.ts CHANGED
@@ -1,2 +1,3 @@
1
+ /// <reference types="node" resolution-mode="require"/>
1
2
  import { exec } from "child_process";
2
3
  export declare const execAsync: typeof exec.__promisify__;