@node-red/util
Advanced tools
Comparing version 2.1.4 to 2.1.5
@@ -35,4 +35,10 @@ /*! | ||
const log = require("@node-red/util").log; | ||
const stack = (new Error().stack).split("\n")[2].split("(")[1].slice(0,-1); | ||
log.warn(`[RED.events] Deprecated use of "${eventName}" event from "${stack}". Use "${deprecatedEvents[eventName]}" instead.`) | ||
const stack = (new Error().stack).split("\n"); | ||
let location = "(unknown)" | ||
// See https://github.com/node-red/node-red/issues/3292 | ||
if (stack.length > 2) { | ||
location = stack[2].split("(")[1].slice(0,-1); | ||
} | ||
log.warn(`[RED.events] Deprecated use of "${eventName}" event from "${location}". Use "${deprecatedEvents[eventName]}" instead.`) | ||
} | ||
@@ -39,0 +45,0 @@ return events["_"+func].call(events,eventName,listener) |
@@ -689,3 +689,3 @@ /** | ||
expr.registerFunction('clone', cloneMessage, '<(oa)-:o>'); | ||
expr._legacyMode = /(^|[^a-zA-Z0-9_'"])msg([^a-zA-Z0-9_'"]|$)/.test(value); | ||
expr._legacyMode = /(^|[^a-zA-Z0-9_'".])msg([^a-zA-Z0-9_'"]|$)/.test(value); | ||
expr._node = node; | ||
@@ -692,0 +692,0 @@ return expr; |
{ | ||
"name": "@node-red/util", | ||
"version": "2.1.4", | ||
"version": "2.1.5", | ||
"license": "Apache-2.0", | ||
@@ -19,3 +19,3 @@ "repository": { | ||
"fs-extra": "10.0.0", | ||
"i18next": "21.5.4", | ||
"i18next": "21.6.6", | ||
"json-stringify-safe": "5.0.1", | ||
@@ -22,0 +22,0 @@ "jsonata": "1.8.5", |
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
74405
1828
+ Addedi18next@21.6.6(transitive)
- Removedi18next@21.5.4(transitive)
Updatedi18next@21.6.6