@hmcts/one-per-page
Advanced tools
Comparing version 3.4.0 to 3.4.1
@@ -5,3 +5,3 @@ { | ||
"homepage": "https://github.com/hmcts/one-per-page#readme", | ||
"version": "3.4.0", | ||
"version": "3.4.1", | ||
"main": "./src/main.js", | ||
@@ -8,0 +8,0 @@ "repository": { |
@@ -13,2 +13,4 @@ const util = require('util'); | ||
const inspectKeys = ['inspect', util.inspect.custom]; | ||
const toJsonKeys = ['toJSON']; | ||
const observersKeys = ['observers']; | ||
@@ -31,3 +33,3 @@ const contentProxy = (step, prefix) => { | ||
const key = `${step.name}:${prefix}`; | ||
if (toStringKeys.includes(name)) { | ||
if (toStringKeys.includes(name) || toJsonKeys.includes(name) || observersKeys.includes(name)) { | ||
if (target.exists(key)) { | ||
@@ -34,0 +36,0 @@ return () => target.t(key, step.locals); |
1341960
8904