@sphereon/ssi-sdk.data-store 0.29.1-unstable.236 → 0.29.1-unstable.237
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/dist/utils/hasher.js +1 -1
- package/dist/utils/hasher.js.map +1 -1
- package/package.json +5 -5
- package/src/utils/hasher.ts +1 -1
package/dist/utils/hasher.js
CHANGED
|
@@ -6,7 +6,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
6
6
|
exports.defaultHasher = void 0;
|
|
7
7
|
const sha_js_1 = __importDefault(require("sha.js"));
|
|
8
8
|
const supportedAlgorithms = ['sha256', 'sha384', 'sha512'];
|
|
9
|
-
// FIXME this is a weird place for this, but it does have good reach
|
|
9
|
+
// FIXME this is a weird place for this, but it does have good reach in ssi-sdk cunlike the copy in oid4vc-common
|
|
10
10
|
const defaultHasher = (data, algorithm) => {
|
|
11
11
|
const sanitizedAlgorithm = algorithm.toLowerCase().replace(/[-_]/g, '');
|
|
12
12
|
if (!supportedAlgorithms.includes(sanitizedAlgorithm)) {
|
package/dist/utils/hasher.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"hasher.js","sourceRoot":"","sources":["../../src/utils/hasher.ts"],"names":[],"mappings":";;;;;;AACA,oDAAwB;AAExB,MAAM,mBAAmB,GAAG,CAAC,QAAQ,EAAE,QAAQ,EAAE,QAAQ,CAAU,CAAA;AAGnE,
|
|
1
|
+
{"version":3,"file":"hasher.js","sourceRoot":"","sources":["../../src/utils/hasher.ts"],"names":[],"mappings":";;;;;;AACA,oDAAwB;AAExB,MAAM,mBAAmB,GAAG,CAAC,QAAQ,EAAE,QAAQ,EAAE,QAAQ,CAAU,CAAA;AAGnE,iHAAiH;AAC1G,MAAM,aAAa,GAAW,CAAC,IAAI,EAAE,SAAS,EAAE,EAAE;IACvD,MAAM,kBAAkB,GAAG,SAAS,CAAC,WAAW,EAAE,CAAC,OAAO,CAAC,OAAO,EAAE,EAAE,CAAC,CAAA;IACvE,IAAI,CAAC,mBAAmB,CAAC,QAAQ,CAAC,kBAAyC,CAAC,EAAE,CAAC;QAC7E,MAAM,IAAI,KAAK,CAAC,iCAAiC,SAAS,EAAE,CAAC,CAAA;IAC/D,CAAC;IAED,OAAO,IAAI,UAAU,CACnB,IAAA,gBAAG,EAAC,kBAAyC,CAAC;SAC3C,MAAM,CAAC,IAAI,CAAC;SACZ,MAAM,EAAE,CACZ,CAAA;AACH,CAAC,CAAA;AAXY,QAAA,aAAa,iBAWzB"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sphereon/ssi-sdk.data-store",
|
|
3
|
-
"version": "0.29.1-unstable.
|
|
3
|
+
"version": "0.29.1-unstable.237+06d4a80a",
|
|
4
4
|
"source": "src/index.ts",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -18,9 +18,9 @@
|
|
|
18
18
|
"@sphereon/pex": "^4.1.1-unstable.0",
|
|
19
19
|
"@sphereon/ssi-sdk-ext.did-utils": " 0.24.1-next.112",
|
|
20
20
|
"@sphereon/ssi-sdk-ext.identifier-resolution": " 0.24.1-next.112",
|
|
21
|
-
"@sphereon/ssi-sdk.agent-config": "0.29.1-unstable.
|
|
22
|
-
"@sphereon/ssi-sdk.core": "0.29.1-unstable.
|
|
23
|
-
"@sphereon/ssi-types": "0.29.1-unstable.
|
|
21
|
+
"@sphereon/ssi-sdk.agent-config": "0.29.1-unstable.237+06d4a80a",
|
|
22
|
+
"@sphereon/ssi-sdk.core": "0.29.1-unstable.237+06d4a80a",
|
|
23
|
+
"@sphereon/ssi-types": "0.29.1-unstable.237+06d4a80a",
|
|
24
24
|
"@veramo/core": "4.2.0",
|
|
25
25
|
"@veramo/utils": "4.2.0",
|
|
26
26
|
"blakejs": "^1.2.1",
|
|
@@ -53,5 +53,5 @@
|
|
|
53
53
|
"PostgreSQL",
|
|
54
54
|
"Contact Store"
|
|
55
55
|
],
|
|
56
|
-
"gitHead": "
|
|
56
|
+
"gitHead": "06d4a80ac3bdccc467697742f87afca0ed866cde"
|
|
57
57
|
}
|
package/src/utils/hasher.ts
CHANGED
|
@@ -4,7 +4,7 @@ import sha from 'sha.js'
|
|
|
4
4
|
const supportedAlgorithms = ['sha256', 'sha384', 'sha512'] as const
|
|
5
5
|
type SupportedAlgorithms = (typeof supportedAlgorithms)[number]
|
|
6
6
|
|
|
7
|
-
// FIXME this is a weird place for this, but it does have good reach
|
|
7
|
+
// FIXME this is a weird place for this, but it does have good reach in ssi-sdk cunlike the copy in oid4vc-common
|
|
8
8
|
export const defaultHasher: Hasher = (data, algorithm) => {
|
|
9
9
|
const sanitizedAlgorithm = algorithm.toLowerCase().replace(/[-_]/g, '')
|
|
10
10
|
if (!supportedAlgorithms.includes(sanitizedAlgorithm as SupportedAlgorithms)) {
|