querysub 0.94.0 → 0.95.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.94.0",
3
+ "version": "0.95.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",
@@ -16,7 +16,7 @@ import { blue, green, magenta, red } from "socket-function/src/formatting/logCol
16
16
  import { PermissionsCheck } from "./permissions";
17
17
  import { parseArgs, writeCall } from "../3-path-functions/PathFunctionHelpers";
18
18
  import { delay } from "socket-function/src/batching";
19
- import { isNode, timeInMinute, timeInSecond } from "socket-function/src/misc";
19
+ import { isNode, isNodeTrue, timeInMinute, timeInSecond } from "socket-function/src/misc";
20
20
  import { registerResource } from "../diagnostics/trackResources";
21
21
 
22
22
  // Always whitelist preact, as most of the time we want it clientside
@@ -44,7 +44,7 @@ import yargs from "yargs";
44
44
  import { mergeFilterables, parseFilterable, serializeFilterable } from "../misc/filterable";
45
45
  import { isManagementUser } from "../-0-hooks/hooks";
46
46
 
47
- let yargObj = yargs(process.argv)
47
+ let yargObj = isNodeTrue() && yargs(process.argv)
48
48
  .option("fncfilter", { type: "string", default: "", desc: `Sets the filterable state for function calls, causing them to target specific FunctionRunners. If no FunctionRunner matches, all functions will fail to run. For example: "devtestserver" will match a FunctionRunner that uses the "devtestserver" filter. Merges with the existing filterable state if a client sets it explicitly.` })
49
49
  .argv
50
50
  ;