You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 7-8.RSVP
Socket
Socket
Sign inDemoInstall

@node-red/registry

Package Overview
Dependencies
Maintainers
2
Versions
107
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 3.1.0 to 3.1.1

10

lib/externalModules.js

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

if (BUILTIN_MODULES.indexOf(parsedModule.module) !== -1) {
return require(parsedModule.module);
return require(parsedModule.module + parsedModule.subpath);
}

@@ -135,3 +135,3 @@ if (!knownExternalModules[parsedModule.module]) {

if (BUILTIN_MODULES.indexOf(parsedModule.module) !== -1) {
return import(parsedModule.module);
return import(parsedModule.module + parsedModule.subpath);
}

@@ -157,3 +157,3 @@ if (!knownExternalModules[parsedModule.module]) {

function parseModuleName(module) {
var match = /((?:@[^/]+\/)?[^/@]+)(?:@([\s\S]+))?/.exec(module);
var match = /((?:@[^/]+\/)?[^/@]+)(\/[^/@]+)?(?:@([\s\S]+))?/.exec(module);
if (match) {

@@ -163,3 +163,4 @@ return {

module: match[1],
version: match[2],
subpath: match[2] || '',
version: match[3],
builtin: BUILTIN_MODULES.indexOf(match[1]) !== -1,

@@ -290,2 +291,3 @@ known: !!knownExternalModules[match[1]]

settings.set("modules",runtimeInstalledModules)
log.audit({event: "modules.install",module:moduleDetails.module, version:moduleDetails.version});
}).catch(result => {

@@ -292,0 +294,0 @@ var output = result.stderr || result.toString();

16

lib/loader.js

@@ -146,2 +146,8 @@ /**

return loadNodeSetList(nodeList);
}).then(function () {
if (settings.available()) {
return registry.saveNodeList();
} else {
return
}
})

@@ -440,3 +446,3 @@ }

}
let invocation = 0
function loadNodeSetList(nodes) {

@@ -456,9 +462,3 @@ var promises = [];

return Promise.all(promises).then(function() {
if (settings.available()) {
return registry.saveNodeList();
} else {
return;
}
});
return Promise.all(promises)
}

@@ -465,0 +465,0 @@

{
"name": "@node-red/registry",
"version": "3.1.0",
"version": "3.1.1",
"license": "Apache-2.0",

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

"dependencies": {
"@node-red/util": "3.1.0",
"@node-red/util": "3.1.1",
"clone": "2.1.2",

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

SocketSocket SOC 2 Logo

Product

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

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc