kuzzle 2.30.1-beta.1 → 2.31.0-beta.1
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/lib/api/funnel.js
CHANGED
|
@@ -753,6 +753,9 @@ class Funnel {
|
|
|
753
753
|
*/
|
|
754
754
|
async executePluginRequest(request) {
|
|
755
755
|
try {
|
|
756
|
+
if (request.input.triggerEvents) {
|
|
757
|
+
return await this.processRequest(request);
|
|
758
|
+
}
|
|
756
759
|
return await doAction(this.getController(request), request);
|
|
757
760
|
} catch (e) {
|
|
758
761
|
this.handleErrorDump(e);
|
|
@@ -135,6 +135,8 @@ export declare class RequestInput {
|
|
|
135
135
|
*/
|
|
136
136
|
get action(): string | null;
|
|
137
137
|
set action(str: string);
|
|
138
|
+
get triggerEvents(): boolean | undefined;
|
|
139
|
+
set triggerEvents(bool: boolean);
|
|
138
140
|
/**
|
|
139
141
|
* Request body.
|
|
140
142
|
* In Http it's the request body parsed.
|
|
@@ -54,6 +54,7 @@ const _body = "body\u200b";
|
|
|
54
54
|
const _headers = "headers\u200b";
|
|
55
55
|
const _controller = "controller\u200b";
|
|
56
56
|
const _action = "action\u200b";
|
|
57
|
+
const _triggerEvents = "triggerEvents\u200b";
|
|
57
58
|
// any property not listed here will be copied into
|
|
58
59
|
// RequestInput.args
|
|
59
60
|
const resourceProperties = new Set([
|
|
@@ -126,6 +127,7 @@ class RequestInput {
|
|
|
126
127
|
this[_body] = null;
|
|
127
128
|
this[_controller] = null;
|
|
128
129
|
this[_action] = null;
|
|
130
|
+
this[_triggerEvents] = null;
|
|
129
131
|
// default value to null for former "resources" to avoid breaking
|
|
130
132
|
this.args = {};
|
|
131
133
|
this.resource = new RequestResource(this.args);
|
|
@@ -147,6 +149,7 @@ class RequestInput {
|
|
|
147
149
|
this.body = data.body;
|
|
148
150
|
this.controller = data.controller;
|
|
149
151
|
this.action = data.action;
|
|
152
|
+
this.triggerEvents = data.triggerEvents;
|
|
150
153
|
}
|
|
151
154
|
/**
|
|
152
155
|
* Authentication token.
|
|
@@ -223,6 +226,12 @@ class RequestInput {
|
|
|
223
226
|
this[_action] = assert.assertString("action", str);
|
|
224
227
|
}
|
|
225
228
|
}
|
|
229
|
+
get triggerEvents() {
|
|
230
|
+
return this[_triggerEvents];
|
|
231
|
+
}
|
|
232
|
+
set triggerEvents(bool) {
|
|
233
|
+
this[_triggerEvents] = bool === true ? true : undefined;
|
|
234
|
+
}
|
|
226
235
|
/**
|
|
227
236
|
* Request body.
|
|
228
237
|
* In Http it's the request body parsed.
|
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.31.0-beta.1",
|
|
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": {
|
|
@@ -48,7 +48,7 @@
|
|
|
48
48
|
"koncorde": "4.3.0",
|
|
49
49
|
"kuzzle-plugin-auth-passport-local": "6.4.0",
|
|
50
50
|
"kuzzle-plugin-logger": "3.0.3",
|
|
51
|
-
"kuzzle-sdk": "7.11.
|
|
51
|
+
"kuzzle-sdk": "^7.11.3",
|
|
52
52
|
"kuzzle-vault": "2.0.4",
|
|
53
53
|
"lodash": "4.17.21",
|
|
54
54
|
"long": "5.2.3",
|