kuzzle 2.14.0 → 2.14.5

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 (36) hide show
  1. package/lib/api/controllers/securityController.js +49 -13
  2. package/lib/api/funnel.js +13 -24
  3. package/lib/api/openApiGenerator.js +6 -0
  4. package/lib/api/request/kuzzleRequest.js +9 -9
  5. package/lib/config/default.config.js +10 -1
  6. package/lib/core/auth/tokenManager.d.ts +65 -0
  7. package/lib/core/auth/tokenManager.js +222 -256
  8. package/lib/core/backend/backend.js +3 -4
  9. package/lib/core/backend/backendController.d.ts +27 -0
  10. package/lib/core/backend/backendController.js +27 -0
  11. package/lib/core/backend/backendImport.js +6 -6
  12. package/lib/core/backend/backendPlugin.js +1 -1
  13. package/lib/core/plugin/plugin.js +42 -2
  14. package/lib/core/plugin/pluginContext.js +2 -2
  15. package/lib/core/plugin/pluginsManager.js +1 -0
  16. package/lib/core/realtime/hotelClerk.js +30 -16
  17. package/lib/core/security/profileRepository.js +5 -22
  18. package/lib/core/security/roleRepository.js +11 -5
  19. package/lib/core/security/tokenRepository.js +1 -1
  20. package/lib/core/security/userRepository.js +2 -2
  21. package/lib/core/shared/KoncordeWrapper.d.ts +1 -2
  22. package/lib/core/shared/KoncordeWrapper.js +10 -9
  23. package/lib/core/shared/repository.js +3 -3
  24. package/lib/core/shared/sdk/embeddedSdk.d.ts +2 -2
  25. package/lib/core/shared/sdk/embeddedSdk.js +2 -2
  26. package/lib/kerror/codes/4-plugin.json +6 -0
  27. package/lib/kuzzle/kuzzle.js +1 -1
  28. package/lib/model/security/token.d.ts +29 -0
  29. package/lib/model/security/token.js +25 -24
  30. package/lib/service/storage/elasticsearch.js +23 -5
  31. package/lib/types/ControllerDefinition.d.ts +51 -1
  32. package/lib/types/Plugin.js +1 -1
  33. package/lib/util/koncordeCompat.js +1 -1
  34. package/lib/util/mutex.js +2 -2
  35. package/package-lock.json +559 -1889
  36. package/package.json +27 -34
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "kuzzle",
3
3
  "author": "The Kuzzle Team <support@kuzzle.io>",
4
- "version": "2.14.0",
4
+ "version": "2.14.5",
5
5
  "description": "Kuzzle is an open-source solution that handles all the data management through a secured API, with a large choice of protocols.",
6
6
  "bin": {
7
7
  "kuzzle": "bin/start-kuzzle-server"
@@ -33,59 +33,53 @@
33
33
  "test:lint:ts:fix": "eslint --max-warnings=0 --fix ./lib --ext .ts --config .eslintc-ts.json",
34
34
  "test:lint:js": "eslint --max-warnings=0 ./lib ./test ./features-legacy ./bin ./features ./doc/build-error-codes.js ./plugins/available/functional-test-plugin",
35
35
  "test:lint:js:fix": "eslint --max-warnings=0 --fix ./lib ./test ./features-legacy ./bin ./features ./doc/build-error-codes.js",
36
- "doc-prepare": "kuzdoc framework:install",
37
- "doc-dev": "kuzdoc repo:dev -d /core/2/ -v 2",
38
- "doc-build": "kuzdoc repo:build -d /core/2/ -v 2",
39
- "doc-upload": "kuzdoc repo:deploy -d /core/2/ -v 2",
40
- "doc-cloudfront": "kuzdoc repo:cloudfront -d /core/2/*",
41
- "doc-deploy": "npm run doc-upload && npm run doc-cloudfront",
42
- "doc-netlify": "npm run doc-prepare && kuzdoc repo:build -d / -v 2",
43
36
  "doc-error-codes": "node -r ts-node/register doc/build-error-codes"
44
37
  },
45
38
  "directories": {
46
39
  "lib": "lib"
47
40
  },
48
41
  "dependencies": {
49
- "@elastic/elasticsearch": "^7.13.0",
50
- "aedes": "^0.46.0",
42
+ "@elastic/elasticsearch": "7.13.0",
43
+ "aedes": "^0.46.1",
51
44
  "bluebird": "^3.7.2",
52
45
  "cli-color": "^2.0.0",
53
46
  "cookie": "^0.4.1",
54
- "debug": "^4.3.1",
55
- "denque": "^1.5.0",
56
- "didyoumean": "^1.2.1",
47
+ "debug": "^4.3.2",
48
+ "denque": "^2.0.1",
49
+ "didyoumean": "^1.2.2",
57
50
  "dumpme": "^1.0.3",
58
51
  "eventemitter3": "^4.0.7",
59
- "inquirer": "^8.1.1",
60
- "ioredis": "^4.27.6",
52
+ "inquirer": "^8.1.4",
53
+ "ioredis": "^4.27.9",
61
54
  "json-stable-stringify": "^1.0.1",
62
55
  "json2yaml": "^1.1.0",
63
56
  "jsonwebtoken": "^8.5.1",
64
57
  "koncorde": "^4.0.2",
65
- "kuzzle-plugin-auth-passport-local": "^6.2.0",
58
+ "kuzzle-plugin-auth-passport-local": "^6.3.4",
66
59
  "kuzzle-plugin-logger": "^3.0.3",
67
- "kuzzle-sdk": "7.7.1",
60
+ "kuzzle-sdk": "7.7.5",
68
61
  "kuzzle-vault": "^2.0.4",
69
62
  "lodash": "4.17.21",
70
63
  "long": "^4.0.0",
71
64
  "moment": "^2.29.1",
72
65
  "ms": "^2.1.3",
73
66
  "murmurhash-native": "^3.5.0",
74
- "nanoid": "^3.1.23",
67
+ "nanoid": "^3.1.25",
68
+ "openapi-enforcer": "^1.15.3",
75
69
  "passport": "^0.4.1",
76
70
  "protobufjs": "~6.11.2",
77
71
  "rc": "1.2.8",
78
72
  "segfault-handler": "^1.3.0",
79
73
  "semver": "^7.3.5",
80
74
  "sorted-array": "^2.0.4",
81
- "uWebSockets.js": "https://github.com/uNetworking/uWebSockets.js/archive/refs/tags/v18.14.0.tar.gz",
75
+ "uWebSockets.js": "https://github.com/uNetworking/uWebSockets.js/archive/refs/tags/v19.3.0.tar.gz",
82
76
  "uuid": "^8.3.2",
83
77
  "validator": "^13.6.0",
84
78
  "winston": "^3.3.3",
85
- "winston-elasticsearch": "0.15.6",
79
+ "winston-elasticsearch": "0.15.9",
86
80
  "winston-syslog": "^2.4.4",
87
81
  "winston-transport": "^4.4.0",
88
- "yargs": "^17.0.1",
82
+ "yargs": "^17.1.1",
89
83
  "zeromq": "^6.0.0-beta.6"
90
84
  },
91
85
  "repository": {
@@ -93,18 +87,17 @@
93
87
  "url": "git://github.com/kuzzleio/kuzzle.git"
94
88
  },
95
89
  "devDependencies": {
96
- "@types/lodash": "^4.14.170",
97
- "@typescript-eslint/eslint-plugin": "^4.28.0",
98
- "@typescript-eslint/parser": "^4.28.0",
99
- "async": "^3.2.0",
90
+ "@types/lodash": "^4.14.172",
91
+ "@typescript-eslint/eslint-plugin": "^4.31.1",
92
+ "@typescript-eslint/parser": "^4.31.1",
93
+ "async": "^3.2.1",
100
94
  "chokidar": "^3.5.2",
101
- "codecov": "^3.8.2",
95
+ "codecov": "^3.8.3",
102
96
  "cucumber": "^6.0.5",
103
- "ergol": "^1.0.0",
104
- "eslint": "^7.29.0",
97
+ "ergol": "^1.0.1",
98
+ "eslint": "^7.32.0",
105
99
  "js-yaml": "^4.1.0",
106
- "kuzdoc": "^1.4.5",
107
- "mocha": "^9.0.1",
100
+ "mocha": "^9.1.1",
108
101
  "mock-require": "^3.0.3",
109
102
  "mqtt": "^4.2.8",
110
103
  "nyc": "^15.1.0",
@@ -113,10 +106,10 @@
113
106
  "rewire": "^5.0.0",
114
107
  "should": "13.2.3",
115
108
  "should-sinon": "0.0.6",
116
- "sinon": "^11.1.1",
117
- "strip-json-comments": "^3.1.1",
118
- "ts-node": "^10.0.0",
119
- "typescript": "^4.3.4"
109
+ "sinon": "^11.1.2",
110
+ "strip-json-comments": "3.1.1",
111
+ "ts-node": "^10.2.1",
112
+ "typescript": "^4.4.3"
120
113
  },
121
114
  "engines": {
122
115
  "node": ">= 12.13.0"