@o3r/configuration 15.1.1 → 15.1.2
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.
|
@@ -7,11 +7,11 @@ const tslib_1 = require("tslib");
|
|
|
7
7
|
const cheerio = tslib_1.__importStar(require("cheerio"));
|
|
8
8
|
// eslint-disable-next-line @typescript-eslint/ban-ts-comment -- no type are provided for express-interceptor
|
|
9
9
|
// @ts-ignore
|
|
10
|
-
const
|
|
10
|
+
const express_interceptor_1 = tslib_1.__importDefault(require("express-interceptor"));
|
|
11
11
|
/**
|
|
12
12
|
* Injects bootstrapconfig inside the body dataset to get all debug/override capabilities on a local development server
|
|
13
13
|
*/
|
|
14
|
-
const bootstrapConfigMiddleware = () =>
|
|
14
|
+
const bootstrapConfigMiddleware = () => (0, express_interceptor_1.default)((_req, res) => ({
|
|
15
15
|
isInterceptable: () => /text\/html/.test(res.get('Content-Type')),
|
|
16
16
|
intercept: (body, send) => {
|
|
17
17
|
const file = cheerio.load(body);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"bootstrap-config-middleware.js","sourceRoot":"","sources":["../../middlewares/bootstrap-config-middleware.ts"],"names":[],"mappings":";;;;AAAA,oGAAoG;AACpG,aAAa;AACb,yDAAmC;AACnC,6GAA6G;AAC7G,aAAa;AACb,
|
|
1
|
+
{"version":3,"file":"bootstrap-config-middleware.js","sourceRoot":"","sources":["../../middlewares/bootstrap-config-middleware.ts"],"names":[],"mappings":";;;;AAAA,oGAAoG;AACpG,aAAa;AACb,yDAAmC;AACnC,6GAA6G;AAC7G,aAAa;AACb,sFAAqD;AAErD;;GAEG;AACI,MAAM,yBAAyB,GAAG,GAAG,EAAE,CAAC,IAAA,6BAAkB,EAAC,CAAC,IAA0B,EAAE,GAAyB,EAAE,EAAE,CAAC,CAAC;IAC5H,eAAe,EAAE,GAAG,EAAE,CAAC,YAAY,CAAC,IAAI,CAAC,GAAG,CAAC,GAAG,CAAC,cAAc,CAAC,CAAC;IACjE,SAAS,EAAE,CAAC,IAAY,EAAE,IAA4B,EAAE,EAAE;QACxD,MAAM,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;QAEhC,IAAI,CAAC,MAAM,CAAC,CAAC,IAAI,CAAC,sBAAsB,EAAE,IAAI,CAAC,SAAS,CAAC,EAAE,kBAAkB,EAAE,IAAI,EAAE,CAAC,CAAC,CAAC;QAExF,IAAI,CAAC,IAAI,CAAC,IAAI,EAAE,CAAC,CAAC;IACpB,CAAC;CACF,CAAC,CAAC,CAAC;AATS,QAAA,yBAAyB,6BASlC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@o3r/configuration",
|
|
3
|
-
"version": "15.1.
|
|
3
|
+
"version": "15.1.2",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
@@ -48,9 +48,9 @@
|
|
|
48
48
|
"@angular/platform-browser-dynamic": "^22.0.0",
|
|
49
49
|
"@ngrx/entity": "^22.0.0",
|
|
50
50
|
"@ngrx/store": "^22.0.0",
|
|
51
|
-
"@o3r/core": "~15.1.
|
|
52
|
-
"@o3r/logger": "~15.1.
|
|
53
|
-
"@o3r/schematics": "~15.1.
|
|
51
|
+
"@o3r/core": "~15.1.2",
|
|
52
|
+
"@o3r/logger": "~15.1.2",
|
|
53
|
+
"@o3r/schematics": "~15.1.2",
|
|
54
54
|
"@schematics/angular": "^22.0.0",
|
|
55
55
|
"cheerio": "^1.1.2",
|
|
56
56
|
"express-interceptor": "^1.2.0",
|
|
@@ -86,7 +86,7 @@
|
|
|
86
86
|
}
|
|
87
87
|
},
|
|
88
88
|
"dependencies": {
|
|
89
|
-
"@o3r/schematics": "~15.1.
|
|
89
|
+
"@o3r/schematics": "~15.1.2",
|
|
90
90
|
"tslib": "^2.6.2"
|
|
91
91
|
},
|
|
92
92
|
"engines": {
|