kuzzle 2.27.1 → 2.27.3
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/README.md +12 -6
- package/lib/api/controllers/adminController.js +9 -9
- package/lib/api/controllers/bulkController.js +9 -9
- package/lib/api/controllers/collectionController.js +17 -17
- package/lib/api/controllers/documentController.js +51 -51
- package/lib/api/controllers/indexController.js +4 -4
- package/lib/api/controllers/memoryStorageController.js +11 -11
- package/lib/api/controllers/realtimeController.js +1 -1
- package/lib/api/controllers/securityController.js +67 -70
- package/lib/api/controllers/serverController.js +5 -5
- package/lib/api/documentExtractor.js +3 -3
- package/lib/api/funnel.js +43 -43
- package/lib/api/rateLimiter.js +1 -1
- package/lib/cluster/command.js +4 -4
- package/lib/cluster/idCardHandler.js +1 -1
- package/lib/cluster/node.js +55 -55
- package/lib/cluster/subscriber.js +33 -33
- package/lib/cluster/workers/IDCardRenewer.js +4 -4
- package/lib/config/index.js +24 -24
- package/lib/core/auth/passportWrapper.js +6 -6
- package/lib/core/cache/cacheEngine.js +20 -20
- package/lib/core/network/accessLogger.js +15 -15
- package/lib/core/network/entryPoint.js +12 -12
- package/lib/core/network/httpRouter/index.js +4 -4
- package/lib/core/network/httpRouter/routePart.js +2 -2
- package/lib/core/network/protocols/httpwsProtocol.js +41 -41
- package/lib/core/network/protocols/internalProtocol.js +2 -2
- package/lib/core/network/protocols/mqttProtocol.js +9 -9
- package/lib/core/network/protocols/protocol.js +3 -3
- package/lib/core/network/router.js +7 -7
- package/lib/core/plugin/plugin.js +23 -23
- package/lib/core/plugin/pluginManifest.js +1 -1
- package/lib/core/plugin/pluginsManager.js +62 -62
- package/lib/core/realtime/notifier.js +14 -14
- package/lib/core/security/README.md +223 -0
- package/lib/core/security/roleRepository.js +18 -18
- package/lib/core/security/securityLoader.js +7 -7
- package/lib/core/security/userRepository.js +16 -16
- package/lib/core/shared/README.md +3 -0
- package/lib/core/shared/abstractManifest.js +1 -1
- package/lib/core/shared/sdk/impersonatedSdk.js +1 -1
- package/lib/core/shared/store.js +11 -11
- package/lib/core/statistics/statistics.js +15 -15
- package/lib/core/storage/clientAdapter.js +61 -61
- package/lib/core/validation/baseType.js +1 -1
- package/lib/core/validation/types/date.js +1 -1
- package/lib/core/validation/types/enum.js +5 -5
- package/lib/core/validation/types/geoShape.js +13 -13
- package/lib/core/validation/types/numeric.js +2 -2
- package/lib/core/validation/types/string.js +2 -2
- package/lib/core/validation/validation.js +71 -71
- package/lib/kerror/codes/index.js +23 -23
- package/lib/kuzzle/dumpGenerator.js +17 -17
- package/lib/kuzzle/event/kuzzleEventEmitter.js +9 -9
- package/lib/kuzzle/event/pipeRunner.js +2 -2
- package/lib/kuzzle/internalIndexHandler.js +8 -8
- package/lib/kuzzle/log.js +2 -2
- package/lib/kuzzle/vault.js +4 -4
- package/lib/model/security/role.js +3 -1
- package/lib/model/security/user.js +3 -1
- package/lib/model/storage/apiKey.js +3 -3
- package/lib/model/storage/baseModel.js +7 -7
- package/lib/service/cache/redis.js +3 -3
- package/lib/service/storage/elasticsearch.js +52 -52
- package/lib/service/storage/esWrapper.js +3 -3
- package/lib/service/storage/queryTranslator.js +2 -2
- package/lib/util/assertType.js +1 -1
- package/lib/util/deprecate.js +3 -3
- package/lib/util/extractFields.js +2 -2
- package/lib/util/wildcard.js +1 -1
- package/package.json +69 -81
package/package.json
CHANGED
|
@@ -1,42 +1,29 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "kuzzle",
|
|
3
3
|
"author": "The Kuzzle Team <support@kuzzle.io>",
|
|
4
|
-
"version": "2.27.
|
|
4
|
+
"version": "2.27.3",
|
|
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": "bin/start-kuzzle-server",
|
|
7
7
|
"scripts": {
|
|
8
|
-
"build
|
|
9
|
-
"build": "npm run build-ts",
|
|
8
|
+
"build": "tsc",
|
|
10
9
|
"clean": "touch index.ts && npm run build | grep TSFILE | cut -d' ' -f 2 | xargs rm",
|
|
11
10
|
"codecov": "codecov",
|
|
12
11
|
"cucumber": "cucumber.js --fail-fast",
|
|
13
|
-
"dev
|
|
14
|
-
"dev": "npx ergol docker/scripts/start-kuzzle-dev.ts -c ./config/ergol.config.json",
|
|
12
|
+
"dev": "ergol docker/scripts/start-kuzzle-dev.ts -c ./config/ergol.config.json",
|
|
15
13
|
"doc-error-codes": "node -r ts-node/register doc/build-error-codes",
|
|
16
|
-
"docker:install": "docker-compose run kuzzle_node_1 npm install",
|
|
17
|
-
"docker:npm": "docker-compose run kuzzle_node_1 npm run --",
|
|
18
|
-
"docker:test:unit": "docker-compose run kuzzle_node_1 npm run test:unit",
|
|
19
|
-
"docker": "docker-compose run kuzzle_node_1 ",
|
|
20
|
-
"file": "npx ergol docker/scripts/start-kuzzle-dev.ts -c ./config/ergol.config.json",
|
|
21
14
|
"prepublishOnly": "npm run build",
|
|
22
|
-
"prettier": "
|
|
23
|
-
"
|
|
24
|
-
"
|
|
25
|
-
"test:functional:http": "
|
|
26
|
-
"test:functional:
|
|
27
|
-
"test:functional:legacy:
|
|
28
|
-
"test:functional:legacy:mqtt": "npx cucumber-js --format progress-bar --profile mqtt ./features-legacy",
|
|
29
|
-
"test:functional:legacy:websocket": "npx cucumber-js --format progress-bar --profile websocket ./features-legacy",
|
|
15
|
+
"prettier": "prettier ./lib ./test ./bin ./features ./plugins/available/functional-test-plugin --write",
|
|
16
|
+
"test:functional:http": "KUZZLE_PROTOCOL=http cucumber-js --profile http",
|
|
17
|
+
"test:functional:jest": "jest",
|
|
18
|
+
"test:functional:legacy:http": "cucumber-js --format progress-bar --profile http ./features-legacy",
|
|
19
|
+
"test:functional:legacy:mqtt": "cucumber-js --format progress-bar --profile mqtt ./features-legacy",
|
|
20
|
+
"test:functional:legacy:websocket": "cucumber-js --format progress-bar --profile websocket ./features-legacy",
|
|
30
21
|
"test:functional:legacy": "npm run test:functional:legacy:http && npm run test:functional:legacy:websocket && npm run test:functional:legacy:mqtt",
|
|
31
|
-
"test:functional:websocket": "KUZZLE_PROTOCOL=websocket
|
|
32
|
-
"test:functional": "npm run test:functional:http && npm run test:functional:websocket && npm run test:jest",
|
|
33
|
-
"test:
|
|
34
|
-
"test:lint:
|
|
35
|
-
"test:lint:js": "eslint --max-warnings=0 ./lib ./test ./bin ./features ./plugins/available/functional-test-plugin",
|
|
36
|
-
"test:lint:ts:fix": "eslint --max-warnings=0 --fix ./lib --ext .ts --config .eslintc-ts.json",
|
|
37
|
-
"test:lint:ts": "eslint --max-warnings=0 ./lib --ext .ts --config .eslintc-ts.json",
|
|
22
|
+
"test:functional:websocket": "KUZZLE_PROTOCOL=websocket cucumber-js --profile websocket",
|
|
23
|
+
"test:functional": "npm run test:functional:http && npm run test:functional:websocket && npm run test:functional:jest",
|
|
24
|
+
"test:lint:js": "eslint ./lib ./test ./bin ./features ./plugins/available/functional-test-plugin",
|
|
25
|
+
"test:lint:ts": "eslint ./lib --ext .ts --config .eslintc-ts.json",
|
|
38
26
|
"test:lint": "npm run test:lint:js && npm run test:lint:ts",
|
|
39
|
-
"test:unit:coverage": "DEBUG= nyc --reporter=text-summary --reporter=lcov mocha --exit",
|
|
40
27
|
"test:unit": "DEBUG= npx --node-arg=--trace-warnings mocha --exit",
|
|
41
28
|
"test": "npm run clean && npm run --silent test:lint && npm run build && npm run test:unit:coverage && npm run test:functional"
|
|
42
29
|
},
|
|
@@ -45,45 +32,46 @@
|
|
|
45
32
|
},
|
|
46
33
|
"dependencies": {
|
|
47
34
|
"@elastic/elasticsearch": "https://github.com/elastic/elasticsearch-js/archive/refs/tags/v7.13.0.tar.gz",
|
|
48
|
-
"aedes": "
|
|
49
|
-
"bluebird": "
|
|
50
|
-
"cli-color": "
|
|
51
|
-
"cookie": "
|
|
52
|
-
"debug": "
|
|
53
|
-
"denque": "
|
|
54
|
-
"didyoumean": "
|
|
55
|
-
"dumpme": "
|
|
56
|
-
"eventemitter3": "
|
|
57
|
-
"inquirer": "
|
|
58
|
-
"ioredis": "
|
|
59
|
-
"js-yaml": "
|
|
60
|
-
"json-stable-stringify": "
|
|
61
|
-
"json2yaml": "
|
|
62
|
-
"jsonwebtoken": "
|
|
35
|
+
"aedes": "0.46.3",
|
|
36
|
+
"bluebird": "3.7.2",
|
|
37
|
+
"cli-color": "2.0.3",
|
|
38
|
+
"cookie": "0.5.0",
|
|
39
|
+
"debug": "4.3.4",
|
|
40
|
+
"denque": "2.1.0",
|
|
41
|
+
"didyoumean": "1.2.2",
|
|
42
|
+
"dumpme": "1.0.3",
|
|
43
|
+
"eventemitter3": "4.0.7",
|
|
44
|
+
"inquirer": "9.2.12",
|
|
45
|
+
"ioredis": "5.3.2",
|
|
46
|
+
"js-yaml": "4.1.0",
|
|
47
|
+
"json-stable-stringify": "1.0.2",
|
|
48
|
+
"json2yaml": "1.1.0",
|
|
49
|
+
"jsonwebtoken": "8.5.1",
|
|
63
50
|
"koncorde": "4.3.0",
|
|
64
51
|
"kuzzle-plugin-auth-passport-local": "6.4.0",
|
|
65
|
-
"kuzzle-plugin-logger": "
|
|
66
|
-
"kuzzle-sdk": "7.11.
|
|
67
|
-
"kuzzle-vault": "
|
|
52
|
+
"kuzzle-plugin-logger": "3.0.3",
|
|
53
|
+
"kuzzle-sdk": "7.11.1",
|
|
54
|
+
"kuzzle-vault": "2.0.4",
|
|
68
55
|
"lodash": "4.17.21",
|
|
69
|
-
"long": "
|
|
70
|
-
"moment": "
|
|
71
|
-
"ms": "
|
|
72
|
-
"murmurhash-native": "
|
|
73
|
-
"ndjson": "
|
|
74
|
-
"node-segfault-handler": "
|
|
75
|
-
"
|
|
76
|
-
"
|
|
56
|
+
"long": "5.2.3",
|
|
57
|
+
"moment": "2.29.4",
|
|
58
|
+
"ms": "2.1.3",
|
|
59
|
+
"murmurhash-native": "3.5.0",
|
|
60
|
+
"ndjson": "2.0.0",
|
|
61
|
+
"node-segfault-handler": "1.4.2",
|
|
62
|
+
"npm": "^10.2.4",
|
|
63
|
+
"passport": "0.6.0",
|
|
64
|
+
"protobufjs": "7.2.5",
|
|
77
65
|
"rc": "1.2.8",
|
|
78
|
-
"semver": "
|
|
79
|
-
"sorted-array": "
|
|
66
|
+
"semver": "7.5.4",
|
|
67
|
+
"sorted-array": "2.0.4",
|
|
80
68
|
"uuid": "9.0.1",
|
|
81
|
-
"uWebSockets.js": "https://github.com/uNetworking/uWebSockets.js/archive/refs/tags/v20.
|
|
69
|
+
"uWebSockets.js": "https://github.com/uNetworking/uWebSockets.js/archive/refs/tags/v20.34.0.tar.gz",
|
|
82
70
|
"validator": "13.11.0",
|
|
83
|
-
"winston": "3.
|
|
71
|
+
"winston": "3.11.0",
|
|
84
72
|
"winston-elasticsearch": "0.17.4",
|
|
85
|
-
"winston-syslog": "
|
|
86
|
-
"winston-transport": "
|
|
73
|
+
"winston-syslog": "2.7.0",
|
|
74
|
+
"winston-transport": "4.6.0",
|
|
87
75
|
"yargs": "17.7.2",
|
|
88
76
|
"zeromq": "6.0.0-beta.6"
|
|
89
77
|
},
|
|
@@ -92,32 +80,32 @@
|
|
|
92
80
|
"url": "git://github.com/kuzzleio/kuzzle.git"
|
|
93
81
|
},
|
|
94
82
|
"devDependencies": {
|
|
95
|
-
"@jest/globals": "
|
|
96
|
-
"@types/jest": "
|
|
97
|
-
"@types/js-yaml": "
|
|
98
|
-
"@types/lodash": "
|
|
99
|
-
"async": "
|
|
100
|
-
"chokidar": "
|
|
101
|
-
"codecov": "
|
|
102
|
-
"cucumber": "
|
|
103
|
-
"ergol": "
|
|
104
|
-
"eslint-plugin-kuzzle": "
|
|
105
|
-
"jest": "
|
|
106
|
-
"mocha": "
|
|
107
|
-
"mock-require": "
|
|
108
|
-
"mqtt": "
|
|
109
|
-
"nyc": "
|
|
110
|
-
"request": "
|
|
111
|
-
"request-promise": "
|
|
112
|
-
"rewire": "
|
|
83
|
+
"@jest/globals": "29.4.1",
|
|
84
|
+
"@types/jest": "29.4.0",
|
|
85
|
+
"@types/js-yaml": "4.0.5",
|
|
86
|
+
"@types/lodash": "4.14.191",
|
|
87
|
+
"async": "3.2.4",
|
|
88
|
+
"chokidar": "3.5.3",
|
|
89
|
+
"codecov": "3.8.3",
|
|
90
|
+
"cucumber": "6.0.5",
|
|
91
|
+
"ergol": "1.0.2",
|
|
92
|
+
"eslint-plugin-kuzzle": "0.0.12",
|
|
93
|
+
"jest": "29.7.0",
|
|
94
|
+
"mocha": "10.2.0",
|
|
95
|
+
"mock-require": "3.0.3",
|
|
96
|
+
"mqtt": "4.3.7",
|
|
97
|
+
"nyc": "15.1.0",
|
|
98
|
+
"request": "2.88.2",
|
|
99
|
+
"request-promise": "4.2.6",
|
|
100
|
+
"rewire": "5.0.0",
|
|
113
101
|
"should": "13.2.3",
|
|
114
102
|
"should-sinon": "0.0.6",
|
|
115
|
-
"sinon": "
|
|
103
|
+
"sinon": "14.0.2",
|
|
116
104
|
"strip-json-comments": "https://github.com/sindresorhus/strip-json-comments/archive/refs/tags/v3.1.1.tar.gz",
|
|
117
|
-
"ts-jest": "
|
|
118
|
-
"ts-node": "
|
|
119
|
-
"typescript": "
|
|
120
|
-
"yaml": "
|
|
105
|
+
"ts-jest": "29.1.1",
|
|
106
|
+
"ts-node": "10.9.1",
|
|
107
|
+
"typescript": "4.9.5",
|
|
108
|
+
"yaml": "2.2.1"
|
|
121
109
|
},
|
|
122
110
|
"engines": {
|
|
123
111
|
"node": ">= 12.13.0"
|