querysub 0.159.0 → 0.161.0
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/package.json
CHANGED
|
@@ -313,6 +313,11 @@ async function getModuleFromSpecBase(
|
|
|
313
313
|
}
|
|
314
314
|
// NOTE: The true tells require to not warn about the async loading
|
|
315
315
|
await (require as any)(path, true);
|
|
316
|
+
|
|
317
|
+
// Unfortunately... we have to wait for some delayed imports to finish.
|
|
318
|
+
// This isn't great, but it is important to set LazyComponent imports
|
|
319
|
+
// with the correct git hash.
|
|
320
|
+
await delay(0);
|
|
316
321
|
});
|
|
317
322
|
});
|
|
318
323
|
} catch (e: any) {
|
|
@@ -15,7 +15,7 @@ import yargs from "yargs";
|
|
|
15
15
|
import { isPublic } from "../config";
|
|
16
16
|
import { deployBlock } from "./deployBlock";
|
|
17
17
|
import { LOCAL_DOMAIN } from "../0-path-value-core/PathController";
|
|
18
|
-
import { magenta } from "socket-function/src/formatting/logColors";
|
|
18
|
+
import { blue, magenta, red } from "socket-function/src/formatting/logColors";
|
|
19
19
|
import { getGitRef } from "./git";
|
|
20
20
|
import { getGitURL } from "./git";
|
|
21
21
|
import { setLiveDeployedHash } from "./deploySchema";
|
|
@@ -31,6 +31,7 @@ let yargObj = yargs(process.argv)
|
|
|
31
31
|
.option("deployonlycode", { type: "boolean", desc: "Only deploy code, not ui" })
|
|
32
32
|
.option("deployonlyui", { type: "boolean", desc: "Only deploy ui, not code" })
|
|
33
33
|
.option("notifyrefreshdelay", { type: "number", default: timeInHour * 12, desc: "The time clients have to refresh their UI after a deploy." })
|
|
34
|
+
.option("dryrun", { type: "boolean", desc: "Dry run, don't actually deploy" })
|
|
34
35
|
.argv
|
|
35
36
|
;
|
|
36
37
|
|
|
@@ -52,6 +53,9 @@ export async function deployMain() {
|
|
|
52
53
|
const deployPath = path.resolve("./deploy.ts");
|
|
53
54
|
require(deployPath);
|
|
54
55
|
|
|
56
|
+
// Wait for Promise.resolve imports to import
|
|
57
|
+
await delay(0);
|
|
58
|
+
|
|
55
59
|
const srcRoot = path.resolve(__dirname + "/../").replaceAll("\\", "/");
|
|
56
60
|
|
|
57
61
|
let currentFunctions: FunctionSpec[] = [];
|
|
@@ -118,6 +122,13 @@ export async function deployMain() {
|
|
|
118
122
|
});
|
|
119
123
|
}
|
|
120
124
|
}
|
|
125
|
+
for (let fnc of currentFunctions) {
|
|
126
|
+
console.log(blue(`${fnc.DomainName}.${fnc.ModuleId}.${fnc.FunctionId}`));
|
|
127
|
+
}
|
|
128
|
+
if (yargObj.dryrun) {
|
|
129
|
+
console.log(red("Dry run, not actually deploying"));
|
|
130
|
+
return;
|
|
131
|
+
}
|
|
121
132
|
|
|
122
133
|
console.log();
|
|
123
134
|
console.log();
|
|
@@ -169,15 +169,12 @@ export class NodeViewer extends qreact.Component {
|
|
|
169
169
|
|
|
170
170
|
let tables: { [key: string]: NodeData[] } = {};
|
|
171
171
|
tables["PathValueServer"] = [];
|
|
172
|
-
tables["querysub-function"] = [];
|
|
173
172
|
tables["Querysub"] = [];
|
|
174
173
|
for (let datum of nodeDatas) {
|
|
175
174
|
if (datum.live_authorityPaths?.length) {
|
|
176
175
|
tables["PathValueServer"].push(datum);
|
|
177
176
|
} else if (datum.live_exposedControllers?.includes("QuerysubController-6db5ef05-7563-4473-a440-2f64f03fe6ef")) {
|
|
178
177
|
tables["Querysub"].push(datum);
|
|
179
|
-
} else if (datum.live_entryPoint?.endsWith("function.js")) {
|
|
180
|
-
tables["querysub-function"].push(datum);
|
|
181
178
|
} else {
|
|
182
179
|
let entryName = datum.live_entryPoint?.replaceAll("\\", "/").split("/").pop() || "Unknown";
|
|
183
180
|
tables[entryName] = tables[entryName] || [];
|