@nmshd/transport 2.1.4 → 2.2.1
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 +5 -5
- package/dist/core/CoreCrypto.js.map +1 -1
- package/dist/core/CoreError.js.map +1 -1
- package/dist/core/CoreErrors.d.ts +1 -0
- package/dist/core/CoreErrors.js +3 -0
- package/dist/core/CoreErrors.js.map +1 -1
- package/dist/core/CoreIdHelper.js.map +1 -1
- package/dist/core/CoreUtil.js.map +1 -1
- package/dist/core/ICacheable.js.map +1 -1
- package/dist/core/Reference.js.map +1 -1
- package/dist/core/Transport.js.map +1 -1
- package/dist/core/TransportContext.js.map +1 -1
- package/dist/core/TransportController.js.map +1 -1
- package/dist/core/TransportLoggerFactory.js.map +1 -1
- package/dist/core/backbone/AuthClient.js +3 -3
- package/dist/core/backbone/AuthClient.js.map +1 -1
- package/dist/core/backbone/Authenticator.js.map +1 -1
- package/dist/core/backbone/ClientResult.js.map +1 -1
- package/dist/core/backbone/Paginator.js.map +1 -1
- package/dist/core/backbone/RESTClient.js.map +1 -1
- package/dist/core/backbone/RESTClientAuthenticate.js.map +1 -1
- package/dist/core/backbone/RequestError.js.map +1 -1
- package/dist/core/logging/logExecutionTime.js.map +1 -1
- package/dist/core/types/CoreAddress.js.map +1 -1
- package/dist/core/types/CoreDate.js.map +1 -1
- package/dist/core/types/CoreHash.js.map +1 -1
- package/dist/core/types/CoreId.js.map +1 -1
- package/dist/modules/accounts/AccountController.js.map +1 -1
- package/dist/modules/accounts/IdentityController.js.map +1 -1
- package/dist/modules/accounts/IdentityUtil.js.map +1 -1
- package/dist/modules/challenges/ChallengeController.js.map +1 -1
- package/dist/modules/challenges/data/ChallengeSigned.js.map +1 -1
- package/dist/modules/devices/DeviceController.js.map +1 -1
- package/dist/modules/devices/DeviceSecretController.js.map +1 -1
- package/dist/modules/devices/DevicesController.js +7 -0
- package/dist/modules/devices/DevicesController.js.map +1 -1
- package/dist/modules/devices/backbone/DeviceAuthClient.d.ts +1 -0
- package/dist/modules/devices/backbone/DeviceAuthClient.js +3 -0
- package/dist/modules/devices/backbone/DeviceAuthClient.js.map +1 -1
- package/dist/modules/files/FileController.js.map +1 -1
- package/dist/modules/messages/MessageController.js +10 -10
- package/dist/modules/messages/MessageController.js.map +1 -1
- package/dist/modules/messages/transmission/MessageContentWrapper.js.map +1 -1
- package/dist/modules/messages/transmission/MessageEnvelope.js.map +1 -1
- package/dist/modules/relationshipTemplates/RelationshipTemplateController.js.map +1 -1
- package/dist/modules/relationshipTemplates/local/CachedRelationshipTemplate.js.map +1 -1
- package/dist/modules/relationships/RelationshipSecretController.js.map +1 -1
- package/dist/modules/relationships/RelationshipsController.js.map +1 -1
- package/dist/modules/relationships/transmission/changes/RelationshipChange.js.map +1 -1
- package/dist/modules/secrets/SecretController.js.map +1 -1
- package/dist/modules/sync/DatawalletModificationMapper.js.map +1 -1
- package/dist/modules/sync/DatawalletModificationsProcessor.js.map +1 -1
- package/dist/modules/sync/ExternalEventsProcessor.js.map +1 -1
- package/dist/modules/sync/SyncController.js.map +1 -1
- package/dist/modules/sync/SynchronizedCollection.js.map +1 -1
- package/dist/modules/tokens/AnonymousTokenController.js.map +1 -1
- package/dist/modules/tokens/TokenController.js.map +1 -1
- package/dist/util/PasswordGenerator.js.map +1 -1
- package/dist/util/Random.js.map +1 -1
- package/lib-web/nmshd.transport.js +24588 -24572
- package/lib-web/nmshd.transport.js.map +1 -1
- package/lib-web/nmshd.transport.min.js +1 -1
- package/lib-web/nmshd.transport.min.js.map +1 -1
- package/package.json +60 -52
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nmshd/transport",
|
|
3
|
-
"version": "2.1
|
|
3
|
+
"version": "2.2.1",
|
|
4
4
|
"description": "The transport library handles backbone communication and content encryption.",
|
|
5
5
|
"homepage": "https://enmeshed.eu",
|
|
6
6
|
"repository": "github:nmshd/cns-transport",
|
|
@@ -17,91 +17,99 @@
|
|
|
17
17
|
"ui5.yaml"
|
|
18
18
|
],
|
|
19
19
|
"scripts": {
|
|
20
|
-
"
|
|
21
|
-
"build": "npm run build:node &&
|
|
22
|
-
"build:ci": "npm run build:node && .ci/writeBuildInformation.sh && npm run build:test && npm run bundle",
|
|
20
|
+
"build": "npm run build:node && npm run bundle",
|
|
21
|
+
"build:ci": "npm run build:node && .ci/writeBuildInformation.sh && npm run bundle",
|
|
23
22
|
"build:node": "tsc -p tsconfig.json && madge --circular dist",
|
|
24
|
-
"
|
|
25
|
-
"build:test:local": "tsc -p tsconfig.json && tsc -p tsconfig.test.json",
|
|
26
|
-
"bundle": "npm run bundle:lib && npm run bundle:min && npm run bundle:test",
|
|
23
|
+
"bundle": "npm run bundle:lib && npm run bundle:min",
|
|
27
24
|
"bundle:lib": "webpack --stats-all --config webpack.config.js",
|
|
28
25
|
"bundle:min": "webpack --stats-all --config webpack.min.config.js",
|
|
29
|
-
"bundle:test": "webpack --stats-all --config webpack.test.config.js",
|
|
30
26
|
"cdep": "tsc && madge --circular dist",
|
|
31
27
|
"lint": "npm run lint:prettier && npm run lint:eslint && npm run lint:tsc",
|
|
32
28
|
"lint:eslint": "eslint --ext ts ./src ./test",
|
|
33
29
|
"lint:prettier": "prettier --check .",
|
|
34
30
|
"lint:tsc": "tsc --noEmit && tsc -p test/tsconfig.json --noEmit",
|
|
35
|
-
"test": "npm run test:
|
|
36
|
-
"test:ci": "npm run test:
|
|
37
|
-
"test:local": "
|
|
38
|
-
"test:local:
|
|
39
|
-
"test:local:
|
|
40
|
-
"test:local:
|
|
41
|
-
"test:
|
|
42
|
-
"test:
|
|
43
|
-
"test:
|
|
44
|
-
"test:
|
|
45
|
-
"test:node:lokijs": "mocha -r ts-node/register -r tsconfig-paths/register ./test/index.node.loki.ts --project ./test/tsconfig.json --exit",
|
|
46
|
-
"test:node:mongodb": "mocha -r ts-node/register -r tsconfig-paths/register ./test/index.node.mongo.ts --project ./test/tsconfig.json --exit",
|
|
47
|
-
"test:node:unit": "mocha -r ts-node/register -r tsconfig-paths/register ./test/index.node.unit.ts --project ./test/tsconfig.json --exit",
|
|
31
|
+
"test": "npm run test:lokijs && npm run test:mongodb",
|
|
32
|
+
"test:ci": "npm run test:ci:lokijs && npm run test:ci:mongodb",
|
|
33
|
+
"test:local:ferretdb": ". ./scripts/testSetupFerret.sh && npm run test:mongodb",
|
|
34
|
+
"test:local:lokijs": "npm run test:lokijs",
|
|
35
|
+
"test:local:mongodb": ". ./scripts/testSetup.sh && npm run test:mongodb",
|
|
36
|
+
"test:local:teardown": "docker compose -p transport-tests -f test/docker-compose.yml down -v",
|
|
37
|
+
"test:ci:lokijs": "npm run test:lokijs -- -i",
|
|
38
|
+
"test:ci:mongodb": "npm run test:mongodb -- -i",
|
|
39
|
+
"test:lokijs": "USE_LOKIJS=true jest",
|
|
40
|
+
"test:mongodb": "jest",
|
|
48
41
|
"test:performance:kube:start": "kubectl apply -f ./test/performance/k8s.yaml",
|
|
49
|
-
"test:performance:kube:stop": "kubectl delete -f ./test/performance/k8s.yaml"
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
"
|
|
42
|
+
"test:performance:kube:stop": "kubectl delete -f ./test/performance/k8s.yaml"
|
|
43
|
+
},
|
|
44
|
+
"jest": {
|
|
45
|
+
"maxWorkers": 5,
|
|
46
|
+
"preset": "ts-jest",
|
|
47
|
+
"setupFilesAfterEnv": [
|
|
48
|
+
"./test/customMatchers.ts",
|
|
49
|
+
"jest-expect-message"
|
|
50
|
+
],
|
|
51
|
+
"testPathIgnorePatterns": [
|
|
52
|
+
"/test/performance/",
|
|
53
|
+
"/node_modules/"
|
|
54
|
+
],
|
|
55
|
+
"testEnvironment": "node",
|
|
56
|
+
"testTimeout": 60000,
|
|
57
|
+
"transform": {
|
|
58
|
+
"^.+\\.ts$": [
|
|
59
|
+
"ts-jest",
|
|
60
|
+
{
|
|
61
|
+
"tsconfig": "test/tsconfig.json"
|
|
62
|
+
}
|
|
63
|
+
]
|
|
64
|
+
}
|
|
53
65
|
},
|
|
54
66
|
"dependencies": {
|
|
55
|
-
"@js-soft/docdb-access-abstractions": "1.0.
|
|
67
|
+
"@js-soft/docdb-access-abstractions": "1.0.3",
|
|
56
68
|
"@js-soft/logging-abstractions": "1.0.1",
|
|
57
69
|
"@js-soft/simple-logger": "1.0.4",
|
|
58
70
|
"@js-soft/ts-utils": "2.3.3",
|
|
59
|
-
"axios": "^1.6.
|
|
71
|
+
"axios": "^1.6.5",
|
|
60
72
|
"fast-json-patch": "^3.1.1",
|
|
61
73
|
"form-data": "^4.0.0",
|
|
62
74
|
"json-stringify-safe": "^5.0.1",
|
|
63
75
|
"lodash": "^4.17.21",
|
|
64
76
|
"luxon": "^3.4.4",
|
|
65
77
|
"qs": "^6.11.2",
|
|
66
|
-
"reflect-metadata": "^0.1
|
|
78
|
+
"reflect-metadata": "^0.2.1",
|
|
67
79
|
"ts-simple-nameof": "^1.3.1",
|
|
68
80
|
"uuid": "^9.0.1"
|
|
69
81
|
},
|
|
70
82
|
"devDependencies": {
|
|
71
|
-
"@js-soft/docdb-access-loki": "1.0.
|
|
72
|
-
"@js-soft/docdb-access-mongo": "1.1.
|
|
73
|
-
"@js-soft/eslint-config-ts": "1.6.
|
|
74
|
-
"@js-soft/license-check": "1.0.
|
|
83
|
+
"@js-soft/docdb-access-loki": "1.0.6",
|
|
84
|
+
"@js-soft/docdb-access-mongo": "1.1.6",
|
|
85
|
+
"@js-soft/eslint-config-ts": "1.6.6",
|
|
86
|
+
"@js-soft/license-check": "1.0.9",
|
|
75
87
|
"@js-soft/node-logger": "1.1.1",
|
|
76
88
|
"@js-soft/ts-serval": "2.0.10",
|
|
77
|
-
"@js-soft/web-logger": "1.0.4",
|
|
89
|
+
"@js-soft/web-logger": "^1.0.4",
|
|
78
90
|
"@nmshd/crypto": "2.0.5",
|
|
79
|
-
"@types/chai": "^4.3.10",
|
|
80
|
-
"@types/chai-as-promised": "^7.1.8",
|
|
81
91
|
"@types/glob": "^8.1.0",
|
|
92
|
+
"@types/jest": "^29.5.11",
|
|
82
93
|
"@types/json-stringify-safe": "^5.0.3",
|
|
83
|
-
"@types/lodash": "^4.14.
|
|
84
|
-
"@types/luxon": "^3.
|
|
85
|
-
"@types/
|
|
86
|
-
"@types/
|
|
87
|
-
"@types/qs": "^6.9.10",
|
|
94
|
+
"@types/lodash": "^4.14.202",
|
|
95
|
+
"@types/luxon": "^3.4.1",
|
|
96
|
+
"@types/node": "^20.11.1",
|
|
97
|
+
"@types/qs": "^6.9.11",
|
|
88
98
|
"@types/uuid": "^9.0.7",
|
|
89
99
|
"bt-runner": "4.0.2",
|
|
90
|
-
"
|
|
91
|
-
"
|
|
92
|
-
"
|
|
93
|
-
"
|
|
94
|
-
"
|
|
95
|
-
"eslint": "8.53.0",
|
|
100
|
+
"copy-webpack-plugin": "^12.0.1",
|
|
101
|
+
"eslint": "8.56.0",
|
|
102
|
+
"expect": "^29.7.0",
|
|
103
|
+
"jest": "^29.7.0",
|
|
104
|
+
"jest-expect-message": "^1.1.3",
|
|
96
105
|
"madge": "^6.1.0",
|
|
97
|
-
"
|
|
98
|
-
"
|
|
99
|
-
"
|
|
100
|
-
"terser-webpack-plugin": "5.3.9",
|
|
106
|
+
"prettier": "^3.2.2",
|
|
107
|
+
"terser-webpack-plugin": "5.3.10",
|
|
108
|
+
"ts-jest": "^29.1.1",
|
|
101
109
|
"ts-mockito": "^2.6.1",
|
|
102
|
-
"ts-node": "^10.9.
|
|
110
|
+
"ts-node": "^10.9.2",
|
|
103
111
|
"tsconfig-paths": "^4.2.0",
|
|
104
|
-
"typescript": "^5.
|
|
112
|
+
"typescript": "^5.3.3",
|
|
105
113
|
"webpack": "^5.89.0",
|
|
106
114
|
"webpack-cli": "^5.1.4"
|
|
107
115
|
},
|