Socket
Socket
Sign inDemoInstall

@node-red/registry

Package Overview
Dependencies
Maintainers
2
Versions
109
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@node-red/registry - npm Package Compare versions

Comparing version 2.2.2 to 2.2.3

10

lib/externalModules.js

@@ -14,2 +14,3 @@ // This module handles the management of modules required by the runtime and flows.

const url = require("url");
const { createRequire } = require("module");

@@ -143,6 +144,11 @@ const BUILTIN_MODULES = require('module').builtinModules;

const moduleDir = path.join(externalModuleDir,"node_modules",module);
// To handle both CJS and ESM we need to resolve the module to the
// specific file that is loaded when the module is required/imported
// As this won't be on the natural module search path, we use createRequire
// to access the module
const modulePath = createRequire(moduleDir).resolve(module)
// Import needs the full path to the module's main .js file
// It also needs to be a file:// url for Windows
const moduleFile = url.pathToFileURL(require.resolve(moduleDir));
return import(moduleFile);
const moduleUrl = url.pathToFileURL(modulePath);
return import(moduleUrl);
}

@@ -149,0 +155,0 @@

4

package.json
{
"name": "@node-red/registry",
"version": "2.2.2",
"version": "2.2.3",
"license": "Apache-2.0",

@@ -19,3 +19,3 @@ "main": "./lib/index.js",

"dependencies": {
"@node-red/util": "2.2.2",
"@node-red/util": "2.2.3",
"clone": "2.1.2",

@@ -22,0 +22,0 @@ "fs-extra": "10.0.0",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc