@kubun/standalone 0.4.2 → 0.4.3
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/graphql.d.ts.map +1 -1
- package/lib/graphql.js +12 -0
- package/lib/standalone.js +1 -1
- package/package.json +4 -4
package/lib/graphql.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"graphql.d.ts","sourceRoot":"","sources":["../src/graphql.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAuC,MAAM,gBAAgB,CAAA;AAElF,OAAO,EAML,KAAK,eAAe,EACrB,MAAM,iBAAiB,CAAA;AAGxB,MAAM,MAAM,gBAAgB,GAAG,eAAe,GAAG;IAC/C,GAAG,EAAE,MAAM,CAAA;CACZ,CAAA;AAED,wBAAgB,aAAa,CAAC,GAAG,EAAE,gBAAgB,GAAG,OAAO,
|
|
1
|
+
{"version":3,"file":"graphql.d.ts","sourceRoot":"","sources":["../src/graphql.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAuC,MAAM,gBAAgB,CAAA;AAElF,OAAO,EAML,KAAK,eAAe,EACrB,MAAM,iBAAiB,CAAA;AAGxB,MAAM,MAAM,gBAAgB,GAAG,eAAe,GAAG;IAC/C,GAAG,EAAE,MAAM,CAAA;CACZ,CAAA;AAED,wBAAgB,aAAa,CAAC,GAAG,EAAE,gBAAgB,GAAG,OAAO,CAgD5D"}
|
package/lib/graphql.js
CHANGED
|
@@ -49,6 +49,18 @@ export function createContext(ctx) {
|
|
|
49
49
|
issuer: ctx.did
|
|
50
50
|
});
|
|
51
51
|
await applyChangeMutation(ctx, mutation);
|
|
52
|
+
},
|
|
53
|
+
async executeSetModelAccessDefaults () {
|
|
54
|
+
throw new Error('Access control mutations are not supported in standalone mode');
|
|
55
|
+
},
|
|
56
|
+
async executeRemoveModelAccessDefaults () {
|
|
57
|
+
throw new Error('Access control mutations are not supported in standalone mode');
|
|
58
|
+
},
|
|
59
|
+
async executeSetDocumentAccessOverride () {
|
|
60
|
+
throw new Error('Access control mutations are not supported in standalone mode');
|
|
61
|
+
},
|
|
62
|
+
async executeRemoveDocumentAccessOverride () {
|
|
63
|
+
throw new Error('Access control mutations are not supported in standalone mode');
|
|
52
64
|
}
|
|
53
65
|
};
|
|
54
66
|
}
|
package/lib/standalone.js
CHANGED
|
@@ -42,7 +42,7 @@ export class KubunStandalone {
|
|
|
42
42
|
async getGraphQLSchema(id) {
|
|
43
43
|
if (this.#schemas[id] == null) {
|
|
44
44
|
this.#schemas[id] = this.getGraphModel(id).then((model)=>{
|
|
45
|
-
const schema = createSchema(model
|
|
45
|
+
const schema = createSchema(model);
|
|
46
46
|
this.#logger.debug('cached schema for graph {id}', {
|
|
47
47
|
id
|
|
48
48
|
});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kubun/standalone",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.3",
|
|
4
4
|
"license": "see LICENSE.md",
|
|
5
5
|
"keywords": [],
|
|
6
6
|
"type": "module",
|
|
@@ -16,10 +16,10 @@
|
|
|
16
16
|
"sideEffects": false,
|
|
17
17
|
"dependencies": {
|
|
18
18
|
"graphql": "^16.12.0",
|
|
19
|
-
"@kubun/
|
|
20
|
-
"@kubun/protocol": "^0.4.
|
|
19
|
+
"@kubun/mutation": "^0.4.0",
|
|
20
|
+
"@kubun/protocol": "^0.4.1",
|
|
21
21
|
"@kubun/logger": "^0.4.0",
|
|
22
|
-
"@kubun/
|
|
22
|
+
"@kubun/graphql": "^0.4.5"
|
|
23
23
|
},
|
|
24
24
|
"devDependencies": {
|
|
25
25
|
"@kubun/db": "^0.4.0",
|