cdk-appsync-typescript-resolver 0.0.21 → 0.0.23
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 +3 -3
- package/lib/AppsyncTypescriptFunction.js +1 -1
- package/lib/AppsyncTypescriptFunctionProps.d.ts +1 -1
- package/lib/AppsyncTypescriptFunctionProps.js +1 -1
- package/lib/TSExpressPipelineResolver.js +1 -1
- package/lib/TSExpressPipelineResolverProps.d.ts +2 -2
- package/lib/TSExpressPipelineResolverProps.js +1 -1
- package/node_modules/@esbuild/linux-x64/bin/esbuild +0 -0
- package/node_modules/@esbuild/linux-x64/package.json +5 -2
- package/node_modules/esbuild/bin/esbuild +2 -1
- package/node_modules/esbuild/install.js +1 -0
- package/node_modules/esbuild/lib/main.d.ts +19 -0
- package/node_modules/esbuild/lib/main.js +62 -29
- package/node_modules/esbuild/package.json +28 -24
- package/package.json +21 -21
- package/.gitattributes +0 -27
- package/.projenrc.ts +0 -91
package/.jsii
CHANGED
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
]
|
|
8
8
|
},
|
|
9
9
|
"bundled": {
|
|
10
|
-
"esbuild": "^0.
|
|
10
|
+
"esbuild": "^0.20.0"
|
|
11
11
|
},
|
|
12
12
|
"dependencies": {
|
|
13
13
|
"aws-cdk-lib": "^2.67.0",
|
|
@@ -3788,6 +3788,6 @@
|
|
|
3788
3788
|
"symbolId": "src/TSExpressPipelineResolverProps:TSExpressPipelineResolverProps"
|
|
3789
3789
|
}
|
|
3790
3790
|
},
|
|
3791
|
-
"version": "0.0.
|
|
3792
|
-
"fingerprint": "
|
|
3791
|
+
"version": "0.0.23",
|
|
3792
|
+
"fingerprint": "l1WIFUaQqbXjgsKdiOEzYe+V7dubwrchrPWRulw3Jd0="
|
|
3793
3793
|
}
|
|
@@ -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.
|
|
26
|
+
AppsyncTypescriptFunction[_a] = { fqn: "cdk-appsync-typescript-resolver.AppsyncTypescriptFunction", version: "0.0.23" };
|
|
27
27
|
exports.AppsyncTypescriptFunction = AppsyncTypescriptFunction;
|
|
28
28
|
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiQXBwc3luY1R5cGVzY3JpcHRGdW5jdGlvbi5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uL3NyYy9BcHBzeW5jVHlwZXNjcmlwdEZ1bmN0aW9uLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7O0FBQUEsbURBQW1EO0FBR25ELHVDQUFtQztBQUVuQzs7R0FFRztBQUNILE1BQWEseUJBQTBCLFNBQVEsT0FBTyxDQUFDLGVBQWU7SUFDcEUsWUFDRSxLQUFpQixFQUNqQixFQUFVLEVBQ1YsS0FBcUM7UUFFckMsTUFBTSxFQUFFLElBQUksRUFBRSxTQUFTLEVBQUUsY0FBYyxFQUFFLEdBQUcsS0FBSyxDQUFDO1FBQ2xELEtBQUssQ0FBQyxLQUFLLEVBQUUsRUFBRSxFQUFFO1lBQ2YsR0FBRyxLQUFLO1lBQ1IsSUFBSSxFQUFFLE9BQU8sQ0FBQyxJQUFJLENBQUMsVUFBVSxDQUMzQixJQUFBLGdCQUFNLEVBQUM7Z0JBQ0wsVUFBVSxFQUFFLElBQUk7Z0JBQ2hCLFNBQVMsRUFBRSxTQUFTLElBQUksS0FBSztnQkFDN0IsY0FBYzthQUNmLENBQUMsQ0FDSDtZQUNELE9BQU8sRUFBRSxPQUFPLENBQUMsZUFBZSxDQUFDLFFBQVE7U0FDMUMsQ0FBQyxDQUFDO0lBQ0wsQ0FBQzs7OztBQWxCVSw4REFBeUIiLC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J1bnRpbWUuSlNfMV8wXzAsXG4gICAgfSk7XG4gIH1cbn1cbiJdfQ==
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
3
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiQXBwc3luY1R5cGVzY3JpcHRGdW5jdGlvblByb3BzLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vc3JjL0FwcHN5bmNUeXBlc2NyaXB0RnVuY3Rpb25Qcm9wcy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiIiwic291cmNlc0NvbnRlbnQiOlsiLy8gfn4gR2VuZXJhdGVkIGJ5IHByb2plbi4gVG8gbW9kaWZ5LCBlZGl0IC5wcm9qZW5yYy50cyBhbmQgcnVuIFwibnB4IHByb2plblwiLlxuaW1wb3J0IHR5cGUgeyBhd3NfYXBwc3luYyB9IGZyb20gJ2F3cy1jZGstbGliJztcblxuLyoqXG4gKiBBcHBzeW5jVHlwZXNjcmlwdEZ1bmN0aW9uUHJvcHNcbiAqL1xuZXhwb3J0IGludGVyZmFjZSBBcHBzeW5jVHlwZXNjcmlwdEZ1bmN0aW9uUHJvcHMge1xuICAvKipcbiAgICogdGhlIGRhdGEgc291cmNlIGxpbmtlZCB0byB0aGlzIEFwcFN5bmMgRnVuY3Rpb24uXG4gICAqIEBzdGFiaWxpdHkgc3RhYmxlXG4gICAqL1xuICByZWFkb25seSBkYXRhU291cmNlOiBhd3NfYXBwc3luYy5CYXNlRGF0YVNvdXJjZTtcbiAgLyoqXG4gICAqIHRoZSBHcmFwaFFMIEFwaSBsaW5rZWQgdG8gdGhpcyBBcHBTeW5jIEZ1bmN0aW9uLlxuICAgKiBAc3RhYmlsaXR5IHN0YWJsZVxuICAgKi9cbiAgcmVhZG9ubHkgYXBpOiBhd3N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lYWRvbmx5IHJlcGxhY2VTdHJpbmdzPzogUmVjb3JkPHN0cmluZywgc3RyaW5nPjtcbiAgLyoqXG4gICAqIEZsYWcgdG8gZW5hYmxlIG9yIGRpc2FibGUgc291cmNlIG1hcHMgaW4gYnVuZGxlZCBjb2RlLiBkZWZhdWx0cyB0byBmYWxzZVxuICAgKi9cbiAgcmVhZG9ubHkgc291cmNlTWFwPzogYm9vbGVhbjtcbiAgLyoqXG4gICAqIFBhdGggb2YgdHlwZXNjcmlwdCBmaWxlIHRoYXQgd2lsbCBiZSB0cmFuc3BpbGVkIGFuZCBidW5kbGVkXG4gICAqL1xuICByZWFkb25seSBwYXRoOiBzdHJpbmc7XG59XG4iXX0=
|
|
@@ -29,6 +29,6 @@ class TSExpressPipelineResolver extends appsync.Resolver {
|
|
|
29
29
|
}
|
|
30
30
|
}
|
|
31
31
|
_a = JSII_RTTI_SYMBOL_1;
|
|
32
|
-
TSExpressPipelineResolver[_a] = { fqn: "cdk-appsync-typescript-resolver.TSExpressPipelineResolver", version: "0.0.
|
|
32
|
+
TSExpressPipelineResolver[_a] = { fqn: "cdk-appsync-typescript-resolver.TSExpressPipelineResolver", version: "0.0.23" };
|
|
33
33
|
exports.TSExpressPipelineResolver = TSExpressPipelineResolver;
|
|
34
34
|
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiVFNFeHByZXNzUGlwZWxpbmVSZXNvbHZlci5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uL3NyYy9UU0V4cHJlc3NQaXBlbGluZVJlc29sdmVyLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7O0FBQUEsbURBQW1EO0FBSW5ELE1BQU0sbUJBQW1CLEdBQVc7Ozs7Ozs7O0VBUWxDLENBQUM7QUFFSDs7O0dBR0c7QUFDSCxNQUFhLHlCQUEwQixTQUFRLE9BQU8sQ0FBQyxRQUFRO0lBQzdELFlBQ0UsS0F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bmcgQXBwc3luY1R5cGVzY3JpcHRGdW5jdGlvbiBjb25zdHJ1Y3RcbiAqIEBkZXByZWNhdGVkIC0gQXBwc3luYyBub3cgbmF0aXZlbHkgc3VwcG9ydHMgVW5pdCByZXNvbHZlcnMuIFJlZjogaHR0cHM6Ly9hd3MuYW1hem9uLmNvbS9hYm91dC1hd3Mvd2hhdHMtbmV3LzIwMjMvMDgvYXdzLWFwcHN5bmMtamF2YXNjcmlwdC1hbGwtcmVzb2x2ZXJzLWdyYXBocWwtYXBpc1xuICovXG5leHBvcnQgY2xhc3MgVFNFeHByZXNzUGlwZWxpbmVSZXNvbHZlciBleHRlbmRzIGFwcHN5bmMuUmVzb2x2ZXIge1xuICBjb25zdHJ1Y3RvcihcbiAgICBzY29wZTogSUNvbnN0cnVjdCxcbiAgICBpZDogc3RyaW5nLFxuICAgIHByb3BzOiBUU0V4cHJlc3NQaXBlbGluZVJlc29sdmVyUHJvcHMsXG4gICkge1xuICAgIGNvbnN0IHsgdHNGdW5jdGlvbjogYXBwc3luY0Z1bmN0aW9uLCAuLi5yZXNvbHZlclByb3BzIH0gPSBwcm9wcztcbiAgICBzdXBlcihzY29wZSwgaWQsIHtcbiAgICAgIC4uLnJlc29sdmVyUHJvcHMsXG4gICAgICBwaXBlbGluZUNvbmZpZzogW2FwcHN5bmNGdW5jdGlvbl0sXG4gICAgICBjb2RlOiBhcHBzeW5jLkNvZGUuZnJvbUlubGluZShkZWZhdWx0UGlwZWxpbmVDb2RlKSxcbiAgICAgIHJ1bnRpbWU6IGFwcHN5bmMuRnVuY3Rpb25SdW50aW1lLkpTXzFfMF8wLFxuICAgIH0pO1xuICB9XG59XG4iXX0=
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
3
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoi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iBAZGVmYXVsdCAtIE5vIG1heCBiYXRjaCBzaXplXG4gICAqIEBzdGFiaWxpdHkgc3RhYmxlXG4gICAqL1xuICByZWFkb25seSBtYXhCYXRjaFNpemU/OiBudW1iZXI7XG4gIC8qKlxuICAgKiBUaGUgY2FjaGluZyBjb25maWd1cmF0aW9uIGZvciB0aGlzIHJlc29sdmVyLlxuICAgKiBAZGVmYXVsdCAtIE5vIGNhY2hpbmcgY29uZmlndXJhdGlvblxuICAgKiBAc3RhYmlsaXR5IHN0YWJsZVxuICAgKi9cbiAgcmVhZG9ubHkgY2FjaGluZ0NvbmZpZz86IGF3c19hcHBzeW5jLkNhY2hpbmdDb25maWc7XG4gIC8qKlxuICAgKiBuYW1lIG9mIHRoZSBHcmFwaFFMIHR5cGUgdGhpcyByZXNvbHZlciBpcyBhdHRhY2hlZCB0by5cbiAgICogQHN0YWJpbGl0eSBzdGFibGVcbiAgICovXG4gIHJlYWRvbmx5IHR5cGVOYW1lOiBzdHJpbmc7XG4gIC8qKlxuICAgKiBuYW1lIG9mIHRoZSBHcmFwaFFMIGZpZWxkIGluIHRoZSBnaXZlbiB0eXBlIHRoaXMgcmVzb2x2ZXIgaXMgYXR0YWNoZWQgdG8uXG4gICAqIEBzdGFiaWxpdHkgc3RhYmxlXG4gICAqL1xuICByZWFkb25seSBmaWVsZE5hbWU6IHN0cmluZztcbiAgLyoqXG4gICAqIEluc3RhbmNlIG9mIEFwcHN5bmNUeXBlc2NyaXB0RnVuY3Rpb24gY29uc3RydWN0XG4gICAqL1xuICByZWFkb25seSB0c0Z1bmN0aW9uOiBBcHBzeW5jVHlwZXNjcmlwdEZ1bmN0aW9uO1xufVxuIl19
|
|
Binary file
|
|
@@ -1,8 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@esbuild/linux-x64",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.20.0",
|
|
4
4
|
"description": "The Linux 64-bit binary for esbuild, a JavaScript bundler.",
|
|
5
|
-
"repository":
|
|
5
|
+
"repository": {
|
|
6
|
+
"type": "git",
|
|
7
|
+
"url": "git+https://github.com/evanw/esbuild.git"
|
|
8
|
+
},
|
|
6
9
|
"license": "MIT",
|
|
7
10
|
"preferUnplugged": true,
|
|
8
11
|
"engines": {
|
|
@@ -37,6 +37,7 @@ var knownWindowsPackages = {
|
|
|
37
37
|
"win32 x64 LE": "@esbuild/win32-x64"
|
|
38
38
|
};
|
|
39
39
|
var knownUnixlikePackages = {
|
|
40
|
+
"aix ppc64 BE": "@esbuild/aix-ppc64",
|
|
40
41
|
"android arm64 LE": "@esbuild/android-arm64",
|
|
41
42
|
"darwin arm64 LE": "@esbuild/darwin-arm64",
|
|
42
43
|
"darwin x64 LE": "@esbuild/darwin-x64",
|
|
@@ -199,7 +200,7 @@ for your current platform.`);
|
|
|
199
200
|
"node_modules",
|
|
200
201
|
".cache",
|
|
201
202
|
"esbuild",
|
|
202
|
-
`pnpapi-${pkg.replace("/", "-")}-${"0.
|
|
203
|
+
`pnpapi-${pkg.replace("/", "-")}-${"0.20.0"}-${path.basename(subpath)}`
|
|
203
204
|
);
|
|
204
205
|
if (!fs.existsSync(binTargetPath)) {
|
|
205
206
|
fs.mkdirSync(path.dirname(binTargetPath), { recursive: true });
|
|
@@ -34,6 +34,7 @@ var knownWindowsPackages = {
|
|
|
34
34
|
"win32 x64 LE": "@esbuild/win32-x64"
|
|
35
35
|
};
|
|
36
36
|
var knownUnixlikePackages = {
|
|
37
|
+
"aix ppc64 BE": "@esbuild/aix-ppc64",
|
|
37
38
|
"android arm64 LE": "@esbuild/android-arm64",
|
|
38
39
|
"darwin arm64 LE": "@esbuild/darwin-arm64",
|
|
39
40
|
"darwin x64 LE": "@esbuild/darwin-x64",
|
|
@@ -425,6 +425,7 @@ export interface OnLoadArgs {
|
|
|
425
425
|
namespace: string
|
|
426
426
|
suffix: string
|
|
427
427
|
pluginData: any
|
|
428
|
+
with: Record<string, string>
|
|
428
429
|
}
|
|
429
430
|
|
|
430
431
|
/** Documentation: https://esbuild.github.io/plugins/#on-load-results */
|
|
@@ -467,8 +468,10 @@ export interface Metafile {
|
|
|
467
468
|
kind: ImportKind
|
|
468
469
|
external?: boolean
|
|
469
470
|
original?: string
|
|
471
|
+
with?: Record<string, string>
|
|
470
472
|
}[]
|
|
471
473
|
format?: 'cjs' | 'esm'
|
|
474
|
+
with?: Record<string, string>
|
|
472
475
|
}
|
|
473
476
|
}
|
|
474
477
|
outputs: {
|
|
@@ -658,3 +661,19 @@ export interface InitializeOptions {
|
|
|
658
661
|
}
|
|
659
662
|
|
|
660
663
|
export let version: string
|
|
664
|
+
|
|
665
|
+
// Call this function to terminate esbuild's child process. The child process
|
|
666
|
+
// 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.
|
|
670
|
+
//
|
|
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).
|
|
674
|
+
//
|
|
675
|
+
// Another reason you might want to call this is if you are using esbuild from
|
|
676
|
+
// within a Deno test. Deno fails tests that create a child process without
|
|
677
|
+
// killing it before the test ends, so you have to call this function (and
|
|
678
|
+
// await the returned promise) in every Deno test that uses esbuild.
|
|
679
|
+
export declare function stop(): Promise<void>
|
|
@@ -39,6 +39,7 @@ __export(node_exports, {
|
|
|
39
39
|
formatMessages: () => formatMessages,
|
|
40
40
|
formatMessagesSync: () => formatMessagesSync,
|
|
41
41
|
initialize: () => initialize,
|
|
42
|
+
stop: () => stop,
|
|
42
43
|
transform: () => transform,
|
|
43
44
|
transformSync: () => transformSync,
|
|
44
45
|
version: () => version
|
|
@@ -723,12 +724,13 @@ function createChannel(streamIn) {
|
|
|
723
724
|
}
|
|
724
725
|
if (typeof request.key === "number") {
|
|
725
726
|
const requestCallbacks = requestCallbacksByKey[request.key];
|
|
726
|
-
if (requestCallbacks) {
|
|
727
|
-
|
|
728
|
-
|
|
729
|
-
|
|
730
|
-
|
|
731
|
-
|
|
727
|
+
if (!requestCallbacks) {
|
|
728
|
+
return;
|
|
729
|
+
}
|
|
730
|
+
const callback = requestCallbacks[request.command];
|
|
731
|
+
if (callback) {
|
|
732
|
+
await callback(id, request);
|
|
733
|
+
return;
|
|
732
734
|
}
|
|
733
735
|
}
|
|
734
736
|
throw new Error(`Invalid command: ` + request.command);
|
|
@@ -745,8 +747,8 @@ function createChannel(streamIn) {
|
|
|
745
747
|
if (isFirstPacket) {
|
|
746
748
|
isFirstPacket = false;
|
|
747
749
|
let binaryVersion = String.fromCharCode(...bytes);
|
|
748
|
-
if (binaryVersion !== "0.
|
|
749
|
-
throw new Error(`Cannot start service: Host version "${"0.
|
|
750
|
+
if (binaryVersion !== "0.20.0") {
|
|
751
|
+
throw new Error(`Cannot start service: Host version "${"0.20.0"}" does not match binary version ${quote(binaryVersion)}`);
|
|
750
752
|
}
|
|
751
753
|
return;
|
|
752
754
|
}
|
|
@@ -889,7 +891,6 @@ function createChannel(streamIn) {
|
|
|
889
891
|
start(null);
|
|
890
892
|
};
|
|
891
893
|
let formatMessages2 = ({ callName, refs, messages, options, callback }) => {
|
|
892
|
-
let result = sanitizeMessages(messages, "messages", null, "");
|
|
893
894
|
if (!options)
|
|
894
895
|
throw new Error(`Missing second argument in ${callName}() call`);
|
|
895
896
|
let keys = {};
|
|
@@ -903,7 +904,7 @@ function createChannel(streamIn) {
|
|
|
903
904
|
throw new Error(`Expected "kind" to be "error" or "warning" in ${callName}() call`);
|
|
904
905
|
let request = {
|
|
905
906
|
command: "format-msgs",
|
|
906
|
-
messages:
|
|
907
|
+
messages: sanitizeMessages(messages, "messages", null, "", terminalWidth),
|
|
907
908
|
isWarning: kind === "warning"
|
|
908
909
|
};
|
|
909
910
|
if (color !== void 0)
|
|
@@ -1355,9 +1356,9 @@ var handlePlugins = async (buildKey, sendRequest, sendResponse, refs, streamIn,
|
|
|
1355
1356
|
let warnings = getFlag(result, keys, "warnings", mustBeArray);
|
|
1356
1357
|
checkForInvalidFlags(result, keys, `from onStart() callback in plugin ${quote(name)}`);
|
|
1357
1358
|
if (errors != null)
|
|
1358
|
-
response.errors.push(...sanitizeMessages(errors, "errors", details, name));
|
|
1359
|
+
response.errors.push(...sanitizeMessages(errors, "errors", details, name, void 0));
|
|
1359
1360
|
if (warnings != null)
|
|
1360
|
-
response.warnings.push(...sanitizeMessages(warnings, "warnings", details, name));
|
|
1361
|
+
response.warnings.push(...sanitizeMessages(warnings, "warnings", details, name, void 0));
|
|
1361
1362
|
}
|
|
1362
1363
|
} catch (e) {
|
|
1363
1364
|
response.errors.push(extractErrorMessageV8(e, streamIn, details, note && note(), name));
|
|
@@ -1410,9 +1411,9 @@ var handlePlugins = async (buildKey, sendRequest, sendResponse, refs, streamIn,
|
|
|
1410
1411
|
if (pluginData != null)
|
|
1411
1412
|
response.pluginData = details.store(pluginData);
|
|
1412
1413
|
if (errors != null)
|
|
1413
|
-
response.errors = sanitizeMessages(errors, "errors", details, name);
|
|
1414
|
+
response.errors = sanitizeMessages(errors, "errors", details, name, void 0);
|
|
1414
1415
|
if (warnings != null)
|
|
1415
|
-
response.warnings = sanitizeMessages(warnings, "warnings", details, name);
|
|
1416
|
+
response.warnings = sanitizeMessages(warnings, "warnings", details, name, void 0);
|
|
1416
1417
|
if (watchFiles != null)
|
|
1417
1418
|
response.watchFiles = sanitizeStringArray(watchFiles, "watchFiles");
|
|
1418
1419
|
if (watchDirs != null)
|
|
@@ -1435,7 +1436,8 @@ var handlePlugins = async (buildKey, sendRequest, sendResponse, refs, streamIn,
|
|
|
1435
1436
|
path: request.path,
|
|
1436
1437
|
namespace: request.namespace,
|
|
1437
1438
|
suffix: request.suffix,
|
|
1438
|
-
pluginData: details.load(request.pluginData)
|
|
1439
|
+
pluginData: details.load(request.pluginData),
|
|
1440
|
+
with: request.with
|
|
1439
1441
|
});
|
|
1440
1442
|
if (result != null) {
|
|
1441
1443
|
if (typeof result !== "object")
|
|
@@ -1465,9 +1467,9 @@ var handlePlugins = async (buildKey, sendRequest, sendResponse, refs, streamIn,
|
|
|
1465
1467
|
if (loader != null)
|
|
1466
1468
|
response.loader = loader;
|
|
1467
1469
|
if (errors != null)
|
|
1468
|
-
response.errors = sanitizeMessages(errors, "errors", details, name);
|
|
1470
|
+
response.errors = sanitizeMessages(errors, "errors", details, name, void 0);
|
|
1469
1471
|
if (warnings != null)
|
|
1470
|
-
response.warnings = sanitizeMessages(warnings, "warnings", details, name);
|
|
1472
|
+
response.warnings = sanitizeMessages(warnings, "warnings", details, name, void 0);
|
|
1471
1473
|
if (watchFiles != null)
|
|
1472
1474
|
response.watchFiles = sanitizeStringArray(watchFiles, "watchFiles");
|
|
1473
1475
|
if (watchDirs != null)
|
|
@@ -1500,9 +1502,9 @@ var handlePlugins = async (buildKey, sendRequest, sendResponse, refs, streamIn,
|
|
|
1500
1502
|
let warnings = getFlag(value, keys, "warnings", mustBeArray);
|
|
1501
1503
|
checkForInvalidFlags(value, keys, `from onEnd() callback in plugin ${quote(name)}`);
|
|
1502
1504
|
if (errors != null)
|
|
1503
|
-
newErrors = sanitizeMessages(errors, "errors", details, name);
|
|
1505
|
+
newErrors = sanitizeMessages(errors, "errors", details, name, void 0);
|
|
1504
1506
|
if (warnings != null)
|
|
1505
|
-
newWarnings = sanitizeMessages(warnings, "warnings", details, name);
|
|
1507
|
+
newWarnings = sanitizeMessages(warnings, "warnings", details, name, void 0);
|
|
1506
1508
|
}
|
|
1507
1509
|
} catch (e) {
|
|
1508
1510
|
newErrors = [extractErrorMessageV8(e, streamIn, details, note && note(), name)];
|
|
@@ -1667,7 +1669,7 @@ function replaceDetailsInMessages(messages, stash) {
|
|
|
1667
1669
|
}
|
|
1668
1670
|
return messages;
|
|
1669
1671
|
}
|
|
1670
|
-
function sanitizeLocation(location, where) {
|
|
1672
|
+
function sanitizeLocation(location, where, terminalWidth) {
|
|
1671
1673
|
if (location == null)
|
|
1672
1674
|
return null;
|
|
1673
1675
|
let keys = {};
|
|
@@ -1679,6 +1681,15 @@ function sanitizeLocation(location, where) {
|
|
|
1679
1681
|
let lineText = getFlag(location, keys, "lineText", mustBeString);
|
|
1680
1682
|
let suggestion = getFlag(location, keys, "suggestion", mustBeString);
|
|
1681
1683
|
checkForInvalidFlags(location, keys, where);
|
|
1684
|
+
if (lineText) {
|
|
1685
|
+
const relevantASCII = lineText.slice(
|
|
1686
|
+
0,
|
|
1687
|
+
(column && column > 0 ? column : 0) + (length && length > 0 ? length : 0) + (terminalWidth && terminalWidth > 0 ? terminalWidth : 80)
|
|
1688
|
+
);
|
|
1689
|
+
if (!/[\x7F-\uFFFF]/.test(relevantASCII) && !/\n/.test(lineText)) {
|
|
1690
|
+
lineText = relevantASCII;
|
|
1691
|
+
}
|
|
1692
|
+
}
|
|
1682
1693
|
return {
|
|
1683
1694
|
file: file || "",
|
|
1684
1695
|
namespace: namespace || "",
|
|
@@ -1689,7 +1700,7 @@ function sanitizeLocation(location, where) {
|
|
|
1689
1700
|
suggestion: suggestion || ""
|
|
1690
1701
|
};
|
|
1691
1702
|
}
|
|
1692
|
-
function sanitizeMessages(messages, property, stash, fallbackPluginName) {
|
|
1703
|
+
function sanitizeMessages(messages, property, stash, fallbackPluginName, terminalWidth) {
|
|
1693
1704
|
let messagesClone = [];
|
|
1694
1705
|
let index = 0;
|
|
1695
1706
|
for (const message of messages) {
|
|
@@ -1711,7 +1722,7 @@ function sanitizeMessages(messages, property, stash, fallbackPluginName) {
|
|
|
1711
1722
|
checkForInvalidFlags(note, noteKeys, where);
|
|
1712
1723
|
notesClone.push({
|
|
1713
1724
|
text: noteText || "",
|
|
1714
|
-
location: sanitizeLocation(noteLocation, where)
|
|
1725
|
+
location: sanitizeLocation(noteLocation, where, terminalWidth)
|
|
1715
1726
|
});
|
|
1716
1727
|
}
|
|
1717
1728
|
}
|
|
@@ -1719,7 +1730,7 @@ function sanitizeMessages(messages, property, stash, fallbackPluginName) {
|
|
|
1719
1730
|
id: id || "",
|
|
1720
1731
|
pluginName: pluginName || fallbackPluginName,
|
|
1721
1732
|
text: text || "",
|
|
1722
|
-
location: sanitizeLocation(location, where),
|
|
1733
|
+
location: sanitizeLocation(location, where, terminalWidth),
|
|
1723
1734
|
notes: notesClone,
|
|
1724
1735
|
detail: stash ? stash.store(detail) : -1
|
|
1725
1736
|
});
|
|
@@ -1767,6 +1778,7 @@ var knownWindowsPackages = {
|
|
|
1767
1778
|
"win32 x64 LE": "@esbuild/win32-x64"
|
|
1768
1779
|
};
|
|
1769
1780
|
var knownUnixlikePackages = {
|
|
1781
|
+
"aix ppc64 BE": "@esbuild/aix-ppc64",
|
|
1770
1782
|
"android arm64 LE": "@esbuild/android-arm64",
|
|
1771
1783
|
"darwin arm64 LE": "@esbuild/darwin-arm64",
|
|
1772
1784
|
"darwin x64 LE": "@esbuild/darwin-x64",
|
|
@@ -1929,7 +1941,7 @@ for your current platform.`);
|
|
|
1929
1941
|
"node_modules",
|
|
1930
1942
|
".cache",
|
|
1931
1943
|
"esbuild",
|
|
1932
|
-
`pnpapi-${pkg.replace("/", "-")}-${"0.
|
|
1944
|
+
`pnpapi-${pkg.replace("/", "-")}-${"0.20.0"}-${path.basename(subpath)}`
|
|
1933
1945
|
);
|
|
1934
1946
|
if (!fs.existsSync(binTargetPath)) {
|
|
1935
1947
|
fs.mkdirSync(path.dirname(binTargetPath), { recursive: true });
|
|
@@ -1964,7 +1976,7 @@ if (process.env.ESBUILD_WORKER_THREADS !== "0") {
|
|
|
1964
1976
|
}
|
|
1965
1977
|
}
|
|
1966
1978
|
var _a;
|
|
1967
|
-
var isInternalWorkerThread = ((_a = worker_threads == null ? void 0 : worker_threads.workerData) == null ? void 0 : _a.esbuildVersion) === "0.
|
|
1979
|
+
var isInternalWorkerThread = ((_a = worker_threads == null ? void 0 : worker_threads.workerData) == null ? void 0 : _a.esbuildVersion) === "0.20.0";
|
|
1968
1980
|
var esbuildCommandAndArgs = () => {
|
|
1969
1981
|
if ((!ESBUILD_BINARY_PATH || false) && (path2.basename(__filename) !== "main.js" || path2.basename(__dirname) !== "lib")) {
|
|
1970
1982
|
throw new Error(
|
|
@@ -2031,7 +2043,7 @@ var fsAsync = {
|
|
|
2031
2043
|
}
|
|
2032
2044
|
}
|
|
2033
2045
|
};
|
|
2034
|
-
var version = "0.
|
|
2046
|
+
var version = "0.20.0";
|
|
2035
2047
|
var build = (options) => ensureServiceIsRunning().build(options);
|
|
2036
2048
|
var context = (buildOptions) => ensureServiceIsRunning().context(buildOptions);
|
|
2037
2049
|
var transform = (input, options) => ensureServiceIsRunning().transform(input, options);
|
|
@@ -2120,6 +2132,13 @@ var analyzeMetafileSync = (metafile, options) => {
|
|
|
2120
2132
|
}));
|
|
2121
2133
|
return result;
|
|
2122
2134
|
};
|
|
2135
|
+
var stop = () => {
|
|
2136
|
+
if (stopService)
|
|
2137
|
+
stopService();
|
|
2138
|
+
if (workerThreadService)
|
|
2139
|
+
workerThreadService.stop();
|
|
2140
|
+
return Promise.resolve();
|
|
2141
|
+
};
|
|
2123
2142
|
var initializeWasCalled = false;
|
|
2124
2143
|
var initialize = (options) => {
|
|
2125
2144
|
options = validateInitializeOptions(options || {});
|
|
@@ -2137,11 +2156,12 @@ var initialize = (options) => {
|
|
|
2137
2156
|
};
|
|
2138
2157
|
var defaultWD = process.cwd();
|
|
2139
2158
|
var longLivedService;
|
|
2159
|
+
var stopService;
|
|
2140
2160
|
var ensureServiceIsRunning = () => {
|
|
2141
2161
|
if (longLivedService)
|
|
2142
2162
|
return longLivedService;
|
|
2143
2163
|
let [command, args] = esbuildCommandAndArgs();
|
|
2144
|
-
let child = child_process.spawn(command, args.concat(`--service=${"0.
|
|
2164
|
+
let child = child_process.spawn(command, args.concat(`--service=${"0.20.0"}`, "--ping"), {
|
|
2145
2165
|
windowsHide: true,
|
|
2146
2166
|
stdio: ["pipe", "pipe", "inherit"],
|
|
2147
2167
|
cwd: defaultWD
|
|
@@ -2164,6 +2184,14 @@ var ensureServiceIsRunning = () => {
|
|
|
2164
2184
|
const stdout = child.stdout;
|
|
2165
2185
|
stdout.on("data", readFromStdout);
|
|
2166
2186
|
stdout.on("end", afterClose);
|
|
2187
|
+
stopService = () => {
|
|
2188
|
+
stdin.destroy();
|
|
2189
|
+
stdout.destroy();
|
|
2190
|
+
child.kill();
|
|
2191
|
+
initializeWasCalled = false;
|
|
2192
|
+
longLivedService = void 0;
|
|
2193
|
+
stopService = void 0;
|
|
2194
|
+
};
|
|
2167
2195
|
let refCount = 0;
|
|
2168
2196
|
child.unref();
|
|
2169
2197
|
if (stdin.unref) {
|
|
@@ -2241,7 +2269,7 @@ var runServiceSync = (callback) => {
|
|
|
2241
2269
|
esbuild: node_exports
|
|
2242
2270
|
});
|
|
2243
2271
|
callback(service);
|
|
2244
|
-
let stdout = child_process.execFileSync(command, args.concat(`--service=${"0.
|
|
2272
|
+
let stdout = child_process.execFileSync(command, args.concat(`--service=${"0.20.0"}`), {
|
|
2245
2273
|
cwd: defaultWD,
|
|
2246
2274
|
windowsHide: true,
|
|
2247
2275
|
input: stdin,
|
|
@@ -2261,7 +2289,7 @@ var workerThreadService = null;
|
|
|
2261
2289
|
var startWorkerThreadService = (worker_threads2) => {
|
|
2262
2290
|
let { port1: mainPort, port2: workerPort } = new worker_threads2.MessageChannel();
|
|
2263
2291
|
let worker = new worker_threads2.Worker(__filename, {
|
|
2264
|
-
workerData: { workerPort, defaultWD, esbuildVersion: "0.
|
|
2292
|
+
workerData: { workerPort, defaultWD, esbuildVersion: "0.20.0" },
|
|
2265
2293
|
transferList: [workerPort],
|
|
2266
2294
|
// From node's documentation: https://nodejs.org/api/worker_threads.html
|
|
2267
2295
|
//
|
|
@@ -2327,6 +2355,10 @@ error: ${text}`);
|
|
|
2327
2355
|
},
|
|
2328
2356
|
analyzeMetafileSync(metafile, options) {
|
|
2329
2357
|
return runCallSync("analyzeMetafile", [metafile, options]);
|
|
2358
|
+
},
|
|
2359
|
+
stop() {
|
|
2360
|
+
worker.terminate();
|
|
2361
|
+
workerThreadService = null;
|
|
2330
2362
|
}
|
|
2331
2363
|
};
|
|
2332
2364
|
};
|
|
@@ -2397,6 +2429,7 @@ var node_default = node_exports;
|
|
|
2397
2429
|
formatMessages,
|
|
2398
2430
|
formatMessagesSync,
|
|
2399
2431
|
initialize,
|
|
2432
|
+
stop,
|
|
2400
2433
|
transform,
|
|
2401
2434
|
transformSync,
|
|
2402
2435
|
version
|
|
@@ -1,8 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "esbuild",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.20.0",
|
|
4
4
|
"description": "An extremely fast JavaScript and CSS bundler and minifier.",
|
|
5
|
-
"repository":
|
|
5
|
+
"repository": {
|
|
6
|
+
"type": "git",
|
|
7
|
+
"url": "git+https://github.com/evanw/esbuild.git"
|
|
8
|
+
},
|
|
6
9
|
"scripts": {
|
|
7
10
|
"postinstall": "node install.js"
|
|
8
11
|
},
|
|
@@ -15,28 +18,29 @@
|
|
|
15
18
|
"esbuild": "bin/esbuild"
|
|
16
19
|
},
|
|
17
20
|
"optionalDependencies": {
|
|
18
|
-
"@esbuild/
|
|
19
|
-
"@esbuild/android-
|
|
20
|
-
"@esbuild/android-
|
|
21
|
-
"@esbuild/
|
|
22
|
-
"@esbuild/darwin-
|
|
23
|
-
"@esbuild/
|
|
24
|
-
"@esbuild/freebsd-
|
|
25
|
-
"@esbuild/
|
|
26
|
-
"@esbuild/linux-
|
|
27
|
-
"@esbuild/linux-
|
|
28
|
-
"@esbuild/linux-
|
|
29
|
-
"@esbuild/linux-
|
|
30
|
-
"@esbuild/linux-
|
|
31
|
-
"@esbuild/linux-
|
|
32
|
-
"@esbuild/linux-
|
|
33
|
-
"@esbuild/linux-
|
|
34
|
-
"@esbuild/
|
|
35
|
-
"@esbuild/
|
|
36
|
-
"@esbuild/
|
|
37
|
-
"@esbuild/
|
|
38
|
-
"@esbuild/win32-
|
|
39
|
-
"@esbuild/win32-
|
|
21
|
+
"@esbuild/aix-ppc64": "0.20.0",
|
|
22
|
+
"@esbuild/android-arm": "0.20.0",
|
|
23
|
+
"@esbuild/android-arm64": "0.20.0",
|
|
24
|
+
"@esbuild/android-x64": "0.20.0",
|
|
25
|
+
"@esbuild/darwin-arm64": "0.20.0",
|
|
26
|
+
"@esbuild/darwin-x64": "0.20.0",
|
|
27
|
+
"@esbuild/freebsd-arm64": "0.20.0",
|
|
28
|
+
"@esbuild/freebsd-x64": "0.20.0",
|
|
29
|
+
"@esbuild/linux-arm": "0.20.0",
|
|
30
|
+
"@esbuild/linux-arm64": "0.20.0",
|
|
31
|
+
"@esbuild/linux-ia32": "0.20.0",
|
|
32
|
+
"@esbuild/linux-loong64": "0.20.0",
|
|
33
|
+
"@esbuild/linux-mips64el": "0.20.0",
|
|
34
|
+
"@esbuild/linux-ppc64": "0.20.0",
|
|
35
|
+
"@esbuild/linux-riscv64": "0.20.0",
|
|
36
|
+
"@esbuild/linux-s390x": "0.20.0",
|
|
37
|
+
"@esbuild/linux-x64": "0.20.0",
|
|
38
|
+
"@esbuild/netbsd-x64": "0.20.0",
|
|
39
|
+
"@esbuild/openbsd-x64": "0.20.0",
|
|
40
|
+
"@esbuild/sunos-x64": "0.20.0",
|
|
41
|
+
"@esbuild/win32-arm64": "0.20.0",
|
|
42
|
+
"@esbuild/win32-ia32": "0.20.0",
|
|
43
|
+
"@esbuild/win32-x64": "0.20.0"
|
|
40
44
|
},
|
|
41
45
|
"license": "MIT"
|
|
42
46
|
}
|
package/package.json
CHANGED
|
@@ -35,38 +35,36 @@
|
|
|
35
35
|
"organization": false
|
|
36
36
|
},
|
|
37
37
|
"devDependencies": {
|
|
38
|
-
"@aws-appsync/utils": "^1.
|
|
39
|
-
"@mrgrain/jsii-struct-builder": "^0.
|
|
40
|
-
"@types/jest": "^29.5.
|
|
38
|
+
"@aws-appsync/utils": "^1.7.0",
|
|
39
|
+
"@mrgrain/jsii-struct-builder": "^0.7.12",
|
|
40
|
+
"@types/jest": "^29.5.12",
|
|
41
41
|
"@types/node": "^18",
|
|
42
42
|
"@typescript-eslint/eslint-plugin": "^6",
|
|
43
43
|
"@typescript-eslint/parser": "^6",
|
|
44
44
|
"aws-cdk-lib": "2.67.0",
|
|
45
45
|
"constructs": "10.0.5",
|
|
46
46
|
"eslint": "^8",
|
|
47
|
-
"eslint-import-resolver-
|
|
48
|
-
"eslint-import
|
|
49
|
-
"eslint-plugin-import": "^2.28.1",
|
|
47
|
+
"eslint-import-resolver-typescript": "^3.6.1",
|
|
48
|
+
"eslint-plugin-import": "^2.29.1",
|
|
50
49
|
"jest": "^29.7.0",
|
|
51
50
|
"jest-junit": "^15",
|
|
52
51
|
"jsii": "~5.0.0",
|
|
53
|
-
"jsii-diff": "^1.
|
|
54
|
-
"jsii-docgen": "^9.
|
|
55
|
-
"jsii-pacmak": "^1.
|
|
52
|
+
"jsii-diff": "^1.94.0",
|
|
53
|
+
"jsii-docgen": "^9.2.2",
|
|
54
|
+
"jsii-pacmak": "^1.94.0",
|
|
56
55
|
"jsii-rosetta": "~5.0.0",
|
|
57
|
-
"
|
|
58
|
-
"projen": "^0.73.19",
|
|
56
|
+
"projen": "^0.79.9",
|
|
59
57
|
"standard-version": "^9",
|
|
60
|
-
"ts-jest": "^29.1.
|
|
61
|
-
"ts-node": "^10.9.
|
|
62
|
-
"typescript": "^5.
|
|
58
|
+
"ts-jest": "^29.1.2",
|
|
59
|
+
"ts-node": "^10.9.2",
|
|
60
|
+
"typescript": "^5.3.3"
|
|
63
61
|
},
|
|
64
62
|
"peerDependencies": {
|
|
65
63
|
"aws-cdk-lib": "^2.67.0",
|
|
66
64
|
"constructs": "^10.0.5"
|
|
67
65
|
},
|
|
68
66
|
"dependencies": {
|
|
69
|
-
"esbuild": "^0.
|
|
67
|
+
"esbuild": "^0.20.0"
|
|
70
68
|
},
|
|
71
69
|
"bundledDependencies": [
|
|
72
70
|
"esbuild"
|
|
@@ -83,7 +81,7 @@
|
|
|
83
81
|
},
|
|
84
82
|
"main": "lib/index.js",
|
|
85
83
|
"license": "Apache-2.0",
|
|
86
|
-
"version": "0.0.
|
|
84
|
+
"version": "0.0.23",
|
|
87
85
|
"jest": {
|
|
88
86
|
"testMatch": [
|
|
89
87
|
"<rootDir>/src/**/__tests__/**/*.ts?(x)",
|
|
@@ -117,11 +115,13 @@
|
|
|
117
115
|
}
|
|
118
116
|
]
|
|
119
117
|
],
|
|
120
|
-
"
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
118
|
+
"transform": {
|
|
119
|
+
"^.+\\.[t]sx?$": [
|
|
120
|
+
"ts-jest",
|
|
121
|
+
{
|
|
122
|
+
"tsconfig": "tsconfig.dev.json"
|
|
123
|
+
}
|
|
124
|
+
]
|
|
125
125
|
}
|
|
126
126
|
},
|
|
127
127
|
"types": "lib/index.d.ts",
|
package/.gitattributes
DELETED
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
# ~~ Generated by projen. To modify, edit .projenrc.ts and run "npx projen".
|
|
2
|
-
|
|
3
|
-
*.snap linguist-generated
|
|
4
|
-
/.eslintrc.json linguist-generated
|
|
5
|
-
/.gitattributes linguist-generated
|
|
6
|
-
/.github/pull_request_template.md linguist-generated
|
|
7
|
-
/.github/workflows/auto-approve.yml linguist-generated
|
|
8
|
-
/.github/workflows/build.yml linguist-generated
|
|
9
|
-
/.github/workflows/pull-request-lint.yml linguist-generated
|
|
10
|
-
/.github/workflows/release.yml linguist-generated
|
|
11
|
-
/.github/workflows/stale.yml linguist-generated
|
|
12
|
-
/.github/workflows/upgrade-main.yml linguist-generated
|
|
13
|
-
/.gitignore linguist-generated
|
|
14
|
-
/.mergify.yml linguist-generated
|
|
15
|
-
/.npmignore linguist-generated
|
|
16
|
-
/.npmrc linguist-generated
|
|
17
|
-
/.projen/** linguist-generated
|
|
18
|
-
/.projen/deps.json linguist-generated
|
|
19
|
-
/.projen/files.json linguist-generated
|
|
20
|
-
/.projen/tasks.json linguist-generated
|
|
21
|
-
/API.md linguist-generated
|
|
22
|
-
/LICENSE linguist-generated
|
|
23
|
-
/package.json linguist-generated
|
|
24
|
-
/src/AppsyncTypescriptFunctionProps.ts linguist-generated
|
|
25
|
-
/src/TSExpressPipelineResolverProps.ts linguist-generated
|
|
26
|
-
/tsconfig.dev.json linguist-generated
|
|
27
|
-
/yarn.lock linguist-generated
|
package/.projenrc.ts
DELETED
|
@@ -1,91 +0,0 @@
|
|
|
1
|
-
import { CollectionKind, PrimitiveType } from '@jsii/spec';
|
|
2
|
-
import { ProjenStruct, Struct } from '@mrgrain/jsii-struct-builder';
|
|
3
|
-
import { awscdk } from 'projen';
|
|
4
|
-
|
|
5
|
-
const project = new awscdk.AwsCdkConstructLibrary({
|
|
6
|
-
author: 'sudokar',
|
|
7
|
-
authorAddress: 'sudokar@yahoo.com',
|
|
8
|
-
cdkVersion: '2.67.0',
|
|
9
|
-
defaultReleaseBranch: 'main',
|
|
10
|
-
jsiiVersion: '~5.0.0',
|
|
11
|
-
name: 'cdk-appsync-typescript-resolver',
|
|
12
|
-
projenrcTs: true,
|
|
13
|
-
repositoryUrl: 'https://github.com/sudokar/cdk-appsync-typescript-resolver.git',
|
|
14
|
-
keywords: ['appsync', 'typescript', 'resolver', 'javascript'],
|
|
15
|
-
|
|
16
|
-
description: 'AWS CDK construct to build AppSync JS resolvers using Typescript',
|
|
17
|
-
devDeps: ['@aws-appsync/utils', '@mrgrain/jsii-struct-builder'], /* Build dependencies for this module. */
|
|
18
|
-
packageName: 'cdk-appsync-typescript-resolver',
|
|
19
|
-
tsconfigDev: {
|
|
20
|
-
compilerOptions: {
|
|
21
|
-
lib: ['es2021'],
|
|
22
|
-
},
|
|
23
|
-
},
|
|
24
|
-
bundledDeps: ['esbuild'],
|
|
25
|
-
|
|
26
|
-
releaseToNpm: true,
|
|
27
|
-
gitignore: ['/.idea/'],
|
|
28
|
-
|
|
29
|
-
githubOptions: {
|
|
30
|
-
mergify: true,
|
|
31
|
-
},
|
|
32
|
-
autoMerge: true,
|
|
33
|
-
autoApproveOptions: {
|
|
34
|
-
allowedUsernames: ['cdklabs-automation'],
|
|
35
|
-
secret: 'GITHUB_TOKEN',
|
|
36
|
-
},
|
|
37
|
-
autoApproveUpgrades: true,
|
|
38
|
-
|
|
39
|
-
stale: true,
|
|
40
|
-
|
|
41
|
-
minNodeVersion: '18.17.0',
|
|
42
|
-
workflowNodeVersion: '18.x',
|
|
43
|
-
});
|
|
44
|
-
|
|
45
|
-
new ProjenStruct(project, { name: 'AppsyncTypescriptFunctionProps' })
|
|
46
|
-
.mixin(Struct.fromFqn('aws-cdk-lib.aws_appsync.AppsyncFunctionProps'))
|
|
47
|
-
.withoutDeprecated()
|
|
48
|
-
.omit('code', 'runtime')
|
|
49
|
-
.add({
|
|
50
|
-
name: 'path',
|
|
51
|
-
type: { primitive: PrimitiveType.String },
|
|
52
|
-
docs: {
|
|
53
|
-
summary: 'Path of typescript file that will be transpiled and bundled',
|
|
54
|
-
},
|
|
55
|
-
}, {
|
|
56
|
-
name: 'sourceMap',
|
|
57
|
-
optional: true,
|
|
58
|
-
type: { primitive: PrimitiveType.Boolean },
|
|
59
|
-
docs: {
|
|
60
|
-
summary: 'Flag to enable or disable source maps in bundled code. defaults to false',
|
|
61
|
-
},
|
|
62
|
-
},
|
|
63
|
-
{
|
|
64
|
-
name: 'replaceStrings',
|
|
65
|
-
optional: true,
|
|
66
|
-
type: { collection: { kind: CollectionKind.Map, elementtype: { primitive: PrimitiveType.String } } },
|
|
67
|
-
docs: {
|
|
68
|
-
summary: 'A map of replacement strings in the bundled code. e.g { ENV: "PROD" }',
|
|
69
|
-
example: '{ ENV: "PROD" }',
|
|
70
|
-
},
|
|
71
|
-
});
|
|
72
|
-
|
|
73
|
-
new ProjenStruct(project, { name: 'TSExpressPipelineResolverProps' })
|
|
74
|
-
.mixin(Struct.fromFqn('aws-cdk-lib.aws_appsync.ResolverProps'))
|
|
75
|
-
.withoutDeprecated()
|
|
76
|
-
.omit(
|
|
77
|
-
'pipelineConfig',
|
|
78
|
-
'requestMappingTemplate',
|
|
79
|
-
'responseMappingTemplate',
|
|
80
|
-
'code',
|
|
81
|
-
'runtime')
|
|
82
|
-
.add({
|
|
83
|
-
name: 'tsFunction',
|
|
84
|
-
type: { fqn: 'cdk-appsync-typescript-resolver.AppsyncTypescriptFunction' },
|
|
85
|
-
docs: {
|
|
86
|
-
summary: 'Instance of AppsyncTypescriptFunction construct',
|
|
87
|
-
see: 'AppsyncTypescriptFunction',
|
|
88
|
-
},
|
|
89
|
-
});
|
|
90
|
-
|
|
91
|
-
project.synth();
|