From 5425f45606e62e783a4cd48814f3ccc49b79bd1b Mon Sep 17 00:00:00 2001 From: svozza Date: Fri, 8 Nov 2024 17:47:32 +0000 Subject: [PATCH] address initial PR comments --- packages/parser/package.json | 18 ++++++++++++++++-- packages/parser/src/schemas/appsync.ts | 2 +- 2 files changed, 17 insertions(+), 3 deletions(-) diff --git a/packages/parser/package.json b/packages/parser/package.json index 6aa7e7430..2a93f634c 100644 --- a/packages/parser/package.json +++ b/packages/parser/package.json @@ -59,6 +59,10 @@ "require": "./lib/cjs/schemas/apigwv2.js", "import": "./lib/esm/schemas/apigwv2.js" }, + "./schemas/appsync": { + "require": "./lib/cjs/schemas/appsync.js", + "import": "./lib/esm/schemas/appsync.js" + }, "./schemas/cloudformation-custom-resources": { "require": "./lib/cjs/schemas/cloudformation-custom-resources.js", "import": "./lib/esm/schemas/cloudformation-custom-resources.js" @@ -203,6 +207,10 @@ "./lib/cjs/schemas/apigwv2.d.ts", "./lib/esm/schemas/apigwv2.d.ts" ], + "schemas/appsync": [ + "./lib/cjs/schemas/appsync.d.ts", + "./lib/esm/schemas/appsync.d.ts" + ], "schemas/cloudformation-custom-resources": [ "./lib/cjs/schemas/cloudformation-custom-resources.d.ts", "./lib/esm/schemas/cloudformation-custom-resources.d.ts" @@ -235,7 +243,10 @@ "./lib/cjs/schemas/lambda.d.ts", "./lib/esm/schemas/lambda.d.ts" ], - "schemas/s3": ["./lib/cjs/schemas/s3.d.ts", "./lib/esm/schemas/s3.d.ts"], + "schemas/s3": [ + "./lib/cjs/schemas/s3.d.ts", + "./lib/esm/schemas/s3.d.ts" + ], "schemas/ses": [ "./lib/cjs/schemas/ses.d.ts", "./lib/esm/schemas/ses.d.ts" @@ -312,7 +323,10 @@ "./lib/cjs/envelopes/vpc-latticev2.d.ts", "./lib/esm/envelopes/vpc-latticev2.d.ts" ], - "helpers": ["./lib/cjs/helpers.d.ts", "./lib/esm/helpers.d.ts"] + "helpers": [ + "./lib/cjs/helpers.d.ts", + "./lib/esm/helpers.d.ts" + ] } }, "main": "./lib/cjs/index.js", diff --git a/packages/parser/src/schemas/appsync.ts b/packages/parser/src/schemas/appsync.ts index 10efca8be..0ef16a295 100644 --- a/packages/parser/src/schemas/appsync.ts +++ b/packages/parser/src/schemas/appsync.ts @@ -131,7 +131,7 @@ const AppSyncResolverSchema = z.object({ * A zod schema for a batch AppSync resolver event * * @example - * /* + * ```json * [{ * "arguments": { * "id": "1973493"