authscape 1.0.208 → 1.0.210
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/index.js +8 -12
- package/package.json +1 -1
- package/src/services/setupOEMProps.js +1 -1
package/index.js
CHANGED
|
@@ -2661,25 +2661,21 @@ function _regeneratorRuntime() { "use strict"; /*! regenerator-runtime -- Copyri
|
|
|
2661
2661
|
function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } }
|
|
2662
2662
|
function _asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value); } function _throw(err) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err); } _next(undefined); }); }; }
|
|
2663
2663
|
var setupOEMProps = /*#__PURE__*/function () {
|
|
2664
|
-
var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
2665
|
-
var
|
|
2666
|
-
pageProps,
|
|
2667
|
-
host,
|
|
2668
|
-
_args = arguments;
|
|
2664
|
+
var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(Component, ctx) {
|
|
2665
|
+
var pageProps, host;
|
|
2669
2666
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
2670
2667
|
while (1) switch (_context.prev = _context.next) {
|
|
2671
2668
|
case 0:
|
|
2672
|
-
ctx = _args.length > 0 && _args[0] !== undefined ? _args[0] : null;
|
|
2673
2669
|
pageProps = {};
|
|
2674
2670
|
if (!Component.getInitialProps) {
|
|
2675
|
-
_context.next =
|
|
2671
|
+
_context.next = 5;
|
|
2676
2672
|
break;
|
|
2677
2673
|
}
|
|
2678
|
-
_context.next =
|
|
2674
|
+
_context.next = 4;
|
|
2679
2675
|
return Component.getInitialProps(ctx);
|
|
2680
|
-
case
|
|
2676
|
+
case 4:
|
|
2681
2677
|
pageProps = _context.sent;
|
|
2682
|
-
case
|
|
2678
|
+
case 5:
|
|
2683
2679
|
host = ctx.req.headers.host;
|
|
2684
2680
|
if (host.includes("localhost")) {
|
|
2685
2681
|
pageProps.host = "http://" + ctx.req.headers.host;
|
|
@@ -2687,13 +2683,13 @@ var setupOEMProps = /*#__PURE__*/function () {
|
|
|
2687
2683
|
pageProps.host = "https://" + ctx.req.headers.host;
|
|
2688
2684
|
}
|
|
2689
2685
|
return _context.abrupt("return", pageProps);
|
|
2690
|
-
case
|
|
2686
|
+
case 8:
|
|
2691
2687
|
case "end":
|
|
2692
2688
|
return _context.stop();
|
|
2693
2689
|
}
|
|
2694
2690
|
}, _callee);
|
|
2695
2691
|
}));
|
|
2696
|
-
return function setupOEMProps() {
|
|
2692
|
+
return function setupOEMProps(_x, _x2) {
|
|
2697
2693
|
return _ref.apply(this, arguments);
|
|
2698
2694
|
};
|
|
2699
2695
|
}();
|
package/package.json
CHANGED