@scrypted/server 0.27.0 → 0.29.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.

Potentially problematic release.


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

@@ -4,6 +4,6 @@ export declare class ServiceControl {
4
4
  constructor(scrypted: ScryptedRuntime);
5
5
  exit(): Promise<void>;
6
6
  restart(): Promise<void>;
7
- getUpdateAvailable(): Promise<boolean>;
7
+ getUpdateAvailable(): Promise<string>;
8
8
  update(): Promise<any>;
9
9
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@scrypted/server",
3
- "version": "0.27.0",
3
+ "version": "0.29.0",
4
4
  "description": "",
5
5
  "dependencies": {
6
6
  "@mapbox/node-pre-gyp": "^1.0.10",
@@ -625,8 +625,15 @@ class PluginRemote:
625
625
 
626
626
  sys.path.insert(0, zipPath)
627
627
  if platform.system() != 'Windows':
628
- site_packages = os.path.join(
629
- python_prefix, 'lib', python_version, 'site-packages')
628
+ # local/lib/dist-packages seen on python3.10 on ubuntu.
629
+ # TODO: find a way to programatically get this value, or switch to venv.
630
+ dist_packages = os.path.join(
631
+ python_prefix, 'local', 'lib', python_version, 'dist-packages')
632
+ if os.path.exists(dist_packages):
633
+ site_packages = dist_packages
634
+ else:
635
+ site_packages = os.path.join(
636
+ python_prefix, 'lib', python_version, 'site-packages')
630
637
  else:
631
638
  site_packages = os.path.join(
632
639
  python_prefix, 'Lib', 'site-packages')
@@ -15,7 +15,7 @@ export class ServiceControl {
15
15
  process.exit();
16
16
  }
17
17
 
18
- async getUpdateAvailable(): Promise<boolean> {
18
+ async getUpdateAvailable(): Promise<string> {
19
19
  throw new Error('getUpdateAvailable is not implemented. Updates will come out of band through Docker or npm.');
20
20
  }
21
21