@things-factory/shell 6.0.71 → 6.0.75

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.
@@ -10,7 +10,7 @@ class GraphqlLocalClient {
10
10
  link: new schema_1.SchemaLink({
11
11
  schema,
12
12
  context: (obj, args, context, info) => {
13
- return obj.getContext();
13
+ return Object.assign(Object.assign({}, obj.getContext()), { app });
14
14
  }
15
15
  })
16
16
  });
@@ -1 +1 @@
1
- {"version":3,"file":"graphql-local-client.js","sourceRoot":"","sources":["../server/graphql-local-client.ts"],"names":[],"mappings":";;;AAAA,uDAAuD;AACvD,2CAAmF;AAEnF,MAAa,kBAAkB;IAG7B,MAAM,CAAC,IAAI,CAAC,MAAM,EAAE,GAAG;QACrB,kBAAkB,CAAC,MAAM,GAAG,IAAI,qBAAY,CAAC;YAC3C,KAAK,EAAE,IAAI,sBAAa,EAAE;YAC1B,IAAI,EAAE,IAAI,mBAAU,CAAC;gBACnB,MAAM;gBACN,OAAO,EAAE,CAAC,GAAG,EAAE,IAAI,EAAE,OAAO,EAAE,IAAI,EAAE,EAAE;oBACpC,OAAO,GAAG,CAAC,UAAU,EAAE,CAAA;gBACzB,CAAC;aACF,CAAC;SACH,CAAC,CAAA;IACJ,CAAC;CACF;AAdD,gDAcC","sourcesContent":["import { SchemaLink } from '@apollo/client/link/schema'\nimport { ApolloClient, InMemoryCache, NormalizedCacheObject } from '@apollo/client'\n\nexport class GraphqlLocalClient {\n static client: ApolloClient<NormalizedCacheObject>\n\n static init(schema, app) {\n GraphqlLocalClient.client = new ApolloClient({\n cache: new InMemoryCache(),\n link: new SchemaLink({\n schema,\n context: (obj, args, context, info) => {\n return obj.getContext()\n }\n })\n })\n }\n}\n"]}
1
+ {"version":3,"file":"graphql-local-client.js","sourceRoot":"","sources":["../server/graphql-local-client.ts"],"names":[],"mappings":";;;AAAA,uDAAuD;AACvD,2CAAmF;AAEnF,MAAa,kBAAkB;IAG7B,MAAM,CAAC,IAAI,CAAC,MAAM,EAAE,GAAG;QACrB,kBAAkB,CAAC,MAAM,GAAG,IAAI,qBAAY,CAAC;YAC3C,KAAK,EAAE,IAAI,sBAAa,EAAE;YAC1B,IAAI,EAAE,IAAI,mBAAU,CAAC;gBACnB,MAAM;gBACN,OAAO,EAAE,CAAC,GAAG,EAAE,IAAI,EAAE,OAAO,EAAE,IAAI,EAAE,EAAE;oBACpC,uCACK,GAAG,CAAC,UAAU,EAAE,KACnB,GAAG,IACJ;gBACH,CAAC;aACF,CAAC;SACH,CAAC,CAAA;IACJ,CAAC;CACF;AAjBD,gDAiBC","sourcesContent":["import { SchemaLink } from '@apollo/client/link/schema'\nimport { ApolloClient, InMemoryCache, NormalizedCacheObject } from '@apollo/client'\n\nexport class GraphqlLocalClient {\n static client: ApolloClient<NormalizedCacheObject>\n\n static init(schema, app) {\n GraphqlLocalClient.client = new ApolloClient({\n cache: new InMemoryCache(),\n link: new SchemaLink({\n schema,\n context: (obj, args, context, info) => {\n return {\n ...obj.getContext(),\n app\n }\n }\n })\n })\n }\n}\n"]}