quidproquo-dev-server 0.0.244 → 0.0.245
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.
|
@@ -1,17 +1,16 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
-
};
|
|
5
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
3
|
exports.defineDevServerConfig = void 0;
|
|
7
4
|
const quidproquo_webserver_1 = require("quidproquo-webserver");
|
|
8
|
-
const path_1 = __importDefault(require("path"));
|
|
9
5
|
const defineDevServerConfig = (advancedSettings) => {
|
|
10
6
|
var _a;
|
|
11
7
|
const onlyDeploySafe = (_a = advancedSettings === null || advancedSettings === void 0 ? void 0 : advancedSettings.onlyDeploySafe) !== null && _a !== void 0 ? _a : true;
|
|
12
8
|
const vpcList = (advancedSettings === null || advancedSettings === void 0 ? void 0 : advancedSettings.vpcList) || [];
|
|
13
|
-
const
|
|
14
|
-
|
|
9
|
+
const graphAccessConfigs = vpcList.map((vpcName) => (0, quidproquo_webserver_1.defineServiceFunction)({
|
|
10
|
+
basePath: __dirname,
|
|
11
|
+
relativePath: '../../entry/serviceFunction/runCypherQuery',
|
|
12
|
+
functionName: 'runCypherQuery',
|
|
13
|
+
}, {
|
|
15
14
|
virtualNetworkName: vpcName,
|
|
16
15
|
functionName: `graphQuery${vpcName}`,
|
|
17
16
|
}));
|
|
@@ -56,7 +56,13 @@ const processQueueEventBusSubscriptions = (qpqConfig, ebMessage) => __awaiter(vo
|
|
|
56
56
|
return allEventBuses.some((eb) => ebsub === eb.name);
|
|
57
57
|
});
|
|
58
58
|
})
|
|
59
|
-
.filter((q) => {
|
|
59
|
+
.filter((q) => {
|
|
60
|
+
var _a, _b;
|
|
61
|
+
// The target is this service
|
|
62
|
+
return (!((_a = q.owner) === null || _a === void 0 ? void 0 : _a.module) || ((_b = q.owner) === null || _b === void 0 ? void 0 : _b.module) === thisServiceName) &&
|
|
63
|
+
// And we are subed to the message that its trying to get to
|
|
64
|
+
q.eventBusSubscriptions.includes(ebMessage.eventBusName);
|
|
65
|
+
});
|
|
60
66
|
for (const queue of queues) {
|
|
61
67
|
const queueMessage = {
|
|
62
68
|
payload: ebMessage.payload,
|
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
import { defineServiceFunction } from 'quidproquo-webserver';
|
|
2
|
-
import path from 'path';
|
|
3
2
|
export const defineDevServerConfig = (advancedSettings) => {
|
|
4
3
|
const onlyDeploySafe = advancedSettings?.onlyDeploySafe ?? true;
|
|
5
4
|
const vpcList = advancedSettings?.vpcList || [];
|
|
6
|
-
const
|
|
7
|
-
|
|
5
|
+
const graphAccessConfigs = vpcList.map((vpcName) => defineServiceFunction({
|
|
6
|
+
basePath: __dirname,
|
|
7
|
+
relativePath: '../../entry/serviceFunction/runCypherQuery',
|
|
8
|
+
functionName: 'runCypherQuery',
|
|
9
|
+
}, {
|
|
8
10
|
virtualNetworkName: vpcName,
|
|
9
11
|
functionName: `graphQuery${vpcName}`,
|
|
10
12
|
}));
|
|
@@ -42,7 +42,11 @@ const processQueueEventBusSubscriptions = async (qpqConfig, ebMessage) => {
|
|
|
42
42
|
return allEventBuses.some((eb) => ebsub === eb.name);
|
|
43
43
|
});
|
|
44
44
|
})
|
|
45
|
-
.filter((q) =>
|
|
45
|
+
.filter((q) =>
|
|
46
|
+
// The target is this service
|
|
47
|
+
(!q.owner?.module || q.owner?.module === thisServiceName) &&
|
|
48
|
+
// And we are subed to the message that its trying to get to
|
|
49
|
+
q.eventBusSubscriptions.includes(ebMessage.eventBusName));
|
|
46
50
|
for (const queue of queues) {
|
|
47
51
|
const queueMessage = {
|
|
48
52
|
payload: ebMessage.payload,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "quidproquo-dev-server",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.245",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "./lib/commonjs/index.js",
|
|
6
6
|
"module": "./lib/esm/index.js",
|
|
@@ -34,15 +34,15 @@
|
|
|
34
34
|
"dependencies": {
|
|
35
35
|
"chalk": "^4.1.2",
|
|
36
36
|
"multer": "^1.4.5-lts.1",
|
|
37
|
-
"quidproquo-actionprocessor-awslambda": "0.0.
|
|
38
|
-
"quidproquo-actionprocessor-node": "0.0.
|
|
39
|
-
"quidproquo-core": "0.0.
|
|
40
|
-
"quidproquo-webserver": "0.0.
|
|
37
|
+
"quidproquo-actionprocessor-awslambda": "0.0.245",
|
|
38
|
+
"quidproquo-actionprocessor-node": "0.0.245",
|
|
39
|
+
"quidproquo-core": "0.0.245",
|
|
40
|
+
"quidproquo-webserver": "0.0.245",
|
|
41
41
|
"ws": "^8.18.0"
|
|
42
42
|
},
|
|
43
43
|
"devDependencies": {
|
|
44
44
|
"@types/multer": "^1.4.12",
|
|
45
|
-
"quidproquo-tsconfig": "0.0.
|
|
45
|
+
"quidproquo-tsconfig": "0.0.245",
|
|
46
46
|
"typescript": "^4.9.3"
|
|
47
47
|
}
|
|
48
48
|
}
|