@node-red/editor-client 3.1.5 → 3.1.7

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.
@@ -303,7 +303,8 @@
303
303
  "missingType": "不正なフロー - __index__ 番目の要素に'type'プロパティがありません"
304
304
  },
305
305
  "conflictNotification1": "読み込もうとしているノードのいくつかは、既にワークスペース内に存在しています。",
306
- "conflictNotification2": "読み込むノードを選択し、また既存のノードを置き換えるか、もしくはそれらのコピーを読み込むかも選択してください。"
306
+ "conflictNotification2": "読み込むノードを選択し、また既存のノードを置き換えるか、もしくはそれらのコピーを読み込むかも選択してください。",
307
+ "alreadyExists": "本ノードは既に存在"
307
308
  },
308
309
  "copyMessagePath": "パスをコピーしました",
309
310
  "copyMessageValue": "値をコピーしました",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@node-red/editor-client",
3
- "version": "3.1.5",
3
+ "version": "3.1.7",
4
4
  "license": "Apache-2.0",
5
5
  "repository": {
6
6
  "type": "git",
package/public/red/about CHANGED
@@ -1,3 +1,26 @@
1
+ #### 3.1.7: Maintenance Release
2
+
3
+ - Add Japanese translation for v3.1.6 (#4603) @kazuhitoyokoi
4
+ - Update jsonata version (#4593) @hardillb
5
+
6
+ #### 3.1.6: Maintenance Release
7
+
8
+ Editor
9
+
10
+ - Do not flag env var in num typedInput as error (#4582) @knolleary
11
+ - Fix example flow name in import dialog (#4578) @kazuhitoyokoi
12
+ - Fix missing node icons in workspace (#4570) @knolleary
13
+
14
+ Runtime
15
+
16
+ - Handle undefined env vars (#4581) @knolleary
17
+ - fix: Removed offending MD5 crypto hash and replaced with SHA1 and SHA256 … (#4568) @JaysonHurst
18
+ - chore: remove never use import code (#4580) @giscafer
19
+
20
+ Nodes
21
+
22
+ - fix: template node zh-CN translation (#4575) @giscafer
23
+
1
24
  #### 3.1.5: Maintenance Release
2
25
 
3
26
  Runtime
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 ((blankAllowed&&(v===''||v===undefined)) || (v!=='' && !isNaN(v))) {
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
- scalefactor *= 20/width;
24698
+ scaleFactor *= 20/width;
24684
24699
  width = 20;
24685
24700
  }
24686
24701
  var height = img.height * scaleFactor;