@node-red/util
Advanced tools
Comparing version 1.1.3 to 1.2.0-beta.1
@@ -309,2 +309,3 @@ /** | ||
* @return {any} the message property, or undefined if it does not exist | ||
* @throws Will throw an error if the *parent* of the property does not exist | ||
* @memberof @node-red/util_util | ||
@@ -322,5 +323,19 @@ */ | ||
* | ||
* Given the object: | ||
* | ||
* { | ||
* "pet": { | ||
* "type": "cat" | ||
* } | ||
* } | ||
* | ||
* - `pet.type` will return `"cat"`. | ||
* - `pet.name` will return `undefined` | ||
* - `car` will return `undefined` | ||
* - `car.type` will throw an Error (as `car` does not exist) | ||
* | ||
* @param {Object} msg - the object | ||
* @param {String} expr - the property expression | ||
* @return {any} the object property, or undefined if it does not exist | ||
* @throws Will throw an error if the *parent* of the property does not exist | ||
* @memberof @node-red/util_util | ||
@@ -776,2 +791,7 @@ */ | ||
} | ||
} else if (value === undefined) { | ||
value = { | ||
__enc__: true, | ||
type: "undefined", | ||
} | ||
} | ||
@@ -778,0 +798,0 @@ return value; |
{ | ||
"name": "@node-red/util", | ||
"version": "1.1.3", | ||
"version": "1.2.0-beta.1", | ||
"license": "Apache-2.0", | ||
@@ -5,0 +5,0 @@ "repository": { |
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
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
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
54850
1303
2