mirror of
https://github.com/node-red/node-red.git
synced 2025-03-01 10:36:34 +00:00
Add unit tests for allowUpdate settings
This commit is contained in:
@@ -333,10 +333,8 @@ RED.palette.editor = (function() {
|
||||
nodeEntry.versionSpan.html(moduleInfo.version+' <i class="fa fa-long-arrow-right"></i> '+moduleInfo.pending_version).appendTo(nodeEntry.metaRow)
|
||||
nodeEntry.updateButton.text(RED._('palette.editor.updated')).addClass('disabled').css('display', 'inline-block');
|
||||
} else if (loadedIndex.hasOwnProperty(module)) {
|
||||
if (updateAllowed
|
||||
&&
|
||||
semVerCompare(loadedIndex[module].version,moduleInfo.version) > 0
|
||||
&&
|
||||
if (updateAllowed &&
|
||||
semVerCompare(loadedIndex[module].version,moduleInfo.version) > 0 &&
|
||||
RED.utils.checkModuleAllowed(module,null,updateAllowList,updateDenyList)
|
||||
) {
|
||||
nodeEntry.updateButton.show();
|
||||
|
@@ -278,7 +278,6 @@ async function installModule(module,version,url) {
|
||||
e = new Error("Module not found");
|
||||
e.code = 404;
|
||||
} else {
|
||||
console.log(err);
|
||||
log.warn(log._("server.install.install-failed-long",{name:module}));
|
||||
log.warn("------------------------------------------");
|
||||
log.warn(output);
|
||||
|
Reference in New Issue
Block a user