From 393658c54dede66d3df43d85871e4a1db577d99b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?H=C3=A5kon=20L=C3=B8vdal?= Date: Mon, 25 Sep 2023 19:57:26 +0200 Subject: [PATCH] Update variable name --- packages/node_modules/@node-red/registry/lib/loader.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/node_modules/@node-red/registry/lib/loader.js b/packages/node_modules/@node-red/registry/lib/loader.js index 678e4c885..7a7b8340d 100644 --- a/packages/node_modules/@node-red/registry/lib/loader.js +++ b/packages/node_modules/@node-red/registry/lib/loader.js @@ -346,9 +346,9 @@ function loadNodeSet(node) { try { let importPromise = import(node.file); return importPromise - .then(function(module_namespace_object) { + .then(function(moduleNamespaceObject) { // CJS will always have default, ESM might have default. (details in note below) - let r = module_namespace_object.default ? module_namespace_object.default : module_namespace_object; + let r = moduleNamespaceObject.default ? moduleNamespaceObject.default : moduleNamespaceObject; // Babel related workaround. (references in note below) r = r.__esModule ? r.default : r; return createLoadPromise(node, r);