@nmshd/transport 1.0.8 → 1.1.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.
Files changed (67) hide show
  1. package/dist/buildInformation.js +5 -5
  2. package/dist/core/DependencyOverrides.d.ts +4 -0
  3. package/dist/core/DependencyOverrides.js +3 -0
  4. package/dist/core/DependencyOverrides.js.map +1 -0
  5. package/dist/core/Transport.d.ts +2 -3
  6. package/dist/core/Transport.js +26 -23
  7. package/dist/core/Transport.js.map +1 -1
  8. package/dist/core/TransportErrors.d.ts +4 -0
  9. package/dist/core/TransportErrors.js +12 -0
  10. package/dist/core/TransportErrors.js.map +1 -1
  11. package/dist/core/backbone/RESTClient.js +1 -1
  12. package/dist/core/backbone/RESTClient.js.map +1 -1
  13. package/dist/core/backbone/index.d.ts +1 -0
  14. package/dist/core/backbone/index.js +1 -0
  15. package/dist/core/backbone/index.js.map +1 -1
  16. package/dist/core/index.d.ts +1 -0
  17. package/dist/core/index.js +1 -0
  18. package/dist/core/index.js.map +1 -1
  19. package/dist/modules/accounts/AccountController.d.ts +3 -1
  20. package/dist/modules/accounts/AccountController.js +8 -5
  21. package/dist/modules/accounts/AccountController.js.map +1 -1
  22. package/dist/modules/devices/DeviceController.d.ts +5 -1
  23. package/dist/modules/devices/DeviceController.js +9 -4
  24. package/dist/modules/devices/DeviceController.js.map +1 -1
  25. package/dist/modules/devices/local/Device.d.ts +2 -0
  26. package/dist/modules/devices/local/Device.js +7 -1
  27. package/dist/modules/devices/local/Device.js.map +1 -1
  28. package/dist/modules/index.d.ts +8 -0
  29. package/dist/modules/index.js +8 -0
  30. package/dist/modules/index.js.map +1 -1
  31. package/dist/modules/relationshipTemplates/RelationshipTemplateController.js +2 -2
  32. package/dist/modules/relationshipTemplates/RelationshipTemplateController.js.map +1 -1
  33. package/dist/modules/sync/DatawalletModificationMapper.d.ts +1 -1
  34. package/dist/modules/sync/DatawalletModificationMapper.js +6 -3
  35. package/dist/modules/sync/DatawalletModificationMapper.js.map +1 -1
  36. package/dist/modules/sync/SyncController.d.ts +17 -4
  37. package/dist/modules/sync/SyncController.js +154 -24
  38. package/dist/modules/sync/SyncController.js.map +1 -1
  39. package/dist/modules/sync/SynchronizedCollection.d.ts +2 -1
  40. package/dist/modules/sync/SynchronizedCollection.js +18 -9
  41. package/dist/modules/sync/SynchronizedCollection.js.map +1 -1
  42. package/dist/modules/sync/backbone/BackboneDatawalletModification.d.ts +1 -0
  43. package/dist/modules/sync/backbone/CreateDatawalletModifications.d.ts +1 -0
  44. package/dist/modules/sync/backbone/FinalizeSyncRun.d.ts +15 -9
  45. package/dist/modules/sync/backbone/GetDatawallet.d.ts +3 -0
  46. package/dist/modules/sync/backbone/GetDatawallet.js +3 -0
  47. package/dist/modules/sync/backbone/GetDatawallet.js.map +1 -0
  48. package/dist/modules/sync/backbone/StartSyncRun.d.ts +8 -0
  49. package/dist/modules/sync/backbone/StartSyncRun.js +6 -1
  50. package/dist/modules/sync/backbone/StartSyncRun.js.map +1 -1
  51. package/dist/modules/sync/backbone/SyncClient.d.ts +21 -6
  52. package/dist/modules/sync/backbone/SyncClient.js +19 -6
  53. package/dist/modules/sync/backbone/SyncClient.js.map +1 -1
  54. package/dist/modules/sync/local/DatawalletModification.d.ts +2 -0
  55. package/dist/modules/sync/local/DatawalletModification.js +5 -0
  56. package/dist/modules/sync/local/DatawalletModification.js.map +1 -1
  57. package/dist/modules/sync/migrations/DeviceMigrations.d.ts +6 -0
  58. package/dist/modules/sync/migrations/DeviceMigrations.js +24 -0
  59. package/dist/modules/sync/migrations/DeviceMigrations.js.map +1 -0
  60. package/dist/modules/sync/migrations/IdentityMigrations.d.ts +6 -0
  61. package/dist/modules/sync/migrations/IdentityMigrations.js +14 -0
  62. package/dist/modules/sync/migrations/IdentityMigrations.js.map +1 -0
  63. package/lib-web/nmshd.transport.js +577 -198
  64. package/lib-web/nmshd.transport.js.map +1 -1
  65. package/lib-web/nmshd.transport.min.js +1 -1
  66. package/lib-web/nmshd.transport.min.js.map +1 -1
  67. package/package.json +14 -14
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nmshd/transport",
3
- "version": "1.0.8",
3
+ "version": "1.1.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",
@@ -47,14 +47,13 @@
47
47
  "test:performance:kube:stop": "kubectl delete -f ./test/performance/k8s.yaml",
48
48
  "test:web:server": "browsertest-runner-debug",
49
49
  "test:web": "browsertest-runner -c nbt.json -p 9515",
50
- "test:web:min": "browsertest-runner -c nbt.min.json -p 9515",
51
- "test:single": "mocha -r ts-node/register -r tsconfig-paths/register ./test/index.single.ts --project ./test/tsconfig.json --exit"
50
+ "test:web:min": "browsertest-runner -c nbt.min.json -p 9515"
52
51
  },
53
52
  "dependencies": {
54
53
  "@js-soft/docdb-access-abstractions": "1.0.1",
55
54
  "@js-soft/logging-abstractions": "1.0.0",
56
55
  "@js-soft/simple-logger": "1.0.0",
57
- "@js-soft/ts-utils": "1.0.1",
56
+ "@js-soft/ts-utils": "1.1.1",
58
57
  "axios": "^0.24.0",
59
58
  "deep-equal": "^2.0.5",
60
59
  "fast-json-patch": "^3.1.0",
@@ -69,7 +68,7 @@
69
68
  },
70
69
  "devDependencies": {
71
70
  "@js-soft/docdb-access-loki": "1.0.2",
72
- "@js-soft/docdb-access-mongo": "1.0.2",
71
+ "@js-soft/docdb-access-mongo": "1.0.3",
73
72
  "@js-soft/eslint-config-ts": "1.4.2",
74
73
  "@js-soft/license-check": "1.0.3",
75
74
  "@js-soft/node-logger": "1.0.0",
@@ -80,17 +79,18 @@
80
79
  "@types/deep-equal": "^1.0.1",
81
80
  "@types/glob": "^7.2.0",
82
81
  "@types/json-stringify-safe": "^5.0.0",
83
- "@types/lodash": "^4.14.176",
82
+ "@types/lodash": "^4.14.177",
84
83
  "@types/luxon": "^2.0.7",
85
84
  "@types/mocha": "^9.0.0",
86
- "@types/node": "^16.11.7",
85
+ "@types/node": "^16.11.9",
87
86
  "@types/qs": "^6.9.7",
88
- "@types/uuid": "^8.3.1",
89
- "bt-runner": "^1.0.20",
87
+ "@types/uuid": "^8.3.3",
88
+ "bt-runner": "^1.0.21",
90
89
  "chai": "^4.3.4",
91
90
  "chai-exclude": "^2.1.0",
92
- "copy-webpack-plugin": "^9.1.0",
93
- "eslint": "8.2.0",
91
+ "chai-quantifiers": "^1.0.16",
92
+ "copy-webpack-plugin": "^10.0.0",
93
+ "eslint": "8.3.0",
94
94
  "madge": "^5.0.1",
95
95
  "mocha": "^9.1.3",
96
96
  "mocha-param": "^2.0.1",
@@ -98,9 +98,9 @@
98
98
  "terser-webpack-plugin": "5.2.5",
99
99
  "ts-mockito": "^2.6.1",
100
100
  "ts-node": "^10.4.0",
101
- "tsconfig-paths": "^3.11.0",
102
- "typescript": "^4.4.4",
103
- "webpack": "^5.64.0",
101
+ "tsconfig-paths": "^3.12.0",
102
+ "typescript": "^4.5.2",
103
+ "webpack": "^5.64.2",
104
104
  "webpack-cli": "^4.9.1"
105
105
  },
106
106
  "publishConfig": {