socket-function 0.33.0 → 0.35.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/SocketFunction.ts CHANGED
@@ -289,6 +289,7 @@ export class SocketFunction {
289
289
  * to add additional imports to ensure the register call runs.
290
290
  */
291
291
  public static expose(socketRegistered: SocketRegistered) {
292
+ if (this.ignoreExposeCount > 0) return;
292
293
  if (!socketRegistered._classGuid) {
293
294
  throw new Error("SocketFunction.expose must be called with a classGuid");
294
295
  }
package/mobx/UrlParam.ts CHANGED
@@ -16,7 +16,11 @@ export class UrlParam<T> {
16
16
  if (value === null) {
17
17
  return this.defaultValue;
18
18
  }
19
- return JSON.parse(value) as T;
19
+ try {
20
+ return JSON.parse(value) as T;
21
+ } catch {
22
+ return undefined as any;
23
+ }
20
24
  }
21
25
  public set(value: T) {
22
26
  let url = new URL(location.href);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "socket-function",
3
- "version": "0.33.0",
3
+ "version": "0.35.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",
@@ -12,7 +12,7 @@
12
12
  "node-forge": "https://github.com/sliftist/forge#name",
13
13
  "pako": "^2.1.0",
14
14
  "preact": "^10.10.6",
15
- "typenode": "^5.5.0",
15
+ "typenode": "^5.6.0",
16
16
  "ws": "^8.17.1"
17
17
  },
18
18
  "scripts": {