@zengenti/contensis-react-base 3.0.1 → 3.0.2-beta.1

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.
@@ -6,7 +6,7 @@ var App = require('./App-ee485b92.js');
6
6
  var contensisDeliveryApi = require('contensis-delivery-api');
7
7
  var React = require('react');
8
8
  var reactRedux = require('react-redux');
9
- var sagas = require('./sagas-7c19ce8e.js');
9
+ var sagas = require('./sagas-e2a34262.js');
10
10
  var mapJson = require('jsonpath-mapper');
11
11
  require('reselect');
12
12
  require('deepmerge');
@@ -58,6 +58,7 @@ function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'defau
58
58
  var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
59
59
  var mapJson__default = /*#__PURE__*/_interopDefaultLegacy(mapJson);
60
60
  var express__default = /*#__PURE__*/_interopDefaultLegacy(express);
61
+ var http__default = /*#__PURE__*/_interopDefaultLegacy(http);
61
62
  var httpProxy__default = /*#__PURE__*/_interopDefaultLegacy(httpProxy);
62
63
  var fs__default = /*#__PURE__*/_interopDefaultLegacy(fs);
63
64
  var path__default = /*#__PURE__*/_interopDefaultLegacy(path);
@@ -4401,7 +4402,7 @@ const webApp = (app, ReactApp, config) => {
4401
4402
  };
4402
4403
 
4403
4404
  const app = express__default["default"]();
4404
- let server = new http.Server(); // new Server() is just a stub to assert the type for the export
4405
+ const server = http__default["default"].createServer(app);
4405
4406
 
4406
4407
  const start = (ReactApp, config, ServerFeatures) => {
4407
4408
  global.PACKAGE_JSON = config.packagejson;
@@ -4418,7 +4419,7 @@ const start = (ReactApp, config, ServerFeatures) => {
4418
4419
  staticAssets(app, config);
4419
4420
  webApp(app, ReactApp, config);
4420
4421
  app.on('ready', async () => {
4421
- server = app.listen(3001, () => {
4422
+ server.listen(3001, () => {
4422
4423
  console.info(`HTTP server is listening @ port 3001`);
4423
4424
  setTimeout(function () {
4424
4425
  app.emit('app_started');