@graphcommerce/graphql-codegen-near-operation-file 9.0.0-canary.55 → 9.0.0-canary.57
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/CHANGELOG.md
CHANGED
@@ -1,5 +1,9 @@
|
|
1
1
|
# Change Log
|
2
2
|
|
3
|
+
## 9.0.0-canary.57
|
4
|
+
|
5
|
+
## 9.0.0-canary.56
|
6
|
+
|
3
7
|
## 9.0.0-canary.55
|
4
8
|
|
5
9
|
## 9.0.0-canary.54
|
@@ -66,8 +70,7 @@
|
|
66
70
|
|
67
71
|
### Patch Changes
|
68
72
|
|
69
|
-
- [#2289](https://github.com/graphcommerce-org/graphcommerce/pull/2289) [`d2a6f58`](https://github.com/graphcommerce-org/graphcommerce/commit/d2a6f58276abadb132473d4da2d7d25e0b996106) - Do not require fragments to be marked @injectable but always accept @inject directives.
|
70
|
-
([@paales](https://github.com/paales))
|
73
|
+
- [#2289](https://github.com/graphcommerce-org/graphcommerce/pull/2289) [`d2a6f58`](https://github.com/graphcommerce-org/graphcommerce/commit/d2a6f58276abadb132473d4da2d7d25e0b996106) - Do not require fragments to be marked @injectable but always accept @inject directives. ([@paales](https://github.com/paales))
|
71
74
|
|
72
75
|
## 8.1.0-canary.23
|
73
76
|
|
package/dist/directive/env.js
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.envDirective =
|
3
|
+
exports.envDirective = envDirective;
|
4
4
|
const graphql_1 = require("graphql");
|
5
5
|
/**
|
6
6
|
* Implements the env directive:
|
@@ -24,4 +24,3 @@ function envDirective(documentFiles) {
|
|
24
24
|
return keep;
|
25
25
|
});
|
26
26
|
}
|
27
|
-
exports.envDirective = envDirective;
|
@@ -1,6 +1,6 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.injectableDirective =
|
3
|
+
exports.injectableDirective = injectableDirective;
|
4
4
|
const graphql_1 = require("graphql");
|
5
5
|
function isFragment(document) {
|
6
6
|
let is = false;
|
@@ -109,4 +109,3 @@ function injectableDirective(documentFiles) {
|
|
109
109
|
injectors.forEach((d) => injectInjectable(injectables, d));
|
110
110
|
return documentFiles;
|
111
111
|
}
|
112
|
-
exports.injectableDirective = injectableDirective;
|
@@ -1,6 +1,7 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.buildFragmentRegistry =
|
3
|
+
exports.buildFragmentRegistry = buildFragmentRegistry;
|
4
|
+
exports.default = buildFragmentResolver;
|
4
5
|
const visitor_plugin_common_1 = require("@graphql-codegen/visitor-plugin-common");
|
5
6
|
const graphql_1 = require("graphql");
|
6
7
|
const utils_1 = require("./utils");
|
@@ -77,7 +78,6 @@ ${duplicateFragmentNames.join('\n')}\n\n`);
|
|
77
78
|
}
|
78
79
|
return registry;
|
79
80
|
}
|
80
|
-
exports.buildFragmentRegistry = buildFragmentRegistry;
|
81
81
|
/** Builds a fragment "resolver" that collects `externalFragments` definitions and `fragmentImportStatements` */
|
82
82
|
function buildFragmentResolver(collectorOptions, presetOptions, schemaObject) {
|
83
83
|
const fragmentRegistry = buildFragmentRegistry(collectorOptions, presetOptions, schemaObject);
|
@@ -128,4 +128,3 @@ function buildFragmentResolver(collectorOptions, presetOptions, schemaObject) {
|
|
128
128
|
}
|
129
129
|
return resolveFragments;
|
130
130
|
}
|
131
|
-
exports.default = buildFragmentResolver;
|
@@ -23,7 +23,7 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
23
23
|
return result;
|
24
24
|
};
|
25
25
|
Object.defineProperty(exports, "__esModule", { value: true });
|
26
|
-
exports.resolveDocumentImports =
|
26
|
+
exports.resolveDocumentImports = resolveDocumentImports;
|
27
27
|
/* eslint-disable @typescript-eslint/no-non-null-assertion */
|
28
28
|
/* eslint-disable import/no-cycle */
|
29
29
|
const path_1 = require("path");
|
@@ -121,4 +121,3 @@ function resolveDocumentImports(presetOptions, schemaObject, importResolverOptio
|
|
121
121
|
});
|
122
122
|
return resDocuments.filter((result) => result.filename.startsWith((0, path_1.resolve)(baseDir, baseOutputDir).replace(/\\/g, '/')));
|
123
123
|
}
|
124
|
-
exports.resolveDocumentImports = resolveDocumentImports;
|
package/dist/utils.js
CHANGED
@@ -3,7 +3,9 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
3
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
4
4
|
};
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
6
|
-
exports.
|
6
|
+
exports.defineFilepathSubfolder = defineFilepathSubfolder;
|
7
|
+
exports.appendExtensionToFilePath = appendExtensionToFilePath;
|
8
|
+
exports.extractExternalFragmentsInUse = extractExternalFragmentsInUse;
|
7
9
|
/* eslint-disable import/no-cycle */
|
8
10
|
const path_1 = require("path");
|
9
11
|
const graphql_1 = require("graphql");
|
@@ -12,12 +14,10 @@ function defineFilepathSubfolder(baseFilePath, folder) {
|
|
12
14
|
const parsedPath = (0, parse_filepath_1.default)(baseFilePath);
|
13
15
|
return (0, path_1.join)(parsedPath.dir, folder, parsedPath.base).replace(/\\/g, '/');
|
14
16
|
}
|
15
|
-
exports.defineFilepathSubfolder = defineFilepathSubfolder;
|
16
17
|
function appendExtensionToFilePath(baseFilePath, extension) {
|
17
18
|
const parsedPath = (0, parse_filepath_1.default)(baseFilePath);
|
18
19
|
return (0, path_1.join)(parsedPath.dir, parsedPath.name + extension).replace(/\\/g, '/');
|
19
20
|
}
|
20
|
-
exports.appendExtensionToFilePath = appendExtensionToFilePath;
|
21
21
|
function extractExternalFragmentsInUse(documentNode, fragmentNameToFile, result = {}, level = 0) {
|
22
22
|
const ignoreList = new Set();
|
23
23
|
// First, take all fragments definition from the current file, and mark them as ignored
|
@@ -42,4 +42,3 @@ function extractExternalFragmentsInUse(documentNode, fragmentNameToFile, result
|
|
42
42
|
});
|
43
43
|
return result;
|
44
44
|
}
|
45
|
-
exports.extractExternalFragmentsInUse = extractExternalFragmentsInUse;
|
package/package.json
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
"name": "@graphcommerce/graphql-codegen-near-operation-file",
|
3
3
|
"homepage": "https://www.graphcommerce.org/",
|
4
4
|
"repository": "github:graphcommerce-org/graphcommerce",
|
5
|
-
"version": "9.0.0-canary.
|
5
|
+
"version": "9.0.0-canary.57",
|
6
6
|
"sideEffects": false,
|
7
7
|
"type": "commonjs",
|
8
8
|
"main": "dist/index.js",
|
@@ -20,17 +20,17 @@
|
|
20
20
|
}
|
21
21
|
},
|
22
22
|
"dependencies": {
|
23
|
-
"@graphql-codegen/add": "5.0.
|
24
|
-
"@graphql-codegen/plugin-helpers": "5.0.
|
25
|
-
"@graphql-codegen/visitor-plugin-common": "
|
26
|
-
"@graphql-tools/utils": "^10.
|
23
|
+
"@graphql-codegen/add": "5.0.3",
|
24
|
+
"@graphql-codegen/plugin-helpers": "5.0.4",
|
25
|
+
"@graphql-codegen/visitor-plugin-common": "5.3.1",
|
26
|
+
"@graphql-tools/utils": "^10.3.2",
|
27
27
|
"@types/parse-filepath": "^1.0.2",
|
28
28
|
"parse-filepath": "^1.0.2"
|
29
29
|
},
|
30
30
|
"peerDependencies": {
|
31
|
-
"@graphcommerce/eslint-config-pwa": "^9.0.0-canary.
|
32
|
-
"@graphcommerce/prettier-config-pwa": "^9.0.0-canary.
|
33
|
-
"@graphcommerce/typescript-config-pwa": "^9.0.0-canary.
|
31
|
+
"@graphcommerce/eslint-config-pwa": "^9.0.0-canary.57",
|
32
|
+
"@graphcommerce/prettier-config-pwa": "^9.0.0-canary.57",
|
33
|
+
"@graphcommerce/typescript-config-pwa": "^9.0.0-canary.57",
|
34
34
|
"graphql": "^16.7.1"
|
35
35
|
}
|
36
36
|
}
|