@kubun/plugin-credential 0.17.3 → 0.17.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/lib/service.js +1 -8
- package/package.json +3 -3
package/lib/service.js
CHANGED
|
@@ -1,14 +1,7 @@
|
|
|
1
1
|
import { isSigningIdentity, normalizeDID } from '@kokuin/token';
|
|
2
|
-
import { CredentialAliasAlreadyBound, CredentialBindNotAuthorized, CredentialEntryAlreadyAliased, CredentialInvalidEntry, CredentialKeyVersionMismatch, CredentialNotFound, CredentialSupersededBranch, createCredentialAPI, createCredentialManager } from '@kubun/credential';
|
|
2
|
+
import { CredentialAliasAlreadyBound, CredentialBindNotAuthorized, CredentialEntryAlreadyAliased, CredentialInvalidEntry, CredentialKeyVersionMismatch, CredentialNotFound, CredentialSupersededBranch, createCredentialAPI, createCredentialManager, wrappableDID } from '@kubun/credential';
|
|
3
3
|
import { authorizeRead, authorizeWrite, ServiceAuthorizationError } from '@kubun/plugin-service-server';
|
|
4
4
|
import { credentialStoreDefinition, getCredentialStore } from '@kubun/store-credential';
|
|
5
|
-
// The spelling of a DID that can be encrypted to. A did:peer:4 identity carries a
|
|
6
|
-
// longForm that resolves the agreement key; its short id resolves none. For
|
|
7
|
-
// did:key the two forms are identical.
|
|
8
|
-
function wrappableDID(identity) {
|
|
9
|
-
const longForm = identity.longForm;
|
|
10
|
-
return typeof longForm === 'string' ? longForm : identity.id;
|
|
11
|
-
}
|
|
12
5
|
// The service boundary has no CREDENTIAL_* → KB* mapping; toHandlerError forwards
|
|
13
6
|
// a thrown error's `code` only when it is already a registered KubunErrorCode,
|
|
14
7
|
// preserving `data`. This maps the known credential outcomes to an envelope code
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kubun/plugin-credential",
|
|
3
|
-
"version": "0.17.
|
|
3
|
+
"version": "0.17.4",
|
|
4
4
|
"license": "see LICENSE.md",
|
|
5
5
|
"sideEffects": false,
|
|
6
6
|
"type": "module",
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
],
|
|
16
16
|
"dependencies": {
|
|
17
17
|
"@kokuin/token": "^0.5.0",
|
|
18
|
-
"@kubun/credential": "^0.17.
|
|
18
|
+
"@kubun/credential": "^0.17.4",
|
|
19
19
|
"@kubun/db": "^0.17.0",
|
|
20
20
|
"@kubun/engine": "^0.17.2",
|
|
21
21
|
"@kubun/graphql": "^0.17.2",
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
"@kubun/id": "^0.17.0",
|
|
24
24
|
"@kubun/plugin-service-api": "^0.17.1",
|
|
25
25
|
"@kubun/plugin-service-server": "^0.17.1",
|
|
26
|
-
"@kubun/protocol": "^0.17.
|
|
26
|
+
"@kubun/protocol": "^0.17.2",
|
|
27
27
|
"@kubun/store-credential": "^0.17.4",
|
|
28
28
|
"@sozai/codec": "^0.4.0",
|
|
29
29
|
"@sozai/runtime": "^0.1.0",
|