mirror of
https://github.com/node-red/node-red.git
synced 2023-10-10 13:36:53 +02:00
Merge branch 'dev' into monaco2
This commit is contained in:
commit
0a80186a92
@ -499,7 +499,7 @@ RED.sidebar.info = (function() {
|
|||||||
if (tipCount === -1) {
|
if (tipCount === -1) {
|
||||||
do {
|
do {
|
||||||
tipCount++;
|
tipCount++;
|
||||||
} while(RED._("infotips:info.tip"+tipCount)!=="infotips:info.tip"+tipCount);
|
} while(RED._("infotips:info.tip"+tipCount)!=="info.tip"+tipCount);
|
||||||
}
|
}
|
||||||
startTimeout = setTimeout(setTip,startDelay);
|
startTimeout = setTimeout(setTip,startDelay);
|
||||||
}
|
}
|
||||||
|
@ -455,7 +455,7 @@
|
|||||||
var propertyValue = $('<input/>',{class:"node-input-prop-property-value",type:"text"})
|
var propertyValue = $('<input/>',{class:"node-input-prop-property-value",type:"text"})
|
||||||
.css("width","calc(70% - 30px)")
|
.css("width","calc(70% - 30px)")
|
||||||
.appendTo(row)
|
.appendTo(row)
|
||||||
.typedInput({default:'str',types:['msg','flow','global','str','num','bool','json','bin','date','jsonata','env']});
|
.typedInput({default:'str',types:['flow','global','str','num','bool','json','bin','date','jsonata','env','msg']});
|
||||||
|
|
||||||
propertyName.typedInput('value',prop.p);
|
propertyName.typedInput('value',prop.p);
|
||||||
|
|
||||||
|
@ -194,7 +194,7 @@ async function installModule(moduleDetails) {
|
|||||||
"module": moduleDetails.module,
|
"module": moduleDetails.module,
|
||||||
"version": moduleDetails.version,
|
"version": moduleDetails.version,
|
||||||
"dir": installDir,
|
"dir": installDir,
|
||||||
"args": ["--production"]
|
"args": ["--production","--engine-strict"]
|
||||||
}
|
}
|
||||||
return hooks.trigger("preInstall", triggerPayload).then((result) => {
|
return hooks.trigger("preInstall", triggerPayload).then((result) => {
|
||||||
// preInstall passed
|
// preInstall passed
|
||||||
|
@ -175,7 +175,7 @@ async function installModule(module,version,url) {
|
|||||||
"dir": installDir,
|
"dir": installDir,
|
||||||
"isExisting": isExisting,
|
"isExisting": isExisting,
|
||||||
"isUpgrade": isUpgrade,
|
"isUpgrade": isUpgrade,
|
||||||
"args": ['--no-audit','--no-update-notifier','--no-fund','--save','--save-prefix=~','--production']
|
"args": ['--no-audit','--no-update-notifier','--no-fund','--save','--save-prefix=~','--production','--engine-strict']
|
||||||
}
|
}
|
||||||
|
|
||||||
return hooks.trigger("preInstall", triggerPayload).then((result) => {
|
return hooks.trigger("preInstall", triggerPayload).then((result) => {
|
||||||
|
@ -48,13 +48,14 @@ describe("externalModules api", function() {
|
|||||||
beforeEach(function() {
|
beforeEach(function() {
|
||||||
sinon.stub(exec,"run").callsFake(async function(cmd, args, options) {
|
sinon.stub(exec,"run").callsFake(async function(cmd, args, options) {
|
||||||
let error;
|
let error;
|
||||||
if (args[2] === "moduleNotFound") {
|
let moduleName = args[args.length-1];
|
||||||
|
if (moduleName === "moduleNotFound") {
|
||||||
error = new Error();
|
error = new Error();
|
||||||
error.stderr = "E404";
|
error.stderr = "E404";
|
||||||
} else if (args[2] === "moduleVersionNotFound") {
|
} else if (moduleName === "moduleVersionNotFound") {
|
||||||
error = new Error();
|
error = new Error();
|
||||||
error.stderr = "ETARGET";
|
error.stderr = "ETARGET";
|
||||||
} else if (args[2] === "moduleFail") {
|
} else if (moduleName === "moduleFail") {
|
||||||
error = new Error();
|
error = new Error();
|
||||||
error.stderr = "Some unexpected install error";
|
error.stderr = "Some unexpected install error";
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user