@graphql-mesh/plugin-live-query 0.2.17 → 0.2.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.
package/cjs/index.js CHANGED
@@ -1,10 +1,10 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  const live_query_1 = require("@envelop/live-query");
4
- const in_memory_live_query_store_1 = require("@n1ru4l/in-memory-live-query-store");
5
- const useInvalidateByResult_js_1 = require("./useInvalidateByResult.js");
6
4
  const cross_helpers_1 = require("@graphql-mesh/cross-helpers");
7
5
  const string_interpolation_1 = require("@graphql-mesh/string-interpolation");
6
+ const in_memory_live_query_store_1 = require("@n1ru4l/in-memory-live-query-store");
7
+ const useInvalidateByResult_js_1 = require("./useInvalidateByResult.js");
8
8
  function useMeshLiveQuery(options) {
9
9
  options.logger.debug(`Creating Live Query Store`);
10
10
  const liveQueryStore = new in_memory_live_query_store_1.InMemoryLiveQueryStore({
@@ -1,8 +1,8 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.useInvalidateByResult = void 0;
4
- const string_interpolation_1 = require("@graphql-mesh/string-interpolation");
5
4
  const graphql_1 = require("graphql");
5
+ const string_interpolation_1 = require("@graphql-mesh/string-interpolation");
6
6
  function useInvalidateByResult(params) {
7
7
  const liveQueryInvalidationFactoryMap = new Map();
8
8
  params.invalidations.forEach(liveQueryInvalidation => {
package/esm/index.js CHANGED
@@ -1,8 +1,8 @@
1
1
  import { useLiveQuery } from '@envelop/live-query';
2
- import { defaultResourceIdentifierNormalizer, InMemoryLiveQueryStore, } from '@n1ru4l/in-memory-live-query-store';
3
- import { useInvalidateByResult } from './useInvalidateByResult.js';
4
2
  import { process } from '@graphql-mesh/cross-helpers';
5
3
  import { stringInterpolator } from '@graphql-mesh/string-interpolation';
4
+ import { defaultResourceIdentifierNormalizer, InMemoryLiveQueryStore, } from '@n1ru4l/in-memory-live-query-store';
5
+ import { useInvalidateByResult } from './useInvalidateByResult.js';
6
6
  export default function useMeshLiveQuery(options) {
7
7
  options.logger.debug(`Creating Live Query Store`);
8
8
  const liveQueryStore = new InMemoryLiveQueryStore({
@@ -1,5 +1,5 @@
1
- import { getInterpolatedStringFactory, } from '@graphql-mesh/string-interpolation';
2
1
  import { getArgumentValues, getOperationAST, TypeInfo, visit, visitWithTypeInfo } from 'graphql';
2
+ import { getInterpolatedStringFactory, } from '@graphql-mesh/string-interpolation';
3
3
  export function useInvalidateByResult(params) {
4
4
  const liveQueryInvalidationFactoryMap = new Map();
5
5
  params.invalidations.forEach(liveQueryInvalidation => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@graphql-mesh/plugin-live-query",
3
- "version": "0.2.17",
3
+ "version": "0.2.18-alpha-20230321145025-cc027190e",
4
4
  "sideEffects": false,
5
5
  "peerDependencies": {
6
6
  "graphql": "*"
@@ -10,7 +10,7 @@
10
10
  "@envelop/live-query": "5.0.6",
11
11
  "@graphql-mesh/cross-helpers": "0.3.3",
12
12
  "@graphql-mesh/string-interpolation": "0.4.2",
13
- "@graphql-mesh/types": "0.91.9",
13
+ "@graphql-mesh/types": "0.91.10-alpha-20230321145025-cc027190e",
14
14
  "@n1ru4l/in-memory-live-query-store": "0.10.0",
15
15
  "tslib": "^2.4.0"
16
16
  },
@@ -1,3 +1,3 @@
1
- import { MeshPluginOptions, YamlConfig } from '@graphql-mesh/types';
2
1
  import { Plugin } from '@envelop/core';
2
+ import { MeshPluginOptions, YamlConfig } from '@graphql-mesh/types';
3
3
  export default function useMeshLiveQuery(options: MeshPluginOptions<YamlConfig.LiveQueryConfig>): Plugin;
@@ -1,3 +1,3 @@
1
- import { MeshPluginOptions, YamlConfig } from '@graphql-mesh/types';
2
1
  import { Plugin } from '@envelop/core';
2
+ import { MeshPluginOptions, YamlConfig } from '@graphql-mesh/types';
3
3
  export default function useMeshLiveQuery(options: MeshPluginOptions<YamlConfig.LiveQueryConfig>): Plugin;