@graphitation/graphql-codegen-supermassive-schema-extraction-plugin 1.1.3 → 1.2.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 +11 -2
- package/lib/index.d.ts +1 -1
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js.map +7 -0
- package/lib/index.mjs.map +7 -0
- package/package.json +6 -5
package/.eslintcache
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
[{"/mnt/vss/_work/1/s/packages/graphql-codegen-supermassive-schema-extraction-plugin/src/index.ts":"1"},{"size":1174,"mtime":
|
|
1
|
+
[{"/mnt/vss/_work/1/s/packages/graphql-codegen-supermassive-schema-extraction-plugin/src/index.ts":"1"},{"size":1174,"mtime":1687260856297,"results":"2","hashOfConfig":"3"},{"filePath":"4","messages":"5","suppressedMessages":"6","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},"1fxhjif","/mnt/vss/_work/1/s/packages/graphql-codegen-supermassive-schema-extraction-plugin/src/index.ts",[],[]]
|
package/CHANGELOG.md
CHANGED
|
@@ -1,12 +1,21 @@
|
|
|
1
1
|
# Change Log - @graphitation/graphql-codegen-supermassive-schema-extraction-plugin
|
|
2
2
|
|
|
3
|
-
This log was last generated on Tue,
|
|
3
|
+
This log was last generated on Tue, 20 Jun 2023 11:38:28 GMT and should not be manually modified.
|
|
4
4
|
|
|
5
5
|
<!-- Start content -->
|
|
6
6
|
|
|
7
|
+
## 1.2.0
|
|
8
|
+
|
|
9
|
+
Tue, 20 Jun 2023 11:38:28 GMT
|
|
10
|
+
|
|
11
|
+
### Minor changes
|
|
12
|
+
|
|
13
|
+
- Bump TS version in dev, move TS to peerDep (mnovikov@microsoft.com)
|
|
14
|
+
- Bump @graphitation/supermassive-extractors to v2.2.0
|
|
15
|
+
|
|
7
16
|
## 1.1.3
|
|
8
17
|
|
|
9
|
-
Tue, 18 Apr 2023 13:
|
|
18
|
+
Tue, 18 Apr 2023 13:36:20 GMT
|
|
10
19
|
|
|
11
20
|
### Patches
|
|
12
21
|
|
package/lib/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { PluginValidateFn, PluginFunction } from "@graphql-codegen/plugin-helpers";
|
|
2
2
|
import { RawClientSideBasePluginConfig } from "@graphql-codegen/visitor-plugin-common";
|
|
3
|
-
|
|
3
|
+
type PluginConfig = RawClientSideBasePluginConfig & {
|
|
4
4
|
files: string[];
|
|
5
5
|
};
|
|
6
6
|
export declare const plugin: PluginFunction<PluginConfig>;
|
package/lib/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,gBAAgB,EAChB,cAAc,EACf,MAAM,iCAAiC,CAAC;AAMzC,OAAO,EAAE,6BAA6B,EAAE,MAAM,wCAAwC,CAAC;AAEvF,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,gBAAgB,EAChB,cAAc,EACf,MAAM,iCAAiC,CAAC;AAMzC,OAAO,EAAE,6BAA6B,EAAE,MAAM,wCAAwC,CAAC;AAEvF,KAAK,YAAY,GAAG,6BAA6B,GAAG;IAClD,KAAK,EAAE,MAAM,EAAE,CAAC;CACjB,CAAC;AAEF,eAAO,MAAM,MAAM,EAAE,cAAc,CAAC,YAAY,CAQ/C,CAAC;AAEF,eAAO,MAAM,QAAQ,EAAE,gBAAgB,CAAC,YAAY,CAWnD,CAAC"}
|
package/lib/index.js.map
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../src/index.ts"],
|
|
4
|
+
"sourcesContent": ["import {\n Types,\n PluginValidateFn,\n PluginFunction,\n} from \"@graphql-codegen/plugin-helpers\";\nimport ts from \"typescript\";\nimport { GraphQLSchema } from \"graphql\";\nimport { printSchema, parse } from \"graphql\";\nimport { extractImplicitTypesToTypescript } from \"@graphitation/supermassive-extractors\";\nimport { extname } from \"path\";\nimport { RawClientSideBasePluginConfig } from \"@graphql-codegen/visitor-plugin-common\";\n\ntype PluginConfig = RawClientSideBasePluginConfig & {\n files: string[];\n};\n\nexport const plugin: PluginFunction<PluginConfig> = (schema: GraphQLSchema) => {\n const tsContents: ts.SourceFile = extractImplicitTypesToTypescript(\n parse(printSchema(schema)),\n );\n\n const printer = ts.createPrinter();\n\n return printer.printNode(ts.EmitHint.SourceFile, tsContents, tsContents);\n};\n\nexport const validate: PluginValidateFn<PluginConfig> = async (\n schema: GraphQLSchema,\n documents: Types.DocumentFile[],\n config,\n outputFile: string,\n) => {\n if (extname(outputFile) !== \".ts\" && extname(outputFile) !== \".tsx\") {\n throw new Error(\n `Plugin \"supermassive-typed-document-node\" requires extension to be \".ts\" or \".tsx\"!`,\n );\n }\n};\n"],
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAKA,wBAAe;AAEf,IAAAA,kBAAmC;AACnC,qCAAiD;AACjD,kBAAwB;AAOjB,MAAM,SAAuC,CAAC,WAA0B;AAC7E,QAAM,iBAA4B;AAAA,QAChC,2BAAM,6BAAY,MAAM,CAAC;AAAA,EAC3B;AAEA,QAAM,UAAU,kBAAAC,QAAG,cAAc;AAEjC,SAAO,QAAQ,UAAU,kBAAAA,QAAG,SAAS,YAAY,YAAY,UAAU;AACzE;AAEO,MAAM,WAA2C,CACtD,QACA,WACA,QACA,eACG;AACH,UAAI,qBAAQ,UAAU,MAAM,aAAS,qBAAQ,UAAU,MAAM,QAAQ;AACnE,UAAM,IAAI;AAAA,MACR;AAAA,IACF;AAAA,EACF;AACF;",
|
|
6
|
+
"names": ["import_graphql", "ts"]
|
|
7
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../src/index.ts"],
|
|
4
|
+
"sourcesContent": ["import {\n Types,\n PluginValidateFn,\n PluginFunction,\n} from \"@graphql-codegen/plugin-helpers\";\nimport ts from \"typescript\";\nimport { GraphQLSchema } from \"graphql\";\nimport { printSchema, parse } from \"graphql\";\nimport { extractImplicitTypesToTypescript } from \"@graphitation/supermassive-extractors\";\nimport { extname } from \"path\";\nimport { RawClientSideBasePluginConfig } from \"@graphql-codegen/visitor-plugin-common\";\n\ntype PluginConfig = RawClientSideBasePluginConfig & {\n files: string[];\n};\n\nexport const plugin: PluginFunction<PluginConfig> = (schema: GraphQLSchema) => {\n const tsContents: ts.SourceFile = extractImplicitTypesToTypescript(\n parse(printSchema(schema)),\n );\n\n const printer = ts.createPrinter();\n\n return printer.printNode(ts.EmitHint.SourceFile, tsContents, tsContents);\n};\n\nexport const validate: PluginValidateFn<PluginConfig> = async (\n schema: GraphQLSchema,\n documents: Types.DocumentFile[],\n config,\n outputFile: string,\n) => {\n if (extname(outputFile) !== \".ts\" && extname(outputFile) !== \".tsx\") {\n throw new Error(\n `Plugin \"supermassive-typed-document-node\" requires extension to be \".ts\" or \".tsx\"!`,\n );\n }\n};\n"],
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;;;;;;;;AAKA,OAAO,QAAQ;AAEf,SAAS,aAAa,aAAa;AACnC,SAAS,wCAAwC;AACjD,SAAS,eAAe;AAOjB,IAAM,SAAuC,CAAC,WAA0B;AAC7E,QAAM,aAA4B;AAAA,IAChC,MAAM,YAAY,MAAM,CAAC;AAAA,EAC3B;AAEA,QAAM,UAAU,GAAG,cAAc;AAEjC,SAAO,QAAQ,UAAU,GAAG,SAAS,YAAY,YAAY,UAAU;AACzE;AAEO,IAAM,WAA2C,CACtD,QACA,WACA,QACA,eACG;AACH,MAAI,QAAQ,UAAU,MAAM,SAAS,QAAQ,UAAU,MAAM,QAAQ;AACnE,UAAM,IAAI;AAAA,MACR;AAAA,IACF;AAAA,EACF;AACF;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
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.
|
|
4
|
+
"version": "1.2.0",
|
|
5
5
|
"main": "./lib/index",
|
|
6
6
|
"repository": {
|
|
7
7
|
"type": "git",
|
|
@@ -17,14 +17,15 @@
|
|
|
17
17
|
"devDependencies": {
|
|
18
18
|
"@graphql-codegen/plugin-helpers": "^1.18.2",
|
|
19
19
|
"@types/jest": "^26.0.22",
|
|
20
|
-
"monorepo-scripts": "*"
|
|
20
|
+
"monorepo-scripts": "*",
|
|
21
|
+
"typescript": "^4.9.5"
|
|
21
22
|
},
|
|
22
23
|
"peerDependencies": {
|
|
23
|
-
"@graphql-codegen/plugin-helpers": ">= 1.18.0 < 2"
|
|
24
|
+
"@graphql-codegen/plugin-helpers": ">= 1.18.0 < 2",
|
|
25
|
+
"typescript": "^4.3.0"
|
|
24
26
|
},
|
|
25
27
|
"dependencies": {
|
|
26
|
-
"@graphitation/supermassive-extractors": "^2.
|
|
27
|
-
"typescript": "^4.4.3 <4.5.0",
|
|
28
|
+
"@graphitation/supermassive-extractors": "^2.2.0",
|
|
28
29
|
"graphql": "^15.0.0"
|
|
29
30
|
},
|
|
30
31
|
"sideEffects": false,
|