@nmshd/transport 5.0.0-alpha.15 → 5.0.0-alpha.17
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/buildInformation.js
CHANGED
|
@@ -4,11 +4,11 @@ exports.buildInformation = void 0;
|
|
|
4
4
|
const ts_serval_1 = require("@js-soft/ts-serval");
|
|
5
5
|
const crypto_1 = require("@nmshd/crypto");
|
|
6
6
|
exports.buildInformation = {
|
|
7
|
-
version: "5.0.0-alpha.
|
|
8
|
-
build: "
|
|
9
|
-
date: "2024-08-
|
|
10
|
-
commit: "
|
|
11
|
-
dependencies: {"@js-soft/docdb-access-abstractions":"1.0.4","@js-soft/logging-abstractions":"^1.0.1","@js-soft/simple-logger":"1.0.
|
|
7
|
+
version: "5.0.0-alpha.17",
|
|
8
|
+
build: "80",
|
|
9
|
+
date: "2024-08-08T13:18:33+00:00",
|
|
10
|
+
commit: "c0214589d396cbc92236c813a43825bee05cf799",
|
|
11
|
+
dependencies: {"@js-soft/docdb-access-abstractions":"1.0.4","@js-soft/logging-abstractions":"^1.0.1","@js-soft/simple-logger":"1.0.5","@js-soft/ts-utils":"^2.3.3","axios":"^1.7.3","fast-json-patch":"^3.1.1","form-data":"^4.0.0","https-proxy-agent":"^7.0.5","json-stringify-safe":"^5.0.1","lodash":"^4.17.21","luxon":"^3.5.0","qs":"^6.13.0","reflect-metadata":"^0.2.2","ts-simple-nameof":"^1.3.1","uuid":"^10.0.0"},
|
|
12
12
|
libraries: {
|
|
13
13
|
crypto: crypto_1.buildInformation,
|
|
14
14
|
serval: ts_serval_1.buildInformation
|
|
@@ -10,7 +10,7 @@ class IdentityUtil {
|
|
|
10
10
|
const hash = await crypto_1.CryptoHash.hash(sha512buffer, 1 /* CryptoHashAlgorithm.SHA256 */);
|
|
11
11
|
const hashedPublicKey = new crypto_1.CoreBuffer(hash.buffer.slice(0, 10));
|
|
12
12
|
const identityPart = hashedPublicKey.toString(crypto_1.Encoding.Hex);
|
|
13
|
-
const checksumSource = crypto_1.CoreBuffer.fromUtf8(`${enmeshedAddressDIDPrefix}${backboneHostname}:dids:${
|
|
13
|
+
const checksumSource = crypto_1.CoreBuffer.fromUtf8(`${enmeshedAddressDIDPrefix}${backboneHostname}:dids:${identityPart}`);
|
|
14
14
|
const checksumHash = await crypto_1.CryptoHash.hash(checksumSource, 1 /* CryptoHashAlgorithm.SHA256 */);
|
|
15
15
|
const checksum = new crypto_1.CoreBuffer(checksumHash.buffer.slice(0, 1));
|
|
16
16
|
const addressString = `${enmeshedAddressDIDPrefix}${backboneHostname}:dids:${identityPart}${checksum.toString(crypto_1.Encoding.Hex)}`;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"IdentityUtil.js","sourceRoot":"","sources":["../../../src/modules/accounts/IdentityUtil.ts"],"names":[],"mappings":";;;AAAA,0CAAiH;AACjH,qCAAyC;AAEzC,MAAM,wBAAwB,GAAG,QAAQ,CAAC;AAE1C,MAAa,YAAY;IACd,MAAM,CAAC,KAAK,CAAC,aAAa,CAAC,SAAoC,EAAE,gBAAwB;QAC5F,MAAM,YAAY,GAAG,MAAM,mBAAU,CAAC,IAAI,CAAC,SAAS,CAAC,SAAS,qCAA6B,CAAC;QAC5F,MAAM,IAAI,GAAG,MAAM,mBAAU,CAAC,IAAI,CAAC,YAAY,qCAA6B,CAAC;QAC7E,MAAM,eAAe,GAAG,IAAI,mBAAU,CAAC,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC;QACjE,MAAM,YAAY,GAAG,eAAe,CAAC,QAAQ,CAAC,iBAAQ,CAAC,GAAG,CAAC,CAAC;QAE5D,MAAM,cAAc,GAAG,mBAAU,CAAC,QAAQ,CAAC,GAAG,wBAAwB,GAAG,gBAAgB,SAAS,
|
|
1
|
+
{"version":3,"file":"IdentityUtil.js","sourceRoot":"","sources":["../../../src/modules/accounts/IdentityUtil.ts"],"names":[],"mappings":";;;A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AAS,EAAE,CAAC;YACZ,MAAM,YAAY,GAAG,MAAM,mBAAU,CAAC,IAAI,CAAC,SAAS,CAAC,SAAS,qCAA6B,CAAC;YAC5F,IAAI,YAAY,GAAG,MAAM,mBAAU,CAAC,IAAI,CAAC,YAAY,qCAA6B,CAAC;YACnF,YAAY,GAAG,IAAI,mBAAU,CAAC,YAAY,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC;YAChE,IAAI,CAAC,YAAY,CAAC,MAAM,CAAC,IAAI,mBAAU,CAAC,WAAW,CAAC,CAAC,EAAE,CAAC;gBACpD,4CAA4C;gBAC5C,OAAO,KAAK,CAAC;YACjB,CAAC;QACL,CAAC;QACD,OAAO,IAAI,CAAC;IAChB,CAAC;CACJ;AApDD,oCAoDC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nmshd/transport",
|
|
3
|
-
"version": "5.0.0-alpha.
|
|
3
|
+
"version": "5.0.0-alpha.17",
|
|
4
4
|
"description": "The transport library handles backbone communication and content encryption.",
|
|
5
5
|
"homepage": "https://enmeshed.eu",
|
|
6
6
|
"repository": {
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
"lint:tsc": "tsc --noEmit && tsc -p test/tsconfig.json --noEmit",
|
|
25
25
|
"test:ci": "npm run test:ci:lokijs && npm run test:ci:mongodb",
|
|
26
26
|
"test:ci:lokijs": "USE_LOKIJS=true jest -i",
|
|
27
|
-
"test:ci:mongodb": "jest -i",
|
|
27
|
+
"test:ci:mongodb": "jest -i --coverage",
|
|
28
28
|
"test:local:ferretdb": "npm run test:local:start:ferretdb && CONNECTION_STRING='mongodb://localhost:27022' jest",
|
|
29
29
|
"test:local:lokijs": "USE_LOKIJS=true jest",
|
|
30
30
|
"test:local:mongodb": "npm run test:local:start:mongodb && CONNECTION_STRING='mongodb://root:example@localhost:27021' jest",
|
|
@@ -38,6 +38,15 @@
|
|
|
38
38
|
"jest": {
|
|
39
39
|
"maxWorkers": 5,
|
|
40
40
|
"preset": "ts-jest",
|
|
41
|
+
"coverageProvider": "v8",
|
|
42
|
+
"coverageReporters": [
|
|
43
|
+
"text-summary",
|
|
44
|
+
"cobertura",
|
|
45
|
+
"lcov"
|
|
46
|
+
],
|
|
47
|
+
"collectCoverageFrom": [
|
|
48
|
+
"./src/**"
|
|
49
|
+
],
|
|
41
50
|
"setupFilesAfterEnv": [
|
|
42
51
|
"./test/customMatchers.ts",
|
|
43
52
|
"jest-expect-message"
|
|
@@ -60,16 +69,16 @@
|
|
|
60
69
|
"dependencies": {
|
|
61
70
|
"@js-soft/docdb-access-abstractions": "1.0.4",
|
|
62
71
|
"@js-soft/logging-abstractions": "^1.0.1",
|
|
63
|
-
"@js-soft/simple-logger": "1.0.
|
|
72
|
+
"@js-soft/simple-logger": "1.0.5",
|
|
64
73
|
"@js-soft/ts-utils": "^2.3.3",
|
|
65
|
-
"axios": "^1.7.
|
|
74
|
+
"axios": "^1.7.3",
|
|
66
75
|
"fast-json-patch": "^3.1.1",
|
|
67
76
|
"form-data": "^4.0.0",
|
|
68
77
|
"https-proxy-agent": "^7.0.5",
|
|
69
78
|
"json-stringify-safe": "^5.0.1",
|
|
70
79
|
"lodash": "^4.17.21",
|
|
71
|
-
"luxon": "^3.
|
|
72
|
-
"qs": "^6.
|
|
80
|
+
"luxon": "^3.5.0",
|
|
81
|
+
"qs": "^6.13.0",
|
|
73
82
|
"reflect-metadata": "^0.2.2",
|
|
74
83
|
"ts-simple-nameof": "^1.3.1",
|
|
75
84
|
"uuid": "^10.0.0"
|
|
@@ -77,7 +86,7 @@
|
|
|
77
86
|
"devDependencies": {
|
|
78
87
|
"@js-soft/docdb-access-loki": "1.1.0",
|
|
79
88
|
"@js-soft/docdb-access-mongo": "1.1.8",
|
|
80
|
-
"@js-soft/node-logger": "1.
|
|
89
|
+
"@js-soft/node-logger": "1.2.0",
|
|
81
90
|
"@js-soft/ts-serval": "2.0.10",
|
|
82
91
|
"@js-soft/web-logger": "^1.0.4",
|
|
83
92
|
"@nmshd/crypto": "2.0.6",
|