Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

noflo

Package Overview
Dependencies
Maintainers
1
Versions
91
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

noflo - npm Package Compare versions

Comparing version 1.1.2 to 1.1.3

4

CHANGES.md
NoFlo ChangeLog
===============
## 1.1.3 (April 12th 2018)
* Fixed issue with custom component loaders on Node.js
## 1.1.2 (March 24th 2018)

@@ -5,0 +9,0 @@

37

lib/loader/NodeJs.js

@@ -1,2 +0,2 @@

var CoffeeScript, dynamicLoader, fbpGraph, fs, manifest, manifestLoader, path, registerModules, registerSubgraph, utils;
var CoffeeScript, dynamicLoader, fbpGraph, fs, manifest, manifestLoader, path, registerCustomLoaders, registerModules, registerSubgraph, utils;

@@ -20,4 +20,18 @@ path = require('path');

registerCustomLoaders = function(loader, componentLoaders, callback) {
var customLoader;
if (!componentLoaders.length) {
return callback(null);
}
customLoader = require(componentLoaders.shift());
return loader.registerLoader(customLoader, function(err) {
if (err) {
return callback(err);
}
return registerCustomLoaders(loader, componentLoaders, callback);
});
};
registerModules = function(loader, modules, callback) {
var c, compatible, componentLoaders, done, i, j, len, len1, loaderPath, m, ref, ref1;
var c, compatible, componentLoaders, i, j, len, len1, loaderPath, m, ref, ref1;
compatible = modules.filter(function(m) {

@@ -43,20 +57,3 @@ var ref;

}
if (!componentLoaders.length) {
return callback(null);
}
done = function() {
if (--componentLoaders.length < 1) {
return callback.apply(this, arguments);
}
};
return componentLoaders.forEach((loaderPath) => {
var cLoader;
cLoader = require(loaderPath);
return loader.registerLoader(cLoader, function(err) {
if (err) {
return callback(err);
}
return done(null);
});
});
return registerCustomLoaders(loader, componentLoaders, callback);
};

@@ -63,0 +60,0 @@

@@ -11,3 +11,3 @@ {

"author": "Henri Bergius <henri.bergius@iki.fi>",
"version": "1.1.2",
"version": "1.1.3",
"license": "MIT",

@@ -14,0 +14,0 @@ "engines": {

Sorry, the diff of this file is not supported yet

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