@ministryofjustice/hmpps-connect-dps-components 1.0.0 → 1.1.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/README.md CHANGED
@@ -35,7 +35,6 @@ To incorporate use as middleware for appropriate routes within your Express appl
35
35
  ```javascript
36
36
  app.get('*', dpsComponents.get({
37
37
  dpsUrl: config.serviceUrls.digitalPrison,
38
- environmentName: 'DEV',
39
38
  })
40
39
  )
41
40
  ```
@@ -13,7 +13,7 @@
13
13
 
14
14
  <a class="fallback-dps-header__link fallback-dps-header__title__service-name" href="{{ authUrl }}">Digital Services</a>
15
15
 
16
- {% if environmentName !== 'PRODUCTION' %}
16
+ {% if environmentName and environmentName !== 'PRODUCTION' %}
17
17
  {{ govukTag({
18
18
  text: environmentName,
19
19
  classes: environmentNameColour
@@ -24,7 +24,7 @@
24
24
  Digital Prison Services
25
25
  </a>
26
26
 
27
- {% if environmentName !== 'PRODUCTION' %}
27
+ {% if environmentName and environmentName !== 'PRODUCTION' %}
28
28
  {{ govukTag({
29
29
  text: environmentName,
30
30
  classes: environmentNameColour
package/dist/index.d.ts CHANGED
@@ -11,7 +11,7 @@ declare const _default: {
11
11
  * @param requestOptions.dpsUrl - url to the dps homepage to be used in the header
12
12
  * @param requestOptions.authUrl - if your service has users with non-nomis auth sources, pass in the url to the auth service for the home link
13
13
  * @param requestOptions.supportUrl - if your service has users with non-nomis auth sources, pass in the support url for the support link
14
- * @param requestOptions.environmentName - "DEV", "PRE-PRODUCTION" or "PRODUCTION" to be used in the header
14
+ * @param requestOptions.environmentName - if you require environment tags on the fallback banner "DEV", "PRE-PRODUCTION" or "PRODUCTION" can be passed in
15
15
  * @param requestOptions.logger - pass in the bunyen logger if you want to use it. Falls back to console if not provided
16
16
  * @param requestOptions.timeoutOptions - timeout object for superagent. Defaults to 2500ms
17
17
  * @param requestOptions.includeMeta - adds feComponentsMeta to res.locals if true. Contains metadata for components including activeCaseLoad, caseLoads and available services for user
package/dist/index.js CHANGED
@@ -16,7 +16,7 @@ exports.default = {
16
16
  * @param requestOptions.dpsUrl - url to the dps homepage to be used in the header
17
17
  * @param requestOptions.authUrl - if your service has users with non-nomis auth sources, pass in the url to the auth service for the home link
18
18
  * @param requestOptions.supportUrl - if your service has users with non-nomis auth sources, pass in the support url for the support link
19
- * @param requestOptions.environmentName - "DEV", "PRE-PRODUCTION" or "PRODUCTION" to be used in the header
19
+ * @param requestOptions.environmentName - if you require environment tags on the fallback banner "DEV", "PRE-PRODUCTION" or "PRODUCTION" can be passed in
20
20
  * @param requestOptions.logger - pass in the bunyen logger if you want to use it. Falls back to console if not provided
21
21
  * @param requestOptions.timeoutOptions - timeout object for superagent. Defaults to 2500ms
22
22
  * @param requestOptions.includeMeta - adds feComponentsMeta to res.locals if true. Contains metadata for components including activeCaseLoad, caseLoads and available services for user
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ministryofjustice/hmpps-connect-dps-components",
3
- "version": "1.0.0",
3
+ "version": "1.1.0",
4
4
  "description": "A package to allow the inclusion of connect dps micro frontend components within dps applications",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",