@sphereon/ssi-sdk-ext.identifier-resolution 0.27.1-next.5 → 0.27.1-next.6
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.
|
@@ -10,7 +10,7 @@ function legacyKeyRefsToIdentifierOpts(opts) {
|
|
|
10
10
|
if (!opts.idOpts) {
|
|
11
11
|
console.warn(`Legacy idOpts being used. Support will be dropped in the future. Consider switching to the idOpts, to have support for DIDs, JWKS, x5c etc. See https://github.com/Sphereon-Opensource/SSI-SDK-crypto-extensions/tree/feature/multi_identifier_support/packages/identifier-resolution`);
|
|
12
12
|
// legacy way
|
|
13
|
-
let kmsKeyRef = (_j = (_f = (_d = (_a = opts.keyRef) !== null && _a !== void 0 ? _a : (_c = (_b = opts.didOpts) === null || _b === void 0 ? void 0 : _b.idOpts) === null || _c === void 0 ? void 0 : _c.kmsKeyRef) !== null && _d !== void 0 ? _d : (_e = opts.didOpts) === null || _e === void 0 ? void 0 : _e.kid) !== null && _f !== void 0 ? _f : (_h = (_g = opts.didOpts) === null || _g === void 0 ? void 0 : _g.idOpts) === null || _h === void 0 ? void 0 : _h.kid) !== null && _j !== void 0 ? _j : (typeof ((_k = opts.didOpts) === null || _k === void 0 ? void 0 : _k.idOpts
|
|
13
|
+
let kmsKeyRef = (_j = (_f = (_d = (_a = opts.keyRef) !== null && _a !== void 0 ? _a : (_c = (_b = opts.didOpts) === null || _b === void 0 ? void 0 : _b.idOpts) === null || _c === void 0 ? void 0 : _c.kmsKeyRef) !== null && _d !== void 0 ? _d : (_e = opts.didOpts) === null || _e === void 0 ? void 0 : _e.kid) !== null && _f !== void 0 ? _f : (_h = (_g = opts.didOpts) === null || _g === void 0 ? void 0 : _g.idOpts) === null || _h === void 0 ? void 0 : _h.kid) !== null && _j !== void 0 ? _j : (typeof ((_l = (_k = opts.didOpts) === null || _k === void 0 ? void 0 : _k.idOpts) === null || _l === void 0 ? void 0 : _l.identifier) === 'object' ? opts.didOpts.idOpts.identifier.keys[0].kid : undefined);
|
|
14
14
|
if (!kmsKeyRef) {
|
|
15
15
|
throw Error('Key ref is needed for access token signer');
|
|
16
16
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"LegacySupport.js","sourceRoot":"","sources":["../../src/functions/LegacySupport.ts"],"names":[],"mappings":";;AAOA,sEA8CC;AAlDD;;;GAGG;AACH,SAAgB,6BAA6B,CAAC,IAK7C;;IACC,IAAI,CAAC,IAAI,CAAC,MAAM,EAAE,CAAC;QACjB,OAAO,CAAC,IAAI,CACV,uRAAuR,CACxR,CAAA;QACD,aAAa;QACb,IAAI,SAAS,GACX,MAAA,MAAA,MAAA,MAAA,IAAI,CAAC,MAAM,mCACX,MAAA,MAAA,IAAI,CAAC,OAAO,0CAAE,MAAM,0CAAE,SAAS,mCAC/B,MAAA,IAAI,CAAC,OAAO,0CAAE,GAAG,mCACjB,MAAA,MAAA,IAAI,CAAC,OAAO,0CAAE,MAAM,0CAAE,GAAG,mCACzB,CAAC,OAAO,CAAA,MAAA,IAAI,CAAC,OAAO,0CAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"LegacySupport.js","sourceRoot":"","sources":["../../src/functions/LegacySupport.ts"],"names":[],"mappings":";;AAOA,sEA8CC;AAlDD;;;GAGG;AACH,SAAgB,6BAA6B,CAAC,IAK7C;;IACC,IAAI,CAAC,IAAI,CAAC,MAAM,EAAE,CAAC;QACjB,OAAO,CAAC,IAAI,CACV,uRAAuR,CACxR,CAAA;QACD,aAAa;QACb,IAAI,SAAS,GACX,MAAA,MAAA,MAAA,MAAA,IAAI,CAAC,MAAM,mCACX,MAAA,MAAA,IAAI,CAAC,OAAO,0CAAE,MAAM,0CAAE,SAAS,mCAC/B,MAAA,IAAI,CAAC,OAAO,0CAAE,GAAG,mCACjB,MAAA,MAAA,IAAI,CAAC,OAAO,0CAAE,MAAM,0CAAE,GAAG,mCACzB,CAAC,OAAO,CAAA,MAAA,MAAA,IAAI,CAAC,OAAO,0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"version": "0.27.1-next.
|
|
3
|
+
"version": "0.27.1-next.6+7161cdc",
|
|
4
4
|
"source": "src/index.ts",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -15,9 +15,9 @@
|
|
|
15
15
|
"generate-plugin-schema": "sphereon dev generate-plugin-schema"
|
|
16
16
|
},
|
|
17
17
|
"dependencies": {
|
|
18
|
-
"@sphereon/ssi-sdk-ext.did-utils": "0.27.1-next.
|
|
19
|
-
"@sphereon/ssi-sdk-ext.key-utils": "0.27.1-next.
|
|
20
|
-
"@sphereon/ssi-sdk-ext.x509-utils": "0.27.1-next.
|
|
18
|
+
"@sphereon/ssi-sdk-ext.did-utils": "0.27.1-next.6+7161cdc",
|
|
19
|
+
"@sphereon/ssi-sdk-ext.key-utils": "0.27.1-next.6+7161cdc",
|
|
20
|
+
"@sphereon/ssi-sdk-ext.x509-utils": "0.27.1-next.6+7161cdc",
|
|
21
21
|
"@sphereon/ssi-sdk.agent-config": "0.30.2-feature.SDK.41.oidf.support.286",
|
|
22
22
|
"@sphereon/ssi-sdk.oidf-client": " 0.30.2-feature.SDK.41.oidf.support.286",
|
|
23
23
|
"@sphereon/ssi-types": "0.30.2-feature.SDK.41.oidf.support.286",
|
|
@@ -28,10 +28,10 @@
|
|
|
28
28
|
"uint8arrays": "^3.1.1"
|
|
29
29
|
},
|
|
30
30
|
"devDependencies": {
|
|
31
|
-
"@sphereon/ssi-sdk-ext.did-provider-jwk": "0.27.1-next.
|
|
32
|
-
"@sphereon/ssi-sdk-ext.did-resolver-jwk": "0.27.1-next.
|
|
33
|
-
"@sphereon/ssi-sdk-ext.key-manager": "0.27.1-next.
|
|
34
|
-
"@sphereon/ssi-sdk-ext.kms-local": "0.27.1-next.
|
|
31
|
+
"@sphereon/ssi-sdk-ext.did-provider-jwk": "0.27.1-next.6+7161cdc",
|
|
32
|
+
"@sphereon/ssi-sdk-ext.did-resolver-jwk": "0.27.1-next.6+7161cdc",
|
|
33
|
+
"@sphereon/ssi-sdk-ext.key-manager": "0.27.1-next.6+7161cdc",
|
|
34
|
+
"@sphereon/ssi-sdk-ext.kms-local": "0.27.1-next.6+7161cdc",
|
|
35
35
|
"@sphereon/ssi-sdk.dev": "0.30.2-feature.SDK.41.oidf.support.286",
|
|
36
36
|
"@veramo/data-store": "4.2.0",
|
|
37
37
|
"@veramo/did-manager": "4.2.0",
|
|
@@ -65,5 +65,5 @@
|
|
|
65
65
|
"X.509 Certificates",
|
|
66
66
|
"ARF"
|
|
67
67
|
],
|
|
68
|
-
"gitHead": "
|
|
68
|
+
"gitHead": "7161cdca6d24315f01b785ed437edb27ef49f0f3"
|
|
69
69
|
}
|
|
@@ -21,7 +21,7 @@ export function legacyKeyRefsToIdentifierOpts(opts: {
|
|
|
21
21
|
opts.didOpts?.idOpts?.kmsKeyRef ??
|
|
22
22
|
opts.didOpts?.kid ??
|
|
23
23
|
opts.didOpts?.idOpts?.kid ??
|
|
24
|
-
(typeof opts.didOpts?.idOpts
|
|
24
|
+
(typeof opts.didOpts?.idOpts?.identifier === 'object' ? (opts.didOpts.idOpts.identifier as IIdentifier).keys[0].kid : undefined)
|
|
25
25
|
if (!kmsKeyRef) {
|
|
26
26
|
throw Error('Key ref is needed for access token signer')
|
|
27
27
|
}
|