@graphql-codegen/cli 5.0.5-alpha-20250213020613-b15414b5e67e00906dfdfa2ce09a7c9cc064178b → 5.0.5-alpha-20250305095421-b22d7edea4edf2476d193eccc74d5ff69373a898
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/patterns.js
CHANGED
|
@@ -7,7 +7,6 @@ const utils_1 = require("@graphql-tools/utils");
|
|
|
7
7
|
const plugin_helpers_1 = require("@graphql-codegen/plugin-helpers");
|
|
8
8
|
const is_glob_1 = tslib_1.__importDefault(require("is-glob"));
|
|
9
9
|
const micromatch_1 = tslib_1.__importDefault(require("micromatch"));
|
|
10
|
-
const helpers_js_1 = require("./helpers.js");
|
|
11
10
|
/**
|
|
12
11
|
* Flatten a list of pattern sets to be a list of only the affirmative patterns
|
|
13
12
|
* are contained in all of them.
|
|
@@ -150,7 +149,7 @@ const makePatternsFromSchemas = (schemas) => {
|
|
|
150
149
|
const patterns = [];
|
|
151
150
|
for (const s of schemas) {
|
|
152
151
|
const schema = s;
|
|
153
|
-
if (
|
|
152
|
+
if ((0, is_glob_1.default)(schema) || (0, utils_1.isValidPath)(schema)) {
|
|
154
153
|
patterns.push(schema);
|
|
155
154
|
}
|
|
156
155
|
}
|
package/esm/utils/patterns.js
CHANGED
|
@@ -3,7 +3,6 @@ import { isValidPath } from '@graphql-tools/utils';
|
|
|
3
3
|
import { normalizeInstanceOrArray } from '@graphql-codegen/plugin-helpers';
|
|
4
4
|
import isGlob from 'is-glob';
|
|
5
5
|
import mm from 'micromatch';
|
|
6
|
-
import { isURL } from './helpers.js';
|
|
7
6
|
/**
|
|
8
7
|
* Flatten a list of pattern sets to be a list of only the affirmative patterns
|
|
9
8
|
* are contained in all of them.
|
|
@@ -142,7 +141,7 @@ const makePatternsFromSchemas = (schemas) => {
|
|
|
142
141
|
const patterns = [];
|
|
143
142
|
for (const s of schemas) {
|
|
144
143
|
const schema = s;
|
|
145
|
-
if (
|
|
144
|
+
if (isGlob(schema) || isValidPath(schema)) {
|
|
146
145
|
patterns.push(schema);
|
|
147
146
|
}
|
|
148
147
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@graphql-codegen/cli",
|
|
3
|
-
"version": "5.0.5-alpha-
|
|
3
|
+
"version": "5.0.5-alpha-20250305095421-b22d7edea4edf2476d193eccc74d5ff69373a898",
|
|
4
4
|
"peerDependenciesMeta": {
|
|
5
5
|
"@parcel/watcher": {
|
|
6
6
|
"optional": true
|
|
@@ -14,9 +14,9 @@
|
|
|
14
14
|
"@babel/generator": "^7.18.13",
|
|
15
15
|
"@babel/template": "^7.18.10",
|
|
16
16
|
"@babel/types": "^7.18.13",
|
|
17
|
-
"@graphql-codegen/client-preset": "
|
|
18
|
-
"@graphql-codegen/core": "
|
|
19
|
-
"@graphql-codegen/plugin-helpers": "
|
|
17
|
+
"@graphql-codegen/client-preset": "4.6.2-alpha-20250305095421-b22d7edea4edf2476d193eccc74d5ff69373a898",
|
|
18
|
+
"@graphql-codegen/core": "4.0.3-alpha-20250305095421-b22d7edea4edf2476d193eccc74d5ff69373a898",
|
|
19
|
+
"@graphql-codegen/plugin-helpers": "6.0.0-alpha-20250305095421-b22d7edea4edf2476d193eccc74d5ff69373a898",
|
|
20
20
|
"@graphql-tools/apollo-engine-loader": "^8.0.0",
|
|
21
21
|
"@graphql-tools/code-file-loader": "^8.0.0",
|
|
22
22
|
"@graphql-tools/git-loader": "^8.0.0",
|
package/cjs/utils/helpers.js
DELETED
package/esm/utils/helpers.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare function isURL(str: string): boolean;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare function isURL(str: string): boolean;
|