@scrypted/server 0.7.50 → 0.7.52

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.

Potentially problematic release.


This version of @scrypted/server might be problematic. Click here for more details.

package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@scrypted/server",
3
- "version": "0.7.50",
3
+ "version": "0.7.52",
4
4
  "description": "",
5
5
  "dependencies": {
6
6
  "@mapbox/node-pre-gyp": "^1.0.10",
@@ -2,13 +2,12 @@ from __future__ import annotations
2
2
 
3
3
  import asyncio
4
4
  import gc
5
- import sys
6
5
  import os
7
6
  import platform
8
7
  import shutil
9
8
  import subprocess
9
+ import sys
10
10
  import threading
11
- import concurrent.futures
12
11
  import time
13
12
  import traceback
14
13
  import zipfile
@@ -21,14 +20,23 @@ from os import sys
21
20
  from typing import Any, Optional, Set, Tuple
22
21
 
23
22
  import scrypted_python.scrypted_sdk.types
24
- from scrypted_python.scrypted_sdk import ScryptedStatic, PluginFork
25
- from scrypted_python.scrypted_sdk.types import Device, DeviceManifest, EventDetails, ScryptedInterfaceProperty, Storage
26
- from typing_extensions import TypedDict
27
- import rpc
28
- import rpc_reader
23
+ from scrypted_python.scrypted_sdk import PluginFork, ScryptedStatic
24
+ from scrypted_python.scrypted_sdk.types import (Device, DeviceManifest,
25
+ EventDetails,
26
+ ScryptedInterfaceProperty,
27
+ Storage)
28
+
29
+ try:
30
+ from typing import TypedDict
31
+ except:
32
+ from typing_extensions import TypedDict
33
+
34
+ import hashlib
29
35
  import multiprocessing
30
36
  import multiprocessing.connection
31
- import hashlib
37
+
38
+ import rpc
39
+ import rpc_reader
32
40
 
33
41
  class SystemDeviceState(TypedDict):
34
42
  lastEventTime: int
package/python/rpc.py CHANGED
@@ -1,8 +1,13 @@
1
- from asyncio.futures import Future
2
- from typing import Any, Callable, Dict, Mapping, List
3
- import traceback
4
1
  import inspect
5
- from typing_extensions import TypedDict
2
+ import traceback
3
+ from asyncio.futures import Future
4
+ from typing import Any, Callable, Dict, List, Mapping
5
+
6
+ try:
7
+ from typing import TypedDict
8
+ except:
9
+ from typing_extensions import TypedDict
10
+
6
11
  import weakref
7
12
 
8
13
  jsonSerializable = set()
@@ -283,7 +283,7 @@ function toStorageString(value: any) {
283
283
  if (value === null)
284
284
  return 'null';
285
285
  if (value === undefined)
286
- return 'undefined;'
286
+ return 'undefined';
287
287
 
288
288
  return value.toString();
289
289
  }