@graphql-codegen/typescript-urql-graphcache 2.2.12 → 2.2.14-alpha-df7bf6266.0

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.
Files changed (3) hide show
  1. package/index.js +2 -6
  2. package/index.mjs +2 -6
  3. package/package.json +2 -2
package/index.js CHANGED
@@ -136,9 +136,7 @@ function getRootUpdatersConfig(schema, convertName, config) {
136
136
  });
137
137
  return updaters;
138
138
  }
139
- else {
140
- return null;
141
- }
139
+ return null;
142
140
  });
143
141
  return {
144
142
  mutationUpdaters,
@@ -164,9 +162,7 @@ function getOptimisticUpdatersConfig(schema, convertName, config) {
164
162
  });
165
163
  return optimistic;
166
164
  }
167
- else {
168
- return null;
169
- }
165
+ return null;
170
166
  }
171
167
  function getImports(config) {
172
168
  return (`${config.useTypeImports ? 'import type' : 'import'} { Resolver as GraphCacheResolver, UpdateResolver as GraphCacheUpdateResolver, OptimisticMutationResolver as GraphCacheOptimisticMutationResolver, StorageAdapter as GraphCacheStorageAdapter } from '@urql/exchange-graphcache';\n` +
package/index.mjs CHANGED
@@ -132,9 +132,7 @@ function getRootUpdatersConfig(schema, convertName, config) {
132
132
  });
133
133
  return updaters;
134
134
  }
135
- else {
136
- return null;
137
- }
135
+ return null;
138
136
  });
139
137
  return {
140
138
  mutationUpdaters,
@@ -160,9 +158,7 @@ function getOptimisticUpdatersConfig(schema, convertName, config) {
160
158
  });
161
159
  return optimistic;
162
160
  }
163
- else {
164
- return null;
165
- }
161
+ return null;
166
162
  }
167
163
  function getImports(config) {
168
164
  return (`${config.useTypeImports ? 'import type' : 'import'} { Resolver as GraphCacheResolver, UpdateResolver as GraphCacheUpdateResolver, OptimisticMutationResolver as GraphCacheOptimisticMutationResolver, StorageAdapter as GraphCacheStorageAdapter } from '@urql/exchange-graphcache';\n` +
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@graphql-codegen/typescript-urql-graphcache",
3
- "version": "2.2.12",
3
+ "version": "2.2.14-alpha-df7bf6266.0",
4
4
  "description": "GraphQL Code Generator plugin for generating a generic to be used in graphcache cache config",
5
5
  "peerDependencies": {
6
6
  "@urql/exchange-graphcache": "^4.1.1",
@@ -9,7 +9,7 @@
9
9
  },
10
10
  "dependencies": {
11
11
  "@graphql-codegen/plugin-helpers": "^2.4.0",
12
- "@graphql-codegen/visitor-plugin-common": "2.7.6",
12
+ "@graphql-codegen/visitor-plugin-common": "2.9.0-alpha-df7bf6266.0",
13
13
  "auto-bind": "~4.0.0",
14
14
  "change-case-all": "1.0.14",
15
15
  "tslib": "~2.4.0"