kuzzle 2.17.5 → 2.17.8
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/bin/start-kuzzle-server +1 -1
- package/lib/api/controllers/adminController.js +5 -4
- package/lib/api/controllers/authController.js +1 -1
- package/lib/api/controllers/baseController.js +1 -1
- package/lib/api/controllers/bulkController.js +1 -1
- package/lib/api/controllers/clusterController.js +1 -1
- package/lib/api/controllers/collectionController.js +1 -1
- package/lib/api/controllers/documentController.js +7 -2
- package/lib/api/controllers/index.js +1 -1
- package/lib/api/controllers/indexController.js +1 -1
- package/lib/api/controllers/memoryStorageController.js +1 -1
- package/lib/api/controllers/realtimeController.js +1 -1
- package/lib/api/controllers/securityController.js +1 -1
- package/lib/api/controllers/serverController.js +1 -1
- package/lib/api/documentExtractor.js +1 -1
- package/lib/api/funnel.js +1 -1
- package/lib/api/httpRoutes.js +5 -4
- package/lib/api/openapi/OpenApiManager.js +2 -1
- package/lib/api/openapi/components/document/index.d.ts +2 -0
- package/lib/api/openapi/components/document/index.js +6 -1
- package/lib/api/openapi/components/document/mCreateOrReplace.yaml +93 -0
- package/lib/api/openapi/openApiGenerator.js +1 -1
- package/lib/api/rateLimiter.js +1 -1
- package/lib/api/request/kuzzleRequest.js +1 -1
- package/lib/api/request/requestContext.js +1 -1
- package/lib/api/request/requestInput.js +1 -1
- package/lib/api/request/requestResponse.js +1 -1
- package/lib/cluster/command.js +1 -1
- package/lib/cluster/idCardHandler.js +1 -1
- package/lib/cluster/index.js +1 -1
- package/lib/cluster/node.js +8 -8
- package/lib/cluster/publisher.js +1 -1
- package/lib/cluster/state.js +1 -1
- package/lib/cluster/subscriber.js +4 -1
- package/lib/config/documentEventAliases.js +1 -1
- package/lib/config/index.js +1 -1
- package/lib/core/auth/formatProcessing.js +1 -1
- package/lib/core/auth/passportResponse.js +1 -1
- package/lib/core/auth/passportWrapper.js +1 -1
- package/lib/core/auth/tokenManager.js +1 -1
- package/lib/core/backend/applicationManager.js +1 -1
- package/lib/core/backend/backend.js +1 -1
- package/lib/core/backend/backendCluster.js +1 -1
- package/lib/core/backend/backendConfig.js +1 -1
- package/lib/core/backend/backendController.js +1 -1
- package/lib/core/backend/backendErrors.js +1 -1
- package/lib/core/backend/backendHook.js +1 -1
- package/lib/core/backend/backendImport.js +1 -1
- package/lib/core/backend/backendOpenApi.js +1 -1
- package/lib/core/backend/backendPipe.js +1 -1
- package/lib/core/backend/backendPlugin.js +1 -1
- package/lib/core/backend/backendStorage.js +1 -1
- package/lib/core/backend/backendVault.js +1 -1
- package/lib/core/backend/internalLogger.js +1 -1
- package/lib/core/cache/cacheDbEnum.js +1 -1
- package/lib/core/cache/cacheEngine.js +1 -1
- package/lib/core/network/accessLogger.js +12 -7
- package/lib/core/network/clientConnection.js +1 -1
- package/lib/core/network/context.js +1 -1
- package/lib/core/network/entryPoint.js +6 -6
- package/lib/core/network/httpRouter/index.js +1 -1
- package/lib/core/network/httpRouter/routeHandler.js +1 -1
- package/lib/core/network/httpRouter/routePart.js +1 -1
- package/lib/core/network/protocolManifest.js +1 -1
- package/lib/core/network/protocols/httpMessage.js +1 -1
- package/lib/core/network/protocols/httpwsProtocol.js +5 -10
- package/lib/core/network/protocols/internalProtocol.js +1 -1
- package/lib/core/network/protocols/mqttProtocol.js +4 -3
- package/lib/core/network/protocols/protocol.js +1 -1
- package/lib/core/network/router.js +11 -2
- package/lib/core/plugin/plugin.js +1 -1
- package/lib/core/plugin/pluginContext.js +1 -1
- package/lib/core/plugin/pluginManifest.js +1 -1
- package/lib/core/plugin/pluginRepository.js +1 -1
- package/lib/core/plugin/pluginsManager.js +1 -1
- package/lib/core/plugin/privilegedContext.js +1 -1
- package/lib/core/realtime/actionEnum.js +1 -1
- package/lib/core/realtime/channel.js +1 -1
- package/lib/core/realtime/connectionRooms.js +1 -1
- package/lib/core/realtime/hotelClerk.js +66 -24
- package/lib/core/realtime/index.js +1 -1
- package/lib/core/realtime/notification/document.js +1 -1
- package/lib/core/realtime/notification/index.js +1 -1
- package/lib/core/realtime/notification/server.js +1 -1
- package/lib/core/realtime/notification/user.js +1 -1
- package/lib/core/realtime/notifier.js +1 -1
- package/lib/core/realtime/room.js +1 -1
- package/lib/core/realtime/subscription.js +1 -1
- package/lib/core/security/index.js +1 -1
- package/lib/core/security/profileRepository.js +1 -1
- package/lib/core/security/roleRepository.js +1 -1
- package/lib/core/security/securityLoader.js +1 -1
- package/lib/core/security/tokenRepository.js +1 -1
- package/lib/core/security/userRepository.js +1 -1
- package/lib/core/shared/KoncordeWrapper.js +1 -1
- package/lib/core/shared/abstractManifest.js +1 -1
- package/lib/core/shared/repository.js +1 -1
- package/lib/core/shared/sdk/embeddedSdk.js +4 -3
- package/lib/core/shared/sdk/funnelProtocol.d.ts +14 -0
- package/lib/core/shared/sdk/funnelProtocol.js +76 -81
- package/lib/core/shared/sdk/impersonatedSdk.js +1 -1
- package/lib/core/shared/store.js +1 -1
- package/lib/core/statistics/index.js +1 -1
- package/lib/core/statistics/statistics.js +1 -1
- package/lib/core/storage/clientAdapter.js +5 -5
- package/lib/core/storage/indexCache.js +1 -1
- package/lib/core/storage/storageEngine.js +1 -1
- package/lib/core/storage/storeScopeEnum.js +1 -1
- package/lib/core/validation/baseType.js +1 -1
- package/lib/core/validation/index.js +1 -1
- package/lib/core/validation/types/anything.js +1 -1
- package/lib/core/validation/types/boolean.js +1 -1
- package/lib/core/validation/types/date.js +1 -1
- package/lib/core/validation/types/email.js +1 -1
- package/lib/core/validation/types/enum.js +1 -1
- package/lib/core/validation/types/geoPoint.js +1 -1
- package/lib/core/validation/types/geoShape.js +1 -1
- package/lib/core/validation/types/integer.js +1 -1
- package/lib/core/validation/types/ipAddress.js +1 -1
- package/lib/core/validation/types/numeric.js +1 -1
- package/lib/core/validation/types/object.js +1 -1
- package/lib/core/validation/types/string.js +1 -1
- package/lib/core/validation/types/url.js +1 -1
- package/lib/core/validation/validation.js +1 -1
- package/lib/kerror/codes/index.js +1 -1
- package/lib/kerror/errors/badRequestError.js +1 -1
- package/lib/kerror/errors/externalServiceError.js +1 -1
- package/lib/kerror/errors/forbiddenError.js +1 -1
- package/lib/kerror/errors/gatewayTimeoutError.js +1 -1
- package/lib/kerror/errors/index.js +1 -1
- package/lib/kerror/errors/internalError.js +1 -1
- package/lib/kerror/errors/kuzzleError.js +1 -1
- package/lib/kerror/errors/multipleErrorsError.js +1 -1
- package/lib/kerror/errors/notFoundError.js +1 -1
- package/lib/kerror/errors/partialError.js +1 -1
- package/lib/kerror/errors/pluginImplementationError.js +1 -1
- package/lib/kerror/errors/preconditionError.js +1 -1
- package/lib/kerror/errors/serviceUnavailableError.js +1 -1
- package/lib/kerror/errors/sizeLimitError.js +1 -1
- package/lib/kerror/errors/tooManyRequestsError.js +1 -1
- package/lib/kerror/errors/unauthorizedError.js +1 -1
- package/lib/kerror/index.js +2 -4
- package/lib/kuzzle/dumpGenerator.js +1 -1
- package/lib/kuzzle/event/kuzzleEventEmitter.js +39 -1
- package/lib/kuzzle/event/pipeRunner.js +1 -1
- package/lib/kuzzle/event/waterfall.js +1 -1
- package/lib/kuzzle/index.js +1 -1
- package/lib/kuzzle/internalIndexHandler.js +1 -1
- package/lib/kuzzle/kuzzle.js +1 -1
- package/lib/kuzzle/kuzzleStateEnum.js +1 -1
- package/lib/kuzzle/log.js +1 -1
- package/lib/kuzzle/vault.js +1 -1
- package/lib/model/security/profile.js +1 -1
- package/lib/model/security/rights.js +1 -1
- package/lib/model/security/role.js +1 -1
- package/lib/model/security/token.js +1 -1
- package/lib/model/security/user.js +1 -1
- package/lib/model/storage/apiKey.js +1 -1
- package/lib/model/storage/baseModel.js +1 -1
- package/lib/service/cache/redis.js +1 -1
- package/lib/service/service.js +1 -1
- package/lib/service/storage/elasticsearch.js +10 -9
- package/lib/service/storage/esWrapper.js +1 -1
- package/lib/service/storage/queryTranslator.js +1 -1
- package/lib/types/Controller.js +1 -1
- package/lib/types/ControllerDefinition.js +1 -1
- package/lib/types/Deprecation.js +1 -1
- package/lib/types/EventHandler.js +1 -1
- package/lib/types/KuzzleDocument.d.ts +3 -0
- package/lib/types/Plugin.js +1 -1
- package/lib/types/PluginManifest.js +1 -1
- package/lib/types/RequestPayload.js +1 -1
- package/lib/types/ResponsePayload.js +1 -1
- package/lib/types/StrategyDefinition.js +1 -1
- package/lib/types/Token.js +1 -1
- package/lib/types/User.js +1 -1
- package/lib/types/index.js +1 -1
- package/lib/util/array.js +1 -1
- package/lib/util/assertType.js +1 -1
- package/lib/util/asyncStore.js +1 -1
- package/lib/util/debug.js +1 -1
- package/lib/util/deprecate.js +1 -1
- package/lib/util/didYouMean.js +1 -1
- package/lib/util/extractFields.js +1 -1
- package/lib/util/inflector.js +1 -1
- package/lib/util/koncordeCompat.js +1 -1
- package/lib/util/memoize.js +1 -1
- package/lib/util/mutex.js +1 -1
- package/lib/util/name-generator.js +1 -1
- package/lib/util/promback.js +1 -1
- package/lib/util/requestAssertions.js +1 -1
- package/lib/util/safeObject.js +1 -1
- package/lib/util/stackTrace.js +56 -17
- package/lib/util/wildcard.js +1 -1
- package/package-lock.json +101 -97
- package/package.json +13 -12
- package/lib/core/network/removeErrorStack.js +0 -56
package/package-lock.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "kuzzle",
|
|
3
|
-
"version": "2.17.
|
|
3
|
+
"version": "2.17.8",
|
|
4
4
|
"lockfileVersion": 1,
|
|
5
5
|
"requires": true,
|
|
6
6
|
"dependencies": {
|
|
@@ -466,6 +466,11 @@
|
|
|
466
466
|
"integrity": "sha512-ZnQMnLV4e7hDlUvw8H+U8ASL02SS2Gn6+9Ac3wGGLIe7+je2AeAOxPY+izIPJDfFDb7eDjev0Us8MO1iFRN8hA==",
|
|
467
467
|
"dev": true
|
|
468
468
|
},
|
|
469
|
+
"@ioredis/commands": {
|
|
470
|
+
"version": "1.1.1",
|
|
471
|
+
"resolved": "https://registry.npmjs.org/@ioredis/commands/-/commands-1.1.1.tgz",
|
|
472
|
+
"integrity": "sha512-fsR4P/ROllzf/7lXYyElUJCheWdTJVJvOTps8v9IWKFATxR61ANOlnoPqhH099xYLrJGpc2ZQ28B3rMeUt5VQg=="
|
|
473
|
+
},
|
|
469
474
|
"@istanbuljs/load-nyc-config": {
|
|
470
475
|
"version": "1.1.0",
|
|
471
476
|
"resolved": "https://registry.npmjs.org/@istanbuljs/load-nyc-config/-/load-nyc-config-1.1.0.tgz",
|
|
@@ -724,15 +729,15 @@
|
|
|
724
729
|
"integrity": "sha512-FhpRzf927MNQdRZP0J5DLIdTXhjLYzeUTmLAu69mnVksLH9CJY3IuSeEgbKUki7GQZm0WqDkGzyxju2EZGD2wA=="
|
|
725
730
|
},
|
|
726
731
|
"@types/json-schema": {
|
|
727
|
-
"version": "7.0.
|
|
728
|
-
"resolved": "https://registry.npmjs.org/@types/json-schema/-/json-schema-7.0.
|
|
729
|
-
"integrity": "sha512-
|
|
732
|
+
"version": "7.0.11",
|
|
733
|
+
"resolved": "https://registry.npmjs.org/@types/json-schema/-/json-schema-7.0.11.tgz",
|
|
734
|
+
"integrity": "sha512-wOuvG1SN4Us4rez+tylwwwCV1psiNVOkJeM3AUWUNWg/jDQY2+HE/444y5gc+jBmRqASOm2Oeh5c1axHobwRKQ==",
|
|
730
735
|
"dev": true
|
|
731
736
|
},
|
|
732
737
|
"@types/lodash": {
|
|
733
|
-
"version": "4.14.
|
|
734
|
-
"resolved": "https://registry.npmjs.org/@types/lodash/-/lodash-4.14.
|
|
735
|
-
"integrity": "sha512-
|
|
738
|
+
"version": "4.14.181",
|
|
739
|
+
"resolved": "https://registry.npmjs.org/@types/lodash/-/lodash-4.14.181.tgz",
|
|
740
|
+
"integrity": "sha512-n3tyKthHJbkiWhDZs3DkhkCzt2MexYHXlX0td5iMplyfwketaOeKboEVBqzceH7juqvEg3q5oUoBFxSLu7zFag==",
|
|
736
741
|
"dev": true
|
|
737
742
|
},
|
|
738
743
|
"@types/long": {
|
|
@@ -752,14 +757,14 @@
|
|
|
752
757
|
"optional": true
|
|
753
758
|
},
|
|
754
759
|
"@typescript-eslint/eslint-plugin": {
|
|
755
|
-
"version": "5.
|
|
756
|
-
"resolved": "https://registry.npmjs.org/@typescript-eslint/eslint-plugin/-/eslint-plugin-5.
|
|
757
|
-
"integrity": "sha512-
|
|
760
|
+
"version": "5.17.0",
|
|
761
|
+
"resolved": "https://registry.npmjs.org/@typescript-eslint/eslint-plugin/-/eslint-plugin-5.17.0.tgz",
|
|
762
|
+
"integrity": "sha512-qVstvQilEd89HJk3qcbKt/zZrfBZ+9h2ynpAGlWjWiizA7m/MtLT9RoX6gjtpE500vfIg8jogAkDzdCxbsFASQ==",
|
|
758
763
|
"dev": true,
|
|
759
764
|
"requires": {
|
|
760
|
-
"@typescript-eslint/scope-manager": "5.
|
|
761
|
-
"@typescript-eslint/type-utils": "5.
|
|
762
|
-
"@typescript-eslint/utils": "5.
|
|
765
|
+
"@typescript-eslint/scope-manager": "5.17.0",
|
|
766
|
+
"@typescript-eslint/type-utils": "5.17.0",
|
|
767
|
+
"@typescript-eslint/utils": "5.17.0",
|
|
763
768
|
"debug": "^4.3.2",
|
|
764
769
|
"functional-red-black-tree": "^1.0.1",
|
|
765
770
|
"ignore": "^5.1.8",
|
|
@@ -769,52 +774,52 @@
|
|
|
769
774
|
}
|
|
770
775
|
},
|
|
771
776
|
"@typescript-eslint/parser": {
|
|
772
|
-
"version": "5.
|
|
773
|
-
"resolved": "https://registry.npmjs.org/@typescript-eslint/parser/-/parser-5.
|
|
774
|
-
"integrity": "sha512-
|
|
777
|
+
"version": "5.17.0",
|
|
778
|
+
"resolved": "https://registry.npmjs.org/@typescript-eslint/parser/-/parser-5.17.0.tgz",
|
|
779
|
+
"integrity": "sha512-aRzW9Jg5Rlj2t2/crzhA2f23SIYFlF9mchGudyP0uiD6SenIxzKoLjwzHbafgHn39dNV/TV7xwQkLfFTZlJ4ig==",
|
|
775
780
|
"dev": true,
|
|
776
781
|
"requires": {
|
|
777
|
-
"@typescript-eslint/scope-manager": "5.
|
|
778
|
-
"@typescript-eslint/types": "5.
|
|
779
|
-
"@typescript-eslint/typescript-estree": "5.
|
|
782
|
+
"@typescript-eslint/scope-manager": "5.17.0",
|
|
783
|
+
"@typescript-eslint/types": "5.17.0",
|
|
784
|
+
"@typescript-eslint/typescript-estree": "5.17.0",
|
|
780
785
|
"debug": "^4.3.2"
|
|
781
786
|
}
|
|
782
787
|
},
|
|
783
788
|
"@typescript-eslint/scope-manager": {
|
|
784
|
-
"version": "5.
|
|
785
|
-
"resolved": "https://registry.npmjs.org/@typescript-eslint/scope-manager/-/scope-manager-5.
|
|
786
|
-
"integrity": "sha512-
|
|
789
|
+
"version": "5.17.0",
|
|
790
|
+
"resolved": "https://registry.npmjs.org/@typescript-eslint/scope-manager/-/scope-manager-5.17.0.tgz",
|
|
791
|
+
"integrity": "sha512-062iCYQF/doQ9T2WWfJohQKKN1zmmXVfAcS3xaiialiw8ZUGy05Em6QVNYJGO34/sU1a7a+90U3dUNfqUDHr3w==",
|
|
787
792
|
"dev": true,
|
|
788
793
|
"requires": {
|
|
789
|
-
"@typescript-eslint/types": "5.
|
|
790
|
-
"@typescript-eslint/visitor-keys": "5.
|
|
794
|
+
"@typescript-eslint/types": "5.17.0",
|
|
795
|
+
"@typescript-eslint/visitor-keys": "5.17.0"
|
|
791
796
|
}
|
|
792
797
|
},
|
|
793
798
|
"@typescript-eslint/type-utils": {
|
|
794
|
-
"version": "5.
|
|
795
|
-
"resolved": "https://registry.npmjs.org/@typescript-eslint/type-utils/-/type-utils-5.
|
|
796
|
-
"integrity": "sha512-
|
|
799
|
+
"version": "5.17.0",
|
|
800
|
+
"resolved": "https://registry.npmjs.org/@typescript-eslint/type-utils/-/type-utils-5.17.0.tgz",
|
|
801
|
+
"integrity": "sha512-3hU0RynUIlEuqMJA7dragb0/75gZmwNwFf/QJokWzPehTZousP/MNifVSgjxNcDCkM5HI2K22TjQWUmmHUINSg==",
|
|
797
802
|
"dev": true,
|
|
798
803
|
"requires": {
|
|
799
|
-
"@typescript-eslint/utils": "5.
|
|
804
|
+
"@typescript-eslint/utils": "5.17.0",
|
|
800
805
|
"debug": "^4.3.2",
|
|
801
806
|
"tsutils": "^3.21.0"
|
|
802
807
|
}
|
|
803
808
|
},
|
|
804
809
|
"@typescript-eslint/types": {
|
|
805
|
-
"version": "5.
|
|
806
|
-
"resolved": "https://registry.npmjs.org/@typescript-eslint/types/-/types-5.
|
|
807
|
-
"integrity": "sha512-
|
|
810
|
+
"version": "5.17.0",
|
|
811
|
+
"resolved": "https://registry.npmjs.org/@typescript-eslint/types/-/types-5.17.0.tgz",
|
|
812
|
+
"integrity": "sha512-AgQ4rWzmCxOZLioFEjlzOI3Ch8giDWx8aUDxyNw9iOeCvD3GEYAB7dxWGQy4T/rPVe8iPmu73jPHuaSqcjKvxw==",
|
|
808
813
|
"dev": true
|
|
809
814
|
},
|
|
810
815
|
"@typescript-eslint/typescript-estree": {
|
|
811
|
-
"version": "5.
|
|
812
|
-
"resolved": "https://registry.npmjs.org/@typescript-eslint/typescript-estree/-/typescript-estree-5.
|
|
813
|
-
"integrity": "sha512-
|
|
816
|
+
"version": "5.17.0",
|
|
817
|
+
"resolved": "https://registry.npmjs.org/@typescript-eslint/typescript-estree/-/typescript-estree-5.17.0.tgz",
|
|
818
|
+
"integrity": "sha512-X1gtjEcmM7Je+qJRhq7ZAAaNXYhTgqMkR10euC4Si6PIjb+kwEQHSxGazXUQXFyqfEXdkGf6JijUu5R0uceQzg==",
|
|
814
819
|
"dev": true,
|
|
815
820
|
"requires": {
|
|
816
|
-
"@typescript-eslint/types": "5.
|
|
817
|
-
"@typescript-eslint/visitor-keys": "5.
|
|
821
|
+
"@typescript-eslint/types": "5.17.0",
|
|
822
|
+
"@typescript-eslint/visitor-keys": "5.17.0",
|
|
818
823
|
"debug": "^4.3.2",
|
|
819
824
|
"globby": "^11.0.4",
|
|
820
825
|
"is-glob": "^4.0.3",
|
|
@@ -834,26 +839,26 @@
|
|
|
834
839
|
}
|
|
835
840
|
},
|
|
836
841
|
"@typescript-eslint/utils": {
|
|
837
|
-
"version": "5.
|
|
838
|
-
"resolved": "https://registry.npmjs.org/@typescript-eslint/utils/-/utils-5.
|
|
839
|
-
"integrity": "sha512-
|
|
842
|
+
"version": "5.17.0",
|
|
843
|
+
"resolved": "https://registry.npmjs.org/@typescript-eslint/utils/-/utils-5.17.0.tgz",
|
|
844
|
+
"integrity": "sha512-DVvndq1QoxQH+hFv+MUQHrrWZ7gQ5KcJzyjhzcqB1Y2Xes1UQQkTRPUfRpqhS8mhTWsSb2+iyvDW1Lef5DD7vA==",
|
|
840
845
|
"dev": true,
|
|
841
846
|
"requires": {
|
|
842
847
|
"@types/json-schema": "^7.0.9",
|
|
843
|
-
"@typescript-eslint/scope-manager": "5.
|
|
844
|
-
"@typescript-eslint/types": "5.
|
|
845
|
-
"@typescript-eslint/typescript-estree": "5.
|
|
848
|
+
"@typescript-eslint/scope-manager": "5.17.0",
|
|
849
|
+
"@typescript-eslint/types": "5.17.0",
|
|
850
|
+
"@typescript-eslint/typescript-estree": "5.17.0",
|
|
846
851
|
"eslint-scope": "^5.1.1",
|
|
847
852
|
"eslint-utils": "^3.0.0"
|
|
848
853
|
}
|
|
849
854
|
},
|
|
850
855
|
"@typescript-eslint/visitor-keys": {
|
|
851
|
-
"version": "5.
|
|
852
|
-
"resolved": "https://registry.npmjs.org/@typescript-eslint/visitor-keys/-/visitor-keys-5.
|
|
853
|
-
"integrity": "sha512-
|
|
856
|
+
"version": "5.17.0",
|
|
857
|
+
"resolved": "https://registry.npmjs.org/@typescript-eslint/visitor-keys/-/visitor-keys-5.17.0.tgz",
|
|
858
|
+
"integrity": "sha512-6K/zlc4OfCagUu7Am/BD5k8PSWQOgh34Nrv9Rxe2tBzlJ7uOeJ/h7ugCGDCeEZHT6k2CJBhbk9IsbkPI0uvUkA==",
|
|
854
859
|
"dev": true,
|
|
855
860
|
"requires": {
|
|
856
|
-
"@typescript-eslint/types": "5.
|
|
861
|
+
"@typescript-eslint/types": "5.17.0",
|
|
857
862
|
"eslint-visitor-keys": "^3.0.0"
|
|
858
863
|
}
|
|
859
864
|
},
|
|
@@ -1594,15 +1599,32 @@
|
|
|
1594
1599
|
"integrity": "sha512-bIomtDF5KGpdogkLd9VspvFzk9KfpyyGlS8YFVZl7TGPBHL5snIOnxeshwVgPteQ9b4Eydl+pVbIyE1DcvCWgQ=="
|
|
1595
1600
|
},
|
|
1596
1601
|
"cli-color": {
|
|
1597
|
-
"version": "2.0.
|
|
1598
|
-
"resolved": "https://registry.npmjs.org/cli-color/-/cli-color-2.0.
|
|
1599
|
-
"integrity": "sha512-
|
|
1602
|
+
"version": "2.0.2",
|
|
1603
|
+
"resolved": "https://registry.npmjs.org/cli-color/-/cli-color-2.0.2.tgz",
|
|
1604
|
+
"integrity": "sha512-g4JYjrTW9MGtCziFNjkqp3IMpGhnJyeB0lOtRPjQkYhXzKYr6tYnXKyEVnMzITxhpbahsEW9KsxOYIDKwcsIBw==",
|
|
1600
1605
|
"requires": {
|
|
1601
1606
|
"d": "^1.0.1",
|
|
1602
|
-
"es5-ext": "^0.10.
|
|
1607
|
+
"es5-ext": "^0.10.59",
|
|
1603
1608
|
"es6-iterator": "^2.0.3",
|
|
1604
1609
|
"memoizee": "^0.4.15",
|
|
1605
1610
|
"timers-ext": "^0.1.7"
|
|
1611
|
+
},
|
|
1612
|
+
"dependencies": {
|
|
1613
|
+
"es5-ext": {
|
|
1614
|
+
"version": "0.10.59",
|
|
1615
|
+
"resolved": "https://registry.npmjs.org/es5-ext/-/es5-ext-0.10.59.tgz",
|
|
1616
|
+
"integrity": "sha512-cOgyhW0tIJyQY1Kfw6Kr0viu9ZlUctVchRMZ7R0HiH3dxTSp5zJDLecwxUqPUrGKMsgBI1wd1FL+d9Jxfi4cLw==",
|
|
1617
|
+
"requires": {
|
|
1618
|
+
"es6-iterator": "^2.0.3",
|
|
1619
|
+
"es6-symbol": "^3.1.3",
|
|
1620
|
+
"next-tick": "^1.1.0"
|
|
1621
|
+
}
|
|
1622
|
+
},
|
|
1623
|
+
"next-tick": {
|
|
1624
|
+
"version": "1.1.0",
|
|
1625
|
+
"resolved": "https://registry.npmjs.org/next-tick/-/next-tick-1.1.0.tgz",
|
|
1626
|
+
"integrity": "sha512-CXdUiJembsNjuToQvxayPZF9Vqht7hewsvy2sOWafLvi2awflj9mOC6bHIg50orX8IJvWKY9wYQ/zB2kogPslQ=="
|
|
1627
|
+
}
|
|
1606
1628
|
}
|
|
1607
1629
|
},
|
|
1608
1630
|
"cli-cursor": {
|
|
@@ -2466,9 +2488,9 @@
|
|
|
2466
2488
|
"dev": true
|
|
2467
2489
|
},
|
|
2468
2490
|
"eslint": {
|
|
2469
|
-
"version": "8.
|
|
2470
|
-
"resolved": "https://registry.npmjs.org/eslint/-/eslint-8.
|
|
2471
|
-
"integrity": "sha512
|
|
2491
|
+
"version": "8.12.0",
|
|
2492
|
+
"resolved": "https://registry.npmjs.org/eslint/-/eslint-8.12.0.tgz",
|
|
2493
|
+
"integrity": "sha512-it1oBL9alZg1S8UycLm5YDMAkIhtH6FtAzuZs6YvoGVldWjbS08BkAdb/ymP9LlAyq8koANu32U7Ib/w+UNh8Q==",
|
|
2472
2494
|
"dev": true,
|
|
2473
2495
|
"requires": {
|
|
2474
2496
|
"@eslint/eslintrc": "^1.2.1",
|
|
@@ -3574,9 +3596,9 @@
|
|
|
3574
3596
|
"integrity": "sha512-JV/yugV2uzW5iMRSiZAyDtQd+nxtUnjeLt0acNdw98kKLrvuRVyB80tsREOE7yvGVgalhZ6RNXCmEHkUKBKxew=="
|
|
3575
3597
|
},
|
|
3576
3598
|
"inquirer": {
|
|
3577
|
-
"version": "8.2.
|
|
3578
|
-
"resolved": "https://registry.npmjs.org/inquirer/-/inquirer-8.2.
|
|
3579
|
-
"integrity": "sha512-
|
|
3599
|
+
"version": "8.2.2",
|
|
3600
|
+
"resolved": "https://registry.npmjs.org/inquirer/-/inquirer-8.2.2.tgz",
|
|
3601
|
+
"integrity": "sha512-pG7I/si6K/0X7p1qU+rfWnpTE1UIkTONN1wxtzh0d+dHXtT/JG6qBgLxoyHVsQa8cFABxAPh0pD6uUUHiAoaow==",
|
|
3580
3602
|
"requires": {
|
|
3581
3603
|
"ansi-escapes": "^4.2.1",
|
|
3582
3604
|
"chalk": "^4.1.1",
|
|
@@ -3651,28 +3673,19 @@
|
|
|
3651
3673
|
}
|
|
3652
3674
|
},
|
|
3653
3675
|
"ioredis": {
|
|
3654
|
-
"version": "
|
|
3655
|
-
"resolved": "https://registry.npmjs.org/ioredis/-/ioredis-
|
|
3656
|
-
"integrity": "sha512-
|
|
3676
|
+
"version": "5.0.3",
|
|
3677
|
+
"resolved": "https://registry.npmjs.org/ioredis/-/ioredis-5.0.3.tgz",
|
|
3678
|
+
"integrity": "sha512-hKxywVypoGGUJDyfnMufO0VNkuIaQufo2/PJ5SOYBKWgf4+gCnZEPaBPle615k08euY9/B9DKytVtwZROF7HaA==",
|
|
3657
3679
|
"requires": {
|
|
3680
|
+
"@ioredis/commands": "^1.1.1",
|
|
3658
3681
|
"cluster-key-slot": "^1.1.0",
|
|
3659
|
-
"debug": "^4.3.
|
|
3660
|
-
"denque": "^
|
|
3682
|
+
"debug": "^4.3.4",
|
|
3683
|
+
"denque": "^2.0.1",
|
|
3661
3684
|
"lodash.defaults": "^4.2.0",
|
|
3662
|
-
"lodash.flatten": "^4.4.0",
|
|
3663
3685
|
"lodash.isarguments": "^3.1.0",
|
|
3664
|
-
"p-map": "^2.1.0",
|
|
3665
|
-
"redis-commands": "1.7.0",
|
|
3666
3686
|
"redis-errors": "^1.2.0",
|
|
3667
3687
|
"redis-parser": "^3.0.0",
|
|
3668
3688
|
"standard-as-callback": "^2.1.0"
|
|
3669
|
-
},
|
|
3670
|
-
"dependencies": {
|
|
3671
|
-
"denque": {
|
|
3672
|
-
"version": "1.5.1",
|
|
3673
|
-
"resolved": "https://registry.npmjs.org/denque/-/denque-1.5.1.tgz",
|
|
3674
|
-
"integrity": "sha512-XwE+iZ4D6ZUB7mfYRMb5wByE8L74HCn30FBN7sWnXksWc1LO1bPDl67pBR9o/kC4z/xSNAwkMYcGgqDV3BE3Hw=="
|
|
3675
|
-
}
|
|
3676
3689
|
}
|
|
3677
3690
|
},
|
|
3678
3691
|
"ip": {
|
|
@@ -4325,11 +4338,6 @@
|
|
|
4325
4338
|
"resolved": "https://registry.npmjs.org/lodash.defaults/-/lodash.defaults-4.2.0.tgz",
|
|
4326
4339
|
"integrity": "sha1-0JF4cW/+pN3p5ft7N/bwgCJ0WAw="
|
|
4327
4340
|
},
|
|
4328
|
-
"lodash.flatten": {
|
|
4329
|
-
"version": "4.4.0",
|
|
4330
|
-
"resolved": "https://registry.npmjs.org/lodash.flatten/-/lodash.flatten-4.4.0.tgz",
|
|
4331
|
-
"integrity": "sha1-8xwiIlqWMtK7+OSt2+8kCqdlph8="
|
|
4332
|
-
},
|
|
4333
4341
|
"lodash.flattendeep": {
|
|
4334
4342
|
"version": "4.4.0",
|
|
4335
4343
|
"resolved": "https://registry.npmjs.org/lodash.flattendeep/-/lodash.flattendeep-4.4.0.tgz",
|
|
@@ -4559,13 +4567,13 @@
|
|
|
4559
4567
|
"integrity": "sha1-VSmk1nZUE07cxSZmVoNbD4Ua/O4="
|
|
4560
4568
|
},
|
|
4561
4569
|
"micromatch": {
|
|
4562
|
-
"version": "4.0.
|
|
4563
|
-
"resolved": "https://registry.npmjs.org/micromatch/-/micromatch-4.0.
|
|
4564
|
-
"integrity": "sha512-
|
|
4570
|
+
"version": "4.0.5",
|
|
4571
|
+
"resolved": "https://registry.npmjs.org/micromatch/-/micromatch-4.0.5.tgz",
|
|
4572
|
+
"integrity": "sha512-DMy+ERcEW2q8Z2Po+WNXuw3c5YaUSFjAO5GsJqfEl7UjvtIuFKO6ZrKvcItdy98dwFI2N1tg3zNIdKaQT+aNdA==",
|
|
4565
4573
|
"dev": true,
|
|
4566
4574
|
"requires": {
|
|
4567
|
-
"braces": "^3.0.
|
|
4568
|
-
"picomatch": "^2.
|
|
4575
|
+
"braces": "^3.0.2",
|
|
4576
|
+
"picomatch": "^2.3.1"
|
|
4569
4577
|
}
|
|
4570
4578
|
},
|
|
4571
4579
|
"mime": {
|
|
@@ -4790,6 +4798,12 @@
|
|
|
4790
4798
|
"brace-expansion": "^1.1.7"
|
|
4791
4799
|
}
|
|
4792
4800
|
},
|
|
4801
|
+
"nanoid": {
|
|
4802
|
+
"version": "3.3.1",
|
|
4803
|
+
"resolved": "https://registry.npmjs.org/nanoid/-/nanoid-3.3.1.tgz",
|
|
4804
|
+
"integrity": "sha512-n6Vs/3KGyxPQd6uO0eH4Bv0ojGSUvuLlIHtC3Y0kEO23YRge8H9x1GCzLn28YX0H66pMkxuaeESFq4tKISKwdw==",
|
|
4805
|
+
"dev": true
|
|
4806
|
+
},
|
|
4793
4807
|
"string-width": {
|
|
4794
4808
|
"version": "4.2.3",
|
|
4795
4809
|
"resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.3.tgz",
|
|
@@ -4979,9 +4993,9 @@
|
|
|
4979
4993
|
"integrity": "sha512-M2ufzIiINKCuDfBSAUr1vWQ+vuVcA9kqx8JJUsbQi6yf1uGRyb7HfpdfUr5qLXf3B/t8dPvcjhKMmlfnP47EzQ=="
|
|
4980
4994
|
},
|
|
4981
4995
|
"nanoid": {
|
|
4982
|
-
"version": "3.3.
|
|
4983
|
-
"resolved": "https://registry.npmjs.org/nanoid/-/nanoid-3.3.
|
|
4984
|
-
"integrity": "sha512-
|
|
4996
|
+
"version": "3.3.2",
|
|
4997
|
+
"resolved": "https://registry.npmjs.org/nanoid/-/nanoid-3.3.2.tgz",
|
|
4998
|
+
"integrity": "sha512-CuHBogktKwpm5g2sRgv83jEy2ijFzBwMoYA60orPDR7ynsLijJDqgsi4RDGj3OJpy3Ieb+LYwiRmIOGyytgITA=="
|
|
4985
4999
|
},
|
|
4986
5000
|
"natural-compare": {
|
|
4987
5001
|
"version": "1.4.0",
|
|
@@ -5694,11 +5708,6 @@
|
|
|
5694
5708
|
"p-limit": "^3.0.2"
|
|
5695
5709
|
}
|
|
5696
5710
|
},
|
|
5697
|
-
"p-map": {
|
|
5698
|
-
"version": "2.1.0",
|
|
5699
|
-
"resolved": "https://registry.npmjs.org/p-map/-/p-map-2.1.0.tgz",
|
|
5700
|
-
"integrity": "sha512-y3b8Kpd8OAN444hxfBbFfj1FY/RjtTd8tzYwhUqNYXx0fXx2iX4maP4Qr6qhIKbQXI02wTLAda4fYUbDagTUFw=="
|
|
5701
|
-
},
|
|
5702
5711
|
"p-try": {
|
|
5703
5712
|
"version": "2.2.0",
|
|
5704
5713
|
"resolved": "https://registry.npmjs.org/p-try/-/p-try-2.2.0.tgz",
|
|
@@ -6203,11 +6212,6 @@
|
|
|
6203
6212
|
"picomatch": "^2.2.1"
|
|
6204
6213
|
}
|
|
6205
6214
|
},
|
|
6206
|
-
"redis-commands": {
|
|
6207
|
-
"version": "1.7.0",
|
|
6208
|
-
"resolved": "https://registry.npmjs.org/redis-commands/-/redis-commands-1.7.0.tgz",
|
|
6209
|
-
"integrity": "sha512-nJWqw3bTFy21hX/CPKHth6sfhZbdiHP6bTawSgQBlKOVRG7EZkfHbbHwQJnrE4vsQf0CMNE+3gJ4Fmm16vdVlQ=="
|
|
6210
|
-
},
|
|
6211
6215
|
"redis-errors": {
|
|
6212
6216
|
"version": "1.2.0",
|
|
6213
6217
|
"resolved": "https://registry.npmjs.org/redis-errors/-/redis-errors-1.2.0.tgz",
|
|
@@ -7894,9 +7898,9 @@
|
|
|
7894
7898
|
}
|
|
7895
7899
|
},
|
|
7896
7900
|
"typescript": {
|
|
7897
|
-
"version": "4.6.
|
|
7898
|
-
"resolved": "https://registry.npmjs.org/typescript/-/typescript-4.6.
|
|
7899
|
-
"integrity": "sha512-
|
|
7901
|
+
"version": "4.6.3",
|
|
7902
|
+
"resolved": "https://registry.npmjs.org/typescript/-/typescript-4.6.3.tgz",
|
|
7903
|
+
"integrity": "sha512-yNIatDa5iaofVozS/uQJEl3JRWLKKGJKh6Yaiv0GLGSuhpFJe7P3SbHZ8/yjAHRQwKRoA6YZqlfjXWmVzoVSMw==",
|
|
7900
7904
|
"dev": true
|
|
7901
7905
|
},
|
|
7902
7906
|
"uWebSockets.js": {
|
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.17.
|
|
4
|
+
"version": "2.17.8",
|
|
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"
|
|
@@ -35,7 +35,8 @@
|
|
|
35
35
|
"test:lint:js:fix": "eslint --max-warnings=0 --fix ./lib ./test ./features-legacy ./bin ./features ./doc/build-error-codes.js",
|
|
36
36
|
"doc-error-codes": "node -r ts-node/register doc/build-error-codes",
|
|
37
37
|
"docker:install": "docker-compose run kuzzle_node_1 npm install",
|
|
38
|
-
"docker:test:unit": "docker-compose run kuzzle_node_1 npm run test:unit"
|
|
38
|
+
"docker:test:unit": "docker-compose run kuzzle_node_1 npm run test:unit",
|
|
39
|
+
"docker:npm": "docker-compose run kuzzle_node_1 npm run --"
|
|
39
40
|
},
|
|
40
41
|
"directories": {
|
|
41
42
|
"lib": "lib"
|
|
@@ -45,7 +46,7 @@
|
|
|
45
46
|
"@types/js-yaml": "^4.0.5",
|
|
46
47
|
"aedes": "^0.46.3",
|
|
47
48
|
"bluebird": "^3.7.2",
|
|
48
|
-
"cli-color": "^2.0.
|
|
49
|
+
"cli-color": "^2.0.2",
|
|
49
50
|
"cookie": "^0.4.2",
|
|
50
51
|
"debug": "^4.3.4",
|
|
51
52
|
"denque": "^2.0.1",
|
|
@@ -53,8 +54,8 @@
|
|
|
53
54
|
"dumpme": "^1.0.3",
|
|
54
55
|
"eventemitter3": "^4.0.7",
|
|
55
56
|
"express": "^4.17.3",
|
|
56
|
-
"inquirer": "^8.2.
|
|
57
|
-
"ioredis": "^
|
|
57
|
+
"inquirer": "^8.2.2",
|
|
58
|
+
"ioredis": "^5.0.3",
|
|
58
59
|
"js-yaml": "^4.1.0",
|
|
59
60
|
"json-stable-stringify": "^1.0.1",
|
|
60
61
|
"json2yaml": "^1.1.0",
|
|
@@ -62,14 +63,14 @@
|
|
|
62
63
|
"koncorde": "^4.0.2",
|
|
63
64
|
"kuzzle-plugin-auth-passport-local": "^6.3.6",
|
|
64
65
|
"kuzzle-plugin-logger": "^3.0.3",
|
|
65
|
-
"kuzzle-sdk": "7.9.1",
|
|
66
|
+
"kuzzle-sdk": "^7.9.1",
|
|
66
67
|
"kuzzle-vault": "^2.0.4",
|
|
67
68
|
"lodash": "4.17.21",
|
|
68
69
|
"long": "^5.2.0",
|
|
69
70
|
"moment": "^2.29.1",
|
|
70
71
|
"ms": "^2.1.3",
|
|
71
72
|
"murmurhash-native": "^3.5.0",
|
|
72
|
-
"nanoid": "^3.3.
|
|
73
|
+
"nanoid": "^3.3.2",
|
|
73
74
|
"ndjson": "^2.0.0",
|
|
74
75
|
"node-segfault-handler": "^1.0.4",
|
|
75
76
|
"passport": "^0.5.2",
|
|
@@ -92,15 +93,15 @@
|
|
|
92
93
|
"url": "git://github.com/kuzzleio/kuzzle.git"
|
|
93
94
|
},
|
|
94
95
|
"devDependencies": {
|
|
95
|
-
"@types/lodash": "^4.14.
|
|
96
|
-
"@typescript-eslint/eslint-plugin": "^5.
|
|
97
|
-
"@typescript-eslint/parser": "^5.
|
|
96
|
+
"@types/lodash": "^4.14.181",
|
|
97
|
+
"@typescript-eslint/eslint-plugin": "^5.17.0",
|
|
98
|
+
"@typescript-eslint/parser": "^5.17.0",
|
|
98
99
|
"async": "^3.2.3",
|
|
99
100
|
"chokidar": "^3.5.3",
|
|
100
101
|
"codecov": "^3.8.3",
|
|
101
102
|
"cucumber": "^6.0.5",
|
|
102
103
|
"ergol": "^1.0.2",
|
|
103
|
-
"eslint": "^8.
|
|
104
|
+
"eslint": "^8.12.0",
|
|
104
105
|
"mocha": "^9.2.2",
|
|
105
106
|
"mock-require": "^3.0.3",
|
|
106
107
|
"mqtt": "^4.3.7",
|
|
@@ -113,7 +114,7 @@
|
|
|
113
114
|
"sinon": "^12.0.1",
|
|
114
115
|
"strip-json-comments": "https://github.com/sindresorhus/strip-json-comments/archive/refs/tags/v3.1.1.tar.gz",
|
|
115
116
|
"ts-node": "^10.7.0",
|
|
116
|
-
"typescript": "^4.6.
|
|
117
|
+
"typescript": "^4.6.3",
|
|
117
118
|
"yaml": "^1.10.2"
|
|
118
119
|
},
|
|
119
120
|
"engines": {
|
|
@@ -1,56 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Kuzzle, a backend software, self-hostable and ready to use
|
|
3
|
-
* to power modern apps
|
|
4
|
-
*
|
|
5
|
-
* Copyright 2015-2020 Kuzzle
|
|
6
|
-
* mailto: support AT kuzzle.io
|
|
7
|
-
* website: http://kuzzle.io
|
|
8
|
-
*
|
|
9
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
10
|
-
* you may not use this file except in compliance with the License.
|
|
11
|
-
* You may obtain a copy of the License at
|
|
12
|
-
*
|
|
13
|
-
* https://www.apache.org/licenses/LICENSE-2.0
|
|
14
|
-
*
|
|
15
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
16
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
17
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
18
|
-
* See the License for the specific language governing permissions and
|
|
19
|
-
* limitations under the License.
|
|
20
|
-
*/
|
|
21
|
-
|
|
22
|
-
'use strict';
|
|
23
|
-
|
|
24
|
-
const util = require('util');
|
|
25
|
-
|
|
26
|
-
const { hilightUserCode } = require('../../util/stackTrace');
|
|
27
|
-
|
|
28
|
-
/**
|
|
29
|
-
* utility method: must be invoked by all protocols to remove stack traces
|
|
30
|
-
* from payloads before sending them
|
|
31
|
-
* @param {Error|Object} data - expected: plain error object or serialized
|
|
32
|
-
* request response
|
|
33
|
-
* @returns {*} return the data minus the stack trace
|
|
34
|
-
*/
|
|
35
|
-
module.exports = data => {
|
|
36
|
-
if (util.isError(data)) {
|
|
37
|
-
if (global.NODE_ENV !== 'development') {
|
|
38
|
-
data.stack = undefined;
|
|
39
|
-
}
|
|
40
|
-
else {
|
|
41
|
-
data.stack = data.stack.split('\n').map(hilightUserCode).join('\n');
|
|
42
|
-
}
|
|
43
|
-
}
|
|
44
|
-
else if (data && data.content && data.content.error) {
|
|
45
|
-
if (global.NODE_ENV !== 'development') {
|
|
46
|
-
data.content.error.stack = undefined;
|
|
47
|
-
}
|
|
48
|
-
else {
|
|
49
|
-
data.content.error.stack = data.content.error.stack
|
|
50
|
-
? data.content.error.stack.split('\n').map(hilightUserCode).join('\n')
|
|
51
|
-
: undefined;
|
|
52
|
-
}
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
return data;
|
|
56
|
-
};
|