@rpcbase/server 0.227.0 → 0.228.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/cli/check_args.js CHANGED
@@ -5,7 +5,14 @@ const check_args = (args) => {
5
5
  throw new Error("Did you mean --sessions?")
6
6
  }
7
7
 
8
- const raw_args = JSON.parse(process.env.npm_config_argv).original
8
+ const {npm_config_argv} = process.env
9
+
10
+ if (!npm_config_argv) {
11
+ console.warn("no npm_config_argv skipping arg check")
12
+ return
13
+ }
14
+
15
+ const raw_args = JSON.parse().original
9
16
  if (raw_args.indexOf("--no-session") > -1) {
10
17
  throw new Error("Did you mean --no-sessions?")
11
18
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rpcbase/server",
3
- "version": "0.227.0",
3
+ "version": "0.228.0",
4
4
  "license": "SSPL-1.0",
5
5
  "main": "./index.js",
6
6
  "bin": {