@kubun/plugin-service-server 0.15.0 → 0.15.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/lib/index.js +5 -2
- package/package.json +4 -4
package/lib/index.js
CHANGED
|
@@ -114,7 +114,7 @@ const SERVICE_KIND = 'service';
|
|
|
114
114
|
];
|
|
115
115
|
const api = {
|
|
116
116
|
serve: (serveParams)=>{
|
|
117
|
-
const { transport, services, authorizer, signal, requireAuth } = serveParams;
|
|
117
|
+
const { transport, services, authorizer, signal, requireAuth, cache } = serveParams;
|
|
118
118
|
const providerList = engine.getProvidersSync(SERVICE_KIND);
|
|
119
119
|
const providers = new Map();
|
|
120
120
|
for (const provider of providerList){
|
|
@@ -149,7 +149,10 @@ const SERVICE_KIND = 'service';
|
|
|
149
149
|
signal,
|
|
150
150
|
transport,
|
|
151
151
|
resolver: options?.resolver,
|
|
152
|
-
methods
|
|
152
|
+
methods,
|
|
153
|
+
// Roster-seeded cache from the caller (the service tunnel lane), so a
|
|
154
|
+
// co-member's short-form did:peer:4 issuer resolves on this Server.
|
|
155
|
+
cache
|
|
153
156
|
};
|
|
154
157
|
// `requireAuth: false` serves the same merged procedures with no signature
|
|
155
158
|
// requirement (unauthenticated local mode); it omits `identity`/`accessRules`.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kubun/plugin-service-server",
|
|
3
|
-
"version": "0.15.
|
|
3
|
+
"version": "0.15.1",
|
|
4
4
|
"license": "see LICENSE.md",
|
|
5
5
|
"sideEffects": false,
|
|
6
6
|
"type": "module",
|
|
@@ -14,16 +14,16 @@
|
|
|
14
14
|
"LICENSE.md"
|
|
15
15
|
],
|
|
16
16
|
"dependencies": {
|
|
17
|
-
"@enkaku/protocol": "^0.21.
|
|
17
|
+
"@enkaku/protocol": "^0.21.1",
|
|
18
18
|
"@enkaku/server": "^0.21.2",
|
|
19
19
|
"@kokuin/capability": "^0.3.0",
|
|
20
20
|
"@kokuin/token": "^0.5.0",
|
|
21
21
|
"@kubun/engine": "^0.15.0",
|
|
22
|
-
"@kubun/plugin-service-api": "^0.15.
|
|
22
|
+
"@kubun/plugin-service-api": "^0.15.1",
|
|
23
23
|
"@kubun/protocol": "^0.15.0"
|
|
24
24
|
},
|
|
25
25
|
"devDependencies": {
|
|
26
|
-
"@enkaku/client": "^0.21.
|
|
26
|
+
"@enkaku/client": "^0.21.2",
|
|
27
27
|
"@enkaku/transport": "^0.21.0",
|
|
28
28
|
"@kokuin/controller": "^0.1.0",
|
|
29
29
|
"@kubun/db": "^0.15.0",
|