@node-red/runtime 2.2.2 → 2.2.3
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/lib/flows/Flow.js +1 -1
- package/lib/flows/Subflow.js +0 -1
- package/lib/nodes/credentials.js +16 -6
- package/locales/en-US/runtime.json +3 -1
- package/locales/ja/runtime.json +3 -1
- package/package.json +3 -3
- package/restart.js +0 -0
package/lib/flows/Flow.js
CHANGED
|
@@ -582,7 +582,7 @@ class Flow {
|
|
|
582
582
|
reportingNode = node;
|
|
583
583
|
}
|
|
584
584
|
if (!muteStatusEvent) {
|
|
585
|
-
if (statusMessage.hasOwnProperty("text") && typeof
|
|
585
|
+
if (statusMessage.hasOwnProperty("text") && typeof statusMessage.text !== "string") {
|
|
586
586
|
try {
|
|
587
587
|
statusMessage.text = statusMessage.text.toString();
|
|
588
588
|
}
|
package/lib/flows/Subflow.js
CHANGED
package/lib/nodes/credentials.js
CHANGED
|
@@ -239,7 +239,15 @@ var api = module.exports = {
|
|
|
239
239
|
throw error;
|
|
240
240
|
}
|
|
241
241
|
} else {
|
|
242
|
-
|
|
242
|
+
if (encryptionEnabled) {
|
|
243
|
+
// Our config expects the credentials to be encrypted but the encrypted object is not found
|
|
244
|
+
log.warn(log._("nodes.credentials.encryptedNotFound"))
|
|
245
|
+
credentialCache = credentials;
|
|
246
|
+
} else {
|
|
247
|
+
// credentialSecret is set to False
|
|
248
|
+
log.warn(log._("nodes.credentials.unencrypted"))
|
|
249
|
+
credentialCache = credentials;
|
|
250
|
+
}
|
|
243
251
|
}
|
|
244
252
|
if (clearInvalidFlag) {
|
|
245
253
|
// TODO: this delves too deep into Project structure
|
|
@@ -365,11 +373,13 @@ var api = module.exports = {
|
|
|
365
373
|
|
|
366
374
|
}
|
|
367
375
|
}
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
if (
|
|
371
|
-
|
|
372
|
-
|
|
376
|
+
if (/^subflow(:|$)/.test(nodeType)) {
|
|
377
|
+
for (cred in savedCredentials) {
|
|
378
|
+
if (savedCredentials.hasOwnProperty(cred)) {
|
|
379
|
+
if (!newCreds.hasOwnProperty(cred)) {
|
|
380
|
+
delete savedCredentials[cred];
|
|
381
|
+
dirty = true;
|
|
382
|
+
}
|
|
373
383
|
}
|
|
374
384
|
}
|
|
375
385
|
}
|
|
@@ -104,7 +104,9 @@
|
|
|
104
104
|
"error":"Error loading credentials: __message__",
|
|
105
105
|
"error-saving":"Error saving credentials: __message__",
|
|
106
106
|
"not-registered": "Credential type '__type__' is not registered",
|
|
107
|
-
"system-key-warning": "\n\n---------------------------------------------------------------------\nYour flow credentials file is encrypted using a system-generated key.\n\nIf the system-generated key is lost for any reason, your credentials\nfile will not be recoverable, you will have to delete it and re-enter\nyour credentials.\n\nYou should set your own key using the 'credentialSecret' option in\nyour settings file. Node-RED will then re-encrypt your credentials\nfile using your chosen key the next time you deploy a change.\n---------------------------------------------------------------------\n"
|
|
107
|
+
"system-key-warning": "\n\n---------------------------------------------------------------------\nYour flow credentials file is encrypted using a system-generated key.\n\nIf the system-generated key is lost for any reason, your credentials\nfile will not be recoverable, you will have to delete it and re-enter\nyour credentials.\n\nYou should set your own key using the 'credentialSecret' option in\nyour settings file. Node-RED will then re-encrypt your credentials\nfile using your chosen key the next time you deploy a change.\n---------------------------------------------------------------------\n",
|
|
108
|
+
"unencrypted" : "Using unencrypted credentials",
|
|
109
|
+
"encryptedNotFound" : "Encrypted credentials not found"
|
|
108
110
|
},
|
|
109
111
|
"flows": {
|
|
110
112
|
"safe-mode": "Flows stopped in safe mode. Deploy to start.",
|
package/locales/ja/runtime.json
CHANGED
|
@@ -100,7 +100,9 @@
|
|
|
100
100
|
"error": "クレデンシャルの読み込みエラー: __message__",
|
|
101
101
|
"error-saving": "クレデンシャルの保存エラー: __message__",
|
|
102
102
|
"not-registered": "クレデンシャル '__type__' は登録されていません",
|
|
103
|
-
"system-key-warning": "\n\n---------------------------------------------------------------------\nフローのクレデンシャルファイルはシステム生成キーで暗号化されています。\n\nシステム生成キーを何らかの理由で失った場合、クレデンシャルファイルを\n復元することはできません。その場合、ファイルを削除してクレデンシャルを\n再入力しなければなりません。\n\n設定ファイル内で 'credentialSecret' オプションを使って独自キーを設定\nします。変更を次にデプロイする際、Node-REDは選択したキーを用いてクレ\nデンシャルを再暗号化します。 \n\n---------------------------------------------------------------------\n"
|
|
103
|
+
"system-key-warning": "\n\n---------------------------------------------------------------------\nフローのクレデンシャルファイルはシステム生成キーで暗号化されています。\n\nシステム生成キーを何らかの理由で失った場合、クレデンシャルファイルを\n復元することはできません。その場合、ファイルを削除してクレデンシャルを\n再入力しなければなりません。\n\n設定ファイル内で 'credentialSecret' オプションを使って独自キーを設定\nします。変更を次にデプロイする際、Node-REDは選択したキーを用いてクレ\nデンシャルを再暗号化します。 \n\n---------------------------------------------------------------------\n",
|
|
104
|
+
"unencrypted": "暗号化されていないクレデンシャルを使用",
|
|
105
|
+
"encryptedNotFound": "暗号化されたクレデンシャルが存在しません"
|
|
104
106
|
},
|
|
105
107
|
"flows": {
|
|
106
108
|
"safe-mode": "セーフモードでフローを停止しました。開始するためにはデプロイしてください",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@node-red/runtime",
|
|
3
|
-
"version": "2.2.
|
|
3
|
+
"version": "2.2.3",
|
|
4
4
|
"license": "Apache-2.0",
|
|
5
5
|
"main": "./lib/index.js",
|
|
6
6
|
"repository": {
|
|
@@ -16,8 +16,8 @@
|
|
|
16
16
|
}
|
|
17
17
|
],
|
|
18
18
|
"dependencies": {
|
|
19
|
-
"@node-red/registry": "2.2.
|
|
20
|
-
"@node-red/util": "2.2.
|
|
19
|
+
"@node-red/registry": "2.2.3",
|
|
20
|
+
"@node-red/util": "2.2.3",
|
|
21
21
|
"async-mutex": "0.3.2",
|
|
22
22
|
"clone": "2.1.2",
|
|
23
23
|
"express": "4.17.2",
|
package/restart.js
ADDED
|
File without changes
|