cdk-appsync-typescript-resolver 0.0.22 → 0.0.24
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 +4 -4
- package/API.md +1 -1
- package/README.md +1 -1
- 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 +55 -23
- 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",
|
|
@@ -3370,7 +3370,7 @@
|
|
|
3370
3370
|
},
|
|
3371
3371
|
"name": "cdk-appsync-typescript-resolver",
|
|
3372
3372
|
"readme": {
|
|
3373
|
-
"markdown": "# cdk-appsync-typescript-resolver\n\n[](https://www.npmjs.com/package/cdk-appsync-typescript-resolver)\n[](https://app.codacy.com/gh/sudokar/cdk-appsync-typescript-resolver/dashboard?utm_source=gh&utm_medium=referral&utm_content=&utm_campaign=Badge_grade)\n[](https://github.com/sudokar/cdk-appsync-typescript-resolver/actions/workflows/release.yml)\n[](https://github.com/sudokar/cdk-appsync-typescript-resolver/releases)\n[](https://opensource.org/licenses/Apache-2.0)\n[](https://github.com/sudokar/nx-serverless)\n](https://img.shields.io/npm/v/cdk-appsync-typescript-resolver)](https://www.npmjs.com/package/cdk-appsync-typescript-resolver)\n[](https://app.codacy.com/gh/sudokar/cdk-appsync-typescript-resolver/dashboard?utm_source=gh&utm_medium=referral&utm_content=&utm_campaign=Badge_grade)\n[](https://github.com/sudokar/cdk-appsync-typescript-resolver/actions/workflows/release.yml)\n[](https://github.com/sudokar/cdk-appsync-typescript-resolver/releases)\n[](https://opensource.org/licenses/Apache-2.0)\n[](https://github.com/sudokar/nx-serverless)\n\n[](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[](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",
|
|
@@ -3788,6 +3788,6 @@
|
|
|
3788
3788
|
"symbolId": "src/TSExpressPipelineResolverProps:TSExpressPipelineResolverProps"
|
|
3789
3789
|
}
|
|
3790
3790
|
},
|
|
3791
|
-
"version": "0.0.
|
|
3792
|
-
"fingerprint": "
|
|
3791
|
+
"version": "0.0.24",
|
|
3792
|
+
"fingerprint": "8WeNf59sBeWr9Y/7OJh5iO7lhmnA8YrucwLoevEC6no="
|
|
3793
3793
|
}
|
package/API.md
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
[](https://github.com/sudokar/cdk-appsync-typescript-resolver/releases)
|
|
7
7
|
[](https://opensource.org/licenses/Apache-2.0)
|
|
8
8
|
[](https://github.com/sudokar/nx-serverless)
|
|
9
|
-

|
|
10
10
|
[](https://gitpod.io/#https://github.com/sudokar/cdk-appsync-typescript-resolver)
|
|
11
11
|
|
|
12
12
|
Constructs to transpile and bundle Typescript to valid AWS Appsync's JS resolvers
|
package/README.md
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
[](https://github.com/sudokar/cdk-appsync-typescript-resolver/releases)
|
|
7
7
|
[](https://opensource.org/licenses/Apache-2.0)
|
|
8
8
|
[](https://github.com/sudokar/nx-serverless)
|
|
9
|
-

|
|
10
10
|
[](https://gitpod.io/#https://github.com/sudokar/cdk-appsync-typescript-resolver)
|
|
11
11
|
|
|
12
12
|
Constructs to transpile and bundle Typescript to valid AWS Appsync's JS resolvers
|
|
@@ -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.24" };
|
|
27
27
|
exports.AppsyncTypescriptFunction = AppsyncTypescriptFunction;
|
|
28
28
|
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiQXBwc3luY1R5cGVzY3JpcHRGdW5jdGlvbi5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uL3NyYy9BcHBzeW5jVHlwZXNjcmlwdEZ1bmN0aW9uLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7O0FBQUEsbURBQW1EO0FBR25ELHVDQUFtQztBQUVuQzs7R0FFRztBQUNILE1BQWEseUJBQTBCLFNBQVEsT0FBTyxDQUFDLGVBQWU7SUFDcEUsWUFDRSxLQUFpQixFQUNqQixFQUFVLEVBQ1YsS0FBcUM7UUFFckMsTUFBTSxFQUFFLElBQUksRUFBRSxTQUFTLEVBQUUsY0FBYyxFQUFFLEdBQUcsS0FBSyxDQUFDO1FBQ2xELEtBQUssQ0FBQyxLQUFLLEVBQUUsRUFBRSxFQUFFO1lBQ2YsR0FBRyxLQUFLO1lBQ1IsSUFBSSxFQUFFLE9BQU8sQ0FBQyxJQUFJLENBQUMsVUFBVSxDQUMzQixJQUFBLGdCQUFNLEVBQUM7Z0JBQ0wsVUFBVSxFQUFFLElBQUk7Z0JBQ2hCLFNBQVMsRUFBRSxTQUFTLElBQUksS0FBSztnQkFDN0IsY0FBYzthQUNmLENBQUMs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vdXJjZU1hcCA/PyBmYWxzZSxcbiAgICAgICAgICByZXBsYWNlU3RyaW5ncyxcbiAgICAgICAgfSksXG4gICAgICApLFxuICAgICAgcnVudGltZTogYXBwc3luYy5GdW5jdGlvblJ1bnRpbWUuSlNfMV8wXzAsXG4gICAgfSk7XG4gIH1cbn1cbiJdfQ==
|
|
@@ -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,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiQXBwc3luY1R5cGVzY3JpcHRGdW5jdGlvblByb3BzLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vc3JjL0FwcHN5bmNUeXBlc2NyaXB0RnVuY3Rpb25Qcm9wcy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiIiwic291cmNlc0NvbnRlbnQiOlsiLy8gfn4gR2VuZXJhdGVkIGJ5IHByb2plbi4gVG8gbW9kaWZ5LCBlZGl0IC5wcm9qZW5yYy50cyBhbmQgcnVuIFwibnB4IHByb2plblwiLlxuaW1wb3J0IHR5cGUgeyBhd3NfYXBwc3luYyB9IGZyb20gJ2F3cy1jZGstbGliJztcblxuLyoqXG4gKiBBcHBzeW5jVHlwZXNjcmlwdEZ1bmN0aW9uUHJvcHNcbiAqL1xuZXhwb3J0IGludGVyZmFjZSBBcHBzeW5jVHlwZXNjcmlwdEZ1bmN0aW9uUHJvcHMge1xuICAvKipcbiAgICogdGhlIGRhdGEgc291cmNlIGxpbmtlZCB0byB0aGlzIEFwcFN5bmMgRnVuY3Rpb24uXG4gICAqIEBzdGFiaWxpdHkgc3RhYmxlXG4gICAqL1xuICByZWFkb25seSBkYXRhU291cmNlOiBhd3NfYXBwc3luYy5CYXNlRGF0YVNvdXJjZTtcbiAgLyoqXG4gICAqIHRoZSBHcmFwaFFM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KipcbiAgICogQSBtYXAgb2YgcmVwbGFjZW1lbnQgc3RyaW5ncyBpbiB0aGUgYnVuZGxlZCBjb2RlLiBlLmcgeyBFTlY6IFwiUFJPRFwiIH1cbiAgICovXG4gIHJlYWRvbmx5IHJlcGxhY2VTdHJpbmdzPzogUmVjb3JkPHN0cmluZywgc3RyaW5nPjtcbiAgLyoqXG4gICAqIEZsYWcgdG8gZW5hYmxlIG9yIGRpc2FibGUgc291cmNlIG1hcHMgaW4gYnVuZGxlZCBjb2RlLiBkZWZhdWx0cyB0byBmYWxzZVxuICAgKi9cbiAgcmVhZG9ubHkgc291cmNlTWFwPzogYm9vbGVhbjtcbiAgLyoqXG4gICAqIFBhdGggb2YgdHlwZXNjcmlwdCBmaWxlIHRoYXQgd2lsbCBiZSB0cmFuc3BpbGVkIGFuZCBidW5kbGVkXG4gICAqL1xuICByZWFkb25seSBwYXRoOiBzdHJpbmc7XG59XG4iXX0=
|
|
@@ -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.24" };
|
|
33
33
|
exports.TSExpressPipelineResolver = TSExpressPipelineResolver;
|
|
34
34
|
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiVFNFeHByZXNzUGlwZWxpbmVSZXNvbHZlci5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uL3NyYy9UU0V4cHJlc3NQaXBlbGluZVJlc29sdmVyLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7O0FBQUEsbURBQW1EO0FBSW5ELE1BQU0sbUJBQW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2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
3
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiVFNFeHByZXNzUGlwZWxpbmVSZXNvbHZlclByb3BzLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vc3JjL1RTRXhwcmVzc1BpcGVsaW5lUmVzb2x2ZXJQcm9wcy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiIiwic291cmNlc0NvbnRlbnQiOlsiLy8gfn4gR2VuZXJhdGVkIGJ5IHByb2plbi4gVG8gbW9kaWZ5LCBlZGl0IC5wcm9qZW5yYy50cyBhbmQgcnVuIFwibnB4IHByb2plblwiLlxuaW1wb3J0IHR5cGUgeyBhd3NfYXBwc3luYyB9IGZyb20gJ2F3cy1jZGstbGliJztcbmltcG9ydCB0eXBlIHsgQXBwc3luY1R5cGVzY3JpcHRGdW5jdGlvbiB9IGZyb20gJy4vJztcblxuLyoqXG4gKiBUU0V4cHJlc3NQaXBlbGluZVJlc29sdmVyUHJvcHNcbiAqL1xuZXhwb3J0IGludGVyZmFjZSBUU0V4cHJlc3NQaXBlbGluZVJlc29sdmVyUHJvcHMge1xuICAvKipcbiAgICogVGhlIEFQSSB0aGlzIHJlc29sdmVyIGlzIGF0dGFjaGVkIHRvLlxuICAgKiBAc3RhYmlsaXR5IHN0YWJsZVxuICAgKi9cbiAgcmVhZG9ubHkgYXBpOiBhd3NfYXBwc3luYy5JR3JhcGhxbEFwaTtcbiAgLyoqXG4gICAqIFRoZSBkYXRhIHNvdXJjZSB0aGlzIHJlc29sdmVyIGlzIHVzaW5nLlxuICAgKiBAZGVmYXVsdCAtIE5vIGRhdGFzb3VyY2VcbiAgICogQHN0YWJpbGl0eSBzdGFibGVcbiAgICovXG4gIHJlYWRvbmx5IGRhdGFTb3VyY2U/OiBhd3NfYXBwc3luYy5CYXNlRGF0YVN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|
|
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
|
|
@@ -746,8 +747,8 @@ function createChannel(streamIn) {
|
|
|
746
747
|
if (isFirstPacket) {
|
|
747
748
|
isFirstPacket = false;
|
|
748
749
|
let binaryVersion = String.fromCharCode(...bytes);
|
|
749
|
-
if (binaryVersion !== "0.
|
|
750
|
-
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)}`);
|
|
751
752
|
}
|
|
752
753
|
return;
|
|
753
754
|
}
|
|
@@ -890,7 +891,6 @@ function createChannel(streamIn) {
|
|
|
890
891
|
start(null);
|
|
891
892
|
};
|
|
892
893
|
let formatMessages2 = ({ callName, refs, messages, options, callback }) => {
|
|
893
|
-
let result = sanitizeMessages(messages, "messages", null, "");
|
|
894
894
|
if (!options)
|
|
895
895
|
throw new Error(`Missing second argument in ${callName}() call`);
|
|
896
896
|
let keys = {};
|
|
@@ -904,7 +904,7 @@ function createChannel(streamIn) {
|
|
|
904
904
|
throw new Error(`Expected "kind" to be "error" or "warning" in ${callName}() call`);
|
|
905
905
|
let request = {
|
|
906
906
|
command: "format-msgs",
|
|
907
|
-
messages:
|
|
907
|
+
messages: sanitizeMessages(messages, "messages", null, "", terminalWidth),
|
|
908
908
|
isWarning: kind === "warning"
|
|
909
909
|
};
|
|
910
910
|
if (color !== void 0)
|
|
@@ -1356,9 +1356,9 @@ var handlePlugins = async (buildKey, sendRequest, sendResponse, refs, streamIn,
|
|
|
1356
1356
|
let warnings = getFlag(result, keys, "warnings", mustBeArray);
|
|
1357
1357
|
checkForInvalidFlags(result, keys, `from onStart() callback in plugin ${quote(name)}`);
|
|
1358
1358
|
if (errors != null)
|
|
1359
|
-
response.errors.push(...sanitizeMessages(errors, "errors", details, name));
|
|
1359
|
+
response.errors.push(...sanitizeMessages(errors, "errors", details, name, void 0));
|
|
1360
1360
|
if (warnings != null)
|
|
1361
|
-
response.warnings.push(...sanitizeMessages(warnings, "warnings", details, name));
|
|
1361
|
+
response.warnings.push(...sanitizeMessages(warnings, "warnings", details, name, void 0));
|
|
1362
1362
|
}
|
|
1363
1363
|
} catch (e) {
|
|
1364
1364
|
response.errors.push(extractErrorMessageV8(e, streamIn, details, note && note(), name));
|
|
@@ -1411,9 +1411,9 @@ var handlePlugins = async (buildKey, sendRequest, sendResponse, refs, streamIn,
|
|
|
1411
1411
|
if (pluginData != null)
|
|
1412
1412
|
response.pluginData = details.store(pluginData);
|
|
1413
1413
|
if (errors != null)
|
|
1414
|
-
response.errors = sanitizeMessages(errors, "errors", details, name);
|
|
1414
|
+
response.errors = sanitizeMessages(errors, "errors", details, name, void 0);
|
|
1415
1415
|
if (warnings != null)
|
|
1416
|
-
response.warnings = sanitizeMessages(warnings, "warnings", details, name);
|
|
1416
|
+
response.warnings = sanitizeMessages(warnings, "warnings", details, name, void 0);
|
|
1417
1417
|
if (watchFiles != null)
|
|
1418
1418
|
response.watchFiles = sanitizeStringArray(watchFiles, "watchFiles");
|
|
1419
1419
|
if (watchDirs != null)
|
|
@@ -1436,7 +1436,8 @@ var handlePlugins = async (buildKey, sendRequest, sendResponse, refs, streamIn,
|
|
|
1436
1436
|
path: request.path,
|
|
1437
1437
|
namespace: request.namespace,
|
|
1438
1438
|
suffix: request.suffix,
|
|
1439
|
-
pluginData: details.load(request.pluginData)
|
|
1439
|
+
pluginData: details.load(request.pluginData),
|
|
1440
|
+
with: request.with
|
|
1440
1441
|
});
|
|
1441
1442
|
if (result != null) {
|
|
1442
1443
|
if (typeof result !== "object")
|
|
@@ -1466,9 +1467,9 @@ var handlePlugins = async (buildKey, sendRequest, sendResponse, refs, streamIn,
|
|
|
1466
1467
|
if (loader != null)
|
|
1467
1468
|
response.loader = loader;
|
|
1468
1469
|
if (errors != null)
|
|
1469
|
-
response.errors = sanitizeMessages(errors, "errors", details, name);
|
|
1470
|
+
response.errors = sanitizeMessages(errors, "errors", details, name, void 0);
|
|
1470
1471
|
if (warnings != null)
|
|
1471
|
-
response.warnings = sanitizeMessages(warnings, "warnings", details, name);
|
|
1472
|
+
response.warnings = sanitizeMessages(warnings, "warnings", details, name, void 0);
|
|
1472
1473
|
if (watchFiles != null)
|
|
1473
1474
|
response.watchFiles = sanitizeStringArray(watchFiles, "watchFiles");
|
|
1474
1475
|
if (watchDirs != null)
|
|
@@ -1501,9 +1502,9 @@ var handlePlugins = async (buildKey, sendRequest, sendResponse, refs, streamIn,
|
|
|
1501
1502
|
let warnings = getFlag(value, keys, "warnings", mustBeArray);
|
|
1502
1503
|
checkForInvalidFlags(value, keys, `from onEnd() callback in plugin ${quote(name)}`);
|
|
1503
1504
|
if (errors != null)
|
|
1504
|
-
newErrors = sanitizeMessages(errors, "errors", details, name);
|
|
1505
|
+
newErrors = sanitizeMessages(errors, "errors", details, name, void 0);
|
|
1505
1506
|
if (warnings != null)
|
|
1506
|
-
newWarnings = sanitizeMessages(warnings, "warnings", details, name);
|
|
1507
|
+
newWarnings = sanitizeMessages(warnings, "warnings", details, name, void 0);
|
|
1507
1508
|
}
|
|
1508
1509
|
} catch (e) {
|
|
1509
1510
|
newErrors = [extractErrorMessageV8(e, streamIn, details, note && note(), name)];
|
|
@@ -1668,7 +1669,7 @@ function replaceDetailsInMessages(messages, stash) {
|
|
|
1668
1669
|
}
|
|
1669
1670
|
return messages;
|
|
1670
1671
|
}
|
|
1671
|
-
function sanitizeLocation(location, where) {
|
|
1672
|
+
function sanitizeLocation(location, where, terminalWidth) {
|
|
1672
1673
|
if (location == null)
|
|
1673
1674
|
return null;
|
|
1674
1675
|
let keys = {};
|
|
@@ -1680,6 +1681,15 @@ function sanitizeLocation(location, where) {
|
|
|
1680
1681
|
let lineText = getFlag(location, keys, "lineText", mustBeString);
|
|
1681
1682
|
let suggestion = getFlag(location, keys, "suggestion", mustBeString);
|
|
1682
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
|
+
}
|
|
1683
1693
|
return {
|
|
1684
1694
|
file: file || "",
|
|
1685
1695
|
namespace: namespace || "",
|
|
@@ -1690,7 +1700,7 @@ function sanitizeLocation(location, where) {
|
|
|
1690
1700
|
suggestion: suggestion || ""
|
|
1691
1701
|
};
|
|
1692
1702
|
}
|
|
1693
|
-
function sanitizeMessages(messages, property, stash, fallbackPluginName) {
|
|
1703
|
+
function sanitizeMessages(messages, property, stash, fallbackPluginName, terminalWidth) {
|
|
1694
1704
|
let messagesClone = [];
|
|
1695
1705
|
let index = 0;
|
|
1696
1706
|
for (const message of messages) {
|
|
@@ -1712,7 +1722,7 @@ function sanitizeMessages(messages, property, stash, fallbackPluginName) {
|
|
|
1712
1722
|
checkForInvalidFlags(note, noteKeys, where);
|
|
1713
1723
|
notesClone.push({
|
|
1714
1724
|
text: noteText || "",
|
|
1715
|
-
location: sanitizeLocation(noteLocation, where)
|
|
1725
|
+
location: sanitizeLocation(noteLocation, where, terminalWidth)
|
|
1716
1726
|
});
|
|
1717
1727
|
}
|
|
1718
1728
|
}
|
|
@@ -1720,7 +1730,7 @@ function sanitizeMessages(messages, property, stash, fallbackPluginName) {
|
|
|
1720
1730
|
id: id || "",
|
|
1721
1731
|
pluginName: pluginName || fallbackPluginName,
|
|
1722
1732
|
text: text || "",
|
|
1723
|
-
location: sanitizeLocation(location, where),
|
|
1733
|
+
location: sanitizeLocation(location, where, terminalWidth),
|
|
1724
1734
|
notes: notesClone,
|
|
1725
1735
|
detail: stash ? stash.store(detail) : -1
|
|
1726
1736
|
});
|
|
@@ -1768,6 +1778,7 @@ var knownWindowsPackages = {
|
|
|
1768
1778
|
"win32 x64 LE": "@esbuild/win32-x64"
|
|
1769
1779
|
};
|
|
1770
1780
|
var knownUnixlikePackages = {
|
|
1781
|
+
"aix ppc64 BE": "@esbuild/aix-ppc64",
|
|
1771
1782
|
"android arm64 LE": "@esbuild/android-arm64",
|
|
1772
1783
|
"darwin arm64 LE": "@esbuild/darwin-arm64",
|
|
1773
1784
|
"darwin x64 LE": "@esbuild/darwin-x64",
|
|
@@ -1930,7 +1941,7 @@ for your current platform.`);
|
|
|
1930
1941
|
"node_modules",
|
|
1931
1942
|
".cache",
|
|
1932
1943
|
"esbuild",
|
|
1933
|
-
`pnpapi-${pkg.replace("/", "-")}-${"0.
|
|
1944
|
+
`pnpapi-${pkg.replace("/", "-")}-${"0.20.0"}-${path.basename(subpath)}`
|
|
1934
1945
|
);
|
|
1935
1946
|
if (!fs.existsSync(binTargetPath)) {
|
|
1936
1947
|
fs.mkdirSync(path.dirname(binTargetPath), { recursive: true });
|
|
@@ -1965,7 +1976,7 @@ if (process.env.ESBUILD_WORKER_THREADS !== "0") {
|
|
|
1965
1976
|
}
|
|
1966
1977
|
}
|
|
1967
1978
|
var _a;
|
|
1968
|
-
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";
|
|
1969
1980
|
var esbuildCommandAndArgs = () => {
|
|
1970
1981
|
if ((!ESBUILD_BINARY_PATH || false) && (path2.basename(__filename) !== "main.js" || path2.basename(__dirname) !== "lib")) {
|
|
1971
1982
|
throw new Error(
|
|
@@ -2032,7 +2043,7 @@ var fsAsync = {
|
|
|
2032
2043
|
}
|
|
2033
2044
|
}
|
|
2034
2045
|
};
|
|
2035
|
-
var version = "0.
|
|
2046
|
+
var version = "0.20.0";
|
|
2036
2047
|
var build = (options) => ensureServiceIsRunning().build(options);
|
|
2037
2048
|
var context = (buildOptions) => ensureServiceIsRunning().context(buildOptions);
|
|
2038
2049
|
var transform = (input, options) => ensureServiceIsRunning().transform(input, options);
|
|
@@ -2121,6 +2132,13 @@ var analyzeMetafileSync = (metafile, options) => {
|
|
|
2121
2132
|
}));
|
|
2122
2133
|
return result;
|
|
2123
2134
|
};
|
|
2135
|
+
var stop = () => {
|
|
2136
|
+
if (stopService)
|
|
2137
|
+
stopService();
|
|
2138
|
+
if (workerThreadService)
|
|
2139
|
+
workerThreadService.stop();
|
|
2140
|
+
return Promise.resolve();
|
|
2141
|
+
};
|
|
2124
2142
|
var initializeWasCalled = false;
|
|
2125
2143
|
var initialize = (options) => {
|
|
2126
2144
|
options = validateInitializeOptions(options || {});
|
|
@@ -2138,11 +2156,12 @@ var initialize = (options) => {
|
|
|
2138
2156
|
};
|
|
2139
2157
|
var defaultWD = process.cwd();
|
|
2140
2158
|
var longLivedService;
|
|
2159
|
+
var stopService;
|
|
2141
2160
|
var ensureServiceIsRunning = () => {
|
|
2142
2161
|
if (longLivedService)
|
|
2143
2162
|
return longLivedService;
|
|
2144
2163
|
let [command, args] = esbuildCommandAndArgs();
|
|
2145
|
-
let child = child_process.spawn(command, args.concat(`--service=${"0.
|
|
2164
|
+
let child = child_process.spawn(command, args.concat(`--service=${"0.20.0"}`, "--ping"), {
|
|
2146
2165
|
windowsHide: true,
|
|
2147
2166
|
stdio: ["pipe", "pipe", "inherit"],
|
|
2148
2167
|
cwd: defaultWD
|
|
@@ -2165,6 +2184,14 @@ var ensureServiceIsRunning = () => {
|
|
|
2165
2184
|
const stdout = child.stdout;
|
|
2166
2185
|
stdout.on("data", readFromStdout);
|
|
2167
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
|
+
};
|
|
2168
2195
|
let refCount = 0;
|
|
2169
2196
|
child.unref();
|
|
2170
2197
|
if (stdin.unref) {
|
|
@@ -2242,7 +2269,7 @@ var runServiceSync = (callback) => {
|
|
|
2242
2269
|
esbuild: node_exports
|
|
2243
2270
|
});
|
|
2244
2271
|
callback(service);
|
|
2245
|
-
let stdout = child_process.execFileSync(command, args.concat(`--service=${"0.
|
|
2272
|
+
let stdout = child_process.execFileSync(command, args.concat(`--service=${"0.20.0"}`), {
|
|
2246
2273
|
cwd: defaultWD,
|
|
2247
2274
|
windowsHide: true,
|
|
2248
2275
|
input: stdin,
|
|
@@ -2262,7 +2289,7 @@ var workerThreadService = null;
|
|
|
2262
2289
|
var startWorkerThreadService = (worker_threads2) => {
|
|
2263
2290
|
let { port1: mainPort, port2: workerPort } = new worker_threads2.MessageChannel();
|
|
2264
2291
|
let worker = new worker_threads2.Worker(__filename, {
|
|
2265
|
-
workerData: { workerPort, defaultWD, esbuildVersion: "0.
|
|
2292
|
+
workerData: { workerPort, defaultWD, esbuildVersion: "0.20.0" },
|
|
2266
2293
|
transferList: [workerPort],
|
|
2267
2294
|
// From node's documentation: https://nodejs.org/api/worker_threads.html
|
|
2268
2295
|
//
|
|
@@ -2328,6 +2355,10 @@ error: ${text}`);
|
|
|
2328
2355
|
},
|
|
2329
2356
|
analyzeMetafileSync(metafile, options) {
|
|
2330
2357
|
return runCallSync("analyzeMetafile", [metafile, options]);
|
|
2358
|
+
},
|
|
2359
|
+
stop() {
|
|
2360
|
+
worker.terminate();
|
|
2361
|
+
workerThreadService = null;
|
|
2331
2362
|
}
|
|
2332
2363
|
};
|
|
2333
2364
|
};
|
|
@@ -2398,6 +2429,7 @@ var node_default = node_exports;
|
|
|
2398
2429
|
formatMessages,
|
|
2399
2430
|
formatMessagesSync,
|
|
2400
2431
|
initialize,
|
|
2432
|
+
stop,
|
|
2401
2433
|
transform,
|
|
2402
2434
|
transformSync,
|
|
2403
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.15",
|
|
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.22",
|
|
56
|
+
"projen": "^0.79.21",
|
|
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.24",
|
|
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();
|