Fix up promises in tests, remove package-lock

This commit is contained in:
Nick O'Leary
2018-08-20 16:45:50 +01:00
parent 38a1291c5b
commit 954226da0d
3 changed files with 3 additions and 12030 deletions

View File

@@ -166,10 +166,10 @@ module.exports = function(RED) {
try {
fromRE = new RegExp(fromRE, "g");
} catch (e) {
return Promise.reject(new Error(RED._("change.errors.invalid-from",{error:e.message})));
throw new Error(RED._("change.errors.invalid-from",{error:e.message}));
}
} else {
return Promise.reject(new Error(RED._("change.errors.invalid-from",{error:"unsupported type: "+(typeof fromValue)})));
throw new Error(RED._("change.errors.invalid-from",{error:"unsupported type: "+(typeof fromValue)}));
}
return {
fromType,