cdk-appsync-typescript-resolver 0.0.10 → 0.0.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.
package/.jsii CHANGED
@@ -7,7 +7,7 @@
7
7
  ]
8
8
  },
9
9
  "bundled": {
10
- "esbuild": "^0.18.17"
10
+ "esbuild": "^0.19.0"
11
11
  },
12
12
  "dependencies": {
13
13
  "aws-cdk-lib": "^2.67.0",
@@ -3370,7 +3370,7 @@
3370
3370
  },
3371
3371
  "name": "cdk-appsync-typescript-resolver",
3372
3372
  "readme": {
3373
- "markdown": "# cdk-appsync-typescript-resolver\n\n[![npm (scoped)](https://img.shields.io/npm/v/cdk-appsync-typescript-resolver)](https://www.npmjs.com/package/cdk-appsync-typescript-resolver)\n[![Codacy Badge](https://app.codacy.com/project/badge/Grade/73988a5fee2a473a92ea3ecb288dfbc3)](https://app.codacy.com/gh/sudokar/cdk-appsync-typescript-resolver/dashboard?utm_source=gh&utm_medium=referral&utm_content=&utm_campaign=Badge_grade)\n[![GitHub Workflow Status (branch)](https://img.shields.io/github/actions/workflow/status/sudokar/cdk-appsync-typescript-resolver/release.yml?branch=main&label=release&style=flat-square)](https://github.com/sudokar/cdk-appsync-typescript-resolver/actions/workflows/release.yml)\n[![GitHub release (latest SemVer)](https://img.shields.io/github/release/sudokar/cdk-appsync-typescript-resolver?sort=semver&style=flat-square)](https://github.com/sudokar/cdk-appsync-typescript-resolver/releases)\n[![License](https://img.shields.io/badge/License-Apache_2.0-blue.svg)](https://opensource.org/licenses/Apache-2.0)\n[![PRs Welcome](https://img.shields.io/badge/PRs-welcome-brightgreen.svg)](https://github.com/sudokar/nx-serverless)\n![Maintained](https://img.shields.io/maintenance/yes/2023.svg)\n[![Gitpod ready-to-code](https://img.shields.io/badge/Gitpod-ready--to--code-blue?logo=gitpod&style=flat-square)](https://gitpod.io/#https://github.com/sudokar/cdk-appsync-typescript-resolver)\n\nConstructs to transpile and bundle Typescript to valid AWS Appsync's JS resolvers\n\n[![View on Construct Hub](https://constructs.dev/badge?package=cdk-appsync-typescript-resolver)](https://constructs.dev/packages/cdk-appsync-typescript-resolver)\n\n# ✨ Constructs\n\n- [AppsyncTypescriptFunction](src%2Flib%2FAppsyncTypescriptFunction.ts) - To transpile and bundle Typescript\n- [TSExpressPipelineResolver](src%2Flib%2FJSExpressPipelineResolver.ts) - To use AppsyncTypescriptFunction with boilerplate code\n\n# 🚀 Usage\n\n- AppsyncTypescriptFunction\n```typescript\nimport { AppsyncTypescriptFunction } from 'cdk-appsync-typescript-resolver'\n...\nconst appsyncFunction = new AppsyncTypescriptFunction(stack, \"TSDemoFunction\", {\n name: \"TSDemoFunction\",\n api: new appsync.GraphqlApi(...),\n path: path.join(__dirname, \"path\", \"to\", \"file.ts\"),\n dataSource: new appsync.DynamoDbDataSource(...),\n sourceMap: true,\n});\n```\n\n- TSExpressPipelineResolver\n\n```typescript\nimport { TSExpressPipelineResolver } from 'cdk-appsync-typescript-resolver'\n...\nconst resolver = new TSExpressPipelineResolver(testStack, \"DemoResolver\", {\n api: new appsync.GraphqlApi(...),\n typeName: \"Query\",\n fieldName: \"hello\",\n tsFunction: new AppsyncTypescriptFunction(...),\n});\n```\n\n> Tip: Use [GraphQL Code Generator](https://the-guild.dev/graphql/codegen) to generate Typescript types from GraphQL schema(s) to use in resolvers\n\n# References\n\n[JavaScript resolvers overview](https://docs.aws.amazon.com/appsync/latest/devguide/resolver-reference-overview-js.html)\n\n[Bundling, TypeScript, and source maps](https://docs.aws.amazon.com/appsync/latest/devguide/resolver-reference-overview-js.html#additional-utilities)\n\n[GraphQL Code Generator](https://the-guild.dev/graphql/codegen)"
3373
+ "markdown": "# cdk-appsync-typescript-resolver\n\n[![npm (scoped)](https://img.shields.io/npm/v/cdk-appsync-typescript-resolver)](https://www.npmjs.com/package/cdk-appsync-typescript-resolver)\n[![Codacy Badge](https://app.codacy.com/project/badge/Grade/73988a5fee2a473a92ea3ecb288dfbc3)](https://app.codacy.com/gh/sudokar/cdk-appsync-typescript-resolver/dashboard?utm_source=gh&utm_medium=referral&utm_content=&utm_campaign=Badge_grade)\n[![GitHub Workflow Status (branch)](https://img.shields.io/github/actions/workflow/status/sudokar/cdk-appsync-typescript-resolver/release.yml?branch=main&label=release&style=flat-square)](https://github.com/sudokar/cdk-appsync-typescript-resolver/actions/workflows/release.yml)\n[![GitHub release (latest SemVer)](https://img.shields.io/github/release/sudokar/cdk-appsync-typescript-resolver?sort=semver&style=flat-square)](https://github.com/sudokar/cdk-appsync-typescript-resolver/releases)\n[![License](https://img.shields.io/badge/License-Apache_2.0-blue.svg)](https://opensource.org/licenses/Apache-2.0)\n[![PRs Welcome](https://img.shields.io/badge/PRs-welcome-brightgreen.svg)](https://github.com/sudokar/nx-serverless)\n![Maintained](https://img.shields.io/maintenance/yes/2023.svg)\n[![Gitpod ready-to-code](https://img.shields.io/badge/Gitpod-ready--to--code-blue?logo=gitpod&style=flat-square)](https://gitpod.io/#https://github.com/sudokar/cdk-appsync-typescript-resolver)\n\nConstructs to transpile and bundle Typescript to valid AWS Appsync's JS resolvers\n\n[![View on Construct Hub](https://constructs.dev/badge?package=cdk-appsync-typescript-resolver)](https://constructs.dev/packages/cdk-appsync-typescript-resolver)\n\n# ✨ Constructs\n\n- [AppsyncTypescriptFunction](src%2Flib%2FAppsyncTypescriptFunction.ts) - To transpile and bundle Typescript\n- [TSExpressPipelineResolver](src%2Flib%2FJSExpressPipelineResolver.ts) - To use AppsyncTypescriptFunction with boilerplate code\n\n# 🚀 Usage\n\n- AppsyncTypescriptFunction\n```typescript\nimport { AppsyncTypescriptFunction } from 'cdk-appsync-typescript-resolver'\n...\nconst appsyncFunction = new AppsyncTypescriptFunction(stack, \"TSDemoFunction\", {\n name: \"TSDemoFunction\",\n api: new appsync.GraphqlApi(...),\n path: path.join(__dirname, \"path\", \"to\", \"file.ts\"),\n dataSource: new appsync.DynamoDbDataSource(...),\n sourceMap: true,\n});\n```\n\n- TSExpressPipelineResolver\n\n```typescript\nimport { TSExpressPipelineResolver } from 'cdk-appsync-typescript-resolver'\n...\nconst resolver = new TSExpressPipelineResolver(testStack, \"DemoResolver\", {\n api: new appsync.GraphqlApi(...),\n typeName: \"Query\",\n fieldName: \"hello\",\n tsFunction: new AppsyncTypescriptFunction(...),\n});\n```\n\n> Tip: Use [GraphQL Code Generator](https://the-guild.dev/graphql/codegen) to generate Typescript types from GraphQL schema(s) to use in resolvers\n\nCheckout the demo project for examples [cdk-appsync-typescript-resolver-demo](https://github.com/sudokar/cdk-appsync-typescript-resolver-demo)\n\n# References\n\n[JavaScript resolvers overview](https://docs.aws.amazon.com/appsync/latest/devguide/resolver-reference-overview-js.html)\n\n[Bundling, TypeScript, and source maps](https://docs.aws.amazon.com/appsync/latest/devguide/resolver-reference-overview-js.html#additional-utilities)\n\n[GraphQL Code Generator](https://the-guild.dev/graphql/codegen)\n"
3374
3374
  },
3375
3375
  "repository": {
3376
3376
  "type": "git",
@@ -3787,6 +3787,6 @@
3787
3787
  "symbolId": "src/TSExpressPipelineResolverProps:TSExpressPipelineResolverProps"
3788
3788
  }
3789
3789
  },
3790
- "version": "0.0.10",
3791
- "fingerprint": "x2aBG/ZhoMVA2F0XSkjM2FIA234HbSisOP2SSQJuucI="
3790
+ "version": "0.0.11",
3791
+ "fingerprint": "xG4hCGvhljoNavy35V3bfD9P/pn7xk388CnYFrq7fEg="
3792
3792
  }
package/API.md CHANGED
@@ -48,6 +48,8 @@ const resolver = new TSExpressPipelineResolver(testStack, "DemoResolver", {
48
48
 
49
49
  > Tip: Use [GraphQL Code Generator](https://the-guild.dev/graphql/codegen) to generate Typescript types from GraphQL schema(s) to use in resolvers
50
50
 
51
+ Checkout the demo project for examples [cdk-appsync-typescript-resolver-demo](https://github.com/sudokar/cdk-appsync-typescript-resolver-demo)
52
+
51
53
  # References
52
54
 
53
55
  [JavaScript resolvers overview](https://docs.aws.amazon.com/appsync/latest/devguide/resolver-reference-overview-js.html)
@@ -55,6 +57,7 @@ const resolver = new TSExpressPipelineResolver(testStack, "DemoResolver", {
55
57
  [Bundling, TypeScript, and source maps](https://docs.aws.amazon.com/appsync/latest/devguide/resolver-reference-overview-js.html#additional-utilities)
56
58
 
57
59
  [GraphQL Code Generator](https://the-guild.dev/graphql/codegen)
60
+
58
61
  # API Reference <a name="API Reference" id="api-reference"></a>
59
62
 
60
63
  ## Constructs <a name="Constructs" id="Constructs"></a>
package/README.md CHANGED
@@ -48,10 +48,12 @@ const resolver = new TSExpressPipelineResolver(testStack, "DemoResolver", {
48
48
 
49
49
  > Tip: Use [GraphQL Code Generator](https://the-guild.dev/graphql/codegen) to generate Typescript types from GraphQL schema(s) to use in resolvers
50
50
 
51
+ Checkout the demo project for examples [cdk-appsync-typescript-resolver-demo](https://github.com/sudokar/cdk-appsync-typescript-resolver-demo)
52
+
51
53
  # References
52
54
 
53
55
  [JavaScript resolvers overview](https://docs.aws.amazon.com/appsync/latest/devguide/resolver-reference-overview-js.html)
54
56
 
55
57
  [Bundling, TypeScript, and source maps](https://docs.aws.amazon.com/appsync/latest/devguide/resolver-reference-overview-js.html#additional-utilities)
56
58
 
57
- [GraphQL Code Generator](https://the-guild.dev/graphql/codegen)
59
+ [GraphQL Code Generator](https://the-guild.dev/graphql/codegen)
@@ -23,6 +23,6 @@ class AppsyncTypescriptFunction extends appsync.AppsyncFunction {
23
23
  }
24
24
  }
25
25
  _a = JSII_RTTI_SYMBOL_1;
26
- AppsyncTypescriptFunction[_a] = { fqn: "cdk-appsync-typescript-resolver.AppsyncTypescriptFunction", version: "0.0.10" };
26
+ AppsyncTypescriptFunction[_a] = { fqn: "cdk-appsync-typescript-resolver.AppsyncTypescriptFunction", version: "0.0.11" };
27
27
  exports.AppsyncTypescriptFunction = AppsyncTypescriptFunction;
28
28
  //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiQXBwc3luY1R5cGVzY3JpcHRGdW5jdGlvbi5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3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W5zcGlsZSBhbmQgYnVuZGxlIFR5cGVzY3JpcHQgdG8gQVdTIEFwcHN5bmMgSlMgZnVuY3Rpb25cbiAqL1xuZXhwb3J0IGNsYXNzIEFwcHN5bmNUeXBlc2NyaXB0RnVuY3Rpb24gZXh0ZW5kcyBhcHBzeW5jLkFwcHN5bmNGdW5jdGlvbiB7XG4gIGNvbnN0cnVjdG9yKFxuICAgIHNjb3BlOiBJQ29uc3RydWN0LFxuICAgIGlkOiBzdHJpbmcsXG4gICAgcHJvcHM6IEFwcHN5bmNUeXBlc2NyaXB0RnVuY3Rpb25Qcm9wcyxcbiAgKSB7XG4gICAgY29uc3QgeyBwYXRoLCBzb3VyY2VNYXAsIHJlcGxhY2VTdHJpbmdzIH0gPSBwcm9wcztcbiAgICBzdXBlcihzY29wZSwgaWQsIHtcbiAgICAgIC4uLnByb3BzLFxuICAgICAgY29kZTogYXBwc3luYy5Db2RlLmZyb21JbmxpbmUoXG4gICAgICAgIGJ1bmRsZSh7XG4gICAgICAgICAgZW50cnlQb2ludDogcGF0aCxcbiAgICAgICAgICBzb3VyY2VNYXA6IHNvdXJjZU1hcCA/PyBmYWxzZSxcbiAgICAgICAgICByZXBsYWNlU3RyaW5ncyxcbiAgICAgICAgfSksXG4gICAgICApLFxuICAgICAgcnVudGltZTogYXBwc3luYy5GdW5jdGlvblJ1bnRpbWUuSlNfMV8wXzAsXG4gICAgfSk7XG4gIH1cbn1cbiJdfQ==
@@ -28,6 +28,6 @@ class TSExpressPipelineResolver extends appsync.Resolver {
28
28
  }
29
29
  }
30
30
  _a = JSII_RTTI_SYMBOL_1;
31
- TSExpressPipelineResolver[_a] = { fqn: "cdk-appsync-typescript-resolver.TSExpressPipelineResolver", version: "0.0.10" };
31
+ TSExpressPipelineResolver[_a] = { fqn: "cdk-appsync-typescript-resolver.TSExpressPipelineResolver", version: "0.0.11" };
32
32
  exports.TSExpressPipelineResolver = TSExpressPipelineResolver;
33
33
  //# sourceMappingURL=data:application/json;base64,eyJ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version": "0.18.17",
3
+ "version": "0.19.0",
4
4
  "description": "The Linux 64-bit binary for esbuild, a JavaScript bundler.",
5
5
  "repository": "https://github.com/evanw/esbuild",
6
6
  "license": "MIT",
@@ -199,7 +199,7 @@ for your current platform.`);
199
199
  "node_modules",
200
200
  ".cache",
201
201
  "esbuild",
202
- `pnpapi-${pkg.replace("/", "-")}-${"0.18.17"}-${path.basename(subpath)}`
202
+ `pnpapi-${pkg.replace("/", "-")}-${"0.19.0"}-${path.basename(subpath)}`
203
203
  );
204
204
  if (!fs.existsSync(binTargetPath)) {
205
205
  fs.mkdirSync(path.dirname(binTargetPath), { recursive: true });
@@ -85,23 +85,25 @@ interface CommonOptions {
85
85
  logOverride?: Record<string, LogLevel>
86
86
 
87
87
  /** Documentation: https://esbuild.github.io/api/#tsconfig-raw */
88
- tsconfigRaw?: string | {
89
- compilerOptions?: {
90
- alwaysStrict?: boolean
91
- baseUrl?: boolean
92
- experimentalDecorators?: boolean
93
- importsNotUsedAsValues?: 'remove' | 'preserve' | 'error'
94
- jsx?: 'preserve' | 'react-native' | 'react' | 'react-jsx' | 'react-jsxdev'
95
- jsxFactory?: string
96
- jsxFragmentFactory?: string
97
- jsxImportSource?: string
98
- paths?: Record<string, string[]>
99
- preserveValueImports?: boolean
100
- strict?: boolean
101
- target?: string
102
- useDefineForClassFields?: boolean
103
- verbatimModuleSyntax?: boolean
104
- }
88
+ tsconfigRaw?: string | TsconfigRaw
89
+ }
90
+
91
+ export interface TsconfigRaw {
92
+ compilerOptions?: {
93
+ alwaysStrict?: boolean
94
+ baseUrl?: boolean
95
+ experimentalDecorators?: boolean
96
+ importsNotUsedAsValues?: 'remove' | 'preserve' | 'error'
97
+ jsx?: 'preserve' | 'react-native' | 'react' | 'react-jsx' | 'react-jsxdev'
98
+ jsxFactory?: string
99
+ jsxFragmentFactory?: string
100
+ jsxImportSource?: string
101
+ paths?: Record<string, string[]>
102
+ preserveValueImports?: boolean
103
+ strict?: boolean
104
+ target?: string
105
+ useDefineForClassFields?: boolean
106
+ verbatimModuleSyntax?: boolean
105
107
  }
106
108
  }
107
109
 
@@ -209,8 +211,8 @@ export interface Location {
209
211
 
210
212
  export interface OutputFile {
211
213
  path: string
212
- /** "text" as bytes */
213
214
  contents: Uint8Array
215
+ hash: string
214
216
  /** "contents" as text (changes automatically with "contents") */
215
217
  readonly text: string
216
218
  }
@@ -390,6 +392,7 @@ export type ImportKind =
390
392
 
391
393
  // CSS
392
394
  | 'import-rule'
395
+ | 'composes-from'
393
396
  | 'url-token'
394
397
 
395
398
  /** Documentation: https://esbuild.github.io/plugins/#on-resolve-results */
@@ -745,8 +745,8 @@ function createChannel(streamIn) {
745
745
  if (isFirstPacket) {
746
746
  isFirstPacket = false;
747
747
  let binaryVersion = String.fromCharCode(...bytes);
748
- if (binaryVersion !== "0.18.17") {
749
- throw new Error(`Cannot start service: Host version "${"0.18.17"}" does not match binary version ${quote(binaryVersion)}`);
748
+ if (binaryVersion !== "0.19.0") {
749
+ throw new Error(`Cannot start service: Host version "${"0.19.0"}" does not match binary version ${quote(binaryVersion)}`);
750
750
  }
751
751
  return;
752
752
  }
@@ -1726,11 +1726,12 @@ function sanitizeStringArray(values, property) {
1726
1726
  }
1727
1727
  return result;
1728
1728
  }
1729
- function convertOutputFiles({ path: path3, contents }) {
1729
+ function convertOutputFiles({ path: path3, contents, hash }) {
1730
1730
  let text = null;
1731
1731
  return {
1732
1732
  path: path3,
1733
1733
  contents,
1734
+ hash,
1734
1735
  get text() {
1735
1736
  const binary = this.contents;
1736
1737
  if (text === null || binary !== contents) {
@@ -1918,7 +1919,7 @@ for your current platform.`);
1918
1919
  "node_modules",
1919
1920
  ".cache",
1920
1921
  "esbuild",
1921
- `pnpapi-${pkg.replace("/", "-")}-${"0.18.17"}-${path.basename(subpath)}`
1922
+ `pnpapi-${pkg.replace("/", "-")}-${"0.19.0"}-${path.basename(subpath)}`
1922
1923
  );
1923
1924
  if (!fs.existsSync(binTargetPath)) {
1924
1925
  fs.mkdirSync(path.dirname(binTargetPath), { recursive: true });
@@ -1953,7 +1954,7 @@ if (process.env.ESBUILD_WORKER_THREADS !== "0") {
1953
1954
  }
1954
1955
  }
1955
1956
  var _a;
1956
- var isInternalWorkerThread = ((_a = worker_threads == null ? void 0 : worker_threads.workerData) == null ? void 0 : _a.esbuildVersion) === "0.18.17";
1957
+ var isInternalWorkerThread = ((_a = worker_threads == null ? void 0 : worker_threads.workerData) == null ? void 0 : _a.esbuildVersion) === "0.19.0";
1957
1958
  var esbuildCommandAndArgs = () => {
1958
1959
  if ((!ESBUILD_BINARY_PATH || false) && (path2.basename(__filename) !== "main.js" || path2.basename(__dirname) !== "lib")) {
1959
1960
  throw new Error(
@@ -2020,7 +2021,7 @@ var fsAsync = {
2020
2021
  }
2021
2022
  }
2022
2023
  };
2023
- var version = "0.18.17";
2024
+ var version = "0.19.0";
2024
2025
  var build = (options) => ensureServiceIsRunning().build(options);
2025
2026
  var context = (buildOptions) => ensureServiceIsRunning().context(buildOptions);
2026
2027
  var transform = (input, options) => ensureServiceIsRunning().transform(input, options);
@@ -2130,7 +2131,7 @@ var ensureServiceIsRunning = () => {
2130
2131
  if (longLivedService)
2131
2132
  return longLivedService;
2132
2133
  let [command, args] = esbuildCommandAndArgs();
2133
- let child = child_process.spawn(command, args.concat(`--service=${"0.18.17"}`, "--ping"), {
2134
+ let child = child_process.spawn(command, args.concat(`--service=${"0.19.0"}`, "--ping"), {
2134
2135
  windowsHide: true,
2135
2136
  stdio: ["pipe", "pipe", "inherit"],
2136
2137
  cwd: defaultWD
@@ -2230,7 +2231,7 @@ var runServiceSync = (callback) => {
2230
2231
  esbuild: node_exports
2231
2232
  });
2232
2233
  callback(service);
2233
- let stdout = child_process.execFileSync(command, args.concat(`--service=${"0.18.17"}`), {
2234
+ let stdout = child_process.execFileSync(command, args.concat(`--service=${"0.19.0"}`), {
2234
2235
  cwd: defaultWD,
2235
2236
  windowsHide: true,
2236
2237
  input: stdin,
@@ -2250,7 +2251,7 @@ var workerThreadService = null;
2250
2251
  var startWorkerThreadService = (worker_threads2) => {
2251
2252
  let { port1: mainPort, port2: workerPort } = new worker_threads2.MessageChannel();
2252
2253
  let worker = new worker_threads2.Worker(__filename, {
2253
- workerData: { workerPort, defaultWD, esbuildVersion: "0.18.17" },
2254
+ workerData: { workerPort, defaultWD, esbuildVersion: "0.19.0" },
2254
2255
  transferList: [workerPort],
2255
2256
  // From node's documentation: https://nodejs.org/api/worker_threads.html
2256
2257
  //
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "esbuild",
3
- "version": "0.18.17",
3
+ "version": "0.19.0",
4
4
  "description": "An extremely fast JavaScript and CSS bundler and minifier.",
5
5
  "repository": "https://github.com/evanw/esbuild",
6
6
  "scripts": {
@@ -15,28 +15,28 @@
15
15
  "esbuild": "bin/esbuild"
16
16
  },
17
17
  "optionalDependencies": {
18
- "@esbuild/android-arm": "0.18.17",
19
- "@esbuild/android-arm64": "0.18.17",
20
- "@esbuild/android-x64": "0.18.17",
21
- "@esbuild/darwin-arm64": "0.18.17",
22
- "@esbuild/darwin-x64": "0.18.17",
23
- "@esbuild/freebsd-arm64": "0.18.17",
24
- "@esbuild/freebsd-x64": "0.18.17",
25
- "@esbuild/linux-arm": "0.18.17",
26
- "@esbuild/linux-arm64": "0.18.17",
27
- "@esbuild/linux-ia32": "0.18.17",
28
- "@esbuild/linux-loong64": "0.18.17",
29
- "@esbuild/linux-mips64el": "0.18.17",
30
- "@esbuild/linux-ppc64": "0.18.17",
31
- "@esbuild/linux-riscv64": "0.18.17",
32
- "@esbuild/linux-s390x": "0.18.17",
33
- "@esbuild/linux-x64": "0.18.17",
34
- "@esbuild/netbsd-x64": "0.18.17",
35
- "@esbuild/openbsd-x64": "0.18.17",
36
- "@esbuild/sunos-x64": "0.18.17",
37
- "@esbuild/win32-arm64": "0.18.17",
38
- "@esbuild/win32-ia32": "0.18.17",
39
- "@esbuild/win32-x64": "0.18.17"
18
+ "@esbuild/android-arm": "0.19.0",
19
+ "@esbuild/android-arm64": "0.19.0",
20
+ "@esbuild/android-x64": "0.19.0",
21
+ "@esbuild/darwin-arm64": "0.19.0",
22
+ "@esbuild/darwin-x64": "0.19.0",
23
+ "@esbuild/freebsd-arm64": "0.19.0",
24
+ "@esbuild/freebsd-x64": "0.19.0",
25
+ "@esbuild/linux-arm": "0.19.0",
26
+ "@esbuild/linux-arm64": "0.19.0",
27
+ "@esbuild/linux-ia32": "0.19.0",
28
+ "@esbuild/linux-loong64": "0.19.0",
29
+ "@esbuild/linux-mips64el": "0.19.0",
30
+ "@esbuild/linux-ppc64": "0.19.0",
31
+ "@esbuild/linux-riscv64": "0.19.0",
32
+ "@esbuild/linux-s390x": "0.19.0",
33
+ "@esbuild/linux-x64": "0.19.0",
34
+ "@esbuild/netbsd-x64": "0.19.0",
35
+ "@esbuild/openbsd-x64": "0.19.0",
36
+ "@esbuild/sunos-x64": "0.19.0",
37
+ "@esbuild/win32-arm64": "0.19.0",
38
+ "@esbuild/win32-ia32": "0.19.0",
39
+ "@esbuild/win32-x64": "0.19.0"
40
40
  },
41
41
  "license": "MIT"
42
42
  }
package/package.json CHANGED
@@ -36,7 +36,7 @@
36
36
  },
37
37
  "devDependencies": {
38
38
  "@aws-appsync/utils": "^1.2.5",
39
- "@mrgrain/jsii-struct-builder": "^0.5.3",
39
+ "@mrgrain/jsii-struct-builder": "^0.5.4",
40
40
  "@types/jest": "^29.5.3",
41
41
  "@types/node": "^18",
42
42
  "@typescript-eslint/eslint-plugin": "^5",
@@ -44,7 +44,7 @@
44
44
  "aws-cdk-lib": "2.67.0",
45
45
  "constructs": "10.0.5",
46
46
  "eslint": "^8",
47
- "eslint-import-resolver-node": "^0.3.7",
47
+ "eslint-import-resolver-node": "^0.3.9",
48
48
  "eslint-import-resolver-typescript": "^3.5.5",
49
49
  "eslint-plugin-import": "^2.28.0",
50
50
  "jest": "^29.6.2",
@@ -55,7 +55,7 @@
55
55
  "jsii-pacmak": "^1.86.1",
56
56
  "jsii-rosetta": "~5.0.0",
57
57
  "npm-check-updates": "^16",
58
- "projen": "^0.72.2",
58
+ "projen": "^0.72.6",
59
59
  "standard-version": "^9",
60
60
  "ts-jest": "^29.1.1",
61
61
  "ts-node": "^10.9.1",
@@ -66,7 +66,7 @@
66
66
  "constructs": "^10.0.5"
67
67
  },
68
68
  "dependencies": {
69
- "esbuild": "^0.18.17"
69
+ "esbuild": "^0.19.0"
70
70
  },
71
71
  "bundledDependencies": [
72
72
  "esbuild"
@@ -83,7 +83,7 @@
83
83
  },
84
84
  "main": "lib/index.js",
85
85
  "license": "Apache-2.0",
86
- "version": "0.0.10",
86
+ "version": "0.0.11",
87
87
  "jest": {
88
88
  "testMatch": [
89
89
  "<rootDir>/src/**/__tests__/**/*.ts?(x)",