spice-js 2.7.29 → 2.7.31

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/build/index.js CHANGED
@@ -53,7 +53,9 @@ function _asyncToGenerator(n) { return function () { var t = this, e = arguments
53
53
  var path = require("path");
54
54
  //import IO from "koa-socket-2";
55
55
  var cors = require("kcors");
56
- global.spice = {};
56
+ // Preserve an existing host/test configuration when the package is imported.
57
+ // Production boot still starts from an empty object because spice is undefined.
58
+ global.spice = global.spice || {};
57
59
  require("dotenv").config({
58
60
  path: path.resolve("./")
59
61
  });