@ttoss/appsync-api 0.7.1 → 0.7.2

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.
@@ -539,7 +539,7 @@ var getPackageLambdaLayerStackName = (packageName) => {
539
539
  // package.json
540
540
  var package_default = {
541
541
  name: "@ttoss/appsync-api",
542
- version: "0.7.1",
542
+ version: "0.7.2",
543
543
  description: "A library for building GraphQL APIs for AWS AppSync.",
544
544
  license: "UNLICENSED",
545
545
  author: "ttoss",
package/dist/esm/cli.js CHANGED
@@ -1,7 +1,7 @@
1
1
  /** Powered by @ttoss/config. https://ttoss.dev/docs/modules/packages/config/ */
2
2
  import {
3
3
  AppSyncGraphQLSchemaLogicalId
4
- } from "./chunk-F5DPPZQE.js";
4
+ } from "./chunk-QJWASMKO.js";
5
5
  import "./chunk-NQOARNEJ.js";
6
6
 
7
7
  // src/cli.ts
package/dist/esm/index.js CHANGED
@@ -1,7 +1,7 @@
1
1
  /** Powered by @ttoss/config. https://ttoss.dev/docs/modules/packages/config/ */
2
2
  import {
3
3
  createApiTemplate
4
- } from "./chunk-F5DPPZQE.js";
4
+ } from "./chunk-QJWASMKO.js";
5
5
  import "./chunk-NQOARNEJ.js";
6
6
 
7
7
  // src/createAppSyncResolverHandler.ts
@@ -12,7 +12,12 @@ var createAppSyncResolverHandler = ({
12
12
  const { info, arguments: args, source } = event;
13
13
  const { parentTypeName, fieldName } = info;
14
14
  const resolver = schemaComposer.getResolveMethods()[parentTypeName][fieldName];
15
- return resolver(source, args, { ...context, ...event.identity }, info);
15
+ return resolver(
16
+ source,
17
+ args,
18
+ { ...context, identity: event.identity },
19
+ info
20
+ );
16
21
  };
17
22
  };
18
23
  export {
package/dist/index.js CHANGED
@@ -570,7 +570,7 @@ var getPackageLambdaLayerStackName = (packageName) => {
570
570
  // package.json
571
571
  var package_default = {
572
572
  name: "@ttoss/appsync-api",
573
- version: "0.7.1",
573
+ version: "0.7.2",
574
574
  description: "A library for building GraphQL APIs for AWS AppSync.",
575
575
  license: "UNLICENSED",
576
576
  author: "ttoss",
@@ -848,7 +848,12 @@ var createAppSyncResolverHandler = ({
848
848
  const { info, arguments: args, source } = event;
849
849
  const { parentTypeName, fieldName } = info;
850
850
  const resolver = schemaComposer.getResolveMethods()[parentTypeName][fieldName];
851
- return resolver(source, args, { ...context, ...event.identity }, info);
851
+ return resolver(
852
+ source,
853
+ args,
854
+ { ...context, identity: event.identity },
855
+ info
856
+ );
852
857
  };
853
858
  };
854
859
  // Annotate the CommonJS export names for ESM import in node:
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ttoss/appsync-api",
3
- "version": "0.7.1",
3
+ "version": "0.7.2",
4
4
  "description": "A library for building GraphQL APIs for AWS AppSync.",
5
5
  "license": "UNLICENSED",
6
6
  "author": "ttoss",
@@ -68,5 +68,5 @@
68
68
  ]
69
69
  }
70
70
  },
71
- "gitHead": "54403777733bc033dd317217f8cd679ee8244bba"
71
+ "gitHead": "10be24617873f18eee0400543cace2a8e8c5ceee"
72
72
  }
@@ -18,6 +18,11 @@ export const createAppSyncResolverHandler = ({
18
18
  const resolver = (
19
19
  schemaComposer.getResolveMethods()[parentTypeName] as any
20
20
  )[fieldName];
21
- return resolver(source, args, { ...context, ...event.identity }, info);
21
+ return resolver(
22
+ source,
23
+ args,
24
+ { ...context, identity: event.identity },
25
+ info
26
+ );
22
27
  };
23
28
  };