kubun 0.8.0 → 0.8.1
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/README.md +1 -1
- package/dist/commands/serve.js +5 -2
- package/oclif.manifest.json +1 -1
- package/package.json +12 -12
package/README.md
CHANGED
package/dist/commands/serve.js
CHANGED
|
@@ -91,7 +91,10 @@ export default class Serve extends Command {
|
|
|
91
91
|
: undefined;
|
|
92
92
|
const rpcAccessControl = autoAcceptPeers != null ? { '*': [identity.id, ...autoAcceptPeers] } : undefined;
|
|
93
93
|
const plugins = [
|
|
94
|
-
createRPCPlugin(
|
|
94
|
+
createRPCPlugin({
|
|
95
|
+
...(rpcAccessControl != null ? { accessControl: rpcAccessControl } : undefined),
|
|
96
|
+
allowDelegatedMutations: flags.p2p,
|
|
97
|
+
}),
|
|
95
98
|
createHTTPPlugin({ port: flags.port, allowedOrigin: flags.allowedOrigin }),
|
|
96
99
|
];
|
|
97
100
|
if (flags.p2p) {
|
|
@@ -99,7 +102,7 @@ export default class Serve extends Command {
|
|
|
99
102
|
}
|
|
100
103
|
// Create engine with plugins
|
|
101
104
|
const engine = new KubunEngine({
|
|
102
|
-
db:
|
|
105
|
+
db: adapter,
|
|
103
106
|
identity,
|
|
104
107
|
plugins,
|
|
105
108
|
});
|
package/oclif.manifest.json
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "kubun",
|
|
3
|
-
"version": "0.8.
|
|
3
|
+
"version": "0.8.1",
|
|
4
4
|
"license": "see LICENSE.md",
|
|
5
5
|
"description": "Kubun CLI",
|
|
6
6
|
"keywords": [],
|
|
@@ -34,27 +34,27 @@
|
|
|
34
34
|
"@mokei/context-server": "^0.6.0",
|
|
35
35
|
"@oclif/core": "^4.10.3",
|
|
36
36
|
"@oclif/plugin-help": "^6.2.44",
|
|
37
|
-
"@oclif/plugin-plugins": "^5.4.
|
|
37
|
+
"@oclif/plugin-plugins": "^5.4.61",
|
|
38
38
|
"graphql": "^16.13.2",
|
|
39
39
|
"ora": "^9.3.0",
|
|
40
|
-
"@kubun/graphql": "^0.8.0",
|
|
41
40
|
"@kubun/client": "^0.8.0",
|
|
42
|
-
"@kubun/db-
|
|
41
|
+
"@kubun/db-postgres": "^0.8.1",
|
|
42
|
+
"@kubun/engine": "^0.8.1",
|
|
43
|
+
"@kubun/graphql": "^0.8.1",
|
|
44
|
+
"@kubun/db-node-sqlite": "^0.8.1",
|
|
45
|
+
"@kubun/logger": "^0.8.0",
|
|
43
46
|
"@kubun/http-client": "^0.8.0",
|
|
44
|
-
"@kubun/
|
|
45
|
-
"@kubun/
|
|
46
|
-
"@kubun/plugin-
|
|
47
|
-
"@kubun/plugin-p2p": "^0.8.0",
|
|
48
|
-
"@kubun/plugin-rpc": "^0.8.0",
|
|
47
|
+
"@kubun/mcp": "^0.8.1",
|
|
48
|
+
"@kubun/plugin-rpc": "^0.8.1",
|
|
49
|
+
"@kubun/plugin-p2p": "^0.8.1",
|
|
49
50
|
"@kubun/protocol": "^0.8.0",
|
|
50
|
-
"@kubun/
|
|
51
|
-
"@kubun/mcp": "^0.8.0"
|
|
51
|
+
"@kubun/plugin-http": "^0.8.1"
|
|
52
52
|
},
|
|
53
53
|
"devDependencies": {
|
|
54
54
|
"@oclif/test": "^4.1.17",
|
|
55
55
|
"oclif": "^4.22.96",
|
|
56
56
|
"ts-node": "^10",
|
|
57
|
-
"typescript": "^6.0.
|
|
57
|
+
"typescript": "^6.0.3"
|
|
58
58
|
},
|
|
59
59
|
"scripts": {
|
|
60
60
|
"kubun": "./bin/dev.js",
|