@nmshd/transport 1.1.8 → 1.2.0
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/ProgressReporter.d.ts +18 -0
- package/dist/core/ProgressReporter.js +45 -0
- package/dist/core/ProgressReporter.js.map +1 -0
- package/dist/core/backbone/Paginator.d.ts +7 -1
- package/dist/core/backbone/Paginator.js +25 -1
- package/dist/core/backbone/Paginator.js.map +1 -1
- package/dist/core/backbone/RESTClient.d.ts +2 -2
- package/dist/core/backbone/RESTClient.js +4 -4
- package/dist/core/backbone/RESTClient.js.map +1 -1
- package/dist/core/backbone/RESTClientAuthenticate.d.ts +2 -2
- package/dist/core/backbone/RESTClientAuthenticate.js +2 -2
- package/dist/core/backbone/RESTClientAuthenticate.js.map +1 -1
- package/dist/core/backbone/index.js +5 -1
- package/dist/core/backbone/index.js.map +1 -1
- package/dist/core/index.d.ts +1 -0
- package/dist/core/index.js +6 -1
- package/dist/core/index.js.map +1 -1
- package/dist/core/types/index.js +5 -1
- package/dist/core/types/index.js.map +1 -1
- package/dist/index.js +5 -1
- package/dist/index.js.map +1 -1
- package/dist/modules/accounts/AccountController.d.ts +3 -2
- package/dist/modules/accounts/AccountController.js +7 -4
- package/dist/modules/accounts/AccountController.js.map +1 -1
- package/dist/modules/challenges/ChallengeController.d.ts +5 -2
- package/dist/modules/challenges/ChallengeController.js +21 -27
- package/dist/modules/challenges/ChallengeController.js.map +1 -1
- package/dist/modules/files/FileController.js +3 -20
- package/dist/modules/files/FileController.js.map +1 -1
- package/dist/modules/index.d.ts +1 -0
- package/dist/modules/index.js +8 -1
- package/dist/modules/index.js.map +1 -1
- package/dist/modules/relationshipTemplates/RelationshipTemplateController.js +3 -20
- package/dist/modules/relationshipTemplates/RelationshipTemplateController.js.map +1 -1
- package/dist/modules/sync/DatawalletModificationsProcessor.d.ts +3 -1
- package/dist/modules/sync/DatawalletModificationsProcessor.js +14 -1
- package/dist/modules/sync/DatawalletModificationsProcessor.js.map +1 -1
- package/dist/modules/sync/ExternalEventsProcessor.d.ts +3 -1
- package/dist/modules/sync/ExternalEventsProcessor.js +6 -1
- package/dist/modules/sync/ExternalEventsProcessor.js.map +1 -1
- package/dist/modules/sync/SyncCallback.d.ts +17 -0
- package/dist/modules/sync/SyncCallback.js +25 -0
- package/dist/modules/sync/SyncCallback.js.map +1 -0
- package/dist/modules/sync/SyncController.d.ts +6 -4
- package/dist/modules/sync/SyncController.js +55 -31
- package/dist/modules/sync/SyncController.js.map +1 -1
- package/dist/modules/sync/backbone/SyncClient.d.ts +5 -5
- package/dist/modules/sync/backbone/SyncClient.js +4 -4
- package/dist/modules/sync/backbone/SyncClient.js.map +1 -1
- package/dist/modules/tokens/TokenController.js +3 -20
- package/dist/modules/tokens/TokenController.js.map +1 -1
- package/dist/util/index.js +5 -1
- package/dist/util/index.js.map +1 -1
- package/lib-web/nmshd.transport.js +359 -206
- 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 +26 -24
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nmshd/transport",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.2.0",
|
|
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,10 +17,6 @@
|
|
|
17
17
|
"ui5.yaml"
|
|
18
18
|
],
|
|
19
19
|
"scripts": {
|
|
20
|
-
"lint": "npm run lint:prettier && npm run lint:eslint && npm run lint:tsc",
|
|
21
|
-
"lint:prettier": "prettier --check .",
|
|
22
|
-
"lint:eslint": "eslint --ext ts ./src ./test",
|
|
23
|
-
"lint:tsc": "tsc --noEmit && tsc -p test/tsconfig.json --noEmit",
|
|
24
20
|
"bt": "npm run test:node && npm run build:node && npm run build:test && npm run bundle && npm run test:web",
|
|
25
21
|
"build": "npm run build:node && npm run build:test && npm run bundle",
|
|
26
22
|
"build:ci": "npm run build:node && .ci/writeBuildInformation.sh && npm run build:test && npm run bundle",
|
|
@@ -32,35 +28,39 @@
|
|
|
32
28
|
"bundle:min": "webpack --stats-all --config webpack.min.config.js",
|
|
33
29
|
"bundle:test": "webpack --stats-all --config webpack.test.config.js",
|
|
34
30
|
"cdep": "tsc && madge --circular dist",
|
|
31
|
+
"lint": "npm run lint:prettier && npm run lint:eslint && npm run lint:tsc",
|
|
32
|
+
"lint:eslint": "eslint --ext ts ./src ./test",
|
|
33
|
+
"lint:prettier": "prettier --check .",
|
|
34
|
+
"lint:tsc": "tsc --noEmit && tsc -p test/tsconfig.json --noEmit",
|
|
35
35
|
"test": "npm run test:node && npm run test:web && npm run test:web:min",
|
|
36
36
|
"test:ci": "npm run test:node && npm run test:web:min",
|
|
37
37
|
"test:local": "npm run build && npm run test:local:node && npm run test:web",
|
|
38
38
|
"test:local:node": ". ./scripts/testSetup.sh && npm run test:node",
|
|
39
|
-
"test:local:node:mongodb": ". ./scripts/testSetup.sh && npm run test:node:mongodb",
|
|
40
39
|
"test:local:node:lokijs": "npm run test:node:lokijs",
|
|
40
|
+
"test:local:node:mongodb": ". ./scripts/testSetup.sh && npm run test:node:mongodb",
|
|
41
41
|
"test:local:node:mongodb:debug": "docker-compose -f test/docker-compose.yml up -d transportlib-mongo-express && KEEP_TEST_DATA=\"true\" npm run test:local:node:mongodb",
|
|
42
42
|
"test:local:node:mongodb:teardown": "docker-compose -f test/docker-compose.yml down -v",
|
|
43
43
|
"test:node": "mocha -r ts-node/register -r tsconfig-paths/register ./test/index.node.ts --project ./test/tsconfig.json --exit",
|
|
44
|
-
"test:node:mongodb": "mocha -r ts-node/register -r tsconfig-paths/register ./test/index.node.mongo.ts --project ./test/tsconfig.json --exit",
|
|
45
44
|
"test:node:lokijs": "mocha -r ts-node/register -r tsconfig-paths/register ./test/index.node.loki.ts --project ./test/tsconfig.json --exit",
|
|
45
|
+
"test:node:mongodb": "mocha -r ts-node/register -r tsconfig-paths/register ./test/index.node.mongo.ts --project ./test/tsconfig.json --exit",
|
|
46
46
|
"test:performance:kube:start": "kubectl apply -f ./test/performance/k8s.yaml",
|
|
47
47
|
"test:performance:kube:stop": "kubectl delete -f ./test/performance/k8s.yaml",
|
|
48
|
-
"test:web:server": "browsertest-runner-debug",
|
|
49
48
|
"test:web": "browsertest-runner -c nbt.json -p 9515",
|
|
50
|
-
"test:web:min": "browsertest-runner -c nbt.min.json -p 9515"
|
|
49
|
+
"test:web:min": "browsertest-runner -c nbt.min.json -p 9515",
|
|
50
|
+
"test:web:server": "browsertest-runner-debug"
|
|
51
51
|
},
|
|
52
52
|
"dependencies": {
|
|
53
53
|
"@js-soft/docdb-access-abstractions": "1.0.1",
|
|
54
54
|
"@js-soft/logging-abstractions": "1.0.0",
|
|
55
55
|
"@js-soft/simple-logger": "1.0.1",
|
|
56
56
|
"@js-soft/ts-utils": "1.1.1",
|
|
57
|
-
"axios": "^0.
|
|
57
|
+
"axios": "^0.26.1",
|
|
58
58
|
"deep-equal": "^2.0.5",
|
|
59
59
|
"fast-json-patch": "^3.1.0",
|
|
60
60
|
"form-data": "^4.0.0",
|
|
61
61
|
"json-stringify-safe": "^5.0.1",
|
|
62
62
|
"lodash": "^4.17.21",
|
|
63
|
-
"luxon": "^2.3.
|
|
63
|
+
"luxon": "^2.3.1",
|
|
64
64
|
"qs": "^6.10.3",
|
|
65
65
|
"reflect-metadata": "^0.1.13",
|
|
66
66
|
"ts-simple-nameof": "^1.3.1",
|
|
@@ -72,35 +72,37 @@
|
|
|
72
72
|
"@js-soft/eslint-config-ts": "1.4.2",
|
|
73
73
|
"@js-soft/license-check": "1.0.3",
|
|
74
74
|
"@js-soft/node-logger": "1.0.1",
|
|
75
|
-
"@js-soft/ts-serval": "1.
|
|
75
|
+
"@js-soft/ts-serval": "1.1.1",
|
|
76
76
|
"@js-soft/web-logger": "1.0.1",
|
|
77
77
|
"@nmshd/crypto": "1.0.8",
|
|
78
78
|
"@types/chai": "^4.3.0",
|
|
79
|
+
"@types/chai-as-promised": "^7.1.5",
|
|
79
80
|
"@types/deep-equal": "^1.0.1",
|
|
80
81
|
"@types/glob": "^7.2.0",
|
|
81
82
|
"@types/json-stringify-safe": "^5.0.0",
|
|
82
|
-
"@types/lodash": "^4.14.
|
|
83
|
-
"@types/luxon": "^2.
|
|
83
|
+
"@types/lodash": "^4.14.180",
|
|
84
|
+
"@types/luxon": "^2.3.1",
|
|
84
85
|
"@types/mocha": "^9.1.0",
|
|
85
|
-
"@types/node": "^17.0.
|
|
86
|
+
"@types/node": "^17.0.22",
|
|
86
87
|
"@types/qs": "^6.9.7",
|
|
87
88
|
"@types/uuid": "^8.3.4",
|
|
88
|
-
"bt-runner": "
|
|
89
|
+
"bt-runner": "2.0.5",
|
|
89
90
|
"chai": "^4.3.6",
|
|
91
|
+
"chai-as-promised": "^7.1.1",
|
|
90
92
|
"chai-exclude": "^2.1.0",
|
|
91
93
|
"chai-quantifiers": "^1.0.16",
|
|
92
94
|
"copy-webpack-plugin": "^10.2.4",
|
|
93
|
-
"eslint": "8.
|
|
95
|
+
"eslint": "8.11.0",
|
|
94
96
|
"madge": "^5.0.1",
|
|
95
|
-
"mocha": "^9.2.
|
|
97
|
+
"mocha": "^9.2.2",
|
|
96
98
|
"mocha-param": "^2.0.1",
|
|
97
|
-
"prettier": "^2.
|
|
98
|
-
"terser-webpack-plugin": "5.3.
|
|
99
|
+
"prettier": "^2.6.0",
|
|
100
|
+
"terser-webpack-plugin": "5.3.1",
|
|
99
101
|
"ts-mockito": "^2.6.1",
|
|
100
|
-
"ts-node": "^10.
|
|
101
|
-
"tsconfig-paths": "^3.
|
|
102
|
-
"typescript": "^4.
|
|
103
|
-
"webpack": "^5.
|
|
102
|
+
"ts-node": "^10.7.0",
|
|
103
|
+
"tsconfig-paths": "^3.14.0",
|
|
104
|
+
"typescript": "^4.6.2",
|
|
105
|
+
"webpack": "^5.70.0",
|
|
104
106
|
"webpack-cli": "^4.9.2"
|
|
105
107
|
},
|
|
106
108
|
"publishConfig": {
|