@node-red/editor-client 3.1.4 → 3.1.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/public/red/about +25 -0
- package/public/red/red.js +19 -4
- package/public/red/red.min.js +2 -2
package/package.json
CHANGED
package/public/red/about
CHANGED
|
@@ -1,3 +1,28 @@
|
|
|
1
|
+
#### 3.1.6: Maintenance Release
|
|
2
|
+
|
|
3
|
+
Editor
|
|
4
|
+
|
|
5
|
+
- Do not flag env var in num typedInput as error (#4582) @knolleary
|
|
6
|
+
- Fix example flow name in import dialog (#4578) @kazuhitoyokoi
|
|
7
|
+
- Fix missing node icons in workspace (#4570) @knolleary
|
|
8
|
+
|
|
9
|
+
Runtime
|
|
10
|
+
|
|
11
|
+
- Handle undefined env vars (#4581) @knolleary
|
|
12
|
+
- fix: Removed offending MD5 crypto hash and replaced with SHA1 and SHA256 … (#4568) @JaysonHurst
|
|
13
|
+
- chore: remove never use import code (#4580) @giscafer
|
|
14
|
+
|
|
15
|
+
Nodes
|
|
16
|
+
|
|
17
|
+
- fix: template node zh-CN translation (#4575) @giscafer
|
|
18
|
+
|
|
19
|
+
#### 3.1.5: Maintenance Release
|
|
20
|
+
|
|
21
|
+
Runtime
|
|
22
|
+
|
|
23
|
+
- Fix require of dns module (#4562) @knolleary
|
|
24
|
+
- Ensure global creds object is initialised when adding first cred (#4561) @knolleary
|
|
25
|
+
|
|
1
26
|
#### 3.1.4: Maintenance Release
|
|
2
27
|
|
|
3
28
|
Editor
|
package/public/red/red.js
CHANGED
|
@@ -8447,8 +8447,20 @@ RED.history = (function() {
|
|
|
8447
8447
|
RED.validators = {
|
|
8448
8448
|
number: function(blankAllowed,mopt){
|
|
8449
8449
|
return function(v, opt) {
|
|
8450
|
-
if (
|
|
8451
|
-
return true
|
|
8450
|
+
if (blankAllowed && (v === '' || v === undefined)) {
|
|
8451
|
+
return true
|
|
8452
|
+
}
|
|
8453
|
+
if (v !== '') {
|
|
8454
|
+
if (/^NaN$|^[+-]?[0-9]*\.?[0-9]*([eE][-+]?[0-9]+)?$|^[+-]?(0b|0B)[01]+$|^[+-]?(0o|0O)[0-7]+$|^[+-]?(0x|0X)[0-9a-fA-F]+$/.test(v)) {
|
|
8455
|
+
return true
|
|
8456
|
+
}
|
|
8457
|
+
if (/^\${[^}]+}$/.test(v)) {
|
|
8458
|
+
// Allow ${ENV_VAR} value
|
|
8459
|
+
return true
|
|
8460
|
+
}
|
|
8461
|
+
}
|
|
8462
|
+
if (!isNaN(v)) {
|
|
8463
|
+
return true
|
|
8452
8464
|
}
|
|
8453
8465
|
if (opt && opt.label) {
|
|
8454
8466
|
return RED._("validator.errors.invalid-num-prop", {
|
|
@@ -9407,7 +9419,10 @@ RED.utils = (function() {
|
|
|
9407
9419
|
* @returns true if valid, String if invalid
|
|
9408
9420
|
*/
|
|
9409
9421
|
function validateTypedProperty(propertyValue, propertyType, opt) {
|
|
9410
|
-
|
|
9422
|
+
if (propertyValue && /^\${[^}]+}$/.test(propertyValue)) {
|
|
9423
|
+
// Allow ${ENV_VAR} value
|
|
9424
|
+
return true
|
|
9425
|
+
}
|
|
9411
9426
|
let error
|
|
9412
9427
|
if (propertyType === 'json') {
|
|
9413
9428
|
try {
|
|
@@ -24680,7 +24695,7 @@ RED.view = (function() {
|
|
|
24680
24695
|
}
|
|
24681
24696
|
var width = img.width * scaleFactor;
|
|
24682
24697
|
if (width > 20) {
|
|
24683
|
-
|
|
24698
|
+
scaleFactor *= 20/width;
|
|
24684
24699
|
width = 20;
|
|
24685
24700
|
}
|
|
24686
24701
|
var height = img.height * scaleFactor;
|