kuzzle 2.59.0 → 2.60.0-beta.2
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/bin/copy-binaries.js +17 -7
- package/dist/bin/start-kuzzle-server +17 -7
- package/dist/index.d.ts +2 -1
- package/dist/index.js +6 -2
- package/dist/lib/api/controllers/adminController.d.ts +9 -3
- package/dist/lib/api/controllers/adminController.js +42 -26
- package/dist/lib/api/controllers/authController.d.ts +15 -5
- package/dist/lib/api/controllers/authController.js +35 -20
- package/dist/lib/api/controllers/baseController.js +17 -7
- package/dist/lib/api/controllers/bulkController.js +17 -7
- package/dist/lib/api/controllers/collectionController.js +17 -7
- package/dist/lib/api/controllers/debugController.js +17 -7
- package/dist/lib/api/controllers/documentController.js +17 -7
- package/dist/lib/api/controllers/indexController.d.ts +1 -1
- package/dist/lib/api/controllers/memoryStorageController.js +17 -7
- package/dist/lib/api/controllers/securityController.d.ts +30 -28
- package/dist/lib/api/controllers/securityController.js +18 -8
- package/dist/lib/api/controllers/serverController.d.ts +0 -1
- package/dist/lib/api/controllers/serverController.js +17 -7
- package/dist/lib/api/documentExtractor.js +17 -7
- package/dist/lib/api/funnel.js +19 -9
- package/dist/lib/api/httpRoutes.d.ts +2 -1
- package/dist/lib/api/openapi/OpenApiManager.d.ts +2 -1
- package/dist/lib/api/openapi/openApiGenerator.js +1 -2
- package/dist/lib/api/request/kuzzleRequest.d.ts +9 -2
- package/dist/lib/api/request/kuzzleRequest.js +21 -7
- package/dist/lib/api/request/requestContext.d.ts +7 -2
- package/dist/lib/api/request/requestContext.js +17 -7
- package/dist/lib/api/request/requestInput.d.ts +1 -1
- package/dist/lib/api/request/requestInput.js +17 -7
- package/dist/lib/api/request/requestResponse.d.ts +2 -2
- package/dist/lib/api/request/requestResponse.js +21 -10
- package/dist/lib/cluster/command.d.ts +0 -2
- package/dist/lib/cluster/command.js +17 -7
- package/dist/lib/cluster/idCardHandler.d.ts +3 -2
- package/dist/lib/cluster/idCardHandler.js +1 -1
- package/dist/lib/cluster/node.js +69 -64
- package/dist/lib/cluster/protobuf/command.proto +23 -22
- package/dist/lib/cluster/protobuf/sync.proto +91 -85
- package/dist/lib/cluster/publisher.js +17 -7
- package/dist/lib/cluster/state.js +17 -7
- package/dist/lib/cluster/subscriber.d.ts +0 -2
- package/dist/lib/cluster/subscriber.js +17 -7
- package/dist/lib/cluster/workers/IDCardRenewer.d.ts +0 -1
- package/dist/lib/config/index.js +20 -14
- package/dist/lib/core/auth/formatProcessing.d.ts +1 -1
- package/dist/lib/core/auth/formatProcessing.js +3 -3
- package/dist/lib/core/auth/passportResponse.d.ts +0 -1
- package/dist/lib/core/auth/passportWrapper.js +22 -8
- package/dist/lib/core/backend/backend.js +17 -7
- package/dist/lib/core/backend/backendConfig.d.ts +1 -1
- package/dist/lib/core/backend/backendConfig.js +17 -7
- package/dist/lib/core/backend/backendController.js +17 -7
- package/dist/lib/core/backend/backendErrors.js +17 -7
- package/dist/lib/core/backend/backendHook.js +17 -7
- package/dist/lib/core/backend/backendImport.js +17 -7
- package/dist/lib/core/backend/backendPipe.d.ts +4 -1
- package/dist/lib/core/backend/backendPipe.js +17 -7
- package/dist/lib/core/backend/backendPlugin.js +17 -7
- package/dist/lib/core/backend/backendStorage.js +8 -8
- package/dist/lib/core/backend/backendSubscription.js +17 -7
- package/dist/lib/core/backend/backendVault.js +17 -7
- package/dist/lib/core/backend/internalLogger.d.ts +7 -7
- package/dist/lib/core/debug/kuzzleDebugger.js +17 -7
- package/dist/lib/core/network/accessLogger.d.ts +0 -1
- package/dist/lib/core/network/accessLogger.js +17 -7
- package/dist/lib/core/network/clientConnection.js +17 -7
- package/dist/lib/core/network/context.d.ts +0 -1
- package/dist/lib/core/network/entryPoint.js +17 -7
- package/dist/lib/core/network/httpRouter/routePart.js +17 -7
- package/dist/lib/core/network/protocols/httpMessage.d.ts +0 -2
- package/dist/lib/core/network/protocols/httpwsProtocol.d.ts +0 -3
- package/dist/lib/core/network/protocols/httpwsProtocol.js +29 -12
- package/dist/lib/core/network/protocols/mqttProtocol.d.ts +1 -2
- package/dist/lib/core/network/protocols/mqttProtocol.js +31 -10
- package/dist/lib/core/network/router.js +17 -7
- package/dist/lib/core/plugin/plugin.js +17 -7
- package/dist/lib/core/plugin/pluginContext.d.ts +20 -9
- package/dist/lib/core/plugin/pluginContext.js +39 -24
- package/dist/lib/core/plugin/pluginsManager.js +17 -7
- package/dist/lib/core/realtime/channel.js +17 -7
- package/dist/lib/core/realtime/hotelClerk.d.ts +3 -2
- package/dist/lib/core/realtime/hotelClerk.js +17 -7
- package/dist/lib/core/realtime/notifier.js +17 -7
- package/dist/lib/core/security/profileRepository.js +17 -7
- package/dist/lib/core/security/roleRepository.js +17 -7
- package/dist/lib/core/security/securityLoader.js +17 -7
- package/dist/lib/core/security/tokenRepository.js +18 -8
- package/dist/lib/core/security/userRepository.js +17 -7
- package/dist/lib/core/shared/ObjectRepository.js +20 -7
- package/dist/lib/core/shared/abstractManifest.js +17 -7
- package/dist/lib/core/shared/sdk/embeddedSdk.js +20 -8
- package/dist/lib/core/shared/sdk/funnelProtocol.js +17 -7
- package/dist/lib/core/shared/store.d.ts +11 -1
- package/dist/lib/core/shared/store.js +26 -30
- package/dist/lib/core/statistics/statistics.d.ts +0 -1
- package/dist/lib/core/statistics/statistics.js +17 -7
- package/dist/lib/core/storage/clientAdapter.d.ts +4 -6
- package/dist/lib/core/storage/clientAdapter.js +24 -18
- package/dist/lib/core/storage/indexCache.js +17 -7
- package/dist/lib/core/validation/specification.js +1 -2
- package/dist/lib/core/validation/types/date.js +17 -7
- package/dist/lib/core/validation/types/enum.js +17 -7
- package/dist/lib/core/validation/types/geoShape.js +17 -7
- package/dist/lib/core/validation/types/geoShapeUtils.js +6 -7
- package/dist/lib/core/validation/validation.js +17 -7
- package/dist/lib/core/validation/validationUtils.js +24 -15
- package/dist/lib/kerror/codes/index.js +20 -10
- package/dist/lib/kerror/errors/kuzzleError.js +18 -8
- package/dist/lib/kerror/index.js +31 -18
- package/dist/lib/kuzzle/Logger.js +4 -3
- package/dist/lib/kuzzle/dumpGenerator.js +17 -7
- package/dist/lib/kuzzle/event/KuzzleEventEmitter.d.ts +3 -3
- package/dist/lib/kuzzle/event/KuzzleEventEmitter.js +17 -7
- package/dist/lib/kuzzle/event/pipeRunner.js +17 -7
- package/dist/lib/kuzzle/internalIndexHandler.js +37 -32
- package/dist/lib/kuzzle/kuzzle.d.ts +13 -8
- package/dist/lib/kuzzle/kuzzle.js +103 -128
- package/dist/lib/model/security/profile.js +17 -7
- package/dist/lib/model/security/role.js +17 -7
- package/dist/lib/model/security/user.js +17 -7
- package/dist/lib/model/storage/apiKey.d.ts +1 -1
- package/dist/lib/model/storage/apiKey.js +17 -7
- package/dist/lib/service/cache/redis.js +40 -9
- package/dist/lib/service/service.js +17 -7
- package/dist/lib/service/storage/7/elasticsearch.d.ts +36 -25
- package/dist/lib/service/storage/7/elasticsearch.js +73 -55
- package/dist/lib/service/storage/8/elasticsearch.d.ts +47 -36
- package/dist/lib/service/storage/8/elasticsearch.js +73 -55
- package/dist/lib/service/storage/Elasticsearch.d.ts +10 -4
- package/dist/lib/types/HttpStream.d.ts +0 -1
- package/dist/lib/types/Plugin.js +17 -7
- package/dist/lib/types/config/SecurityConfiguration.d.ts +0 -2
- package/dist/lib/types/config/storageEngine/StorageEngineElasticsearchConfiguration.d.ts +5 -0
- package/dist/lib/types/controllers/GetCurrentUserResponse.d.ts +5 -0
- package/dist/lib/types/controllers/GetCurrentUserResponse.js +3 -0
- package/dist/lib/types/controllers/ResetSecurityResult.d.ts +5 -0
- package/dist/lib/types/controllers/ResetSecurityResult.js +3 -0
- package/dist/lib/types/controllers/adminController.type.d.ts +7 -5
- package/dist/lib/types/controllers/authController.type.d.ts +7 -5
- package/dist/lib/types/core/auth/Serialized.d.ts +14 -0
- package/dist/lib/types/core/auth/Serialized.js +3 -0
- package/dist/lib/types/core/auth/formatProcessing.type.d.ts +5 -11
- package/dist/lib/types/events/EventProtocol.d.ts +0 -2
- package/dist/lib/types/index.d.ts +1 -0
- package/dist/lib/types/index.js +1 -0
- package/dist/lib/types/storage/8/Elasticsearch.d.ts +4 -3
- package/dist/lib/util/array.d.ts +1 -1
- package/dist/lib/util/array.js +7 -6
- package/dist/lib/util/assertType.js +5 -6
- package/dist/lib/util/async.js +1 -2
- package/dist/lib/util/asyncStore.d.ts +0 -1
- package/dist/lib/util/bufferedPassThrough.d.ts +0 -3
- package/dist/lib/util/crypto.js +1 -2
- package/dist/lib/util/debug.d.ts +0 -1
- package/dist/lib/util/debug.js +17 -7
- package/dist/lib/util/distributedLock.d.ts +27 -4
- package/dist/lib/util/distributedLock.js +69 -16
- package/dist/lib/util/dump-collection.d.ts +2 -2
- package/dist/lib/util/dump-collection.js +22 -13
- package/dist/lib/util/esRequest.js +1 -2
- package/dist/lib/util/extractFields.d.ts +16 -7
- package/dist/lib/util/extractFields.js +1 -10
- package/dist/lib/util/koncordeCompat.js +22 -13
- package/dist/lib/util/mutex.d.ts +4 -4
- package/dist/lib/util/mutex.js +21 -11
- package/dist/lib/util/name-generator.js +2 -2
- package/dist/lib/util/requestAssertions.js +27 -18
- package/dist/lib/util/safeObject.js +3 -4
- package/dist/lib/util/stackTrace.js +2 -3
- package/dist/lib/util/thrown.js +1 -2
- package/dist/lib/util/time.js +1 -2
- package/dist/package.json +22 -15
- package/package.json +22 -15
package/dist/lib/util/mutex.js
CHANGED
|
@@ -35,13 +35,23 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
|
|
|
35
35
|
}) : function(o, v) {
|
|
36
36
|
o["default"] = v;
|
|
37
37
|
});
|
|
38
|
-
var __importStar = (this && this.__importStar) || function (
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
};
|
|
38
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
39
|
+
var ownKeys = function(o) {
|
|
40
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
41
|
+
var ar = [];
|
|
42
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
43
|
+
return ar;
|
|
44
|
+
};
|
|
45
|
+
return ownKeys(o);
|
|
46
|
+
};
|
|
47
|
+
return function (mod) {
|
|
48
|
+
if (mod && mod.__esModule) return mod;
|
|
49
|
+
var result = {};
|
|
50
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
51
|
+
__setModuleDefault(result, mod);
|
|
52
|
+
return result;
|
|
53
|
+
};
|
|
54
|
+
})();
|
|
45
55
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
46
56
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
47
57
|
};
|
|
@@ -89,10 +99,10 @@ let exiting = false;
|
|
|
89
99
|
* synchronization between servers (see https://redis.io/topics/distlock)
|
|
90
100
|
*
|
|
91
101
|
* @deprecated Use `withLock` from `./distributedLock` instead: it supports
|
|
92
|
-
* real Redlock semantics and reentrancy.
|
|
93
|
-
*
|
|
94
|
-
*
|
|
95
|
-
*
|
|
102
|
+
* real Redlock semantics and reentrancy. `Mutex` and `withLock` take the
|
|
103
|
+
* same Redis key with `SET NX`, so they exclude each other on the same
|
|
104
|
+
* resource (which keeps old and new nodes apart during a rolling upgrade),
|
|
105
|
+
* and neither can release the other's lock.
|
|
96
106
|
*/
|
|
97
107
|
class Mutex {
|
|
98
108
|
/**
|
|
@@ -20,7 +20,8 @@
|
|
|
20
20
|
* limitations under the License.
|
|
21
21
|
*/
|
|
22
22
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
23
|
-
exports.
|
|
23
|
+
exports.NameGenerator = void 0;
|
|
24
|
+
exports.randomNumber = randomNumber;
|
|
24
25
|
class NameGenerator {
|
|
25
26
|
/**
|
|
26
27
|
* Returns a random name.
|
|
@@ -98,7 +99,6 @@ function randomNumber(min, max) {
|
|
|
98
99
|
min = Math.floor(min);
|
|
99
100
|
return Math.floor(Math.random() * (max - min)) + min;
|
|
100
101
|
}
|
|
101
|
-
exports.randomNumber = randomNumber;
|
|
102
102
|
/**
|
|
103
103
|
* Picks one of `items` at random.
|
|
104
104
|
*
|
|
@@ -35,18 +35,37 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
|
|
|
35
35
|
}) : function(o, v) {
|
|
36
36
|
o["default"] = v;
|
|
37
37
|
});
|
|
38
|
-
var __importStar = (this && this.__importStar) || function (
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
};
|
|
38
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
39
|
+
var ownKeys = function(o) {
|
|
40
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
41
|
+
var ar = [];
|
|
42
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
43
|
+
return ar;
|
|
44
|
+
};
|
|
45
|
+
return ownKeys(o);
|
|
46
|
+
};
|
|
47
|
+
return function (mod) {
|
|
48
|
+
if (mod && mod.__esModule) return mod;
|
|
49
|
+
var result = {};
|
|
50
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
51
|
+
__setModuleDefault(result, mod);
|
|
52
|
+
return result;
|
|
53
|
+
};
|
|
54
|
+
})();
|
|
45
55
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
46
56
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
47
57
|
};
|
|
48
58
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
49
|
-
exports.
|
|
59
|
+
exports.assertArgsHasAttribute = assertArgsHasAttribute;
|
|
60
|
+
exports.assertBodyAttributeType = assertBodyAttributeType;
|
|
61
|
+
exports.assertBodyHasAttribute = assertBodyHasAttribute;
|
|
62
|
+
exports.assertBodyHasNotAttribute = assertBodyHasNotAttribute;
|
|
63
|
+
exports.assertHasBody = assertHasBody;
|
|
64
|
+
exports.assertHasId = assertHasId;
|
|
65
|
+
exports.assertHasIndex = assertHasIndex;
|
|
66
|
+
exports.assertHasIndexAndCollection = assertHasIndexAndCollection;
|
|
67
|
+
exports.assertIsAuthenticated = assertIsAuthenticated;
|
|
68
|
+
exports.assertIsObject = assertIsObject;
|
|
50
69
|
const isNil_1 = __importDefault(require("lodash/isNil"));
|
|
51
70
|
const kerror = __importStar(require("../kerror"));
|
|
52
71
|
const safeObject_1 = require("./safeObject");
|
|
@@ -56,7 +75,6 @@ function assertArgsHasAttribute(request, attribute) {
|
|
|
56
75
|
throw assertionError.get("missing_argument", attribute);
|
|
57
76
|
}
|
|
58
77
|
}
|
|
59
|
-
exports.assertArgsHasAttribute = assertArgsHasAttribute;
|
|
60
78
|
/**
|
|
61
79
|
* Note: Assumes assertHasBody has been called first
|
|
62
80
|
*/
|
|
@@ -85,19 +103,16 @@ function assertBodyAttributeType(request, attribute, type) {
|
|
|
85
103
|
}
|
|
86
104
|
throw assertionError.get("invalid_type", `body.${attribute}`, type);
|
|
87
105
|
}
|
|
88
|
-
exports.assertBodyAttributeType = assertBodyAttributeType;
|
|
89
106
|
function assertBodyHasAttribute(request, attribute) {
|
|
90
107
|
if ((0, isNil_1.default)((0, safeObject_1.get)(request.input.body, attribute))) {
|
|
91
108
|
throw assertionError.get("missing_argument", `body.${attribute}`);
|
|
92
109
|
}
|
|
93
110
|
}
|
|
94
|
-
exports.assertBodyHasAttribute = assertBodyHasAttribute;
|
|
95
111
|
function assertBodyHasNotAttribute(request, attribute) {
|
|
96
112
|
if (!(0, isNil_1.default)((0, safeObject_1.get)(request.input.body, attribute))) {
|
|
97
113
|
throw assertionError.get("forbidden_argument", `body.${attribute}`);
|
|
98
114
|
}
|
|
99
115
|
}
|
|
100
|
-
exports.assertBodyHasNotAttribute = assertBodyHasNotAttribute;
|
|
101
116
|
/**
|
|
102
117
|
* Note: Assumes content exists
|
|
103
118
|
*/
|
|
@@ -106,19 +121,16 @@ function assertHasBody(request) {
|
|
|
106
121
|
throw assertionError.get("body_required");
|
|
107
122
|
}
|
|
108
123
|
}
|
|
109
|
-
exports.assertHasBody = assertHasBody;
|
|
110
124
|
function assertHasId(request) {
|
|
111
125
|
if (!request.input.args._id) {
|
|
112
126
|
throw assertionError.get("missing_argument", "_id");
|
|
113
127
|
}
|
|
114
128
|
}
|
|
115
|
-
exports.assertHasId = assertHasId;
|
|
116
129
|
function assertHasIndex(request) {
|
|
117
130
|
if (!request.input.args.index) {
|
|
118
131
|
throw assertionError.get("missing_argument", "index");
|
|
119
132
|
}
|
|
120
133
|
}
|
|
121
|
-
exports.assertHasIndex = assertHasIndex;
|
|
122
134
|
function assertHasIndexAndCollection(request) {
|
|
123
135
|
if (!request.input.args.index) {
|
|
124
136
|
throw assertionError.get("missing_argument", "index");
|
|
@@ -127,7 +139,6 @@ function assertHasIndexAndCollection(request) {
|
|
|
127
139
|
throw assertionError.get("missing_argument", "collection");
|
|
128
140
|
}
|
|
129
141
|
}
|
|
130
|
-
exports.assertHasIndexAndCollection = assertHasIndexAndCollection;
|
|
131
142
|
function assertIsAuthenticated(anonymousId, request) {
|
|
132
143
|
// `context.user` is null until the request has been authenticated, which is
|
|
133
144
|
// precisely the case this assertion exists to reject — reading `_id` off it
|
|
@@ -137,11 +148,9 @@ function assertIsAuthenticated(anonymousId, request) {
|
|
|
137
148
|
throw kerror.get("security", "rights", "unauthorized");
|
|
138
149
|
}
|
|
139
150
|
}
|
|
140
|
-
exports.assertIsAuthenticated = assertIsAuthenticated;
|
|
141
151
|
function assertIsObject(value) {
|
|
142
152
|
if (!(0, safeObject_1.isPlainObject)(value)) {
|
|
143
153
|
throw assertionError.get("invalid_argument", value, "object");
|
|
144
154
|
}
|
|
145
155
|
}
|
|
146
|
-
exports.assertIsObject = assertIsObject;
|
|
147
156
|
//# sourceMappingURL=requestAssertions.js.map
|
|
@@ -20,21 +20,20 @@
|
|
|
20
20
|
* limitations under the License.
|
|
21
21
|
*/
|
|
22
22
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
23
|
-
exports.
|
|
23
|
+
exports.has = has;
|
|
24
|
+
exports.get = get;
|
|
25
|
+
exports.isPlainObject = isPlainObject;
|
|
24
26
|
// Simple utility functions for safe (and fast) object manipulations
|
|
25
27
|
function has(o, prop) {
|
|
26
28
|
return Object.hasOwn(o, prop);
|
|
27
29
|
}
|
|
28
|
-
exports.has = has;
|
|
29
30
|
function get(o, prop) {
|
|
30
31
|
if (has(o, prop)) {
|
|
31
32
|
return o[prop];
|
|
32
33
|
}
|
|
33
34
|
return undefined;
|
|
34
35
|
}
|
|
35
|
-
exports.get = get;
|
|
36
36
|
function isPlainObject(o) {
|
|
37
37
|
return Object.prototype.toString.call(o) === "[object Object]";
|
|
38
38
|
}
|
|
39
|
-
exports.isPlainObject = isPlainObject;
|
|
40
39
|
//# sourceMappingURL=safeObject.js.map
|
|
@@ -20,7 +20,8 @@
|
|
|
20
20
|
* limitations under the License.
|
|
21
21
|
*/
|
|
22
22
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
23
|
-
exports.
|
|
23
|
+
exports.hilightUserCode = hilightUserCode;
|
|
24
|
+
exports.removeStacktrace = removeStacktrace;
|
|
24
25
|
require("../types/Global");
|
|
25
26
|
const MARKER = ">";
|
|
26
27
|
const PADDING = " ";
|
|
@@ -50,7 +51,6 @@ function hilightUserCode(line) {
|
|
|
50
51
|
// hilight user code
|
|
51
52
|
return MARKER + line;
|
|
52
53
|
}
|
|
53
|
-
exports.hilightUserCode = hilightUserCode;
|
|
54
54
|
/**
|
|
55
55
|
* utility method: must be invoked by all protocols to remove stack traces
|
|
56
56
|
* from payloads before sending them
|
|
@@ -85,5 +85,4 @@ function removeStacktrace(data) {
|
|
|
85
85
|
}
|
|
86
86
|
return data;
|
|
87
87
|
}
|
|
88
|
-
exports.removeStacktrace = removeStacktrace;
|
|
89
88
|
//# sourceMappingURL=stackTrace.js.map
|
package/dist/lib/util/thrown.js
CHANGED
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
* limitations under the License.
|
|
21
21
|
*/
|
|
22
22
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
23
|
-
exports.causeOf =
|
|
23
|
+
exports.causeOf = causeOf;
|
|
24
24
|
/**
|
|
25
25
|
* Whatever was thrown, as an `Error`.
|
|
26
26
|
*
|
|
@@ -42,5 +42,4 @@ function causeOf(thrown) {
|
|
|
42
42
|
: Reflect.get(Object(thrown), "message");
|
|
43
43
|
return new Error(String(message));
|
|
44
44
|
}
|
|
45
|
-
exports.causeOf = causeOf;
|
|
46
45
|
//# sourceMappingURL=thrown.js.map
|
package/dist/lib/util/time.js
CHANGED
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.nano =
|
|
3
|
+
exports.nano = nano;
|
|
4
4
|
function nano() {
|
|
5
5
|
const hrTime = process.hrtime();
|
|
6
6
|
return hrTime[0] * 1e9 + hrTime[1];
|
|
7
7
|
}
|
|
8
|
-
exports.nano = nano;
|
|
9
8
|
//# sourceMappingURL=time.js.map
|
package/dist/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.
|
|
4
|
+
"version": "2.60.0-beta.2",
|
|
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
|
"scripts": {
|
|
7
7
|
"build": "rm -Rf ./dist && tsc && node -r ts-node/register/transpile-only ./bin/copy-binaries.ts",
|
|
@@ -34,22 +34,21 @@
|
|
|
34
34
|
"dependencies": {
|
|
35
35
|
"@types/bluebird": "3.5.42",
|
|
36
36
|
"@types/passport": "1.0.17",
|
|
37
|
-
"aedes": "
|
|
37
|
+
"aedes": "1.2.0",
|
|
38
38
|
"bluebird": "3.7.2",
|
|
39
39
|
"cli-color": "2.0.4",
|
|
40
|
-
"cookie": "
|
|
40
|
+
"cookie": "2.0.1",
|
|
41
41
|
"debug": "4.4.3",
|
|
42
42
|
"denque": "2.1.0",
|
|
43
43
|
"didyoumean": "1.2.2",
|
|
44
44
|
"dumpme": "2.1.0",
|
|
45
45
|
"eventemitter3": "5.0.1",
|
|
46
|
-
"
|
|
47
|
-
"ioredis": "5.8.2",
|
|
46
|
+
"ioredis": "6.0.0",
|
|
48
47
|
"json-stable-stringify": "1.3.0",
|
|
49
48
|
"json2yaml": "1.1.0",
|
|
50
49
|
"jsonwebtoken": "9.0.3",
|
|
51
50
|
"koncorde": "4.8.0",
|
|
52
|
-
"kuzzle-logger": "1.
|
|
51
|
+
"kuzzle-logger": "1.7.0",
|
|
53
52
|
"kuzzle-plugin-auth-passport-local": "6.4.1",
|
|
54
53
|
"kuzzle-sdk": ">=7.17.1 <8.0.0",
|
|
55
54
|
"kuzzle-types": "^1.0.0",
|
|
@@ -63,12 +62,12 @@
|
|
|
63
62
|
"passport": "0.7.0",
|
|
64
63
|
"pino-caller": "4.0.0",
|
|
65
64
|
"pino-elasticsearch": "8.1.0",
|
|
66
|
-
"pino-loki": "
|
|
65
|
+
"pino-loki": "3.0.0",
|
|
67
66
|
"pino-pretty": "13.1.3",
|
|
68
67
|
"pino-transport-ecs": "1.1.0",
|
|
69
|
-
"protobufjs": "
|
|
68
|
+
"protobufjs": "8.8.1",
|
|
70
69
|
"rc": "1.2.8",
|
|
71
|
-
"redis-semaphore": "
|
|
70
|
+
"redis-semaphore": "6.0.0",
|
|
72
71
|
"sdk-es7": "npm:@elastic/elasticsearch@7.13.0",
|
|
73
72
|
"sdk-es8": "npm:@elastic/elasticsearch@8.17.1",
|
|
74
73
|
"semver": "7.7.3",
|
|
@@ -84,32 +83,40 @@
|
|
|
84
83
|
"url": "git://github.com/kuzzleio/kuzzle.git"
|
|
85
84
|
},
|
|
86
85
|
"devDependencies": {
|
|
87
|
-
"@cucumber/cucumber": "
|
|
86
|
+
"@cucumber/cucumber": "13.3.0",
|
|
88
87
|
"@types/async": "^3.2.24",
|
|
89
|
-
"@types/cookie": "1.0.0",
|
|
90
88
|
"@types/lodash": "4.17.21",
|
|
91
89
|
"@types/validator": "^13.15.10",
|
|
92
90
|
"@types/yargs": "17.0.35",
|
|
93
|
-
"@vitest/coverage-v8": "
|
|
91
|
+
"@vitest/coverage-v8": "5.0.5",
|
|
94
92
|
"async": "3.2.6",
|
|
95
93
|
"eslint": "10.10.0",
|
|
96
94
|
"eslint-plugin-kuzzle": "2.0.0",
|
|
97
95
|
"ioredis-mock": "8.13.1",
|
|
98
96
|
"mqtt": "5.14.1",
|
|
99
97
|
"prettier": "3.9.7",
|
|
98
|
+
"protobufjs-v7": "npm:protobufjs@7.5.4",
|
|
100
99
|
"request-promise": "4.2.6",
|
|
101
100
|
"semantic-release-config-kuzzle": "1.3.0",
|
|
102
101
|
"should": "13.2.3",
|
|
103
102
|
"strip-json-comments": "https://github.com/sindresorhus/strip-json-comments/archive/refs/tags/v3.1.1.tar.gz",
|
|
104
103
|
"ts-node": "10.9.2",
|
|
105
104
|
"tsx": "4.21.0",
|
|
106
|
-
"typescript": "
|
|
107
|
-
"vitest": "
|
|
105
|
+
"typescript": "6.0.3",
|
|
106
|
+
"vitest": "5.0.5",
|
|
108
107
|
"ws": "^8.18.3",
|
|
109
108
|
"yaml": "2.8.2"
|
|
110
109
|
},
|
|
110
|
+
"overrides": {
|
|
111
|
+
"ioredis-mock": {
|
|
112
|
+
"ioredis": "$ioredis"
|
|
113
|
+
},
|
|
114
|
+
"@types/ioredis-mock": {
|
|
115
|
+
"ioredis": "$ioredis"
|
|
116
|
+
}
|
|
117
|
+
},
|
|
111
118
|
"engines": {
|
|
112
|
-
"node": ">=
|
|
119
|
+
"node": ">=22.12.0 <25.0.0"
|
|
113
120
|
},
|
|
114
121
|
"packageManager": "npm@11.7.0",
|
|
115
122
|
"engineStrict": true,
|
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.
|
|
4
|
+
"version": "2.60.0-beta.2",
|
|
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
|
"scripts": {
|
|
7
7
|
"build": "rm -Rf ./dist && tsc && node -r ts-node/register/transpile-only ./bin/copy-binaries.ts",
|
|
@@ -34,22 +34,21 @@
|
|
|
34
34
|
"dependencies": {
|
|
35
35
|
"@types/bluebird": "3.5.42",
|
|
36
36
|
"@types/passport": "1.0.17",
|
|
37
|
-
"aedes": "
|
|
37
|
+
"aedes": "1.2.0",
|
|
38
38
|
"bluebird": "3.7.2",
|
|
39
39
|
"cli-color": "2.0.4",
|
|
40
|
-
"cookie": "
|
|
40
|
+
"cookie": "2.0.1",
|
|
41
41
|
"debug": "4.4.3",
|
|
42
42
|
"denque": "2.1.0",
|
|
43
43
|
"didyoumean": "1.2.2",
|
|
44
44
|
"dumpme": "2.1.0",
|
|
45
45
|
"eventemitter3": "5.0.1",
|
|
46
|
-
"
|
|
47
|
-
"ioredis": "5.8.2",
|
|
46
|
+
"ioredis": "6.0.0",
|
|
48
47
|
"json-stable-stringify": "1.3.0",
|
|
49
48
|
"json2yaml": "1.1.0",
|
|
50
49
|
"jsonwebtoken": "9.0.3",
|
|
51
50
|
"koncorde": "4.8.0",
|
|
52
|
-
"kuzzle-logger": "1.
|
|
51
|
+
"kuzzle-logger": "1.7.0",
|
|
53
52
|
"kuzzle-plugin-auth-passport-local": "6.4.1",
|
|
54
53
|
"kuzzle-sdk": ">=7.17.1 <8.0.0",
|
|
55
54
|
"kuzzle-types": "^1.0.0",
|
|
@@ -63,12 +62,12 @@
|
|
|
63
62
|
"passport": "0.7.0",
|
|
64
63
|
"pino-caller": "4.0.0",
|
|
65
64
|
"pino-elasticsearch": "8.1.0",
|
|
66
|
-
"pino-loki": "
|
|
65
|
+
"pino-loki": "3.0.0",
|
|
67
66
|
"pino-pretty": "13.1.3",
|
|
68
67
|
"pino-transport-ecs": "1.1.0",
|
|
69
|
-
"protobufjs": "
|
|
68
|
+
"protobufjs": "8.8.1",
|
|
70
69
|
"rc": "1.2.8",
|
|
71
|
-
"redis-semaphore": "
|
|
70
|
+
"redis-semaphore": "6.0.0",
|
|
72
71
|
"sdk-es7": "npm:@elastic/elasticsearch@7.13.0",
|
|
73
72
|
"sdk-es8": "npm:@elastic/elasticsearch@8.17.1",
|
|
74
73
|
"semver": "7.7.3",
|
|
@@ -84,32 +83,40 @@
|
|
|
84
83
|
"url": "git://github.com/kuzzleio/kuzzle.git"
|
|
85
84
|
},
|
|
86
85
|
"devDependencies": {
|
|
87
|
-
"@cucumber/cucumber": "
|
|
86
|
+
"@cucumber/cucumber": "13.3.0",
|
|
88
87
|
"@types/async": "^3.2.24",
|
|
89
|
-
"@types/cookie": "1.0.0",
|
|
90
88
|
"@types/lodash": "4.17.21",
|
|
91
89
|
"@types/validator": "^13.15.10",
|
|
92
90
|
"@types/yargs": "17.0.35",
|
|
93
|
-
"@vitest/coverage-v8": "
|
|
91
|
+
"@vitest/coverage-v8": "5.0.5",
|
|
94
92
|
"async": "3.2.6",
|
|
95
93
|
"eslint": "10.10.0",
|
|
96
94
|
"eslint-plugin-kuzzle": "2.0.0",
|
|
97
95
|
"ioredis-mock": "8.13.1",
|
|
98
96
|
"mqtt": "5.14.1",
|
|
99
97
|
"prettier": "3.9.7",
|
|
98
|
+
"protobufjs-v7": "npm:protobufjs@7.5.4",
|
|
100
99
|
"request-promise": "4.2.6",
|
|
101
100
|
"semantic-release-config-kuzzle": "1.3.0",
|
|
102
101
|
"should": "13.2.3",
|
|
103
102
|
"strip-json-comments": "https://github.com/sindresorhus/strip-json-comments/archive/refs/tags/v3.1.1.tar.gz",
|
|
104
103
|
"ts-node": "10.9.2",
|
|
105
104
|
"tsx": "4.21.0",
|
|
106
|
-
"typescript": "
|
|
107
|
-
"vitest": "
|
|
105
|
+
"typescript": "6.0.3",
|
|
106
|
+
"vitest": "5.0.5",
|
|
108
107
|
"ws": "^8.18.3",
|
|
109
108
|
"yaml": "2.8.2"
|
|
110
109
|
},
|
|
110
|
+
"overrides": {
|
|
111
|
+
"ioredis-mock": {
|
|
112
|
+
"ioredis": "$ioredis"
|
|
113
|
+
},
|
|
114
|
+
"@types/ioredis-mock": {
|
|
115
|
+
"ioredis": "$ioredis"
|
|
116
|
+
}
|
|
117
|
+
},
|
|
111
118
|
"engines": {
|
|
112
|
-
"node": ">=
|
|
119
|
+
"node": ">=22.12.0 <25.0.0"
|
|
113
120
|
},
|
|
114
121
|
"packageManager": "npm@11.7.0",
|
|
115
122
|
"engineStrict": true,
|