@graphql-tools/utils 11.0.0-alpha-20250924153515-3751f8516e3574cdd5775626a4f44e799a9c60bc → 11.0.0-alpha-20250924154028-1622fafe0f672d0c41ae751327b4f849bfff0d9f
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/mapSchema.js +2 -1
- package/esm/mapSchema.js +2 -1
- package/package.json +1 -1
package/cjs/mapSchema.js
CHANGED
|
@@ -21,10 +21,11 @@ function mapSchema(schema, schemaMapper = {}) {
|
|
|
21
21
|
directives,
|
|
22
22
|
});
|
|
23
23
|
}
|
|
24
|
+
const builtinTypes = ['String', 'ID', 'Int', 'Float', 'Boolean'];
|
|
24
25
|
function mapTypes(originalTypeMap, schema, schemaMapper, testFn = () => true) {
|
|
25
26
|
const newTypeMap = {};
|
|
26
27
|
for (const typeName in originalTypeMap) {
|
|
27
|
-
if (!typeName.startsWith('__')) {
|
|
28
|
+
if (!typeName.startsWith('__') && !builtinTypes.includes(typeName)) {
|
|
28
29
|
const originalType = originalTypeMap[typeName];
|
|
29
30
|
if (originalType == null || !testFn(originalType)) {
|
|
30
31
|
newTypeMap[typeName] = originalType;
|
package/esm/mapSchema.js
CHANGED
|
@@ -17,10 +17,11 @@ export function mapSchema(schema, schemaMapper = {}) {
|
|
|
17
17
|
directives,
|
|
18
18
|
});
|
|
19
19
|
}
|
|
20
|
+
const builtinTypes = ['String', 'ID', 'Int', 'Float', 'Boolean'];
|
|
20
21
|
function mapTypes(originalTypeMap, schema, schemaMapper, testFn = () => true) {
|
|
21
22
|
const newTypeMap = {};
|
|
22
23
|
for (const typeName in originalTypeMap) {
|
|
23
|
-
if (!typeName.startsWith('__')) {
|
|
24
|
+
if (!typeName.startsWith('__') && !builtinTypes.includes(typeName)) {
|
|
24
25
|
const originalType = originalTypeMap[typeName];
|
|
25
26
|
if (originalType == null || !testFn(originalType)) {
|
|
26
27
|
newTypeMap[typeName] = originalType;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@graphql-tools/utils",
|
|
3
|
-
"version": "11.0.0-alpha-
|
|
3
|
+
"version": "11.0.0-alpha-20250924154028-1622fafe0f672d0c41ae751327b4f849bfff0d9f",
|
|
4
4
|
"description": "Common package containing utils and types for GraphQL tools",
|
|
5
5
|
"sideEffects": false,
|
|
6
6
|
"peerDependencies": {
|