lucid-extension-sdk 0.0.223 → 0.0.224
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.
|
@@ -22,7 +22,11 @@ export type ExpressAppLike = {
|
|
|
22
22
|
end: () => unknown;
|
|
23
23
|
};
|
|
24
24
|
}) => Promise<void>) => unknown;
|
|
25
|
-
listen: (port: number
|
|
25
|
+
listen: (port: number, x: () => unknown) => {
|
|
26
|
+
address: () => {
|
|
27
|
+
port: number;
|
|
28
|
+
} | string | null;
|
|
29
|
+
};
|
|
26
30
|
};
|
|
27
31
|
/**
|
|
28
32
|
* Options for how to run the debug server
|
|
@@ -70,7 +70,9 @@ exports.routeDebugServer = routeDebugServer;
|
|
|
70
70
|
function runDebugServer(dataConnector, options) {
|
|
71
71
|
var _a;
|
|
72
72
|
const port = (_a = options.port) !== null && _a !== void 0 ? _a : 3001;
|
|
73
|
-
routeDebugServer(dataConnector, options).listen(port, () => {
|
|
73
|
+
const server = routeDebugServer(dataConnector, options).listen(port, () => {
|
|
74
|
+
const address = server.address();
|
|
75
|
+
const port = typeof address === 'string' ? address : address === null || address === void 0 ? void 0 : address.port;
|
|
74
76
|
console.log(`Listening on port ${port}`);
|
|
75
77
|
});
|
|
76
78
|
}
|