@node-red/nodes
Advanced tools
Comparing version 2.1.3 to 2.1.4
@@ -283,4 +283,16 @@ module.exports = function(RED) { | ||
}; | ||
res.sendFile(req.params[0], options); | ||
try { | ||
res.sendFile( | ||
req.params[0], | ||
options, | ||
err => { | ||
if (err) { | ||
res.sendStatus(404); | ||
} | ||
} | ||
) | ||
} catch(err) { | ||
res.sendStatus(404); | ||
} | ||
}); | ||
}; |
@@ -375,2 +375,3 @@ /** | ||
if (msg.topic === node.buffer[b].msg.topic) { | ||
if (node.outputs === 2) { send([null,node.buffer[b].msg]) } | ||
node.buffer[b].done(); | ||
@@ -377,0 +378,0 @@ node.buffer[b] = {msg, send, done}; // if so - replace existing entry |
@@ -301,14 +301,10 @@ /** | ||
if (this.authType === "basic") { | ||
// Workaround for https://github.com/sindresorhus/got/issues/1169 | ||
var cred = "" | ||
if (this.credentials.user) { | ||
// opts.username = this.credentials.user; | ||
cred = this.credentials.user | ||
// Workaround for https://github.com/sindresorhus/got/issues/1169 (fixed in got v12) | ||
// var cred = "" | ||
if (this.credentials.user || this.credentials.password) { | ||
// cred = `${this.credentials.user}:${this.credentials.password}`; | ||
opts.headers.Authorization = "Basic " + Buffer.from(`${this.credentials.user}:${this.credentials.password}`).toString("base64"); | ||
} | ||
if (this.credentials.password) { | ||
// opts.password = this.credentials.password; | ||
cred += ":" + this.credentials.password | ||
} | ||
// build own basic auth header | ||
opts.headers.Authorization = "Basic " + Buffer.from(cred).toString("base64"); | ||
// opts.headers.Authorization = "Basic " + Buffer.from(cred).toString("base64"); | ||
} else if (this.authType === "digest") { | ||
@@ -315,0 +311,0 @@ let digestCreds = this.credentials; |
@@ -97,3 +97,3 @@ { | ||
"selectAll": "Alles auswählen", | ||
"uncaught": "Fehler ignorieren, die von anderen <span style=\"background-color:Gainsboro\">catch</span>-Nodes behandelt wurden" | ||
"uncaught": "Fehler ignorieren, die von anderen catch-Nodes behandelt wurden" | ||
}, | ||
@@ -479,3 +479,3 @@ "scope": { | ||
"in": "Die URL ist relativ zu ", | ||
"res": "Die an diesen Node gesendeten Nachrichten <b>müssen</b> von einem <span style=\"background-color:Gainsboro\">http in</span>-Node stammen", | ||
"res": "Die an diesen Node gesendeten Nachrichten <b>müssen</b> von einem http in-Node stammen", | ||
"req": "Tipp: Wenn die JSON-Syntax-Analyse fehlschlägt, wird die abgerufene Zeichenfolge zurückgegeben, wie sie ist." | ||
@@ -485,3 +485,3 @@ }, | ||
"errors": { | ||
"not-created": "<span style=\"background-color:Gainsboro\">http in</span>-Node kann nicht erstellt werden, wenn httpNodeRoot auf 'false' gesetzt ist.", | ||
"not-created": "http in-Node kann nicht erstellt werden, wenn httpNodeRoot auf 'false' gesetzt ist.", | ||
"missing-path": "Fehlender Pfad", | ||
@@ -690,3 +690,3 @@ "no-response": "Kein Antwort-Objekt", | ||
"invalid-expr": "Ungültiger JSONata-Ausdruck: __error__", | ||
"too-many": "Zu viele anstehende Nachrichten im <span style=\"background-color:Gainsboro\">switch</span>-Node" | ||
"too-many": "Zu viele anstehende Nachrichten im switch-Node" | ||
} | ||
@@ -858,3 +858,2 @@ }, | ||
"breaklines": "In Linien aufteilen", | ||
"filelabel": "file", | ||
"sendError": "Nachricht bei Fehler senden (herkömmlicher Modus)", | ||
@@ -948,4 +947,4 @@ "encoding": "Kodierung", | ||
"complete": "Nach Nachricht mit <code>msg.complete</code>-Eigenschaft", | ||
"tip": "Dieser Modus setzt voraus, dass dieser Node entweder mit einem <span style=\"background-color:Gainsboro\">split</span>-Node kombiniert ist oder dass die empfangenen Nachrichten über eine ordnungsgemäß konfigurierte <code>msg.parts</code>-Eigenschaft verfügen.", | ||
"too-many": "Zu viele anstehende Nachrichten im <span style=\"background-color:Gainsboro\">join</span>-Node", | ||
"tip": "Dieser Modus setzt voraus, dass dieser Node entweder mit einem split-Node kombiniert ist oder dass die empfangenen Nachrichten über eine ordnungsgemäß konfigurierte <code>msg.parts</code>-Eigenschaft verfügen.", | ||
"too-many": "Zu viele anstehende Nachrichten im join-Node", | ||
"merge": { | ||
@@ -979,5 +978,5 @@ "topics-label": "Zusammengeführte Topics", | ||
"as-number": "als Zahlenwert", | ||
"invalid-exp": "Ungültiger JSONata-Ausdruck in <span style=\"background-color:Gainsboro\">sort</span>-Node: __message__", | ||
"too-many": "Zu viele anstehende Nachrichten in <span style=\"background-color:Gainsboro\">sort</span>-Node", | ||
"clear": "Anstehende Nachricht in <span style=\"background-color:Gainsboro\">sort</span>-Node löschen" | ||
"invalid-exp": "Ungültiger JSONata-Ausdruck in sort-Node: __message__", | ||
"too-many": "Zu viele anstehende Nachrichten in sort-Node", | ||
"clear": "Anstehende Nachricht in sort-Node löschen" | ||
}, | ||
@@ -1007,3 +1006,3 @@ "batch": { | ||
}, | ||
"too-many": "Zu viele anstehende Nachrichten im <span style=\"background-color:Gainsboro\">batch</span>-Node", | ||
"too-many": "Zu viele anstehende Nachrichten im batch-Node", | ||
"unexpected": "Unerwarteter Modus", | ||
@@ -1010,0 +1009,0 @@ "no-parts": "Keine parts-Eigenschaft in Nachricht" |
@@ -147,2 +147,3 @@ { | ||
"clearLog": "ログを削除", | ||
"clearFilteredLog": "選択したメッセージを削除", | ||
"filterLog": "ログのフィルタリング", | ||
@@ -152,3 +153,7 @@ "openWindow": "新しいウィンドウで開く", | ||
"copyPayload": "値をコピー", | ||
"pinPath": "展開を固定" | ||
"pinPath": "展開を固定", | ||
"selectAll": "全てを選択", | ||
"selectNone": "選択を外す", | ||
"all": "全て", | ||
"filtered": "選択したメッセージ" | ||
}, | ||
@@ -164,3 +169,11 @@ "messageMenu": { | ||
"linkIn": "link in", | ||
"linkOut": "link out" | ||
"linkOut": "link out", | ||
"linkCall": "link call", | ||
"linkOutReturn": "link return", | ||
"outMode": "モード", | ||
"sendToAll": "接続された全てのlinkノードへ送信", | ||
"returnToCaller": "link callノードへ返却", | ||
"error": { | ||
"missingReturn": "返却するノードの情報が存在しません" | ||
} | ||
}, | ||
@@ -288,3 +301,5 @@ "tls": { | ||
"msgper": "メッセージ/", | ||
"queuemsg": "中間メッセージをキューに追加", | ||
"dropmsg": "中間メッセージを削除", | ||
"sendmsg": "2番目の出力で中間メッセージを送信", | ||
"allowrate": "msg.rate(ミリ秒単位)で流量値を上書き", | ||
@@ -408,3 +423,7 @@ "label": { | ||
"session": "セッション", | ||
"delay": "遅延" | ||
"delay": "遅延", | ||
"action": "動作", | ||
"staticTopic": "1つのトピックを購読", | ||
"dynamicTopic": "動的な購読", | ||
"auto-connect": "自動接続" | ||
}, | ||
@@ -450,3 +469,6 @@ "sections-label": { | ||
"invalid-json-string": "不正なJSON文字列", | ||
"invalid-json-parse": "JSON文字列のパースに失敗しました" | ||
"invalid-json-parse": "JSON文字列のパースに失敗しました", | ||
"invalid-action-action": "指定された動作が不正です", | ||
"invalid-action-alreadyconnected": "接続する前にブローカから切断してください", | ||
"invalid-action-badsubscription": "msg.topicが存在しないか不正です" | ||
} | ||
@@ -487,2 +509,3 @@ }, | ||
"noproxy-hosts": "例外ホスト", | ||
"senderr": "2xx以外の応答をcatchノードへ送信", | ||
"utf8": "UTF8文字列", | ||
@@ -713,3 +736,4 @@ "binary": "バイナリバッファ", | ||
"changeCount": "change: __count__ rules", | ||
"regex": "正規表現を使用" | ||
"regex": "正規表現を使用", | ||
"deepCopy": "値のディープコピー" | ||
}, | ||
@@ -721,2 +745,3 @@ "action": { | ||
"move": "値の移動", | ||
"toValue": "対象の値", | ||
"to": "対象の値", | ||
@@ -863,2 +888,4 @@ "search": "検索する文字列", | ||
"label": { | ||
"write": "write file", | ||
"read": "read file", | ||
"filename": "ファイル名", | ||
@@ -871,3 +898,2 @@ "action": "動作", | ||
"breaklines": "行へ分割", | ||
"filelabel": "file", | ||
"sendError": "エラーメッセージを送信(互換モード)", | ||
@@ -874,0 +900,0 @@ "encoding": "文字コード", |
@@ -774,3 +774,2 @@ { | ||
"breaklines": "행으로 분할", | ||
"filelabel": "file", | ||
"sendError": "에러메세지를 송신(호환모드)", | ||
@@ -777,0 +776,0 @@ "deletelabel": "delete __file__", |
@@ -819,3 +819,2 @@ { | ||
"breaklines": "Разбить на строки", | ||
"filelabel": "файл", | ||
"sendError": "Отправлять сообщение при ошибке (устаревший режим)", | ||
@@ -822,0 +821,0 @@ "encoding": "Кодировка", |
@@ -807,3 +807,2 @@ { | ||
"breaklines": "分拆成行", | ||
"filelabel": "文件", | ||
"sendError": "发生错误时发送消息(传统模式)", | ||
@@ -810,0 +809,0 @@ "encoding": "编码", |
@@ -812,3 +812,2 @@ { | ||
"breaklines": "分拆成行", | ||
"filelabel": "文件", | ||
"sendError": "發生錯誤時發送消息(傳統模式)", | ||
@@ -815,0 +814,0 @@ "encoding": "編碼", |
{ | ||
"name": "@node-red/nodes", | ||
"version": "2.1.3", | ||
"version": "2.1.4", | ||
"license": "Apache-2.0", | ||
@@ -18,9 +18,9 @@ "repository": { | ||
"dependencies": { | ||
"acorn": "8.5.0", | ||
"acorn": "8.6.0", | ||
"acorn-walk": "8.2.0", | ||
"ajv": "8.6.3", | ||
"ajv": "8.8.2", | ||
"body-parser": "1.19.0", | ||
"cheerio": "1.0.0-rc.10", | ||
"content-type": "1.0.4", | ||
"cookie-parser": "1.4.5", | ||
"cookie-parser": "1.4.6", | ||
"cookie": "0.4.1", | ||
@@ -33,3 +33,3 @@ "cors": "2.8.5", | ||
"fs.notify": "0.0.4", | ||
"got": "11.8.2", | ||
"got": "11.8.3", | ||
"hash-sum": "2.0.0", | ||
@@ -45,3 +45,3 @@ "hpagent": "0.1.2", | ||
"on-headers": "1.0.2", | ||
"raw-body": "2.4.1", | ||
"raw-body": "2.4.2", | ||
"tough-cookie": "4.0.0", | ||
@@ -48,0 +48,0 @@ "uuid": "8.3.2", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
2159729
22391
+ Addedacorn@8.6.0(transitive)
+ Addedajv@8.8.2(transitive)
+ Addedbytes@3.1.1(transitive)
+ Addedcookie-parser@1.4.6(transitive)
+ Addedgot@11.8.3(transitive)
+ Addedhttp-errors@1.8.1(transitive)
+ Addedraw-body@2.4.2(transitive)
+ Addedsetprototypeof@1.2.0(transitive)
+ Addedtoidentifier@1.0.1(transitive)
- Removedacorn@8.5.0(transitive)
- Removedajv@8.6.3(transitive)
- Removedcookie@0.4.0(transitive)
- Removedcookie-parser@1.4.5(transitive)
- Removedgot@11.8.2(transitive)
- Removedhttp-errors@1.7.3(transitive)
- Removedraw-body@2.4.1(transitive)
Updatedacorn@8.6.0
Updatedajv@8.8.2
Updatedcookie-parser@1.4.6
Updatedgot@11.8.3
Updatedraw-body@2.4.2