querysub 0.439.0 → 0.440.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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "querysub",
3
- "version": "0.439.0",
3
+ "version": "0.440.0",
4
4
  "main": "index.js",
5
5
  "license": "MIT",
6
6
  "note1": "note on node-forge fork, see https://github.com/digitalbazaar/forge/issues/744 for details",
@@ -61,10 +61,9 @@
61
61
  "node-forge": "https://github.com/sliftist/forge#e618181b469b07bdc70b968b0391beb8ef5fecd6",
62
62
  "pako": "^2.1.0",
63
63
  "peggy": "^5.0.6",
64
- "querysub": "^0.357.0",
65
- "socket-function": "^1.1.21",
64
+ "socket-function": "^1.1.22",
66
65
  "terser": "^5.31.0",
67
- "typesafecss": "^0.28.0",
66
+ "typesafecss": "^0.29.0",
68
67
  "yaml": "^2.5.0",
69
68
  "yargs": "^15.3.1"
70
69
  },
@@ -10,7 +10,7 @@ Promise.race = PromiseRace;
10
10
  import { shimDateNow } from "socket-function/time/trueTimeShim";
11
11
  shimDateNow();
12
12
 
13
- import { isNode, isNodeTrue, timeInMinute, timeInSecond, timeoutToUndefined } from "socket-function/src/misc";
13
+ import { isNode, isNodeTrue, nextId, timeInMinute, timeInSecond, timeoutToUndefined } from "socket-function/src/misc";
14
14
 
15
15
  import { SocketFunction } from "socket-function/SocketFunction";
16
16
  import { isHotReloading, watchFilesAndTriggerHotReloading } from "socket-function/hot/HotReloadController";
@@ -218,7 +218,10 @@ export class Querysub {
218
218
  // Returns a random value between 0 and 1. The value depends on the callId, and index (being identical for
219
219
  // the same callid and index).
220
220
  public static callRandom = () => hashRandom(Querysub.getCallId(), getNextCallIndex());
221
- public static nextId = () => Querysub.getCallId() + "_" + getNextCallIndex();
221
+ public static nextId = () => {
222
+ if (!Querysub.isInSyncedCall()) return nextId();
223
+ return Querysub.getCallId() + "_" + getNextCallIndex();
224
+ };
222
225
 
223
226
  public static getNextCallIndex = getNextCallIndex;
224
227
 
@@ -4,7 +4,7 @@ import { qreact } from "../../4-dom/qreact";
4
4
  import { deployGetFunctions } from "../../4-deploy/deployFunctions";
5
5
  import { MachineServiceController, deployFunctionsWithProgress } from "../machineSchema";
6
6
  import { functionSchema, FunctionSpec } from "../../3-path-functions/PathFunctionRunner";
7
- import { getDomain } from "../../config";
7
+ import { getDomain, isPublic } from "../../config";
8
8
  import { RenderGitRefInfo, UpdateButtons, bigEmoji, buttonStyle } from "./deployButtons";
9
9
  import { css } from "typesafecss";
10
10
  import { timeInHour, timeInMinute } from "socket-function/src/misc";
@@ -269,6 +269,7 @@ export class DeployPage extends qreact.Component {
269
269
 
270
270
  return <div className={css.vbox(40).marginTop(20)}>
271
271
  <div className={css.hbox(10)}>
272
+ {isPublic() && <h1>Don't deploy on public servers! It won't work, it will just deploy what that server is already running. TODO: Fix this.</h1>}
272
273
  <UpdateButtons services={[]} />
273
274
  <button
274
275
  disabled={controller.isAnyLoading()}