@kubun/server 0.3.4 → 0.3.6
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/lib/data/graphql.js +4 -4
- package/lib/data/mutations.d.ts.map +1 -1
- package/lib/handlers/graph.js +2 -1
- package/lib/index.d.ts +1 -1
- package/lib/index.d.ts.map +1 -1
- package/package.json +8 -8
package/lib/data/graphql.js
CHANGED
|
@@ -7,16 +7,16 @@ export function createContext(ctx) {
|
|
|
7
7
|
}
|
|
8
8
|
return {
|
|
9
9
|
...readContext,
|
|
10
|
-
async executeCreateMutation (
|
|
10
|
+
async executeCreateMutation (_modelID, _data, info) {
|
|
11
11
|
return getMutationDocument(info);
|
|
12
12
|
},
|
|
13
|
-
async executeSetMutation (
|
|
13
|
+
async executeSetMutation (_modelID, _unique, _data, info) {
|
|
14
14
|
return getMutationDocument(info);
|
|
15
15
|
},
|
|
16
|
-
async executeUpdateMutation (
|
|
16
|
+
async executeUpdateMutation (_input, info) {
|
|
17
17
|
return getMutationDocument(info);
|
|
18
18
|
},
|
|
19
|
-
async executeRemoveMutation (
|
|
19
|
+
async executeRemoveMutation (_id, _info) {
|
|
20
20
|
// no-op
|
|
21
21
|
}
|
|
22
22
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mutations.d.ts","sourceRoot":"","sources":["../../src/data/mutations.ts"],"names":[],"mappings":"AAEA,OAAO,
|
|
1
|
+
{"version":3,"file":"mutations.d.ts","sourceRoot":"","sources":["../../src/data/mutations.ts"],"names":[],"mappings":"AAEA,OAAO,EAA0B,KAAK,eAAe,EAAE,MAAM,iBAAiB,CAAA;AAC9E,OAAO,EAAyB,KAAK,YAAY,EAAoB,MAAM,iBAAiB,CAAA;AAI5F,wBAAsB,aAAa,CAAC,GAAG,EAAE,eAAe,EAAE,KAAK,EAAE,MAAM,GAAG,OAAO,CAAC,YAAY,CAAC,CAI9F"}
|
package/lib/handlers/graph.js
CHANGED
|
@@ -3,7 +3,8 @@ import { consume } from '@enkaku/generator';
|
|
|
3
3
|
import { createSchema } from '@kubun/graphql';
|
|
4
4
|
import { AttachmentID } from '@kubun/id';
|
|
5
5
|
import { GraphModel } from '@kubun/protocol';
|
|
6
|
-
import {
|
|
6
|
+
import { execute, OperationTypeNode, // printSchema,
|
|
7
|
+
subscribe } from 'graphql';
|
|
7
8
|
import { getExecutionArgs } from '../data/graphql.js';
|
|
8
9
|
import { applyMutation } from '../data/mutations.js';
|
|
9
10
|
function toGraphResult(result) {
|
package/lib/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { type ExecutionContext
|
|
1
|
+
export { createContext, type ExecutionContext } from './data/graphql.js';
|
|
2
2
|
export { type CreateHandlersParams, createHandlers } from './handlers/index.js';
|
|
3
3
|
export { type CreateClientParams, KubunServer, type ServerParams } from './server.js';
|
|
4
4
|
//# sourceMappingURL=index.d.ts.map
|
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,EAAE,KAAK,gBAAgB,EAAE,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,KAAK,gBAAgB,EAAE,MAAM,mBAAmB,CAAA;AACxE,OAAO,EAAE,KAAK,oBAAoB,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAA;AAC/E,OAAO,EAAE,KAAK,kBAAkB,EAAE,WAAW,EAAE,KAAK,YAAY,EAAE,MAAM,aAAa,CAAA"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kubun/server",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.6",
|
|
4
4
|
"license": "see LICENSE.md",
|
|
5
5
|
"keywords": [],
|
|
6
6
|
"type": "module",
|
|
@@ -23,18 +23,18 @@
|
|
|
23
23
|
"@enkaku/token": "^0.12.0",
|
|
24
24
|
"@enkaku/transport": "^0.12.0",
|
|
25
25
|
"graphql": "^16.11.0",
|
|
26
|
-
"@kubun/client": "^0.3.
|
|
27
|
-
"@kubun/
|
|
28
|
-
"@kubun/db": "^0.3.3",
|
|
26
|
+
"@kubun/client": "^0.3.5",
|
|
27
|
+
"@kubun/db": "^0.3.4",
|
|
29
28
|
"@kubun/id": "^0.3.0",
|
|
29
|
+
"@kubun/mutation": "^0.3.1",
|
|
30
30
|
"@kubun/protocol": "^0.3.4",
|
|
31
|
-
"@kubun/
|
|
31
|
+
"@kubun/graphql": "^0.3.9"
|
|
32
32
|
},
|
|
33
33
|
"devDependencies": {
|
|
34
34
|
"@databases/pg-test": "^3.1.2",
|
|
35
|
-
"@enkaku/stream": "^0.12.
|
|
36
|
-
"@kubun/db-
|
|
37
|
-
"@kubun/db-
|
|
35
|
+
"@enkaku/stream": "^0.12.1",
|
|
36
|
+
"@kubun/db-sqlite": "^0.3.3",
|
|
37
|
+
"@kubun/db-postgres": "^0.3.2"
|
|
38
38
|
},
|
|
39
39
|
"scripts": {
|
|
40
40
|
"build:clean": "del lib",
|