@versori/run 0.4.22 → 0.4.23
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/esm/src/interpreter/durable/compilers/webhook.d.ts.map +1 -1
- package/esm/src/interpreter/durable/compilers/webhook.js +2 -2
- package/esm/src/interpreter/memory/compilers/webhook.d.ts.map +1 -1
- package/esm/src/interpreter/memory/compilers/webhook.js +2 -2
- package/package.json +1 -1
- package/script/src/interpreter/durable/compilers/webhook.d.ts.map +1 -1
- package/script/src/interpreter/durable/compilers/webhook.js +2 -2
- package/script/src/interpreter/memory/compilers/webhook.d.ts.map +1 -1
- package/script/src/interpreter/memory/compilers/webhook.js +2 -2
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"webhook.d.ts","sourceRoot":"","sources":["../../../../../src/src/interpreter/durable/compilers/webhook.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"webhook.d.ts","sourceRoot":"","sources":["../../../../../src/src/interpreter/durable/compilers/webhook.ts"],"names":[],"mappings":"AA2BA,OAAO,EAAE,WAAW,EAAE,cAAc,EAAE,MAAM,yCAAyC,CAAC;AAGtF,OAAO,EAAE,eAAe,EAAE,MAAM,YAAY,CAAC;AAuD7C,eAAO,MAAM,eAAe,EAAE,eAAe,CAAC,WAAW,EAAE,cAAc,CA0SxE,CAAC"}
|
|
@@ -12,12 +12,12 @@
|
|
|
12
12
|
*/
|
|
13
13
|
import cors from 'cors';
|
|
14
14
|
import express from 'express';
|
|
15
|
+
import xmlparser from 'express-xml-bodyparser';
|
|
15
16
|
import { pipeline } from 'node:stream/promises';
|
|
16
17
|
import { Observable } from 'rxjs';
|
|
17
18
|
import { createActIdDynamicWebhookMiddleware, createStaticWebhookMiddleware, createUserIdDynamicWebhookMiddleware, } from '../../../dsl/http/versori/webhookmiddleware.js';
|
|
18
19
|
import { WebhookTrigger } from '../../../dsl/triggers/WebhookTrigger.js';
|
|
19
20
|
import { envVarEnvId } from '../../../internal/constants.js';
|
|
20
|
-
import xmlparser from 'express-xml-bodyparser';
|
|
21
21
|
const xml2jsDefaults = {
|
|
22
22
|
explicitArray: false,
|
|
23
23
|
normalize: false,
|
|
@@ -97,7 +97,7 @@ export const webhookCompiler = {
|
|
|
97
97
|
request: req,
|
|
98
98
|
});
|
|
99
99
|
if (!trigger.options.request?.rawBody) {
|
|
100
|
-
ctx.webhookRouter.use(express.json({ limit: '50mb' }));
|
|
100
|
+
ctx.webhookRouter.use(express.json({ limit: '50mb', type: ['application/json', '*/*+json'] }));
|
|
101
101
|
ctx.webhookRouter.use(xmlparser(xml2jsDefaults));
|
|
102
102
|
}
|
|
103
103
|
else {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"webhook.d.ts","sourceRoot":"","sources":["../../../../../src/src/interpreter/memory/compilers/webhook.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"webhook.d.ts","sourceRoot":"","sources":["../../../../../src/src/interpreter/memory/compilers/webhook.ts"],"names":[],"mappings":"AA2BA,OAAO,EAAE,WAAW,EAAE,cAAc,EAAE,MAAM,yCAAyC,CAAC;AAGtF,OAAO,EAAE,eAAe,EAAE,MAAM,YAAY,CAAC;AAuD7C,eAAO,MAAM,eAAe,EAAE,eAAe,CAAC,WAAW,EAAE,cAAc,CA2SxE,CAAC"}
|
|
@@ -12,12 +12,12 @@
|
|
|
12
12
|
*/
|
|
13
13
|
import cors from 'cors';
|
|
14
14
|
import express from 'express';
|
|
15
|
+
import xmlparser from 'express-xml-bodyparser';
|
|
15
16
|
import { pipeline } from 'node:stream/promises';
|
|
16
17
|
import { Observable } from 'rxjs';
|
|
17
18
|
import { createActIdDynamicWebhookMiddleware, createStaticWebhookMiddleware, createUserIdDynamicWebhookMiddleware, } from '../../../dsl/http/versori/webhookmiddleware.js';
|
|
18
19
|
import { WebhookTrigger } from '../../../dsl/triggers/WebhookTrigger.js';
|
|
19
20
|
import { envVarEnvId } from '../../../internal/constants.js';
|
|
20
|
-
import xmlparser from 'express-xml-bodyparser';
|
|
21
21
|
const xml2jsDefaults = {
|
|
22
22
|
explicitArray: false,
|
|
23
23
|
normalize: false,
|
|
@@ -97,7 +97,7 @@ export const webhookCompiler = {
|
|
|
97
97
|
request: req,
|
|
98
98
|
});
|
|
99
99
|
if (!trigger.options.request?.rawBody) {
|
|
100
|
-
ctx.webhookRouter.use(express.json({ limit: '50mb' }));
|
|
100
|
+
ctx.webhookRouter.use(express.json({ limit: '50mb', type: ['application/json', '*/*+json'] }));
|
|
101
101
|
ctx.webhookRouter.use(xmlparser(xml2jsDefaults));
|
|
102
102
|
}
|
|
103
103
|
else {
|
package/package.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"webhook.d.ts","sourceRoot":"","sources":["../../../../../src/src/interpreter/durable/compilers/webhook.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"webhook.d.ts","sourceRoot":"","sources":["../../../../../src/src/interpreter/durable/compilers/webhook.ts"],"names":[],"mappings":"AA2BA,OAAO,EAAE,WAAW,EAAE,cAAc,EAAE,MAAM,yCAAyC,CAAC;AAGtF,OAAO,EAAE,eAAe,EAAE,MAAM,YAAY,CAAC;AAuD7C,eAAO,MAAM,eAAe,EAAE,eAAe,CAAC,WAAW,EAAE,cAAc,CA0SxE,CAAC"}
|
|
@@ -18,12 +18,12 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
18
18
|
exports.webhookCompiler = void 0;
|
|
19
19
|
const cors_1 = __importDefault(require("cors"));
|
|
20
20
|
const express_1 = __importDefault(require("express"));
|
|
21
|
+
const express_xml_bodyparser_1 = __importDefault(require("express-xml-bodyparser"));
|
|
21
22
|
const promises_1 = require("node:stream/promises");
|
|
22
23
|
const rxjs_1 = require("rxjs");
|
|
23
24
|
const webhookmiddleware_js_1 = require("../../../dsl/http/versori/webhookmiddleware.js");
|
|
24
25
|
const WebhookTrigger_js_1 = require("../../../dsl/triggers/WebhookTrigger.js");
|
|
25
26
|
const constants_js_1 = require("../../../internal/constants.js");
|
|
26
|
-
const express_xml_bodyparser_1 = __importDefault(require("express-xml-bodyparser"));
|
|
27
27
|
const xml2jsDefaults = {
|
|
28
28
|
explicitArray: false,
|
|
29
29
|
normalize: false,
|
|
@@ -103,7 +103,7 @@ exports.webhookCompiler = {
|
|
|
103
103
|
request: req,
|
|
104
104
|
});
|
|
105
105
|
if (!trigger.options.request?.rawBody) {
|
|
106
|
-
ctx.webhookRouter.use(express_1.default.json({ limit: '50mb' }));
|
|
106
|
+
ctx.webhookRouter.use(express_1.default.json({ limit: '50mb', type: ['application/json', '*/*+json'] }));
|
|
107
107
|
ctx.webhookRouter.use((0, express_xml_bodyparser_1.default)(xml2jsDefaults));
|
|
108
108
|
}
|
|
109
109
|
else {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"webhook.d.ts","sourceRoot":"","sources":["../../../../../src/src/interpreter/memory/compilers/webhook.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"webhook.d.ts","sourceRoot":"","sources":["../../../../../src/src/interpreter/memory/compilers/webhook.ts"],"names":[],"mappings":"AA2BA,OAAO,EAAE,WAAW,EAAE,cAAc,EAAE,MAAM,yCAAyC,CAAC;AAGtF,OAAO,EAAE,eAAe,EAAE,MAAM,YAAY,CAAC;AAuD7C,eAAO,MAAM,eAAe,EAAE,eAAe,CAAC,WAAW,EAAE,cAAc,CA2SxE,CAAC"}
|
|
@@ -18,12 +18,12 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
18
18
|
exports.webhookCompiler = void 0;
|
|
19
19
|
const cors_1 = __importDefault(require("cors"));
|
|
20
20
|
const express_1 = __importDefault(require("express"));
|
|
21
|
+
const express_xml_bodyparser_1 = __importDefault(require("express-xml-bodyparser"));
|
|
21
22
|
const promises_1 = require("node:stream/promises");
|
|
22
23
|
const rxjs_1 = require("rxjs");
|
|
23
24
|
const webhookmiddleware_js_1 = require("../../../dsl/http/versori/webhookmiddleware.js");
|
|
24
25
|
const WebhookTrigger_js_1 = require("../../../dsl/triggers/WebhookTrigger.js");
|
|
25
26
|
const constants_js_1 = require("../../../internal/constants.js");
|
|
26
|
-
const express_xml_bodyparser_1 = __importDefault(require("express-xml-bodyparser"));
|
|
27
27
|
const xml2jsDefaults = {
|
|
28
28
|
explicitArray: false,
|
|
29
29
|
normalize: false,
|
|
@@ -103,7 +103,7 @@ exports.webhookCompiler = {
|
|
|
103
103
|
request: req,
|
|
104
104
|
});
|
|
105
105
|
if (!trigger.options.request?.rawBody) {
|
|
106
|
-
ctx.webhookRouter.use(express_1.default.json({ limit: '50mb' }));
|
|
106
|
+
ctx.webhookRouter.use(express_1.default.json({ limit: '50mb', type: ['application/json', '*/*+json'] }));
|
|
107
107
|
ctx.webhookRouter.use((0, express_xml_bodyparser_1.default)(xml2jsDefaults));
|
|
108
108
|
}
|
|
109
109
|
else {
|