@scrypted/server 0.55.0 → 0.56.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.

@@ -57,4 +57,4 @@ async function fetchBuffer(url, init, body) {
57
57
  };
58
58
  }
59
59
  exports.fetchBuffer = fetchBuffer;
60
- //# sourceMappingURL=fetch-helpers.js.map
60
+ //# sourceMappingURL=http-fetch-helpers.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"http-fetch-helpers.js","sourceRoot":"","sources":["../src/http-fetch-helpers.ts"],"names":[],"mappings":";;;AAAA,mCAA8B;AAC9B,uDAA+C;AAGxC,KAAK,UAAU,iBAAiB,CAAC,GAAW;IAC/C,MAAM,EAAE,IAAI,EAAE,GAAG,MAAM,SAAS,CAAC,8BAA8B,GAAG,EAAE,EAAE;QAClE,qCAAqC;QACrC,MAAM,EAAE,CAAC;KACZ,CAAC,CAAC;IACH,OAAO,IAAI,CAAC;AAChB,CAAC;AAND,8CAMC;AAEM,KAAK,UAAU,SAAS,CAAC,GAAW,EAAE,IAAqB;IAC9D,IAAI,KAAK,EAAE,CAAC;IACZ,IAAI,CAAC,OAAO,GAAG;QACX,GAAG,IAAI,CAAC,OAAO;QACf,MAAM,EAAE,kBAAkB;KAC7B,CAAC;IACF,MAAM,EAAE,IAAI,EAAE,OAAO,EAAE,GAAG,MAAM,WAAW,CAAC,GAAG,EAAE,IAAI,CAAC,CAAC;IACvD,OAAO;QACH,IAAI,EAAE,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,QAAQ,EAAE,CAAC;QACjC,OAAO;KACV,CAAA;AACL,CAAC;AAXD,8BAWC;AAEM,KAAK,UAAU,aAAa,CAAC,GAAW,EAAE,QAAa,EAAE,IAAqB;IACjF,IAAI,KAAK,EAAE,CAAC;IACZ,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACrB,IAAI,CAAC,OAAO,GAAG;QACX,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43,7 @@ class PluginHttp {
43
43
  socket.destroy();
44
44
  }
45
45
  else {
46
+ res.header('Content-Type', 'text/plain');
46
47
  res.status(code);
47
48
  res.send(message);
48
49
  }
@@ -99,6 +100,7 @@ class PluginHttp {
99
100
  });
100
101
  }
101
102
  catch (e) {
103
+ res.header('Content-Type', 'text/plain');
102
104
  res.status(500);
103
105
  res.send(e.toString());
104
106
  console.error(e);
@@ -109,6 +111,7 @@ class PluginHttp {
109
111
  handler(req, res, httpRequest, pluginData);
110
112
  }
111
113
  catch (e) {
114
+ res.header('Content-Type', 'text/plain');
112
115
  res.status(500);
113
116
  res.send(e.toString());
114
117
  console.error(e);
@@ -1 +1 @@
1
- {"version":3,"file":"plugin-http.js","sourceRoot":"","sources":["../../src/plugin/plugin-http.ts"],"names":[],"mappings":";;;;;;AACA,8DAAqC;AAGrC,2BAA0D;AAE1D,SAAgB,mBAAmB,CAAC,OAA4B;IAC5D,mCAAmC;IACnC,OAAO,OAAO,CAAC,UAAU,EAAE,WAAW,EAAE,CAAC,QAAQ,CAAC,SAAS,CAAC,CAAC;AACjE,CAAC;AAHD,kDAGC;AAED,MAAsB,UAAU;IAGT;IAFnB,GAAG,GAAG,IAAI,WAAe,CAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC,CAAC;IAE9C,YAAmB,GAAW;QAAX,QAAG,GAAH,GAAG,CAAQ;IAC9B,CAAC;IAED,aAAa;QACT,IAAI,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC,2CAA2C,EAAE,mCAAmC,CAAC,EAAE,CAAC,GAAG,EAAE,GAAG,EAAE,EAAE;YAC1G,IAAI,CAAC,eAAe,CAAC,GAAG,EAAE,GAAG,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,CAAC,sBAAsB,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAA;QACtF,CAAC,CAAC,CAAC;QAEH,IAAI,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC,oCAAoC,EAAE,oCAAoC,CA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ACrE;oBACD,OAAO,CAAC,EAAE;wBACN,OAAO,CAAC,KAAK,CAAC,wBAAwB,EAAE,CAAC,CAAC,CAAC;wBAC3C,EAAE,CAAC,KAAK,EAAE,CAAC;qBACd;gBACL,CAAC,CAAC,CAAC;aACN;YACD,OAAO,CAAC,EAAE;gBACN,GAAG,CAAC,MAAM,CAAC,cAAc,EAAE,YAAY,CAAC,CAAC;gBACzC,GAAG,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC;gBAChB,GAAG,CAAC,IAAI,CAAC,CAAC,CAAC,QAAQ,EAAE,CAAC,CAAC;gBACvB,OAAO,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC;aACpB;SACJ;aACI;YACD,IAAI;gBACA,OAAO,CAAC,GAAG,EAAE,GAAG,EAAE,WAAW,EAAE,UAAU,CAAC,CAAC;aAC9C;YACD,OAAO,CAAC,EAAE;gBACN,GAAG,CAAC,MAAM,CAAC,cAAc,EAAE,YAAY,CAAC,CAAC;gBACzC,GAAG,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC;gBAChB,GAAG,CAAC,IAAI,CAAC,CAAC,CAAC,QAAQ,EAAE,CAAC,CAAC;gBACvB,OAAO,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC;aACpB;SACJ;IACL,CAAC;CACJ;AApID,gCAoIC"}
package/dist/runtime.js CHANGED
@@ -40,7 +40,7 @@ const tar_1 = __importDefault(require("tar"));
40
40
  const url_1 = require("url");
41
41
  const ws_1 = require("ws");
42
42
  const db_types_1 = require("./db-types");
43
- const fetch_helpers_1 = require("./fetch-helpers");
43
+ const http_fetch_helpers_1 = require("./http-fetch-helpers");
44
44
  const http_interfaces_1 = require("./http-interfaces");
45
45
  const infer_defaults_1 = require("./infer-defaults");
46
46
  const logger_1 = require("./logger");
@@ -453,12 +453,12 @@ class ScryptedRuntime extends plugin_http_1.PluginHttp {
453
453
  if (installedSet.has(pkg))
454
454
  return;
455
455
  installedSet.add(pkg);
456
- const registry = await (0, fetch_helpers_1.getNpmPackageInfo)(pkg);
456
+ const registry = await (0, http_fetch_helpers_1.getNpmPackageInfo)(pkg);
457
457
  if (!version) {
458
458
  version = registry['dist-tags'].latest;
459
459
  }
460
460
  console.log('installing package', pkg, version);
461
- const { body: tarball } = await (0, fetch_helpers_1.fetchBuffer)(`${registry.versions[version].dist.tarball}`, {
461
+ const { body: tarball } = await (0, http_fetch_helpers_1.fetchBuffer)(`${registry.versions[version].dist.tarball}`, {
462
462
  // force ipv4 in case of busted ipv6.
463
463
  family: 4,
464
464
  });
@@ -1 +1 @@
1
- {"version":3,"file":"runtime.js","sourceRoot":"","sources":["../src/runtime.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,2CAA2P;AAC3P,sDAA6B;AAC7B,oDAA4B;AAC5B,8CAAgC;AAChC,mCAA8B;AAG9B,4CAAoB;AAIpB,gDAAwB;AAExB,oDAA4B;AAC5B,mCAAqC;AACrC,8CAAsB;AACtB,6BAA0B;AAC1B,2BAA0D;AAC1D,yCAA+E;AAC/E,mDAAiE;AACjE,uDAA4D;AAC5D,qDAAgK;AAGhK,qCAAyD;AACzD,qDAA+D;AAC/D,sCAA8C;AAE9C,0DAAkE;AAClE,sDAAkD;AAClD,sDAAuE;AACvE,8EAAuE;AACvE,0DAAyD;AACzD,wEAAmE;AACnE,kEAAqE;AAErE,uDAA+F;AAC/F,oDAAuD;AACvD,8CAA2C;AAC3C,0CAA8C;AAC9C,0CAAuC;AACvC,8CAAoD;AACpD,gEAA4D;AAC5D,4CAAgD;AAChD,mCAAmE;AAOnE,MAAM,yBAAyB,GAAG,SAAS,CAAC;AAC5C,MAAM,2BAA2B,GAAG,CAAC,CAAC;AAStC,MAAa,eAAgB,SAAQ,wBAA0B;IAgCxC;IA/BnB,SAAS,GAAG,gBAAM,CAAC,WAAW,CAAC,CAAC,CAAC,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC;IAClD,aAAa,GAAG,gBAAM,CAAC,WAAW,CAAC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,OAAO,CAAC,EAAE;gBACN,OAAO,CAAC,KAAK,CAAC,8BAA8B,EAAE,MAAM,CAAC,GAAG,EAAE,CAAC,CAAC,CAAC;aAChE;SACJ;QAED,IAAI,OAAO,CAAC,GAAG,CAAC,uBAAuB,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,MAAM,CAAC,EAAE,CAAC,MAAM,CAAC,GAAG,KAAK,OAAO,CAAC,GAAG,CAAC,uBAAuB,CAAC,EAAE;YACpH,IAAI;gBACA,MAAM,IAAI,CAAC,UAAU,CAAC,OAAO,CAAC,GAAG,CAAC,uBAAuB,CAAC,CAAC;aAC9D;YACD,OAAO,CAAC,EAAE;gBACN,OAAO,CAAC,KAAK,CAAC,+BAA+B,EAAE,OAAO,CAAC,GAAG,CAAC,uBAAuB,CAAC,CAAC;aACvF;SACJ;IACL,CAAC;CACJ;AA92BD,0CA82BC"}
@@ -53,7 +53,7 @@ const users_1 = require("./services/users");
53
53
  const sleep_1 = require("./sleep");
54
54
  const usertoken_1 = require("./usertoken");
55
55
  const events_1 = require("events");
56
- const fetch_helpers_1 = require("./fetch-helpers");
56
+ const http_fetch_helpers_1 = require("./http-fetch-helpers");
57
57
  if (!semver_1.default.gte(process_1.default.version, '16.0.0')) {
58
58
  throw new Error('"node" version out of date. Please update node to v16 or higher.');
59
59
  }
@@ -312,7 +312,7 @@ async function start(mainFilename, options) {
312
312
  if (owner)
313
313
  endpoint = `@${owner}/${endpoint}`;
314
314
  try {
315
- const json = await (0, fetch_helpers_1.getNpmPackageInfo)(endpoint);
315
+ const json = await (0, http_fetch_helpers_1.getNpmPackageInfo)(endpoint);
316
316
  res.send(json);
317
317
  }
318
318
  catch (e) {
@@ -350,7 +350,7 @@ async function start(mainFilename, options) {
350
350
  const plugin = await db.tryGet(db_types_1.Plugin, npmPackage);
351
351
  if (!plugin) {
352
352
  res.status(500);
353
- res.send(`npm package ${npmPackage} not found`);
353
+ res.send(`npm package not found`);
354
354
  return;
355
355
  }
356
356
  plugin.zip = req.body.toString('base64');
@@ -365,7 +365,7 @@ async function start(mainFilename, options) {
365
365
  const plugin = await db.tryGet(db_types_1.Plugin, npmPackage);
366
366
  if (!plugin) {
367
367
  res.status(500);
368
- res.send(`npm package ${npmPackage} not found`);
368
+ res.send(`npm package not found`);
369
369
  return;
370
370
  }
371
371
  const waitDebug = new Promise((resolve, reject) => {
@@ -380,6 +380,7 @@ async function start(mainFilename, options) {
380
380
  });
381
381
  }
382
382
  catch (e) {
383
+ res.header('Content-Type', 'text/plain');
383
384
  res.status(500);
384
385
  res.send(e.toString());
385
386
  return;
@@ -1 +1 @@
1
- {"version":3,"file":"scrypted-server-main.js","sourceRoot":"","sources":["../src/scrypted-server-main.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,yCAAoC;AACpC,8DAAqC;AACrC,kEAAyC;AACzC,oDAA4B;AAC5B,sDAA2C;AAC3C,4CAAoB;AACpB,gDAAwB;AACxB,0DAAiC;AACjC,kDAA0B;AAC1B,8CAAsB;AACtB,4CAAoB;AACpB,gDAAwB;AACxB,sDAA8B;AAC9B,oDAA4B;AAC5B,2DAAwE;AACxE,iCAA8F;AAC9F,yCAA4D;AAC5D,oDAA4B;AAC5B,wDAAoD;AACpD,0DAA2D;AAC3D,+BAAuC;AACvC,uCAA4C;AAC5C,uDAAwH;AAExH,4CAA2D;AAC3D,mCAAgC;AAChC,2CAA8D;AAC9D,mCAA8B;AAE9B,mDAAoD;AAIpD,IAAI,CAAC,gBAAM,CAAC,GAAG,CAAC,iBAAO,CAAC,OAAO,EAAE,QAAQ,CAAC,EAAE;IACxC,MAAM,IAAI,KAAK,CAAC,kEAAkE,CAAC,CAAA;CACtF;AAED,iBAAO,CAAC,EAAE,CAAC,oBAAoB,EAAE,KAAK,CAAC,EAAE;IACrC,IAAI,KAAK,EAAE,WAAW,KAAK,oBAAc,IAAI,KAAK,EAAE,WAAW,KAAK,0BAAW,EAAE;QAC7E,OAAO,CAAC,KAAK,CAAC,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AS,GAAG,SAAS,CAAC,QAAQ,CAAC,GAAG,IAAI,CAAC,GAAG,EAAE;gBACnE,QAAQ,EAAE,SAAS,CAAC,QAAQ;gBAC5B,GAAG,kBAAkB;gBACrB,QAAQ;aACX,CAAC,CAAA;SACL;QACD,OAAO,CAAC,EAAE;YACN,GAAG,CAAC,IAAI,CAAC;gBACL,KAAK,EAAE,CAAC,EAAE,OAAO,IAAI,gBAAgB;gBACrC,QAAQ;gBACR,GAAG,kBAAkB;gBACrB,QAAQ;aACX,CAAC,CAAA;SACL;IACL,CAAC,CAAC,CAAC;IAEH,GAAG,CAAC,GAAG,CAAC,GAAG,EAAE,CAAC,IAAI,EAAE,GAAG,EAAE,EAAE,CAAC,GAAG,CAAC,QAAQ,CAAC,mCAAmC,CAAC,CAAC,CAAC;IAE/E,OAAO,QAAQ,CAAC;AACpB,CAAC;AAED,kBAAe,KAAK,CAAC"}
@@ -7,7 +7,7 @@ exports.PluginComponent = void 0;
7
7
  const types_1 = require("@scrypted/types");
8
8
  const semver_1 = __importDefault(require("semver"));
9
9
  const db_types_1 = require("../db-types");
10
- const fetch_helpers_1 = require("../fetch-helpers");
10
+ const http_fetch_helpers_1 = require("../http-fetch-helpers");
11
11
  const mixin_cycle_1 = require("../mixin/mixin-cycle");
12
12
  const sleep_1 = require("../sleep");
13
13
  const state_1 = require("../state");
@@ -109,7 +109,7 @@ class PluginComponent {
109
109
  await this.scrypted.installNpm(pkg, version);
110
110
  }
111
111
  async npmInfo(endpoint) {
112
- return (0, fetch_helpers_1.getNpmPackageInfo)(endpoint);
112
+ return (0, http_fetch_helpers_1.getNpmPackageInfo)(endpoint);
113
113
  }
114
114
  async updatePlugins() {
115
115
  console.log('updating plugins');
@@ -1 +1 @@
1
- {"version":3,"file":"plugin.js","sourceRoot":"","sources":["../../src/services/plugin.ts"],"names":[],"mappings":";;;;;;AAAA,2CAA8E;AAC9E,oDAA4B;AAC5B,0CAAqC;AACrC,oDAAqD;AACrD,sDAAqD;AAErD,o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nB,OAAO,IAAI,CAAC,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC;;YAE7B,IAAI,CAAC,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,GAAG,KAAK,CAAC;IACtC,CAAC;IAED,KAAK,CAAC,YAAY,CAAC,QAAgB,EAAE,IAAY;QAC7C,MAAM,IAAI,GAAG,IAAI,CAAC,QAAQ,CAAC,OAAO,CAAC,QAAQ,CAAC,CAAC;QAC7C,MAAM,GAAG,GAAG,aAAa,IAAI,EAAE,CAAC;QAChC,OAAO,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC;IACrC,CAAC;CACJ;AAxKD,0CAwKC"}
@@ -5,7 +5,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
6
  exports.ServiceControl = void 0;
7
7
  const fs_1 = __importDefault(require("fs"));
8
- const fetch_helpers_1 = require("../fetch-helpers");
8
+ const http_fetch_helpers_1 = require("../http-fetch-helpers");
9
9
  class ServiceControl {
10
10
  scrypted;
11
11
  constructor(scrypted) {
@@ -25,7 +25,7 @@ class ServiceControl {
25
25
  const webhookUpdate = process.env.SCRYPTED_WEBHOOK_UPDATE;
26
26
  if (webhookUpdate) {
27
27
  const webhookUpdateAuthorization = process.env.SCRYPTED_WEBHOOK_UPDATE_AUTHORIZATION;
28
- const json = await (0, fetch_helpers_1.fetchJSON)(webhookUpdate, {
28
+ const json = await (0, http_fetch_helpers_1.fetchJSON)(webhookUpdate, {
29
29
  headers: {
30
30
  Authorization: webhookUpdateAuthorization,
31
31
  }
@@ -1 +1 @@
1
- {"version":3,"file":"service-control.js","sourceRoot":"","sources":["../../src/services/service-control.ts"],"names":[],"mappings":";;;;;;AAAA,4CAAoB;AACpB,oDAA6C;AAG7C,MAAa,cAAc;IACJ;IAAnB,YAAmB,QAAyB;QAAzB,aAAQ,GAAR,QAAQ,CAAiB;IAC5C,CAAC;IAED,KAAK,CAAC,IAAI;QACN,YAAE,CAAC,aAAa,CAAC,OAAO,EAAE,EAAE,CAAC,CAAC;QAC9B,IAAI,CAAC,OAAO,EAAE,CAAC;IACnB,CAAC;IAED,KAAK,CAAC,OAAO;QACT,OAAO,CAAC,IAAI,EAAE,CAAC;IACnB,CAAC;IAED,KAAK,CAAC,kBAAkB;QACpB,MAAM,IAAI,KAAK,CAAC,6FAA6F,CAAC,CAAC;IACnH,CAAC;IAED,KAAK,CAAC,MAAM;QACR,MAAM,aAAa,GAAG,OAAO,CAAC,GAAG,CAAC,uBAAuB,CAAC;QAC1D,IAAI,aAAa,EAAE;YACf,MAAM,0BAA0B,GAAG,OAAO,CAAC,GAAG,CAAC,qCAAqC,CAAC;YACrF,MAAM,IAAI,GAAG,MAAM,IAAA,yBAAS,EAAC,aAAa,EAAE;gBACxC,OAAO,EAAE;oBACL,aAAa,EAAE,0BAA0B;iBAC5C;aACJ,CAAC,CAAC;YACH,OAAO,IAAI,CAAC;SACf;aACI;YACD,YAAE,CAAC,aAAa,CAAC,SAAS,EAAE,EAAE,CAAC,CAAC;YAChC,IAAI,CAAC,OAAO,EAAE,CAAC;SAClB;IACL,CAAC;CACJ;AAjCD,wCAiCC"}
1
+ {"version":3,"file":"service-control.js","sourceRoot":"","sources":["../../src/services/service-control.ts"],"names":[],"mappings":";;;;;;AAAA,4CAAoB;AACpB,8DAAkD;AAGlD,MAAa,cAAc;IACJ;IAAnB,YAAmB,QAAyB;QAAzB,aAAQ,GAAR,QAAQ,CAAiB;IAC5C,CAAC;IAED,KAAK,CAAC,IAAI;QACN,YAAE,CAAC,aAAa,CAAC,OAAO,EAAE,EAAE,CAAC,CAAC;QAC9B,IAAI,CAAC,OAAO,EAAE,CAAC;IACnB,CAAC;IAED,KAAK,CAAC,OAAO;QACT,OAAO,CAAC,IAAI,EAAE,CAAC;IACnB,CAAC;IAED,KAAK,CAAC,kBAAkB;QACpB,MAAM,IAAI,KAAK,CAAC,6FAA6F,CAAC,CAAC;IACnH,CAAC;IAED,KAAK,CAAC,MAAM;QACR,MAAM,aAAa,GAAG,OAAO,CAAC,GAAG,CAAC,uBAAuB,CAAC;QAC1D,IAAI,aAAa,EAAE;YACf,MAAM,0BAA0B,GAAG,OAAO,CAAC,GAAG,CAAC,qCAAqC,CAAC;YACrF,MAAM,IAAI,GAAG,MAAM,IAAA,8BAAS,EAAC,aAAa,EAAE;gBACxC,OAAO,EAAE;oBACL,aAAa,EAAE,0BAA0B;iBAC5C;aACJ,CAAC,CAAC;YACH,OAAO,IAAI,CAAC;SACf;aACI;YACD,YAAE,CAAC,aAAa,CAAC,SAAS,EAAE,EAAE,CAAC,CAAC;YAChC,IAAI,CAAC,OAAO,EAAE,CAAC;SAClB;IACL,CAAC;CACJ;AAjCD,wCAiCC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@scrypted/server",
3
- "version": "0.55.0",
3
+ "version": "0.56.0",
4
4
  "description": "",
5
5
  "dependencies": {
6
6
  "@mapbox/node-pre-gyp": "^1.0.11",
@@ -9,7 +9,7 @@
9
9
  "body-parser": "^1.20.2",
10
10
  "cookie-parser": "^1.4.6",
11
11
  "debug": "^4.3.4",
12
- "engine.io": "^6.5.2",
12
+ "engine.io": "^6.5.3",
13
13
  "express": "^4.18.2",
14
14
  "ffmpeg-static": "^5.2.0",
15
15
  "follow-redirects": "^1.15.3",
@@ -18,7 +18,7 @@
18
18
  "level": "^8.0.0",
19
19
  "linkfs": "^2.1.0",
20
20
  "lodash": "^4.17.21",
21
- "memfs": "^4.3.0",
21
+ "memfs": "^4.6.0",
22
22
  "mime": "^3.0.0",
23
23
  "nan": "^2.18.0",
24
24
  "node-dijkstra": "^2.5.0",
@@ -34,23 +34,23 @@
34
34
  "ws": "^8.14.2"
35
35
  },
36
36
  "devDependencies": {
37
- "@types/adm-zip": "^0.5.1",
37
+ "@types/adm-zip": "^0.5.2",
38
38
  "@types/cookie-parser": "^1.4.4",
39
- "@types/debug": "^4.1.8",
40
- "@types/express": "^4.17.17",
39
+ "@types/debug": "^4.1.9",
40
+ "@types/express": "^4.17.18",
41
41
  "@types/follow-redirects": "^1.14.2",
42
42
  "@types/http-auth": "^4.1.2",
43
- "@types/ip": "^1.1.0",
44
- "@types/lodash": "^4.14.198",
45
- "@types/mime": "^3.0.1",
46
- "@types/node-dijkstra": "^2.5.3",
47
- "@types/node-forge": "^1.3.5",
48
- "@types/pem": "^1.14.1",
49
- "@types/semver": "^7.5.2",
50
- "@types/source-map-support": "^0.5.7",
43
+ "@types/ip": "^1.1.1",
44
+ "@types/lodash": "^4.14.199",
45
+ "@types/mime": "^3.0.2",
46
+ "@types/node-dijkstra": "^2.5.4",
47
+ "@types/node-forge": "^1.3.7",
48
+ "@types/pem": "^1.14.2",
49
+ "@types/semver": "^7.5.3",
50
+ "@types/source-map-support": "^0.5.8",
51
51
  "@types/tar": "^6.1.6",
52
52
  "@types/whatwg-mimetype": "^3.0.0",
53
- "@types/ws": "^8.5.5"
53
+ "@types/ws": "^8.5.6"
54
54
  },
55
55
  "optionalDependencies": {
56
56
  "node-pty-prebuilt-multiarch": "^0.10.1-pre.5"
@@ -55,6 +55,7 @@ export abstract class PluginHttp<T> {
55
55
  socket.destroy();
56
56
  }
57
57
  else {
58
+ res.header('Content-Type', 'text/plain');
58
59
  res.status(code);
59
60
  res.send(message);
60
61
  }
@@ -122,6 +123,7 @@ export abstract class PluginHttp<T> {
122
123
  });
123
124
  }
124
125
  catch (e) {
126
+ res.header('Content-Type', 'text/plain');
125
127
  res.status(500);
126
128
  res.send(e.toString());
127
129
  console.error(e);
@@ -132,6 +134,7 @@ export abstract class PluginHttp<T> {
132
134
  handler(req, res, httpRequest, pluginData);
133
135
  }
134
136
  catch (e) {
137
+ res.header('Content-Type', 'text/plain');
135
138
  res.status(500);
136
139
  res.send(e.toString());
137
140
  console.error(e);
package/src/runtime.ts CHANGED
@@ -17,7 +17,7 @@ import tar from 'tar';
17
17
  import { URL } from "url";
18
18
  import WebSocket, { Server as WebSocketServer } from "ws";
19
19
  import { Plugin, PluginDevice, ScryptedAlert, ScryptedUser } from './db-types';
20
- import { fetchBuffer, getNpmPackageInfo } from './fetch-helpers';
20
+ import { fetchBuffer, getNpmPackageInfo } from './http-fetch-helpers';
21
21
  import { createResponseInterface } from './http-interfaces';
22
22
  import { getDisplayName, getDisplayRoom, getDisplayType, getProvidedNameOrDefault, getProvidedRoomOrDefault, getProvidedTypeOrDefault } from './infer-defaults';
23
23
  import { IOServer } from './io';
@@ -27,7 +27,7 @@ import { sleep } from './sleep';
27
27
  import { ONE_DAY_MILLISECONDS, UserToken } from './usertoken';
28
28
  import { once } from 'events';
29
29
  import util from 'util';
30
- import { getNpmPackageInfo } from './fetch-helpers';
30
+ import { getNpmPackageInfo } from './http-fetch-helpers';
31
31
 
32
32
  export type Runtime = ScryptedRuntime;
33
33
 
@@ -379,7 +379,7 @@ async function start(mainFilename: string, options?: {
379
379
 
380
380
  if (!plugin) {
381
381
  res.status(500);
382
- res.send(`npm package ${npmPackage} not found`);
382
+ res.send(`npm package not found`);
383
383
  return;
384
384
  }
385
385
 
@@ -399,7 +399,7 @@ async function start(mainFilename: string, options?: {
399
399
 
400
400
  if (!plugin) {
401
401
  res.status(500);
402
- res.send(`npm package ${npmPackage} not found`);
402
+ res.send(`npm package not found`);
403
403
  return;
404
404
  }
405
405
 
@@ -416,9 +416,10 @@ async function start(mainFilename: string, options?: {
416
416
  });
417
417
  }
418
418
  catch (e) {
419
+ res.header('Content-Type', 'text/plain');
419
420
  res.status(500);
420
421
  res.send(e.toString());
421
- return
422
+ return;
422
423
  }
423
424
 
424
425
  res.send({
@@ -1,7 +1,7 @@
1
1
  import { ScryptedInterfaceProperty, ScryptedNativeId } from "@scrypted/types";
2
2
  import semver from 'semver';
3
3
  import { Plugin } from '../db-types';
4
- import { getNpmPackageInfo } from "../fetch-helpers";
4
+ import { getNpmPackageInfo } from "../http-fetch-helpers";
5
5
  import { hasMixinCycle } from "../mixin/mixin-cycle";
6
6
  import { ScryptedRuntime } from "../runtime";
7
7
  import { sleep } from "../sleep";
@@ -1,5 +1,5 @@
1
1
  import fs from 'fs';
2
- import { fetchJSON } from "../fetch-helpers";
2
+ import { fetchJSON } from "../http-fetch-helpers";
3
3
  import { ScryptedRuntime } from "../runtime";
4
4
 
5
5
  export class ServiceControl {
@@ -1 +0,0 @@
1
- {"version":3,"file":"fetch-helpers.js","sourceRoot":"","sources":["../src/fetch-helpers.ts"],"names":[],"mappings":";;;AAAA,mCAA8B;AAC9B,uDAA+C;AAGxC,KAAK,UAAU,iBAAiB,CAAC,GAAW;IAC/C,MAAM,EAAE,IAAI,EAAE,GAAG,MAAM,SAAS,CAAC,8BAA8B,GAAG,EAAE,EAAE;QAClE,qCAAqC;QACrC,MAAM,EAAE,CAAC;KACZ,CAAC,CAAC;IACH,OAAO,IAAI,CAAC;AAChB,CAAC;AAND,8CAMC;AAEM,KAAK,UAAU,SAAS,CAAC,GAAW,EAAE,IAAqB;IAC9D,IAAI,KAAK,EAAE,CAAC;IACZ,IAAI,CAAC,OAAO,GAAG;QACX,GAAG,IAAI,CAAC,OAAO;QACf,MAAM,EAAE,kBAAkB;KAC7B,CAAC;IACF,MAAM,EAAE,IAAI,EAAE,OAAO,EAAE,GAAG,MAAM,WAAW,CAAC,GAAG,EAAE,IAAI,CAAC,CAAC;IACvD,OAAO;QACH,IAAI,EAAE,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,QAAQ,EAAE,CAAC;QACjC,OAAO;KACV,CAAA;AACL,CAAC;AAXD,8BAWC;AAEM,KAAK,UAAU,aAAa,CAAC,GAAW,EAAE,QAAa,EAAE,IAAqB;IACjF,IAAI,KAAK,EAAE,CAAC;IACZ,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACrB,IAAI,CAAC,OAAO,GAAG;QACX,GAAG,IAAI,CAAC,OAAO;QACf,MAAM,EAAE,kBAAkB;QAC1B,cAAc,EAAE,kBAAkB;KACrC,CAAC;IAEF,MAAM,EA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