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

@node-red/registry - npm Package Compare versions

Comparing version 0.20.5 to 1.0.0-beta.1

18

lib/library.js

@@ -19,3 +19,2 @@ /**

var fspath = require('path');
var when = require('when');

@@ -28,3 +27,3 @@ var runtime;

function getFlowsFromPath(path) {
return when.promise(function(resolve,reject) {
return new Promise(function(resolve,reject) {
var result = {};

@@ -42,7 +41,7 @@ fs.readdir(path,function(err,files) {

validFiles.push(file);
promises.push(when.resolve(file.split(".")[0]))
promises.push(Promise.resolve(file.split(".")[0]))
}
})
var i=0;
when.all(promises).then(function(results) {
Promise.all(promises).then(function(results) {
results.forEach(function(r) {

@@ -68,4 +67,4 @@ if (typeof r === 'string') {

return getFlowsFromPath(path).then(function(result) {
exampleFlows = exampleFlows||{d:{}};
exampleFlows.d[module] = result;
exampleFlows = exampleFlows||{};
exampleFlows[module] = result;
});

@@ -75,6 +74,6 @@ }

delete exampleRoots[module];
if (exampleFlows && exampleFlows.d) {
delete exampleFlows.d[module];
if (exampleFlows) {
delete exampleFlows[module];
}
if (exampleFlows && Object.keys(exampleFlows.d).length === 0) {
if (exampleFlows && Object.keys(exampleFlows).length === 0) {
exampleFlows = null;

@@ -84,3 +83,2 @@ }

function init() {

@@ -87,0 +85,0 @@ exampleRoots = {};

{
"name": "@node-red/registry",
"version": "0.20.5",
"version": "1.0.0-beta.1",
"license": "Apache-2.0",

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

"dependencies": {
"@node-red/util": "0.20.5",
"@node-red/util": "1.0.0-beta.1",
"semver": "6.0.0",
"uglify-js": "3.5.3",
"uglify-js": "3.5.15",
"when": "3.7.8"
}
}
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