@scrypted/server 0.7.19 → 0.7.20

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.

@@ -22,6 +22,7 @@ if (!semver_1.default.gte(process_1.default.version, '16.0.0')) {
22
22
  // The workaround is to favor IPv4.
23
23
  process_1.default.env['NODE_OPTIONS'] = '--dns-result-order=ipv4first';
24
24
  (0, rpc_1.startPeriodicGarbageCollection)();
25
+ let startPromise;
25
26
  if (process_1.default.argv[2] === 'child' || process_1.default.argv[2] === 'child-thread') {
26
27
  // plugins should never crash. this handler will be removed, and then readded
27
28
  // after the plugin source map is retrieved.
@@ -32,7 +33,7 @@ if (process_1.default.argv[2] === 'child' || process_1.default.argv[2] === 'chil
32
33
  console.error('unhandledRejection', e);
33
34
  });
34
35
  const start = require('./scrypted-plugin-main').default;
35
- start(__filename);
36
+ startPromise = start(__filename);
36
37
  }
37
38
  else {
38
39
  // unhandled rejections are allowed if they are from a rpc/plugin call.
@@ -44,6 +45,7 @@ else {
44
45
  console.warn('unhandled rejection of RPC Result', error);
45
46
  });
46
47
  const start = require('./scrypted-server-main').default;
47
- start(__filename);
48
+ startPromise = start(__filename);
48
49
  }
50
+ exports.default = startPromise;
49
51
  //# sourceMappingURL=scrypted-main.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"scrypted-main.js","sourceRoot":"","sources":["../src/scrypted-main.ts"],"names":[],"mappings":";;;;;AAAA,4CAAoB;AACpB,4CAAoB;AACpB,sDAA8B;AAC9B,oDAA4B;AAC5B,+BAAuE;AACvE,wDAAoD;AAEpD,IAAI,CAAC,MAAM,CAAC,EAAE,EAAE;IACZ,YAAE,CAAC,kBAAkB,CAAC,aAAa,CAAC,CAAA;IACpC,MAAM,CAAC,EAAE,GAAG,YAAE,CAAC,eAAe,CAAC,IAAI,CAAC,CAAC;CACxC;AAED,IAAI,CAAC,gBAAM,CAAC,GAAG,CAAC,i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O,CAAC;IACxD,YAAY,GAAG,KAAK,CAAC,UAAU,CAAC,CAAC;CACpC;KACI;IACD,uEAAuE;IACvE,iBAAO,CAAC,EAAE,CAAC,oBAAoB,EAAE,KAAK,CAAC,EAAE;QACrC,IAAI,KAAK,EAAE,WAAW,KAAK,oBAAc,IAAI,KAAK,EAAE,WAAW,KAAK,0BAAW,EAAE;YAC7E,OAAO,CAAC,KAAK,CAAC,KAAK,EAAE,KAAK,CAAC,CAAC;YAC5B,MAAM,KAAK,CAAC;SACf;QACD,OAAO,CAAC,IAAI,CAAC,mCAAmC,EAAE,KAAK,CAAC,CAAC;IAC7D,CAAC,CAAC,CAAC;IAEH,MAAM,KAAK,GAAG,OAAO,CAAC,wBAAwB,CAAC,CAAC,OAAO,CAAC;IACxD,YAAY,GAAG,KAAK,CAAC,UAAU,CAAC,CAAC;CACpC;AAED,kBAAe,YAAY,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@scrypted/server",
3
- "version": "0.7.19",
3
+ "version": "0.7.20",
4
4
  "description": "",
5
5
  "dependencies": {
6
6
  "@mapbox/node-pre-gyp": "^1.0.10",
@@ -22,6 +22,8 @@ process.env['NODE_OPTIONS'] = '--dns-result-order=ipv4first';
22
22
 
23
23
  startPeriodicGarbageCollection();
24
24
 
25
+ let startPromise: any;
26
+
25
27
  if (process.argv[2] === 'child' || process.argv[2] === 'child-thread') {
26
28
  // plugins should never crash. this handler will be removed, and then readded
27
29
  // after the plugin source map is retrieved.
@@ -33,7 +35,7 @@ if (process.argv[2] === 'child' || process.argv[2] === 'child-thread') {
33
35
  });
34
36
 
35
37
  const start = require('./scrypted-plugin-main').default;
36
- start(__filename);
38
+ startPromise = start(__filename);
37
39
  }
38
40
  else {
39
41
  // unhandled rejections are allowed if they are from a rpc/plugin call.
@@ -46,5 +48,7 @@ else {
46
48
  });
47
49
 
48
50
  const start = require('./scrypted-server-main').default;
49
- start(__filename);
51
+ startPromise = start(__filename);
50
52
  }
53
+
54
+ export default startPromise;