@graphql-codegen/typescript-urql-graphcache 2.2.15-alpha-7a65ba05d.0 → 2.2.17
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/index.js +2 -3
- package/index.mjs +2 -3
- package/package.json +2 -2
package/index.js
CHANGED
|
@@ -181,9 +181,8 @@ const plugin = (schema, _documents, config) => {
|
|
|
181
181
|
`export type WithTypename<T extends { __typename?: any }> = T & { __typename: NonNullable<T['__typename']> };`,
|
|
182
182
|
keys,
|
|
183
183
|
'export type GraphCacheResolvers = {\n' + resolvers.join(',\n') + '\n};',
|
|
184
|
-
'export type GraphCacheOptimisticUpdaters =
|
|
185
|
-
(optimisticUpdaters ? optimisticUpdaters.join(',\n ') : '{}')
|
|
186
|
-
'\n};',
|
|
184
|
+
'export type GraphCacheOptimisticUpdaters = ' +
|
|
185
|
+
(optimisticUpdaters ? '{\n ' + optimisticUpdaters.join(',\n ') + '\n};' : '{};'),
|
|
187
186
|
'export type GraphCacheUpdaters = {\n' +
|
|
188
187
|
' Mutation?: ' +
|
|
189
188
|
(mutationUpdaters ? `{\n ${mutationUpdaters.join(',\n ')}\n }` : '{}') +
|
package/index.mjs
CHANGED
|
@@ -177,9 +177,8 @@ const plugin = (schema, _documents, config) => {
|
|
|
177
177
|
`export type WithTypename<T extends { __typename?: any }> = T & { __typename: NonNullable<T['__typename']> };`,
|
|
178
178
|
keys,
|
|
179
179
|
'export type GraphCacheResolvers = {\n' + resolvers.join(',\n') + '\n};',
|
|
180
|
-
'export type GraphCacheOptimisticUpdaters =
|
|
181
|
-
(optimisticUpdaters ? optimisticUpdaters.join(',\n ') : '{}')
|
|
182
|
-
'\n};',
|
|
180
|
+
'export type GraphCacheOptimisticUpdaters = ' +
|
|
181
|
+
(optimisticUpdaters ? '{\n ' + optimisticUpdaters.join(',\n ') + '\n};' : '{};'),
|
|
183
182
|
'export type GraphCacheUpdaters = {\n' +
|
|
184
183
|
' Mutation?: ' +
|
|
185
184
|
(mutationUpdaters ? `{\n ${mutationUpdaters.join(',\n ')}\n }` : '{}') +
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@graphql-codegen/typescript-urql-graphcache",
|
|
3
|
-
"version": "2.2.
|
|
3
|
+
"version": "2.2.17",
|
|
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.
|
|
12
|
+
"@graphql-codegen/visitor-plugin-common": "2.10.0",
|
|
13
13
|
"auto-bind": "~4.0.0",
|
|
14
14
|
"change-case-all": "1.0.14",
|
|
15
15
|
"tslib": "~2.4.0"
|