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

cqrs-saga

Package Overview
Dependencies
Maintainers
1
Versions
64
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cqrs-saga - npm Package Compare versions

Comparing version 1.6.3 to 1.6.4

7

lib/pm.js

@@ -200,2 +200,4 @@ 'use strict';

var warnings = null;
async.series([

@@ -210,6 +212,7 @@ // load saga files...

debug('load saga files...');
structureLoader(self.options.sagaPath, function (err, sagas) {
structureLoader(self.options.sagaPath, function (err, sagas, warns) {
if (err) {
return callback(err);
}
warnings = warns;
self.sagas = attachLookupFunctions(sagas);

@@ -283,3 +286,3 @@ callback(null);

}
if (callback) { callback(err); }
if (callback) { callback(err, warnings); }
});

@@ -286,0 +289,0 @@ },

@@ -62,3 +62,3 @@ 'use strict';

});
}, function (err, items) {
}, function (err, items, warns) {
if (err) {

@@ -70,3 +70,3 @@ return callback(err);

callback(null, res);
callback(null, res, warns);
});

@@ -76,3 +76,3 @@ }

function load (dir, callback) {
analyze(dir, function (err, sagas) {
analyze(dir, function (err, sagas, warns) {
if (err) {

@@ -82,3 +82,3 @@ return callback(err);

callback(err, sagas);
callback(err, sagas, warns);
});

@@ -85,0 +85,0 @@ }

@@ -65,3 +65,3 @@ 'use strict';

function pathToJson (root, paths) {
function pathToJson (root, paths, addWarning) {
root = path.resolve(root);

@@ -124,2 +124,5 @@ var res = [];

debug(err);
if (addWarning) {
addWarning(err);
}
}

@@ -148,4 +151,9 @@ } else {

var res = filter(pathToJson(dir, paths));
var warns = [];
function addWarning (e) {
warns.push(e);
}
var res = filter(pathToJson(dir, paths, addWarning));
var dottiesParts = [];

@@ -186,3 +194,7 @@

callback(null, res);
if (warns.length === 0) {
warns = null;
}
callback(null, res, warns);
});

@@ -189,0 +201,0 @@ }

{
"author": "adrai",
"name": "cqrs-saga",
"version": "1.6.3",
"version": "1.6.4",
"private": false,

@@ -6,0 +6,0 @@ "main": "index.js",

@@ -208,4 +208,5 @@ # Introduction

pm.init(function (err) {
pm.init(function (err, warnings) {
// this callback is called when all is ready...
// warnings: if no warnings warnings is null, else it's an array containing errors during require of files
});

@@ -212,0 +213,0 @@

@@ -0,1 +1,4 @@

## [v1.6.4](https://github.com/adrai/node-cqrs-saga/compare/v1.6.3...v1.6.4)
- expose warnings during initialization
## [v1.6.3](https://github.com/adrai/node-cqrs-saga/compare/v1.6.2...v1.6.3)

@@ -2,0 +5,0 @@ - better catch for userland errors

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