Socket
Socket
Sign inDemoInstall

@node-red/util

Package Overview
Dependencies
Maintainers
2
Versions
107
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 2.1.3 to 2.1.4

4

lib/i18n.js

@@ -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"
}
}
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc