@graphql-codegen/visitor-plugin-common 4.0.0-alpha-20230516100505-a720d57f8 → 4.0.0-alpha-20230516105319-614b2d240
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/utils.js +2 -8
- package/esm/utils.js +2 -8
- package/package.json +2 -2
package/cjs/utils.js
CHANGED
|
@@ -259,14 +259,8 @@ function buildScalars(schema, scalarsMapping, defaultScalarsMapping = scalars_js
|
|
|
259
259
|
const mappedScalar = scalarsMapping[name];
|
|
260
260
|
if (typeof mappedScalar === 'object' && mappedScalar.input && mappedScalar.output) {
|
|
261
261
|
result[name] = {
|
|
262
|
-
input:
|
|
263
|
-
|
|
264
|
-
type: mappedScalar.input,
|
|
265
|
-
},
|
|
266
|
-
output: {
|
|
267
|
-
isExternal: false,
|
|
268
|
-
type: mappedScalar.output,
|
|
269
|
-
},
|
|
262
|
+
input: (0, mappers_js_1.parseMapper)(mappedScalar.input, name),
|
|
263
|
+
output: (0, mappers_js_1.parseMapper)(mappedScalar.output, name),
|
|
270
264
|
};
|
|
271
265
|
}
|
|
272
266
|
else {
|
package/esm/utils.js
CHANGED
|
@@ -244,14 +244,8 @@ export function buildScalars(schema, scalarsMapping, defaultScalarsMapping = DEF
|
|
|
244
244
|
const mappedScalar = scalarsMapping[name];
|
|
245
245
|
if (typeof mappedScalar === 'object' && mappedScalar.input && mappedScalar.output) {
|
|
246
246
|
result[name] = {
|
|
247
|
-
input:
|
|
248
|
-
|
|
249
|
-
type: mappedScalar.input,
|
|
250
|
-
},
|
|
251
|
-
output: {
|
|
252
|
-
isExternal: false,
|
|
253
|
-
type: mappedScalar.output,
|
|
254
|
-
},
|
|
247
|
+
input: parseMapper(mappedScalar.input, name),
|
|
248
|
+
output: parseMapper(mappedScalar.output, name),
|
|
255
249
|
};
|
|
256
250
|
}
|
|
257
251
|
else {
|
package/package.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@graphql-codegen/visitor-plugin-common",
|
|
3
|
-
"version": "4.0.0-alpha-
|
|
3
|
+
"version": "4.0.0-alpha-20230516105319-614b2d240",
|
|
4
4
|
"peerDependencies": {
|
|
5
5
|
"graphql": "^0.8.0 || ^0.9.0 || ^0.10.0 || ^0.11.0 || ^0.12.0 || ^0.13.0 || ^14.0.0 || ^15.0.0 || ^16.0.0"
|
|
6
6
|
},
|
|
7
7
|
"dependencies": {
|
|
8
8
|
"@graphql-tools/optimize": "^1.3.0",
|
|
9
|
-
"@graphql-codegen/plugin-helpers": "4.2.1-alpha-
|
|
9
|
+
"@graphql-codegen/plugin-helpers": "4.2.1-alpha-20230516105319-614b2d240",
|
|
10
10
|
"@graphql-tools/relay-operation-optimizer": "^6.5.0",
|
|
11
11
|
"@graphql-tools/utils": "^9.0.0",
|
|
12
12
|
"auto-bind": "~4.0.0",
|