@financial-times/dotcom-middleware-asset-loader 11.3.0 → 12.0.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.
- package/dist/node/index.js +3 -4
- package/dist/tsconfig.tsbuildinfo +1 -2875
- package/package.json +2 -2
package/dist/node/index.js
CHANGED
|
@@ -3,7 +3,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
3
3
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.init =
|
|
6
|
+
exports.init = init;
|
|
7
7
|
const path_1 = __importDefault(require("path"));
|
|
8
8
|
const createMiddleware_1 = __importDefault(require("./createMiddleware"));
|
|
9
9
|
const createStaticHost_1 = __importDefault(require("./createStaticHost"));
|
|
@@ -14,10 +14,9 @@ const defaultOptions = {
|
|
|
14
14
|
};
|
|
15
15
|
function init(userOptions) {
|
|
16
16
|
const options = { ...defaultOptions, ...userOptions };
|
|
17
|
-
const stack = [createMiddleware_1.default(options)];
|
|
17
|
+
const stack = [(0, createMiddleware_1.default)(options)];
|
|
18
18
|
if (options.hostStaticAssets) {
|
|
19
|
-
stack.push(createStaticHost_1.default(options));
|
|
19
|
+
stack.push((0, createStaticHost_1.default)(options));
|
|
20
20
|
}
|
|
21
21
|
return stack;
|
|
22
22
|
}
|
|
23
|
-
exports.init = init;
|