@financial-times/dotcom-middleware-app-context 11.2.1 → 12.0.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.
- package/dist/node/index.d.ts +1 -1
- package/dist/node/index.js +1 -2
- package/dist/tsconfig.tsbuildinfo +1 -2837
- package/package.json +4 -7
package/dist/node/index.d.ts
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
import { Request, Response, NextFunction } from 'express';
|
2
2
|
import { TAppContext } from '@financial-times/dotcom-server-app-context';
|
3
|
-
export
|
3
|
+
export type TMiddlewareOptions = {
|
4
4
|
appContext?: Partial<TAppContext>;
|
5
5
|
};
|
6
6
|
export declare function init(options?: TMiddlewareOptions): (request: Request, response: Response, next: NextFunction) => void;
|
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 package_json_1 = __importDefault(require("@financial-times/dotcom-server-app-context/package.json"));
|
8
8
|
const dotcom_server_app_context_1 = require("@financial-times/dotcom-server-app-context");
|
9
9
|
function init(options = {}) {
|
@@ -35,4 +35,3 @@ function init(options = {}) {
|
|
35
35
|
next();
|
36
36
|
};
|
37
37
|
}
|
38
|
-
exports.init = init;
|