sst 2.24.10 → 2.24.11

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.
@@ -1,6 +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
5
  import { EventBridgeEvent } from "aws-lambda";
5
6
  import { ZodAny, ZodObject, ZodRawShape, z } from "zod";
6
7
  export declare function createEventBuilder<Bus extends keyof typeof EventBus, MetadataShape extends ZodRawShape | undefined, MetadataFunction extends () => any>(props: {
@@ -8,10 +9,10 @@ export declare function createEventBuilder<Bus extends keyof typeof EventBus, Me
8
9
  metadata?: MetadataShape;
9
10
  metadataFn?: MetadataFunction;
10
11
  }): <Type extends string, Shape extends ZodRawShape, Properties = z.objectOutputType<Shape, ZodAny, "strip">>(type: Type, properties: Shape) => {
11
- publish: undefined extends MetadataShape ? (properties: Properties) => Promise<void> : (properties: Properties, metadata: z.infer<ZodObject<Exclude<MetadataShape, undefined>, "strip", ZodAny>>) => Promise<void>;
12
+ publish: undefined extends MetadataShape ? (properties: Properties) => Promise<PutEventsCommandOutput> : (properties: Properties, metadata: z.infer<ZodObject<Exclude<MetadataShape, undefined>, "strip", ZodAny>>) => Promise<void>;
12
13
  type: Type;
13
14
  shape: {
14
- metadata: Parameters<undefined extends MetadataShape ? (properties: Properties) => Promise<void> : (properties: Properties, metadata: z.infer<ZodObject<Exclude<MetadataShape, undefined>, "strip", ZodAny>>) => Promise<void>>[1];
15
+ metadata: Parameters<undefined extends MetadataShape ? (properties: Properties) => Promise<PutEventsCommandOutput> : (properties: Properties, metadata: z.infer<ZodObject<Exclude<MetadataShape, undefined>, "strip", ZodAny>>) => Promise<void>>[1];
15
16
  properties: Properties;
16
17
  metadataFn: ReturnType<MetadataFunction>;
17
18
  };
@@ -3,6 +3,8 @@ export const EventBus =
3
3
  /* @__PURE__ */ createProxy("EventBus");
4
4
  import { EventBridgeClient, PutEventsCommand, } from "@aws-sdk/client-eventbridge";
5
5
  import { z } from "zod";
6
+ import { useLoader } from "../util/loader.js";
7
+ import { Config } from "../config/index.js";
6
8
  const client = new EventBridgeClient({});
7
9
  export function createEventBuilder(props) {
8
10
  return function createEvent(type, properties) {
@@ -12,27 +14,45 @@ export function createEventBuilder(props) {
12
14
  : undefined;
13
15
  const publish = async (properties, metadata) => {
14
16
  console.log("publishing", type, properties);
15
- await client.send(new PutEventsCommand({
16
- Entries: [
17
- {
18
- // @ts-expect-error
19
- EventBusName: EventBus[props.bus].eventBusName,
20
- Source: "console",
21
- Detail: JSON.stringify({
22
- properties: propertiesSchema.parse(properties),
23
- metadata: (() => {
24
- if (metadataSchema) {
25
- return metadataSchema.parse(metadata);
26
- }
27
- if (props.metadataFn) {
28
- return props.metadataFn();
29
- }
30
- })(),
31
- }),
32
- DetailType: type,
33
- },
34
- ],
35
- }));
17
+ const result = await useLoader("sst.bus.publish", async (input) => {
18
+ const size = 10;
19
+ const promises = [];
20
+ for (let i = 0; i < input.length; i += size) {
21
+ const chunk = input.slice(i, i + size);
22
+ promises.push(client.send(new PutEventsCommand({
23
+ Entries: chunk,
24
+ })));
25
+ }
26
+ const settled = await Promise.allSettled(promises);
27
+ const result = new Array(input.length);
28
+ for (let i = 0; i < result.length; i++) {
29
+ const item = settled[Math.floor(i / 10)];
30
+ if (item.status === "rejected") {
31
+ result[i] = item.reason;
32
+ continue;
33
+ }
34
+ result[i] = item.value;
35
+ }
36
+ return result;
37
+ })({
38
+ // @ts-expect-error
39
+ EventBusName: EventBus[props.bus].eventBusName,
40
+ // @ts-expect-error
41
+ Source: Config.APP,
42
+ Detail: JSON.stringify({
43
+ properties: propertiesSchema.parse(properties),
44
+ metadata: (() => {
45
+ if (metadataSchema) {
46
+ return metadataSchema.parse(metadata);
47
+ }
48
+ if (props.metadataFn) {
49
+ return props.metadataFn();
50
+ }
51
+ })(),
52
+ }),
53
+ DetailType: type,
54
+ });
55
+ return result;
36
56
  };
37
57
  return {
38
58
  publish: publish,
@@ -0,0 +1,2 @@
1
+ export declare function createLoader<Key, Value>(batchFn: (keys: Key[]) => Promise<Value[]>): (key: Key) => Promise<Value>;
2
+ export declare function useLoader<Key, Value>(key: any, batchFn: (keys: Key[]) => Promise<Value[]>): (key: Key) => Promise<Value>;
@@ -0,0 +1,51 @@
1
+ import { Context } from "../../context/context.js";
2
+ const LoaderContext = Context.create(() => {
3
+ const loaders = new Map();
4
+ return loaders;
5
+ }, "loader-context");
6
+ export function createLoader(batchFn) {
7
+ let current;
8
+ async function run() {
9
+ const batch = current;
10
+ if (!batch)
11
+ return;
12
+ const result = await batchFn(batch.keys);
13
+ for (let i = 0; i < result.length; i++) {
14
+ batch.promises[i](result[i]);
15
+ }
16
+ current = undefined;
17
+ }
18
+ function getBatch() {
19
+ if (current)
20
+ return current;
21
+ process.nextTick(run);
22
+ current = {
23
+ keys: [],
24
+ promises: [],
25
+ };
26
+ return current;
27
+ }
28
+ return (key) => {
29
+ const batch = getBatch();
30
+ batch.keys.push(key);
31
+ const promise = new Promise((resolve, reject) => {
32
+ batch.promises.push((val) => {
33
+ if (val instanceof Error) {
34
+ reject(val);
35
+ return;
36
+ }
37
+ resolve(val);
38
+ });
39
+ });
40
+ return promise;
41
+ };
42
+ }
43
+ export function useLoader(key, batchFn) {
44
+ const loaders = LoaderContext.use();
45
+ if (loaders.has(key)) {
46
+ return loaders.get(key);
47
+ }
48
+ const loader = createLoader(batchFn);
49
+ loaders.set(key, loader);
50
+ return loader;
51
+ }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "sideEffects": false,
3
3
  "name": "sst",
4
- "version": "2.24.10",
4
+ "version": "2.24.11",
5
5
  "bin": {
6
6
  "sst": "cli/sst.js"
7
7
  },
@@ -40,7 +40,7 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
40
40
  ));
41
41
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
42
42
 
43
- // ../../node_modules/.pnpm/tslib@2.6.0/node_modules/tslib/tslib.es6.mjs
43
+ // ../../node_modules/.pnpm/tslib@2.6.1/node_modules/tslib/tslib.es6.mjs
44
44
  var tslib_es6_exports = {};
45
45
  __export(tslib_es6_exports, {
46
46
  __addDisposableResource: () => __addDisposableResource,
@@ -460,7 +460,7 @@ function __classPrivateFieldIn(state, receiver) {
460
460
  }
461
461
  function __addDisposableResource(env, value, async) {
462
462
  if (value !== null && value !== void 0) {
463
- if (typeof value !== "object")
463
+ if (typeof value !== "object" && typeof value !== "function")
464
464
  throw new TypeError("Object expected.");
465
465
  var dispose;
466
466
  if (async) {
@@ -507,7 +507,7 @@ function __disposeResources(env) {
507
507
  }
508
508
  var extendStatics, __assign, __createBinding, __setModuleDefault, _SuppressedError, tslib_es6_default;
509
509
  var init_tslib_es6 = __esm({
510
- "../../node_modules/.pnpm/tslib@2.6.0/node_modules/tslib/tslib.es6.mjs"() {
510
+ "../../node_modules/.pnpm/tslib@2.6.1/node_modules/tslib/tslib.es6.mjs"() {
511
511
  extendStatics = function(d, b) {
512
512
  extendStatics = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(d2, b2) {
513
513
  d2.__proto__ = b2;
@@ -30784,9 +30784,9 @@ var require_dist_cjs45 = __commonJS({
30784
30784
  }
30785
30785
  });
30786
30786
 
30787
- // ../../node_modules/.pnpm/aws-crt@1.15.20/node_modules/aws-crt/dist/common/promise.js
30787
+ // ../../node_modules/.pnpm/aws-crt@1.18.0/node_modules/aws-crt/dist/common/promise.js
30788
30788
  var require_promise = __commonJS({
30789
- "../../node_modules/.pnpm/aws-crt@1.15.20/node_modules/aws-crt/dist/common/promise.js"(exports) {
30789
+ "../../node_modules/.pnpm/aws-crt@1.18.0/node_modules/aws-crt/dist/common/promise.js"(exports) {
30790
30790
  "use strict";
30791
30791
  Object.defineProperty(exports, "__esModule", { value: true });
30792
30792
  exports.newLiftedPromise = exports.makeSelfCleaningPromise = void 0;
@@ -30822,9 +30822,9 @@ var require_promise = __commonJS({
30822
30822
  }
30823
30823
  });
30824
30824
 
30825
- // ../../node_modules/.pnpm/aws-crt@1.15.20/node_modules/aws-crt/dist/common/cancel.js
30825
+ // ../../node_modules/.pnpm/aws-crt@1.18.0/node_modules/aws-crt/dist/common/cancel.js
30826
30826
  var require_cancel = __commonJS({
30827
- "../../node_modules/.pnpm/aws-crt@1.15.20/node_modules/aws-crt/dist/common/cancel.js"(exports) {
30827
+ "../../node_modules/.pnpm/aws-crt@1.18.0/node_modules/aws-crt/dist/common/cancel.js"(exports) {
30828
30828
  "use strict";
30829
30829
  var __createBinding3 = exports && exports.__createBinding || (Object.create ? function(o, m, k, k2) {
30830
30830
  if (k2 === void 0)
@@ -30946,12 +30946,12 @@ var require_cancel = __commonJS({
30946
30946
  }
30947
30947
  });
30948
30948
 
30949
- // ../../node_modules/.pnpm/aws-crt@1.15.20/node_modules/aws-crt/package.json
30949
+ // ../../node_modules/.pnpm/aws-crt@1.18.0/node_modules/aws-crt/package.json
30950
30950
  var require_package4 = __commonJS({
30951
- "../../node_modules/.pnpm/aws-crt@1.15.20/node_modules/aws-crt/package.json"(exports, module) {
30951
+ "../../node_modules/.pnpm/aws-crt@1.18.0/node_modules/aws-crt/package.json"(exports, module) {
30952
30952
  module.exports = {
30953
30953
  name: "aws-crt",
30954
- version: "1.15.20",
30954
+ version: "1.18.0",
30955
30955
  description: "NodeJS/browser bindings to the aws-c-* libraries",
30956
30956
  homepage: "https://github.com/awslabs/aws-crt-nodejs",
30957
30957
  repository: {
@@ -30985,38 +30985,36 @@ var require_package4 = __commonJS({
30985
30985
  "@types/uuid": "^3.4.8",
30986
30986
  "@types/ws": "^7.4.7",
30987
30987
  "aws-sdk": "^2.848.0",
30988
- "cmake-js": "^6.3.2",
30989
30988
  "https-proxy-agent": "^5.0.1",
30990
30989
  jest: "^27.2.1",
30991
30990
  "jest-puppeteer": "^5.0.4",
30992
30991
  "jest-runtime": "^27.2.1",
30993
30992
  puppeteer: "^3.3.0",
30994
- tar: "^6.1.11",
30995
30993
  "ts-jest": "^27.0.5",
30996
30994
  typedoc: "^0.22.18",
30997
30995
  "typedoc-plugin-merge-modules": "^3.1.0",
30998
30996
  typescript: "^4.7.4",
30999
30997
  uuid: "^8.3.2",
31000
- yargs: "^17.2.1"
30998
+ yargs: "^17.2.1",
30999
+ "cmake-js": "^6.3.2",
31000
+ tar: "^6.1.11"
31001
31001
  },
31002
31002
  dependencies: {
31003
31003
  "@aws-sdk/util-utf8-browser": "^3.109.0",
31004
31004
  "@httptoolkit/websocket-stream": "^6.0.0",
31005
31005
  axios: "^0.24.0",
31006
31006
  buffer: "^6.0.3",
31007
- "cmake-js": "^6.3.2",
31008
31007
  "crypto-js": "^4.0.0",
31009
31008
  mqtt: "^4.3.7",
31010
- process: "^0.11.10",
31011
- tar: "^6.1.11"
31009
+ process: "^0.11.10"
31012
31010
  }
31013
31011
  };
31014
31012
  }
31015
31013
  });
31016
31014
 
31017
- // ../../node_modules/.pnpm/aws-crt@1.15.20/node_modules/aws-crt/dist/common/platform.js
31015
+ // ../../node_modules/.pnpm/aws-crt@1.18.0/node_modules/aws-crt/dist/common/platform.js
31018
31016
  var require_platform = __commonJS({
31019
- "../../node_modules/.pnpm/aws-crt@1.15.20/node_modules/aws-crt/dist/common/platform.js"(exports) {
31017
+ "../../node_modules/.pnpm/aws-crt@1.18.0/node_modules/aws-crt/dist/common/platform.js"(exports) {
31020
31018
  "use strict";
31021
31019
  Object.defineProperty(exports, "__esModule", { value: true });
31022
31020
  exports.crt_version = exports.package_info = exports.is_browser = exports.is_nodejs = void 0;
@@ -31048,9 +31046,9 @@ var require_platform = __commonJS({
31048
31046
  }
31049
31047
  });
31050
31048
 
31051
- // ../../node_modules/.pnpm/aws-crt@1.15.20/node_modules/aws-crt/dist/common/resource_safety.js
31049
+ // ../../node_modules/.pnpm/aws-crt@1.18.0/node_modules/aws-crt/dist/common/resource_safety.js
31052
31050
  var require_resource_safety = __commonJS({
31053
- "../../node_modules/.pnpm/aws-crt@1.15.20/node_modules/aws-crt/dist/common/resource_safety.js"(exports) {
31051
+ "../../node_modules/.pnpm/aws-crt@1.18.0/node_modules/aws-crt/dist/common/resource_safety.js"(exports) {
31054
31052
  "use strict";
31055
31053
  var __awaiter3 = exports && exports.__awaiter || function(thisArg, _arguments, P, generator) {
31056
31054
  function adopt(value) {
@@ -31094,9 +31092,9 @@ var require_resource_safety = __commonJS({
31094
31092
  }
31095
31093
  });
31096
31094
 
31097
- // ../../node_modules/.pnpm/aws-crt@1.15.20/node_modules/aws-crt/dist/native/binding.js
31095
+ // ../../node_modules/.pnpm/aws-crt@1.18.0/node_modules/aws-crt/dist/native/binding.js
31098
31096
  var require_binding = __commonJS({
31099
- "../../node_modules/.pnpm/aws-crt@1.15.20/node_modules/aws-crt/dist/native/binding.js"(exports) {
31097
+ "../../node_modules/.pnpm/aws-crt@1.18.0/node_modules/aws-crt/dist/native/binding.js"(exports) {
31100
31098
  "use strict";
31101
31099
  var __createBinding3 = exports && exports.__createBinding || (Object.create ? function(o, m, k, k2) {
31102
31100
  if (k2 === void 0)
@@ -31130,11 +31128,38 @@ var require_binding = __commonJS({
31130
31128
  __setModuleDefault2(result, mod);
31131
31129
  return result;
31132
31130
  };
31131
+ var __importDefault3 = exports && exports.__importDefault || function(mod) {
31132
+ return mod && mod.__esModule ? mod : { "default": mod };
31133
+ };
31133
31134
  Object.defineProperty(exports, "__esModule", { value: true });
31135
+ exports.cRuntime = exports.CRuntimeType = void 0;
31134
31136
  var path = __importStar3(__require("path"));
31135
31137
  var os_1 = __require("os");
31136
31138
  var fs_1 = __require("fs");
31137
31139
  var process_1 = __require("process");
31140
+ var child_process_1 = __importDefault3(__require("child_process"));
31141
+ var CRuntimeType = Object.freeze({
31142
+ NON_LINUX: "cruntime",
31143
+ MUSL: "musl",
31144
+ GLIBC: "glibc"
31145
+ });
31146
+ exports.CRuntimeType = CRuntimeType;
31147
+ function getCRuntime() {
31148
+ if ((0, os_1.platform)() !== "linux") {
31149
+ return CRuntimeType.NON_LINUX;
31150
+ }
31151
+ try {
31152
+ const spawnedProcess = child_process_1.default.spawnSync("ldd", ["--version"], { encoding: "utf8" });
31153
+ const output = spawnedProcess.stdout + spawnedProcess.stderr;
31154
+ if (output.includes(CRuntimeType.MUSL)) {
31155
+ return CRuntimeType.MUSL;
31156
+ } else {
31157
+ return CRuntimeType.GLIBC;
31158
+ }
31159
+ } catch (error) {
31160
+ return CRuntimeType.GLIBC;
31161
+ }
31162
+ }
31138
31163
  var upgrade_string = "Please upgrade to node >=10.16.0, or use the provided browser implementation.";
31139
31164
  if ("napi" in process_1.versions) {
31140
31165
  const napi_version = parseInt(process_1.versions["napi"]);
@@ -31144,8 +31169,10 @@ var require_binding = __commonJS({
31144
31169
  } else {
31145
31170
  throw new Error("The current runtime is not reporting an NAPI version. " + upgrade_string);
31146
31171
  }
31172
+ var cRuntime = getCRuntime();
31173
+ exports.cRuntime = cRuntime;
31147
31174
  var binary_name = "aws-crt-nodejs";
31148
- var platformDir = `${os_1.platform}-${os_1.arch}`;
31175
+ var platformDir = `${os_1.platform}-${os_1.arch}-${cRuntime}`;
31149
31176
  var source_root = path.resolve(__dirname, "..", "..");
31150
31177
  var dist = path.join(source_root, "dist");
31151
31178
  if ((0, fs_1.existsSync)(dist)) {
@@ -31169,9 +31196,9 @@ var require_binding = __commonJS({
31169
31196
  }
31170
31197
  });
31171
31198
 
31172
- // ../../node_modules/.pnpm/aws-crt@1.15.20/node_modules/aws-crt/dist/native/error.js
31199
+ // ../../node_modules/.pnpm/aws-crt@1.18.0/node_modules/aws-crt/dist/native/error.js
31173
31200
  var require_error = __commonJS({
31174
- "../../node_modules/.pnpm/aws-crt@1.15.20/node_modules/aws-crt/dist/native/error.js"(exports) {
31201
+ "../../node_modules/.pnpm/aws-crt@1.18.0/node_modules/aws-crt/dist/native/error.js"(exports) {
31175
31202
  "use strict";
31176
31203
  var __importDefault3 = exports && exports.__importDefault || function(mod) {
31177
31204
  return mod && mod.__esModule ? mod : { "default": mod };
@@ -31216,9 +31243,9 @@ var require_error = __commonJS({
31216
31243
  }
31217
31244
  });
31218
31245
 
31219
- // ../../node_modules/.pnpm/aws-crt@1.15.20/node_modules/aws-crt/dist/native/native_resource.js
31246
+ // ../../node_modules/.pnpm/aws-crt@1.18.0/node_modules/aws-crt/dist/native/native_resource.js
31220
31247
  var require_native_resource = __commonJS({
31221
- "../../node_modules/.pnpm/aws-crt@1.15.20/node_modules/aws-crt/dist/native/native_resource.js"(exports) {
31248
+ "../../node_modules/.pnpm/aws-crt@1.18.0/node_modules/aws-crt/dist/native/native_resource.js"(exports) {
31222
31249
  "use strict";
31223
31250
  Object.defineProperty(exports, "__esModule", { value: true });
31224
31251
  exports.NativeResourceMixin = exports.NativeResource = void 0;
@@ -31254,9 +31281,9 @@ var require_native_resource = __commonJS({
31254
31281
  }
31255
31282
  });
31256
31283
 
31257
- // ../../node_modules/.pnpm/aws-crt@1.15.20/node_modules/aws-crt/dist/common/io.js
31284
+ // ../../node_modules/.pnpm/aws-crt@1.18.0/node_modules/aws-crt/dist/common/io.js
31258
31285
  var require_io = __commonJS({
31259
- "../../node_modules/.pnpm/aws-crt@1.15.20/node_modules/aws-crt/dist/common/io.js"(exports) {
31286
+ "../../node_modules/.pnpm/aws-crt@1.18.0/node_modules/aws-crt/dist/common/io.js"(exports) {
31260
31287
  "use strict";
31261
31288
  Object.defineProperty(exports, "__esModule", { value: true });
31262
31289
  exports.SocketDomain = exports.SocketType = exports.TlsVersion = void 0;
@@ -31283,9 +31310,9 @@ var require_io = __commonJS({
31283
31310
  }
31284
31311
  });
31285
31312
 
31286
- // ../../node_modules/.pnpm/aws-crt@1.15.20/node_modules/aws-crt/dist/native/io.js
31313
+ // ../../node_modules/.pnpm/aws-crt@1.18.0/node_modules/aws-crt/dist/native/io.js
31287
31314
  var require_io2 = __commonJS({
31288
- "../../node_modules/.pnpm/aws-crt@1.15.20/node_modules/aws-crt/dist/native/io.js"(exports) {
31315
+ "../../node_modules/.pnpm/aws-crt@1.18.0/node_modules/aws-crt/dist/native/io.js"(exports) {
31289
31316
  "use strict";
31290
31317
  var __importDefault3 = exports && exports.__importDefault || function(mod) {
31291
31318
  return mod && mod.__esModule ? mod : { "default": mod };
@@ -31564,9 +31591,9 @@ var require_io2 = __commonJS({
31564
31591
  }
31565
31592
  });
31566
31593
 
31567
- // ../../node_modules/.pnpm/aws-crt@1.15.20/node_modules/aws-crt/dist/native/auth.js
31594
+ // ../../node_modules/.pnpm/aws-crt@1.18.0/node_modules/aws-crt/dist/native/auth.js
31568
31595
  var require_auth = __commonJS({
31569
- "../../node_modules/.pnpm/aws-crt@1.15.20/node_modules/aws-crt/dist/native/auth.js"(exports) {
31596
+ "../../node_modules/.pnpm/aws-crt@1.18.0/node_modules/aws-crt/dist/native/auth.js"(exports) {
31570
31597
  "use strict";
31571
31598
  var __awaiter3 = exports && exports.__awaiter || function(thisArg, _arguments, P, generator) {
31572
31599
  function adopt(value) {
@@ -31711,9 +31738,9 @@ var require_auth = __commonJS({
31711
31738
  }
31712
31739
  });
31713
31740
 
31714
- // ../../node_modules/.pnpm/aws-crt@1.15.20/node_modules/aws-crt/dist/native/checksums.js
31741
+ // ../../node_modules/.pnpm/aws-crt@1.18.0/node_modules/aws-crt/dist/native/checksums.js
31715
31742
  var require_checksums = __commonJS({
31716
- "../../node_modules/.pnpm/aws-crt@1.15.20/node_modules/aws-crt/dist/native/checksums.js"(exports) {
31743
+ "../../node_modules/.pnpm/aws-crt@1.18.0/node_modules/aws-crt/dist/native/checksums.js"(exports) {
31717
31744
  "use strict";
31718
31745
  var __importDefault3 = exports && exports.__importDefault || function(mod) {
31719
31746
  return mod && mod.__esModule ? mod : { "default": mod };
@@ -31732,9 +31759,9 @@ var require_checksums = __commonJS({
31732
31759
  }
31733
31760
  });
31734
31761
 
31735
- // ../../node_modules/.pnpm/aws-crt@1.15.20/node_modules/aws-crt/dist/native/crt.js
31762
+ // ../../node_modules/.pnpm/aws-crt@1.18.0/node_modules/aws-crt/dist/native/crt.js
31736
31763
  var require_crt = __commonJS({
31737
- "../../node_modules/.pnpm/aws-crt@1.15.20/node_modules/aws-crt/dist/native/crt.js"(exports) {
31764
+ "../../node_modules/.pnpm/aws-crt@1.18.0/node_modules/aws-crt/dist/native/crt.js"(exports) {
31738
31765
  "use strict";
31739
31766
  var __importDefault3 = exports && exports.__importDefault || function(mod) {
31740
31767
  return mod && mod.__esModule ? mod : { "default": mod };
@@ -31753,9 +31780,9 @@ var require_crt = __commonJS({
31753
31780
  }
31754
31781
  });
31755
31782
 
31756
- // ../../node_modules/.pnpm/aws-crt@1.15.20/node_modules/aws-crt/dist/native/crypto.js
31783
+ // ../../node_modules/.pnpm/aws-crt@1.18.0/node_modules/aws-crt/dist/native/crypto.js
31757
31784
  var require_crypto = __commonJS({
31758
- "../../node_modules/.pnpm/aws-crt@1.15.20/node_modules/aws-crt/dist/native/crypto.js"(exports) {
31785
+ "../../node_modules/.pnpm/aws-crt@1.18.0/node_modules/aws-crt/dist/native/crypto.js"(exports) {
31759
31786
  "use strict";
31760
31787
  var __importDefault3 = exports && exports.__importDefault || function(mod) {
31761
31788
  return mod && mod.__esModule ? mod : { "default": mod };
@@ -31848,9 +31875,9 @@ var require_crypto = __commonJS({
31848
31875
  }
31849
31876
  });
31850
31877
 
31851
- // ../../node_modules/.pnpm/aws-crt@1.15.20/node_modules/aws-crt/dist/common/event.js
31878
+ // ../../node_modules/.pnpm/aws-crt@1.18.0/node_modules/aws-crt/dist/common/event.js
31852
31879
  var require_event = __commonJS({
31853
- "../../node_modules/.pnpm/aws-crt@1.15.20/node_modules/aws-crt/dist/common/event.js"(exports) {
31880
+ "../../node_modules/.pnpm/aws-crt@1.18.0/node_modules/aws-crt/dist/common/event.js"(exports) {
31854
31881
  "use strict";
31855
31882
  Object.defineProperty(exports, "__esModule", { value: true });
31856
31883
  exports.BufferedEventEmitter = void 0;
@@ -31912,9 +31939,9 @@ var require_event = __commonJS({
31912
31939
  }
31913
31940
  });
31914
31941
 
31915
- // ../../node_modules/.pnpm/aws-crt@1.15.20/node_modules/aws-crt/dist/native/eventstream_utils.js
31942
+ // ../../node_modules/.pnpm/aws-crt@1.18.0/node_modules/aws-crt/dist/native/eventstream_utils.js
31916
31943
  var require_eventstream_utils = __commonJS({
31917
- "../../node_modules/.pnpm/aws-crt@1.15.20/node_modules/aws-crt/dist/native/eventstream_utils.js"(exports) {
31944
+ "../../node_modules/.pnpm/aws-crt@1.18.0/node_modules/aws-crt/dist/native/eventstream_utils.js"(exports) {
31918
31945
  "use strict";
31919
31946
  Object.defineProperty(exports, "__esModule", { value: true });
31920
31947
  exports.unmarshalInt64BigintFromBuffer = exports.marshalInt64BigintAsBuffer = exports.MIN_INT64 = exports.MAX_INT64 = exports.MIN_INT32 = exports.MAX_INT32 = exports.MIN_INT16 = exports.MAX_INT16 = exports.MIN_INT8 = exports.MAX_INT8 = void 0;
@@ -31977,9 +32004,9 @@ var require_eventstream_utils = __commonJS({
31977
32004
  }
31978
32005
  });
31979
32006
 
31980
- // ../../node_modules/.pnpm/aws-crt@1.15.20/node_modules/aws-crt/dist/native/eventstream.js
32007
+ // ../../node_modules/.pnpm/aws-crt@1.18.0/node_modules/aws-crt/dist/native/eventstream.js
31981
32008
  var require_eventstream = __commonJS({
31982
- "../../node_modules/.pnpm/aws-crt@1.15.20/node_modules/aws-crt/dist/native/eventstream.js"(exports) {
32009
+ "../../node_modules/.pnpm/aws-crt@1.18.0/node_modules/aws-crt/dist/native/eventstream.js"(exports) {
31983
32010
  "use strict";
31984
32011
  var __createBinding3 = exports && exports.__createBinding || (Object.create ? function(o, m, k, k2) {
31985
32012
  if (k2 === void 0)
@@ -32684,9 +32711,9 @@ var require_eventstream = __commonJS({
32684
32711
  }
32685
32712
  });
32686
32713
 
32687
- // ../../node_modules/.pnpm/aws-crt@1.15.20/node_modules/aws-crt/dist/common/http.js
32714
+ // ../../node_modules/.pnpm/aws-crt@1.18.0/node_modules/aws-crt/dist/common/http.js
32688
32715
  var require_http = __commonJS({
32689
- "../../node_modules/.pnpm/aws-crt@1.15.20/node_modules/aws-crt/dist/common/http.js"(exports) {
32716
+ "../../node_modules/.pnpm/aws-crt@1.18.0/node_modules/aws-crt/dist/common/http.js"(exports) {
32690
32717
  "use strict";
32691
32718
  Object.defineProperty(exports, "__esModule", { value: true });
32692
32719
  exports.CommonHttpProxyOptions = exports.HttpProxyAuthenticationType = exports.HttpVersion = void 0;
@@ -32723,9 +32750,9 @@ var require_http = __commonJS({
32723
32750
  }
32724
32751
  });
32725
32752
 
32726
- // ../../node_modules/.pnpm/aws-crt@1.15.20/node_modules/aws-crt/dist/native/http.js
32753
+ // ../../node_modules/.pnpm/aws-crt@1.18.0/node_modules/aws-crt/dist/native/http.js
32727
32754
  var require_http2 = __commonJS({
32728
- "../../node_modules/.pnpm/aws-crt@1.15.20/node_modules/aws-crt/dist/native/http.js"(exports) {
32755
+ "../../node_modules/.pnpm/aws-crt@1.18.0/node_modules/aws-crt/dist/native/http.js"(exports) {
32729
32756
  "use strict";
32730
32757
  var __importDefault3 = exports && exports.__importDefault || function(mod) {
32731
32758
  return mod && mod.__esModule ? mod : { "default": mod };
@@ -33029,9 +33056,9 @@ var require_http2 = __commonJS({
33029
33056
  }
33030
33057
  });
33031
33058
 
33032
- // ../../node_modules/.pnpm/aws-crt@1.15.20/node_modules/aws-crt/dist/common/mqtt.js
33059
+ // ../../node_modules/.pnpm/aws-crt@1.18.0/node_modules/aws-crt/dist/common/mqtt.js
33033
33060
  var require_mqtt = __commonJS({
33034
- "../../node_modules/.pnpm/aws-crt@1.15.20/node_modules/aws-crt/dist/common/mqtt.js"(exports) {
33061
+ "../../node_modules/.pnpm/aws-crt@1.18.0/node_modules/aws-crt/dist/common/mqtt.js"(exports) {
33035
33062
  "use strict";
33036
33063
  Object.defineProperty(exports, "__esModule", { value: true });
33037
33064
  exports.DEFAULT_RECONNECT_MIN_SEC = exports.DEFAULT_RECONNECT_MAX_SEC = exports.MqttWill = exports.QoS = void 0;
@@ -33055,9 +33082,9 @@ var require_mqtt = __commonJS({
33055
33082
  }
33056
33083
  });
33057
33084
 
33058
- // ../../node_modules/.pnpm/aws-crt@1.15.20/node_modules/aws-crt/dist/common/aws_iot_shared.js
33085
+ // ../../node_modules/.pnpm/aws-crt@1.18.0/node_modules/aws-crt/dist/common/aws_iot_shared.js
33059
33086
  var require_aws_iot_shared = __commonJS({
33060
- "../../node_modules/.pnpm/aws-crt@1.15.20/node_modules/aws-crt/dist/common/aws_iot_shared.js"(exports) {
33087
+ "../../node_modules/.pnpm/aws-crt@1.18.0/node_modules/aws-crt/dist/common/aws_iot_shared.js"(exports) {
33061
33088
  "use strict";
33062
33089
  var __createBinding3 = exports && exports.__createBinding || (Object.create ? function(o, m, k, k2) {
33063
33090
  if (k2 === void 0)
@@ -33194,9 +33221,9 @@ var require_aws_iot_shared = __commonJS({
33194
33221
  }
33195
33222
  });
33196
33223
 
33197
- // ../../node_modules/.pnpm/aws-crt@1.15.20/node_modules/aws-crt/dist/native/aws_iot.js
33224
+ // ../../node_modules/.pnpm/aws-crt@1.18.0/node_modules/aws-crt/dist/native/aws_iot.js
33198
33225
  var require_aws_iot = __commonJS({
33199
- "../../node_modules/.pnpm/aws-crt@1.15.20/node_modules/aws-crt/dist/native/aws_iot.js"(exports) {
33226
+ "../../node_modules/.pnpm/aws-crt@1.18.0/node_modules/aws-crt/dist/native/aws_iot.js"(exports) {
33200
33227
  "use strict";
33201
33228
  var __createBinding3 = exports && exports.__createBinding || (Object.create ? function(o, m, k, k2) {
33202
33229
  if (k2 === void 0)
@@ -33657,9 +33684,9 @@ var require_aws_iot = __commonJS({
33657
33684
  }
33658
33685
  });
33659
33686
 
33660
- // ../../node_modules/.pnpm/aws-crt@1.15.20/node_modules/aws-crt/dist/common/mqtt_shared.js
33687
+ // ../../node_modules/.pnpm/aws-crt@1.18.0/node_modules/aws-crt/dist/common/mqtt_shared.js
33661
33688
  var require_mqtt_shared = __commonJS({
33662
- "../../node_modules/.pnpm/aws-crt@1.15.20/node_modules/aws-crt/dist/common/mqtt_shared.js"(exports) {
33689
+ "../../node_modules/.pnpm/aws-crt@1.18.0/node_modules/aws-crt/dist/common/mqtt_shared.js"(exports) {
33663
33690
  "use strict";
33664
33691
  Object.defineProperty(exports, "__esModule", { value: true });
33665
33692
  exports.DEFAULT_KEEP_ALIVE = exports.normalize_payload = void 0;
@@ -33690,9 +33717,9 @@ var require_mqtt_shared = __commonJS({
33690
33717
  }
33691
33718
  });
33692
33719
 
33693
- // ../../node_modules/.pnpm/aws-crt@1.15.20/node_modules/aws-crt/dist/common/mqtt5.js
33720
+ // ../../node_modules/.pnpm/aws-crt@1.18.0/node_modules/aws-crt/dist/common/mqtt5.js
33694
33721
  var require_mqtt5 = __commonJS({
33695
- "../../node_modules/.pnpm/aws-crt@1.15.20/node_modules/aws-crt/dist/common/mqtt5.js"(exports) {
33722
+ "../../node_modules/.pnpm/aws-crt@1.18.0/node_modules/aws-crt/dist/common/mqtt5.js"(exports) {
33696
33723
  "use strict";
33697
33724
  Object.defineProperty(exports, "__esModule", { value: true });
33698
33725
  exports.RetryJitterType = exports.ClientSessionBehavior = void 0;
@@ -33713,9 +33740,9 @@ var require_mqtt5 = __commonJS({
33713
33740
  }
33714
33741
  });
33715
33742
 
33716
- // ../../node_modules/.pnpm/aws-crt@1.15.20/node_modules/aws-crt/dist/common/mqtt5_packet.js
33743
+ // ../../node_modules/.pnpm/aws-crt@1.18.0/node_modules/aws-crt/dist/common/mqtt5_packet.js
33717
33744
  var require_mqtt5_packet = __commonJS({
33718
- "../../node_modules/.pnpm/aws-crt@1.15.20/node_modules/aws-crt/dist/common/mqtt5_packet.js"(exports) {
33745
+ "../../node_modules/.pnpm/aws-crt@1.18.0/node_modules/aws-crt/dist/common/mqtt5_packet.js"(exports) {
33719
33746
  "use strict";
33720
33747
  Object.defineProperty(exports, "__esModule", { value: true });
33721
33748
  exports.PacketType = exports.RetainHandlingType = exports.QoS = exports.PayloadFormatIndicator = exports.isSuccessfulPubackReasonCode = exports.PubackReasonCode = exports.isSuccessfulUnsubackReasonCode = exports.UnsubackReasonCode = exports.isSuccessfulSubackReasonCode = exports.SubackReasonCode = exports.isSuccessfulDisconnectReasonCode = exports.DisconnectReasonCode = exports.isSuccessfulConnectReasonCode = exports.ConnectReasonCode = void 0;
@@ -33871,9 +33898,9 @@ var require_mqtt5_packet = __commonJS({
33871
33898
  }
33872
33899
  });
33873
33900
 
33874
- // ../../node_modules/.pnpm/aws-crt@1.15.20/node_modules/aws-crt/dist/native/mqtt5.js
33901
+ // ../../node_modules/.pnpm/aws-crt@1.18.0/node_modules/aws-crt/dist/native/mqtt5.js
33875
33902
  var require_mqtt52 = __commonJS({
33876
- "../../node_modules/.pnpm/aws-crt@1.15.20/node_modules/aws-crt/dist/native/mqtt5.js"(exports) {
33903
+ "../../node_modules/.pnpm/aws-crt@1.18.0/node_modules/aws-crt/dist/native/mqtt5.js"(exports) {
33877
33904
  "use strict";
33878
33905
  var __createBinding3 = exports && exports.__createBinding || (Object.create ? function(o, m, k, k2) {
33879
33906
  if (k2 === void 0)
@@ -34202,9 +34229,9 @@ var require_mqtt52 = __commonJS({
34202
34229
  }
34203
34230
  });
34204
34231
 
34205
- // ../../node_modules/.pnpm/aws-crt@1.15.20/node_modules/aws-crt/dist/native/aws_iot_mqtt5.js
34232
+ // ../../node_modules/.pnpm/aws-crt@1.18.0/node_modules/aws-crt/dist/native/aws_iot_mqtt5.js
34206
34233
  var require_aws_iot_mqtt5 = __commonJS({
34207
- "../../node_modules/.pnpm/aws-crt@1.15.20/node_modules/aws-crt/dist/native/aws_iot_mqtt5.js"(exports) {
34234
+ "../../node_modules/.pnpm/aws-crt@1.18.0/node_modules/aws-crt/dist/native/aws_iot_mqtt5.js"(exports) {
34208
34235
  "use strict";
34209
34236
  var __createBinding3 = exports && exports.__createBinding || (Object.create ? function(o, m, k, k2) {
34210
34237
  if (k2 === void 0)
@@ -34633,9 +34660,9 @@ var require_aws_iot_mqtt5 = __commonJS({
34633
34660
  }
34634
34661
  });
34635
34662
 
34636
- // ../../node_modules/.pnpm/aws-crt@1.15.20/node_modules/aws-crt/dist/native/iot.js
34663
+ // ../../node_modules/.pnpm/aws-crt@1.18.0/node_modules/aws-crt/dist/native/iot.js
34637
34664
  var require_iot = __commonJS({
34638
- "../../node_modules/.pnpm/aws-crt@1.15.20/node_modules/aws-crt/dist/native/iot.js"(exports) {
34665
+ "../../node_modules/.pnpm/aws-crt@1.18.0/node_modules/aws-crt/dist/native/iot.js"(exports) {
34639
34666
  "use strict";
34640
34667
  var __createBinding3 = exports && exports.__createBinding || (Object.create ? function(o, m, k, k2) {
34641
34668
  if (k2 === void 0)
@@ -34663,9 +34690,9 @@ var require_iot = __commonJS({
34663
34690
  }
34664
34691
  });
34665
34692
 
34666
- // ../../node_modules/.pnpm/aws-crt@1.15.20/node_modules/aws-crt/dist/native/mqtt.js
34693
+ // ../../node_modules/.pnpm/aws-crt@1.18.0/node_modules/aws-crt/dist/native/mqtt.js
34667
34694
  var require_mqtt2 = __commonJS({
34668
- "../../node_modules/.pnpm/aws-crt@1.15.20/node_modules/aws-crt/dist/native/mqtt.js"(exports) {
34695
+ "../../node_modules/.pnpm/aws-crt@1.18.0/node_modules/aws-crt/dist/native/mqtt.js"(exports) {
34669
34696
  "use strict";
34670
34697
  var __createBinding3 = exports && exports.__createBinding || (Object.create ? function(o, m, k, k2) {
34671
34698
  if (k2 === void 0)
@@ -35069,9 +35096,9 @@ var require_mqtt2 = __commonJS({
35069
35096
  }
35070
35097
  });
35071
35098
 
35072
- // ../../node_modules/.pnpm/aws-crt@1.15.20/node_modules/aws-crt/dist/index.js
35099
+ // ../../node_modules/.pnpm/aws-crt@1.18.0/node_modules/aws-crt/dist/index.js
35073
35100
  var require_dist = __commonJS({
35074
- "../../node_modules/.pnpm/aws-crt@1.15.20/node_modules/aws-crt/dist/index.js"(exports) {
35101
+ "../../node_modules/.pnpm/aws-crt@1.18.0/node_modules/aws-crt/dist/index.js"(exports) {
35075
35102
  "use strict";
35076
35103
  var __createBinding3 = exports && exports.__createBinding || (Object.create ? function(o, m, k, k2) {
35077
35104
  if (k2 === void 0)