@graphitation/graphql-codegen-supermassive-schema-extraction-plugin 1.0.8 → 1.1.0
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/.eslintcache +1 -1
- package/CHANGELOG.md +10 -2
- package/lib/index.js +2 -2
- package/lib/index.mjs +1 -1
- package/package.json +3 -5
package/.eslintcache
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
[{"/mnt/vss/_work/1/s/packages/graphql-codegen-supermassive-schema-extraction-plugin/src/index.ts":"1"},{"size":
|
|
1
|
+
[{"/mnt/vss/_work/1/s/packages/graphql-codegen-supermassive-schema-extraction-plugin/src/index.ts":"1"},{"size":1174,"mtime":1669039470698,"results":"2","hashOfConfig":"3"},{"filePath":"4","messages":"5","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},"1mypjnl","/mnt/vss/_work/1/s/packages/graphql-codegen-supermassive-schema-extraction-plugin/src/index.ts",[]]
|
package/CHANGELOG.md
CHANGED
|
@@ -1,12 +1,20 @@
|
|
|
1
1
|
# Change Log - @graphitation/graphql-codegen-supermassive-schema-extraction-plugin
|
|
2
2
|
|
|
3
|
-
This log was last generated on
|
|
3
|
+
This log was last generated on Mon, 21 Nov 2022 14:11:53 GMT and should not be manually modified.
|
|
4
4
|
|
|
5
5
|
<!-- Start content -->
|
|
6
6
|
|
|
7
|
+
## 1.1.0
|
|
8
|
+
|
|
9
|
+
Mon, 21 Nov 2022 14:11:53 GMT
|
|
10
|
+
|
|
11
|
+
### Minor changes
|
|
12
|
+
|
|
13
|
+
- Supermassive split into multiple packages (jakubvejr@microsoft.com)
|
|
14
|
+
|
|
7
15
|
## 1.0.8
|
|
8
16
|
|
|
9
|
-
Thu, 27 Oct 2022 12:54:
|
|
17
|
+
Thu, 27 Oct 2022 12:54:10 GMT
|
|
10
18
|
|
|
11
19
|
### Patches
|
|
12
20
|
|
package/lib/index.js
CHANGED
|
@@ -46,10 +46,10 @@ __export(src_exports, {
|
|
|
46
46
|
module.exports = __toCommonJS(src_exports);
|
|
47
47
|
var import_typescript = __toESM(require("typescript"));
|
|
48
48
|
var import_graphql2 = require("graphql");
|
|
49
|
-
var
|
|
49
|
+
var import_supermassive_extractors = require("@graphitation/supermassive-extractors");
|
|
50
50
|
var import_path = require("path");
|
|
51
51
|
const plugin = (schema) => {
|
|
52
|
-
const tsContents = (0,
|
|
52
|
+
const tsContents = (0, import_supermassive_extractors.extractImplicitTypesToTypescript)((0, import_graphql2.parse)((0, import_graphql2.printSchema)(schema)));
|
|
53
53
|
const printer = import_typescript.default.createPrinter();
|
|
54
54
|
return printer.printNode(import_typescript.default.EmitHint.SourceFile, tsContents, tsContents);
|
|
55
55
|
};
|
package/lib/index.mjs
CHANGED
|
@@ -22,7 +22,7 @@ var __async = (__this, __arguments, generator) => {
|
|
|
22
22
|
// src/index.ts
|
|
23
23
|
import ts from "typescript";
|
|
24
24
|
import { printSchema, parse } from "graphql";
|
|
25
|
-
import { extractImplicitTypesToTypescript } from "@graphitation/supermassive
|
|
25
|
+
import { extractImplicitTypesToTypescript } from "@graphitation/supermassive-extractors";
|
|
26
26
|
import { extname } from "path";
|
|
27
27
|
var plugin = (schema) => {
|
|
28
28
|
const tsContents = extractImplicitTypesToTypescript(parse(printSchema(schema)));
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@graphitation/graphql-codegen-supermassive-schema-extraction-plugin",
|
|
3
3
|
"license": "MIT",
|
|
4
|
-
"version": "1.0
|
|
4
|
+
"version": "1.1.0",
|
|
5
5
|
"main": "./lib/index",
|
|
6
6
|
"repository": {
|
|
7
7
|
"type": "git",
|
|
@@ -15,15 +15,13 @@
|
|
|
15
15
|
"just": "monorepo-scripts"
|
|
16
16
|
},
|
|
17
17
|
"devDependencies": {
|
|
18
|
-
"@graphitation/supermassive": "*",
|
|
18
|
+
"@graphitation/supermassive-extractors": "*",
|
|
19
19
|
"@graphql-codegen/plugin-helpers": "^1.18.2",
|
|
20
20
|
"@types/jest": "^26.0.22",
|
|
21
21
|
"monorepo-scripts": "*"
|
|
22
22
|
},
|
|
23
23
|
"peerDependencies": {
|
|
24
|
-
"@graphql-codegen/plugin-helpers": ">= 1.18.0 < 2"
|
|
25
|
-
"typescript": "^4.4.3 <4.5.0",
|
|
26
|
-
"@graphitation/supermassive": "^1.1.7"
|
|
24
|
+
"@graphql-codegen/plugin-helpers": ">= 1.18.0 < 2"
|
|
27
25
|
},
|
|
28
26
|
"dependencies": {
|
|
29
27
|
"typescript": "^4.4.3 <4.5.0"
|