node-red-contrib-agilite
Advanced tools
Comparing version 5.4.5 to 5.4.6
@@ -18,2 +18,3 @@ module.exports = function (RED) { | ||
var actionType = ""; | ||
var responseType = ""; | ||
var recordId = config.recordId; | ||
@@ -54,2 +55,9 @@ var data = {}; | ||
} | ||
if (msg.agilite.files.responseType) { | ||
if (msg.agilite.files.responseType !== "") { | ||
responseType = msg.agilite.files.responseType; | ||
} | ||
} | ||
} | ||
@@ -66,2 +74,8 @@ } | ||
if (responseType === "" && config.responseType && config.responseType !== "") { | ||
responseType = config.responseType; | ||
}else{ | ||
responseType = "arraybuffer"; | ||
} | ||
//Mustache | ||
@@ -112,3 +126,3 @@ recordId = Mustache.render(recordId, msg); | ||
url = url + "/files"; | ||
httpConfig.responseType = "arraybuffer"; | ||
httpConfig.responseType = responseType; | ||
break; | ||
@@ -115,0 +129,0 @@ case "2": //Get File Name |
{ | ||
"name": "node-red-contrib-agilite", | ||
"license": "MIT", | ||
"version": "5.4.5", | ||
"version": "5.4.6", | ||
"description": "Node-RED nodes to integrate with Agilit-e cloud or Agilit-e on-prem", | ||
@@ -34,4 +34,2 @@ "homepage": "https://portal.agilite.io", | ||
"files", | ||
"logging", | ||
"logs", | ||
"roles" | ||
@@ -49,6 +47,5 @@ ], | ||
"Files": "files/files.js", | ||
"Adhoc": "adhoc/adhoc.js", | ||
"Logs": "logs/logs.js" | ||
"Adhoc": "adhoc/adhoc.js" | ||
} | ||
} | ||
} |
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
145702
1931