@graphql-mesh/transform-cache 0.13.17 → 0.13.18-alpha-20230321145025-cc027190e

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.
@@ -1,8 +1,8 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.computeCacheKey = void 0;
4
- const string_interpolation_1 = require("@graphql-mesh/string-interpolation");
5
4
  const cross_helpers_1 = require("@graphql-mesh/cross-helpers");
5
+ const string_interpolation_1 = require("@graphql-mesh/string-interpolation");
6
6
  function computeCacheKey(options) {
7
7
  const argsHash = options.args ? (0, string_interpolation_1.hashObject)(options.args) : '';
8
8
  const fieldNamesHash = (0, string_interpolation_1.hashObject)(options.info.fieldNodes);
package/cjs/index.js CHANGED
@@ -1,9 +1,9 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- const resolvers_composition_1 = require("@graphql-tools/resolvers-composition");
4
- const compute_cache_key_js_1 = require("./compute-cache-key.js");
5
3
  const utils_1 = require("@graphql-mesh/utils");
4
+ const resolvers_composition_1 = require("@graphql-tools/resolvers-composition");
6
5
  const schema_1 = require("@graphql-tools/schema");
6
+ const compute_cache_key_js_1 = require("./compute-cache-key.js");
7
7
  class CacheTransform {
8
8
  constructor(options) {
9
9
  this.options = options;
@@ -1,5 +1,5 @@
1
- import { stringInterpolator, hashObject } from '@graphql-mesh/string-interpolation';
2
1
  import { process } from '@graphql-mesh/cross-helpers';
2
+ import { hashObject, stringInterpolator } from '@graphql-mesh/string-interpolation';
3
3
  export function computeCacheKey(options) {
4
4
  const argsHash = options.args ? hashObject(options.args) : '';
5
5
  const fieldNamesHash = hashObject(options.info.fieldNodes);
package/esm/index.js CHANGED
@@ -1,7 +1,7 @@
1
- import { composeResolvers } from '@graphql-tools/resolvers-composition';
2
- import { computeCacheKey } from './compute-cache-key.js';
3
1
  import { extractResolvers } from '@graphql-mesh/utils';
2
+ import { composeResolvers } from '@graphql-tools/resolvers-composition';
4
3
  import { addResolversToSchema } from '@graphql-tools/schema';
4
+ import { computeCacheKey } from './compute-cache-key.js';
5
5
  export default class CacheTransform {
6
6
  constructor(options) {
7
7
  this.options = options;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@graphql-mesh/transform-cache",
3
- "version": "0.13.17",
3
+ "version": "0.13.18-alpha-20230321145025-cc027190e",
4
4
  "sideEffects": false,
5
5
  "peerDependencies": {
6
6
  "graphql": "*"
@@ -8,8 +8,8 @@
8
8
  "dependencies": {
9
9
  "@graphql-mesh/cross-helpers": "0.3.3",
10
10
  "@graphql-mesh/string-interpolation": "0.4.2",
11
- "@graphql-mesh/types": "0.91.9",
12
- "@graphql-mesh/utils": "0.43.17",
11
+ "@graphql-mesh/types": "0.91.10-alpha-20230321145025-cc027190e",
12
+ "@graphql-mesh/utils": "0.43.18-alpha-20230321145025-cc027190e",
13
13
  "@graphql-tools/resolvers-composition": "6.5.17",
14
14
  "@graphql-tools/schema": "9.0.16",
15
15
  "@graphql-tools/utils": "9.2.1",
@@ -1,5 +1,5 @@
1
- import { MeshTransform, MeshTransformOptions, YamlConfig } from '@graphql-mesh/types';
2
1
  import { GraphQLSchema } from 'graphql';
2
+ import { MeshTransform, MeshTransformOptions, YamlConfig } from '@graphql-mesh/types';
3
3
  export default class CacheTransform implements MeshTransform {
4
4
  private options;
5
5
  noWrap: boolean;
@@ -1,5 +1,5 @@
1
- import { MeshTransform, MeshTransformOptions, YamlConfig } from '@graphql-mesh/types';
2
1
  import { GraphQLSchema } from 'graphql';
2
+ import { MeshTransform, MeshTransformOptions, YamlConfig } from '@graphql-mesh/types';
3
3
  export default class CacheTransform implements MeshTransform {
4
4
  private options;
5
5
  noWrap: boolean;