@node-red/util
Advanced tools
Comparing version 2.1.3 to 2.1.4
@@ -139,4 +139,2 @@ /** | ||
if (!initPromise) { | ||
// Keep this as a 'when' promise as top-level red.js uses 'otherwise' | ||
// and embedded users of NR may have copied that. | ||
initPromise = new Promise((resolve,reject) => { | ||
@@ -150,2 +148,4 @@ i18n.use(MessageFileLoader); | ||
fallbackLng: defaultLang, | ||
keySeparator: ".", | ||
nsSeparator: ":", | ||
interpolation: { | ||
@@ -152,0 +152,0 @@ unescapeSuffix: 'HTML', |
@@ -529,6 +529,7 @@ /** | ||
const group = flow.getGroupNode(node.g); | ||
const result = flow.getGroupEnvSetting(node, group, name); | ||
const [result, newName] = flow.getGroupEnvSetting(node, group, name); | ||
if (result) { | ||
return result.val; | ||
} | ||
name = newName; | ||
} | ||
@@ -846,2 +847,5 @@ return flow.getSetting(name); | ||
needsStringify = true; | ||
} else if (msg.msg && msg.msg.constructor.name === "RegExp") { | ||
msg.format = 'regexp'; | ||
msg.msg = msg.msg.toString(); | ||
} | ||
@@ -912,2 +916,8 @@ if (needsStringify || (msg.format === "Object")) { | ||
} | ||
} else if (value.constructor.name === "RegExp") { | ||
value = { | ||
__enc__: true, | ||
type: "regexp", | ||
data: value.toString() | ||
} | ||
} | ||
@@ -914,0 +924,0 @@ } else if (value === undefined) { |
{ | ||
"name": "@node-red/util", | ||
"version": "2.1.3", | ||
"version": "2.1.4", | ||
"license": "Apache-2.0", | ||
@@ -19,8 +19,8 @@ "repository": { | ||
"fs-extra": "10.0.0", | ||
"i18next": "21.3.1", | ||
"i18next": "21.5.4", | ||
"json-stringify-safe": "5.0.1", | ||
"jsonata": "1.8.5", | ||
"lodash.clonedeep": "^4.5.0", | ||
"moment-timezone": "0.5.33" | ||
"moment-timezone": "0.5.34" | ||
} | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
74209
1823
+ Addedi18next@21.5.4(transitive)
+ Addedmoment-timezone@0.5.34(transitive)
- Removedi18next@21.3.1(transitive)
- Removedmoment-timezone@0.5.33(transitive)
Updatedi18next@21.5.4
Updatedmoment-timezone@0.5.34