@soda-gql/codegen 0.0.3 → 0.0.4
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/dist/index.d.cts +3 -3
- package/dist/index.d.mts +3 -3
- package/package.json +7 -7
package/dist/index.d.cts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as neverthrow1 from "neverthrow";
|
|
2
2
|
import { Result } from "neverthrow";
|
|
3
3
|
import { DocumentNode } from "graphql";
|
|
4
4
|
|
|
@@ -77,14 +77,14 @@ type CodegenResult = Result<CodegenSuccess, CodegenError>;
|
|
|
77
77
|
type MultiSchemaCodegenResult = Result<MultiSchemaCodegenSuccess, CodegenError>;
|
|
78
78
|
//#endregion
|
|
79
79
|
//#region packages/codegen/src/inject-template.d.ts
|
|
80
|
-
declare const writeInjectTemplate: (outPath: string) =>
|
|
80
|
+
declare const writeInjectTemplate: (outPath: string) => neverthrow1.Err<void, CodegenError> | neverthrow1.Ok<void, CodegenError>;
|
|
81
81
|
declare const getInjectTemplate: () => string;
|
|
82
82
|
//#endregion
|
|
83
83
|
//#region packages/codegen/src/runner.d.ts
|
|
84
84
|
declare const runMultiSchemaCodegen: (options: MultiSchemaCodegenOptions) => Promise<MultiSchemaCodegenResult>;
|
|
85
85
|
//#endregion
|
|
86
86
|
//#region packages/codegen/src/schema.d.ts
|
|
87
|
-
declare const loadSchema: (schemaPath: string) =>
|
|
87
|
+
declare const loadSchema: (schemaPath: string) => neverthrow1.Err<DocumentNode, CodegenError> | neverthrow1.Ok<DocumentNode, CodegenError>;
|
|
88
88
|
declare const hashSchema: (document: DocumentNode) => string;
|
|
89
89
|
//#endregion
|
|
90
90
|
export { type CodegenCliCommand, type CodegenError, type CodegenFormat, type MultiSchemaCodegenOptions, type MultiSchemaCodegenResult, type MultiSchemaCodegenSuccess, hashSchema, loadSchema, runMultiSchemaCodegen, writeInjectTemplate };
|
package/dist/index.d.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as neverthrow1 from "neverthrow";
|
|
2
2
|
import { Result } from "neverthrow";
|
|
3
3
|
import { DocumentNode } from "graphql";
|
|
4
4
|
|
|
@@ -77,14 +77,14 @@ type CodegenResult = Result<CodegenSuccess, CodegenError>;
|
|
|
77
77
|
type MultiSchemaCodegenResult = Result<MultiSchemaCodegenSuccess, CodegenError>;
|
|
78
78
|
//#endregion
|
|
79
79
|
//#region packages/codegen/src/inject-template.d.ts
|
|
80
|
-
declare const writeInjectTemplate: (outPath: string) =>
|
|
80
|
+
declare const writeInjectTemplate: (outPath: string) => neverthrow1.Err<void, CodegenError> | neverthrow1.Ok<void, CodegenError>;
|
|
81
81
|
declare const getInjectTemplate: () => string;
|
|
82
82
|
//#endregion
|
|
83
83
|
//#region packages/codegen/src/runner.d.ts
|
|
84
84
|
declare const runMultiSchemaCodegen: (options: MultiSchemaCodegenOptions) => Promise<MultiSchemaCodegenResult>;
|
|
85
85
|
//#endregion
|
|
86
86
|
//#region packages/codegen/src/schema.d.ts
|
|
87
|
-
declare const loadSchema: (schemaPath: string) =>
|
|
87
|
+
declare const loadSchema: (schemaPath: string) => neverthrow1.Err<DocumentNode, CodegenError> | neverthrow1.Ok<DocumentNode, CodegenError>;
|
|
88
88
|
declare const hashSchema: (document: DocumentNode) => string;
|
|
89
89
|
//#endregion
|
|
90
90
|
export { type CodegenCliCommand, type CodegenError, type CodegenFormat, type MultiSchemaCodegenOptions, type MultiSchemaCodegenResult, type MultiSchemaCodegenSuccess, hashSchema, loadSchema, runMultiSchemaCodegen, writeInjectTemplate };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@soda-gql/codegen",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.4",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"private": false,
|
|
6
6
|
"license": "MIT",
|
|
@@ -12,22 +12,22 @@
|
|
|
12
12
|
"email": "shota.hatada@whatasoda.me",
|
|
13
13
|
"url": "https://github.com/whatasoda"
|
|
14
14
|
},
|
|
15
|
-
"main": "./dist/index.
|
|
16
|
-
"module": "./dist/index.
|
|
15
|
+
"main": "./dist/index.mjs",
|
|
16
|
+
"module": "./dist/index.mjs",
|
|
17
17
|
"types": "./dist/index.d.ts",
|
|
18
18
|
"exports": {
|
|
19
19
|
".": {
|
|
20
20
|
"development": "./src/index.ts",
|
|
21
21
|
"types": "./dist/index.d.ts",
|
|
22
|
-
"import": "./dist/index.
|
|
22
|
+
"import": "./dist/index.mjs",
|
|
23
23
|
"require": "./dist/index.cjs",
|
|
24
|
-
"default": "./dist/index.
|
|
24
|
+
"default": "./dist/index.mjs"
|
|
25
25
|
},
|
|
26
26
|
"./package.json": "./package.json"
|
|
27
27
|
},
|
|
28
28
|
"dependencies": {
|
|
29
|
-
"@soda-gql/core": "0.0.
|
|
30
|
-
"@soda-gql/runtime": "0.0.
|
|
29
|
+
"@soda-gql/core": "0.0.4",
|
|
30
|
+
"@soda-gql/runtime": "0.0.4",
|
|
31
31
|
"graphql": "^16.8.1",
|
|
32
32
|
"neverthrow": "^8.1.1",
|
|
33
33
|
"tsdown": "^0.15.7"
|