@ttoss/appsync-api 0.7.1 → 0.7.3

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.3",
543
543
  description: "A library for building GraphQL APIs for AWS AppSync.",
544
544
  license: "UNLICENSED",
545
545
  author: "ttoss",
@@ -572,7 +572,7 @@ var package_default = {
572
572
  sideEffects: false,
573
573
  typings: "dist/index.d.ts",
574
574
  dependencies: {
575
- "@ttoss/cloudformation": "^0.4.0",
575
+ "@ttoss/cloudformation": "^0.5.0",
576
576
  express: "^4.18.2",
577
577
  "graphql-helix": "^1.13.0",
578
578
  minimist: "^1.2.7"
@@ -582,9 +582,9 @@ var package_default = {
582
582
  "graphql-compose": "^9.0.10"
583
583
  },
584
584
  devDependencies: {
585
- "@ttoss/config": "^1.27.0",
585
+ "@ttoss/config": "^1.28.0",
586
586
  "@types/aws-lambda": "^8.10.110",
587
- carlin: "^1.22.1",
587
+ carlin: "^1.23.0",
588
588
  graphql: "^16.6.0",
589
589
  "graphql-compose": "^9.0.10"
590
590
  },
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-5TOD5USB.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-5TOD5USB.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.3",
574
574
  description: "A library for building GraphQL APIs for AWS AppSync.",
575
575
  license: "UNLICENSED",
576
576
  author: "ttoss",
@@ -603,7 +603,7 @@ var package_default = {
603
603
  sideEffects: false,
604
604
  typings: "dist/index.d.ts",
605
605
  dependencies: {
606
- "@ttoss/cloudformation": "^0.4.0",
606
+ "@ttoss/cloudformation": "^0.5.0",
607
607
  express: "^4.18.2",
608
608
  "graphql-helix": "^1.13.0",
609
609
  minimist: "^1.2.7"
@@ -613,9 +613,9 @@ var package_default = {
613
613
  "graphql-compose": "^9.0.10"
614
614
  },
615
615
  devDependencies: {
616
- "@ttoss/config": "^1.27.0",
616
+ "@ttoss/config": "^1.28.0",
617
617
  "@types/aws-lambda": "^8.10.110",
618
- carlin: "^1.22.1",
618
+ carlin: "^1.23.0",
619
619
  graphql: "^16.6.0",
620
620
  "graphql-compose": "^9.0.10"
621
621
  },
@@ -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.3",
4
4
  "description": "A library for building GraphQL APIs for AWS AppSync.",
5
5
  "license": "UNLICENSED",
6
6
  "author": "ttoss",
@@ -33,7 +33,7 @@
33
33
  "sideEffects": false,
34
34
  "typings": "dist/index.d.ts",
35
35
  "dependencies": {
36
- "@ttoss/cloudformation": "^0.4.0",
36
+ "@ttoss/cloudformation": "^0.5.0",
37
37
  "express": "^4.18.2",
38
38
  "graphql-helix": "^1.13.0",
39
39
  "minimist": "^1.2.7"
@@ -43,9 +43,9 @@
43
43
  "graphql-compose": "^9.0.10"
44
44
  },
45
45
  "devDependencies": {
46
- "@ttoss/config": "^1.27.0",
46
+ "@ttoss/config": "^1.28.0",
47
47
  "@types/aws-lambda": "^8.10.110",
48
- "carlin": "^1.22.1",
48
+ "carlin": "^1.23.0",
49
49
  "graphql": "^16.6.0",
50
50
  "graphql-compose": "^9.0.10"
51
51
  },
@@ -68,5 +68,5 @@
68
68
  ]
69
69
  }
70
70
  },
71
- "gitHead": "54403777733bc033dd317217f8cd679ee8244bba"
71
+ "gitHead": "7852c1c6c570e30cd03a603902f45fb4849c7701"
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
  };