@visualbravo/zenstack-cache 1.0.4 → 1.0.5

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/dist/plugin.cjs CHANGED
@@ -38,7 +38,7 @@ function defineCachePlugin(pluginOptions) {
38
38
  args,
39
39
  model,
40
40
  operation,
41
- auth: client.$auth
41
+ authId: client.$auth ? Object.keys(client.$auth).filter((key$1) => client.$schema.models[client.$schema.authType].idFields.includes(key$1)).join("_") : void 0
42
42
  });
43
43
  if (!json) throw new Error(`Failed to serialize cache entry for ${lowerCaseFirst(model)}.${operation}`);
44
44
  const cache = pluginOptions.provider;
package/dist/plugin.mjs CHANGED
@@ -36,7 +36,7 @@ function defineCachePlugin(pluginOptions) {
36
36
  args,
37
37
  model,
38
38
  operation,
39
- auth: client.$auth
39
+ authId: client.$auth ? Object.keys(client.$auth).filter((key$1) => client.$schema.models[client.$schema.authType].idFields.includes(key$1)).join("_") : void 0
40
40
  });
41
41
  if (!json) throw new Error(`Failed to serialize cache entry for ${lowerCaseFirst(model)}.${operation}`);
42
42
  const cache = pluginOptions.provider;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@visualbravo/zenstack-cache",
3
- "version": "1.0.4",
3
+ "version": "1.0.5",
4
4
  "keywords": [
5
5
  "accelerate",
6
6
  "cache",