@ministryofjustice/hmpps-digital-prison-reporting-frontend 4.2.3 → 4.2.4
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.
|
@@ -41,7 +41,7 @@ const populateDefinitions = async (services, req, res, config) => {
|
|
|
41
41
|
res.locals.dpdPathFromQuery = true;
|
|
42
42
|
}
|
|
43
43
|
// Get the DPD path from the config
|
|
44
|
-
const dpdPathFromConfig = config === null || config === void 0 ? void 0 : config.
|
|
44
|
+
const dpdPathFromConfig = config === null || config === void 0 ? void 0 : config.dataProductDefinitionsPath;
|
|
45
45
|
if (dpdPathFromConfig) {
|
|
46
46
|
res.locals.dpdPathFromConfig = true;
|
|
47
47
|
}
|
|
@@ -37,7 +37,7 @@ export const setRoutePrefix = async (res: Response, config?: DprConfig) => {
|
|
|
37
37
|
res.locals.routePrefix = getRoutePrefix(config)
|
|
38
38
|
}
|
|
39
39
|
|
|
40
|
-
export const populateDefinitions = async (services: Services, req: Request, res: Response, config?:
|
|
40
|
+
export const populateDefinitions = async (services: Services, req: Request, res: Response, config?: DprConfig) => {
|
|
41
41
|
// Get the DPD path from the query
|
|
42
42
|
const dpdPathFromQuery = deriveDefinitionsPath(req.query)
|
|
43
43
|
const dpdPathFromBody = req.body.dataProductDefinitionsPath
|
|
@@ -48,7 +48,7 @@ export const populateDefinitions = async (services: Services, req: Request, res:
|
|
|
48
48
|
}
|
|
49
49
|
|
|
50
50
|
// Get the DPD path from the config
|
|
51
|
-
const dpdPathFromConfig = config?.
|
|
51
|
+
const dpdPathFromConfig = config?.dataProductDefinitionsPath
|
|
52
52
|
if (dpdPathFromConfig) {
|
|
53
53
|
res.locals.dpdPathFromConfig = true
|
|
54
54
|
}
|
package/dpr/types/DprConfig.ts
CHANGED
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ministryofjustice/hmpps-digital-prison-reporting-frontend",
|
|
3
3
|
"description": "The Digital Prison Reporting Frontend contains templates and code to help display data effectively in UI applications.",
|
|
4
|
-
"version": "4.2.
|
|
4
|
+
"version": "4.2.4",
|
|
5
5
|
"main": "dpr/all.mjs",
|
|
6
6
|
"sass": "dpr/all.scss",
|
|
7
7
|
"engines": {
|
package/package.zip
CHANGED
|
Binary file
|