cdk-appsync-typescript-resolver 0.0.25 → 0.0.27

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/lib/index.js CHANGED
@@ -18,4 +18,6 @@ __exportStar(require("./AppsyncTypescriptFunction"), exports);
18
18
  __exportStar(require("./AppsyncTypescriptFunctionProps"), exports);
19
19
  __exportStar(require("./TSExpressPipelineResolver"), exports);
20
20
  __exportStar(require("./TSExpressPipelineResolverProps"), exports);
21
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi9zcmMvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7Ozs7Ozs7Ozs7Ozs7OztBQUFBLDhEQUE0QztBQUM1QyxtRUFBaUQ7QUFDakQsOERBQTRDO0FBQzVDLG1FQUFpRCIsInNvdXJjZXNDb250ZW50IjpbImV4cG9ydCAqIGZyb20gJy4vQXBwc3luY1R5cGVzY3JpcHRGdW5jdGlvbic7XG5leHBvcnQgKiBmcm9tICcuL0FwcHN5bmNUeXBlc2NyaXB0RnVuY3Rpb25Qcm9wcyc7XG5leHBvcnQgKiBmcm9tICcuL1RTRXhwcmVzc1BpcGVsaW5lUmVzb2x2ZXInO1xuZXhwb3J0ICogZnJvbSAnLi9UU0V4cHJlc3NQaXBlbGluZVJlc29sdmVyUHJvcHMnO1xuIl19
21
+ __exportStar(require("./TypescriptUnitResolver"), exports);
22
+ __exportStar(require("./TypescriptUnitResolverProps"), exports);
23
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi9zcmMvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7Ozs7Ozs7Ozs7Ozs7OztBQUFBLDhEQUE0QztBQUM1QyxtRUFBaUQ7QUFDakQsOERBQTRDO0FBQzVDLG1FQUFpRDtBQUNqRCwyREFBeUM7QUFDekMsZ0VBQThDIiwic291cmNlc0NvbnRlbnQiOlsiZXhwb3J0ICogZnJvbSAnLi9BcHBzeW5jVHlwZXNjcmlwdEZ1bmN0aW9uJztcbmV4cG9ydCAqIGZyb20gJy4vQXBwc3luY1R5cGVzY3JpcHRGdW5jdGlvblByb3BzJztcbmV4cG9ydCAqIGZyb20gJy4vVFNFeHByZXNzUGlwZWxpbmVSZXNvbHZlcic7XG5leHBvcnQgKiBmcm9tICcuL1RTRXhwcmVzc1BpcGVsaW5lUmVzb2x2ZXJQcm9wcyc7XG5leHBvcnQgKiBmcm9tICcuL1R5cGVzY3JpcHRVbml0UmVzb2x2ZXInO1xuZXhwb3J0ICogZnJvbSAnLi9UeXBlc2NyaXB0VW5pdFJlc29sdmVyUHJvcHMnO1xuIl19
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@esbuild/linux-x64",
3
- "version": "0.20.1",
3
+ "version": "0.24.0",
4
4
  "description": "The Linux 64-bit binary for esbuild, a JavaScript bundler.",
5
5
  "repository": {
6
6
  "type": "git",
@@ -9,7 +9,7 @@
9
9
  "license": "MIT",
10
10
  "preferUnplugged": true,
11
11
  "engines": {
12
- "node": ">=12"
12
+ "node": ">=18"
13
13
  },
14
14
  "os": [
15
15
  "linux"
@@ -53,6 +53,7 @@ var knownUnixlikePackages = {
53
53
  "linux x64 LE": "@esbuild/linux-x64",
54
54
  "linux loong64 LE": "@esbuild/linux-loong64",
55
55
  "netbsd x64 LE": "@esbuild/netbsd-x64",
56
+ "openbsd arm64 LE": "@esbuild/openbsd-arm64",
56
57
  "openbsd x64 LE": "@esbuild/openbsd-x64",
57
58
  "sunos x64 LE": "@esbuild/sunos-x64"
58
59
  };
@@ -87,16 +88,14 @@ function pkgForSomeOtherPlatform() {
87
88
  for (const unixKey in knownUnixlikePackages) {
88
89
  try {
89
90
  const pkg = knownUnixlikePackages[unixKey];
90
- if (fs.existsSync(path.join(nodeModulesDirectory, pkg)))
91
- return pkg;
91
+ if (fs.existsSync(path.join(nodeModulesDirectory, pkg))) return pkg;
92
92
  } catch {
93
93
  }
94
94
  }
95
95
  for (const windowsKey in knownWindowsPackages) {
96
96
  try {
97
97
  const pkg = knownWindowsPackages[windowsKey];
98
- if (fs.existsSync(path.join(nodeModulesDirectory, pkg)))
99
- return pkg;
98
+ if (fs.existsSync(path.join(nodeModulesDirectory, pkg))) return pkg;
100
99
  } catch {
101
100
  }
102
101
  }
@@ -200,7 +199,7 @@ for your current platform.`);
200
199
  "node_modules",
201
200
  ".cache",
202
201
  "esbuild",
203
- `pnpapi-${pkg.replace("/", "-")}-${"0.20.1"}-${path.basename(subpath)}`
202
+ `pnpapi-${pkg.replace("/", "-")}-${"0.24.0"}-${path.basename(subpath)}`
204
203
  );
205
204
  if (!fs.existsSync(binTargetPath)) {
206
205
  fs.mkdirSync(path.dirname(binTargetPath), { recursive: true });
@@ -50,6 +50,7 @@ var knownUnixlikePackages = {
50
50
  "linux x64 LE": "@esbuild/linux-x64",
51
51
  "linux loong64 LE": "@esbuild/linux-loong64",
52
52
  "netbsd x64 LE": "@esbuild/netbsd-x64",
53
+ "openbsd arm64 LE": "@esbuild/openbsd-arm64",
53
54
  "openbsd x64 LE": "@esbuild/openbsd-x64",
54
55
  "sunos x64 LE": "@esbuild/sunos-x64"
55
56
  };
@@ -167,8 +168,7 @@ function extractFileFromTarGzip(buffer, subpath) {
167
168
  let size = parseInt(str(offset + 124, 12), 8);
168
169
  offset += 512;
169
170
  if (!isNaN(size)) {
170
- if (name === subpath)
171
- return buffer.subarray(offset, offset + size);
171
+ if (name === subpath) return buffer.subarray(offset, offset + size);
172
172
  offset += size + 511 & ~511;
173
173
  }
174
174
  }
@@ -203,10 +203,8 @@ function removeRecursive(dir) {
203
203
  } catch {
204
204
  continue;
205
205
  }
206
- if (stats.isDirectory())
207
- removeRecursive(entryPath);
208
- else
209
- fs2.unlinkSync(entryPath);
206
+ if (stats.isDirectory()) removeRecursive(entryPath);
207
+ else fs2.unlinkSync(entryPath);
210
208
  }
211
209
  fs2.rmdirSync(dir);
212
210
  }
@@ -125,7 +125,7 @@ export interface BuildOptions extends CommonOptions {
125
125
  /** Documentation: https://esbuild.github.io/api/#external */
126
126
  external?: string[]
127
127
  /** Documentation: https://esbuild.github.io/api/#packages */
128
- packages?: 'external'
128
+ packages?: 'bundle' | 'external'
129
129
  /** Documentation: https://esbuild.github.io/api/#alias */
130
130
  alias?: Record<string, string>
131
131
  /** Documentation: https://esbuild.github.io/api/#loader */
@@ -340,6 +340,7 @@ export interface ResolveOptions {
340
340
  resolveDir?: string
341
341
  kind?: ImportKind
342
342
  pluginData?: any
343
+ with?: Record<string, string>
343
344
  }
344
345
 
345
346
  /** Documentation: https://esbuild.github.io/plugins/#resolve-results */
@@ -379,6 +380,7 @@ export interface OnResolveArgs {
379
380
  resolveDir: string
380
381
  kind: ImportKind
381
382
  pluginData: any
383
+ with: Record<string, string>
382
384
  }
383
385
 
384
386
  export type ImportKind =
@@ -664,16 +666,40 @@ export let version: string
664
666
 
665
667
  // Call this function to terminate esbuild's child process. The child process
666
668
  // is not terminated and re-created after each API call because it's more
667
- // efficient to keep it around when there are multiple API calls. This child
668
- // process normally exits automatically when the parent process exits, so you
669
- // usually don't need to call this function.
669
+ // efficient to keep it around when there are multiple API calls.
670
+ //
671
+ // In node this happens automatically before the parent node process exits. So
672
+ // you only need to call this if you know you will not make any more esbuild
673
+ // API calls and you want to clean up resources.
670
674
  //
671
- // One reason you might want to call this is if you know you will not make any
672
- // more esbuild API calls and you want to clean up resources (since the esbuild
673
- // child process takes up some memory even when idle).
675
+ // Unlike node, Deno lacks the necessary APIs to clean up child processes
676
+ // automatically. You must manually call stop() in Deno when you're done
677
+ // using esbuild or Deno will continue running forever.
674
678
  //
675
679
  // Another reason you might want to call this is if you are using esbuild from
676
680
  // within a Deno test. Deno fails tests that create a child process without
677
681
  // killing it before the test ends, so you have to call this function (and
678
682
  // await the returned promise) in every Deno test that uses esbuild.
679
683
  export declare function stop(): Promise<void>
684
+
685
+ // Note: These declarations exist to avoid type errors when you omit "dom" from
686
+ // "lib" in your "tsconfig.json" file. TypeScript confusingly declares the
687
+ // global "WebAssembly" type in "lib.dom.d.ts" even though it has nothing to do
688
+ // with the browser DOM and is present in many non-browser JavaScript runtimes
689
+ // (e.g. node and deno). Declaring it here allows esbuild's API to be used in
690
+ // these scenarios.
691
+ //
692
+ // There's an open issue about getting this problem corrected (although these
693
+ // declarations will need to remain even if this is fixed for backward
694
+ // compatibility with older TypeScript versions):
695
+ //
696
+ // https://github.com/microsoft/TypeScript-DOM-lib-generator/issues/826
697
+ //
698
+ declare global {
699
+ namespace WebAssembly {
700
+ interface Module {
701
+ }
702
+ }
703
+ interface URL {
704
+ }
705
+ }