@verana-labs/credo-ts-didcomm-vt-flow 2.0.0-dev.95 → 2.0.0-dev.96
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.
|
@@ -2,7 +2,11 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.peerAnchorDid = peerAnchorDid;
|
|
4
4
|
function peerAnchorDid(connection) {
|
|
5
|
-
var _a, _b;
|
|
6
|
-
|
|
5
|
+
var _a, _b, _c;
|
|
6
|
+
const { invitationDid } = connection;
|
|
7
|
+
// Credo 0.8 sets invitationDid to our own public DID on a v2 connection a peer opens to it
|
|
8
|
+
const isOurs = invitationDid !== undefined &&
|
|
9
|
+
(invitationDid === connection.did || ((_a = connection.previousDids) !== null && _a !== void 0 ? _a : []).includes(invitationDid));
|
|
10
|
+
return (_c = (_b = (isOurs ? undefined : invitationDid)) !== null && _b !== void 0 ? _b : connection.previousTheirDids[0]) !== null && _c !== void 0 ? _c : connection.theirDid;
|
|
7
11
|
}
|
|
8
12
|
//# sourceMappingURL=peerAnchorDid.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"peerAnchorDid.js","sourceRoot":"","sources":["../../src/utils/peerAnchorDid.ts"],"names":[],"mappings":";;AAEA,
|
|
1
|
+
{"version":3,"file":"peerAnchorDid.js","sourceRoot":"","sources":["../../src/utils/peerAnchorDid.ts"],"names":[],"mappings":";;AAEA,sCAOC;AAPD,SAAgB,aAAa,CAAC,UAAmC;;IAC/D,MAAM,EAAE,aAAa,EAAE,GAAG,UAAU,CAAA;IACpC,2FAA2F;IAC3F,MAAM,MAAM,GACV,aAAa,KAAK,SAAS;QAC3B,CAAC,aAAa,KAAK,UAAU,CAAC,GAAG,IAAI,CAAC,MAAA,UAAU,CAAC,YAAY,mCAAI,EAAE,CAAC,CAAC,QAAQ,CAAC,aAAa,CAAC,CAAC,CAAA;IAC/F,OAAO,MAAA,MAAA,CAAC,MAAM,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,aAAa,CAAC,mCAAI,UAAU,CAAC,iBAAiB,CAAC,CAAC,CAAC,mCAAI,UAAU,CAAC,QAAQ,CAAA;AACvG,CAAC"}
|
package/package.json
CHANGED
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
"default": "./build/index.js"
|
|
10
10
|
}
|
|
11
11
|
},
|
|
12
|
-
"version": "2.0.0-dev.
|
|
12
|
+
"version": "2.0.0-dev.96",
|
|
13
13
|
"repository": {
|
|
14
14
|
"type": "git",
|
|
15
15
|
"url": "https://github.com/verana-labs/vs-agent",
|
|
@@ -24,14 +24,14 @@
|
|
|
24
24
|
"license": "Apache-2.0",
|
|
25
25
|
"description": "Credo-TS DIDComm extension module implementing the Verifiable Trust Flow (vt-flow) superprotocol",
|
|
26
26
|
"dependencies": {
|
|
27
|
-
"@credo-ts/core": "0.
|
|
28
|
-
"@credo-ts/didcomm": "0.
|
|
27
|
+
"@credo-ts/core": "0.8.0-pr-2704-20261016160242",
|
|
28
|
+
"@credo-ts/didcomm": "0.8.0-pr-2704-20261016160242",
|
|
29
29
|
"class-transformer": "0.5.1",
|
|
30
30
|
"class-validator": "0.14.1"
|
|
31
31
|
},
|
|
32
32
|
"peerDependencies": {
|
|
33
|
-
"@credo-ts/core": "0.
|
|
34
|
-
"@credo-ts/didcomm": "0.
|
|
33
|
+
"@credo-ts/core": "0.8.0-pr-2704-20261016160242",
|
|
34
|
+
"@credo-ts/didcomm": "0.8.0-pr-2704-20261016160242"
|
|
35
35
|
},
|
|
36
36
|
"scripts": {
|
|
37
37
|
"build": "pnpm run clean && pnpm run compile",
|