haraka-config
Advanced tools
Comparing version 1.0.12 to 1.0.13
@@ -7,4 +7,3 @@ { | ||
"rules": { | ||
"no-console": 0 | ||
} | ||
} |
@@ -0,1 +1,6 @@ | ||
# 1.0.13 - 2017-06-16 | ||
- lint updates for eslint 4 | ||
# 1.0.12 - 2017-05-21 | ||
@@ -2,0 +7,0 @@ |
@@ -271,20 +271,20 @@ 'use strict'; | ||
isDirectory(name) | ||
.then((result) => { | ||
return fsReadDir(name); | ||
}) | ||
.then((result2) => { | ||
var reader = require('./readers/' + type); | ||
var promises = []; | ||
result2.forEach(function (file) { | ||
promises.push(reader.loadPromise(path.resolve(name, file))) | ||
}); | ||
return Promise.all(promises); | ||
}) | ||
.then((fileList) => { | ||
.then((result) => { | ||
return fsReadDir(name); | ||
}) | ||
.then((result2) => { | ||
var reader = require('./readers/' + type); | ||
var promises = []; | ||
result2.forEach(function (file) { | ||
promises.push(reader.loadPromise(path.resolve(name, file))) | ||
}); | ||
return Promise.all(promises); | ||
}) | ||
.then((fileList) => { | ||
// console.log(fileList); | ||
done(null, fileList); | ||
}) | ||
.catch((error) => { | ||
done(error); | ||
}) | ||
done(null, fileList); | ||
}) | ||
.catch((error) => { | ||
done(error); | ||
}) | ||
@@ -291,0 +291,0 @@ if (opts.watchCb) fsWatchDir(name); |
@@ -6,3 +6,3 @@ { | ||
"description": "Haraka's config file loader", | ||
"version": "1.0.12", | ||
"version": "1.0.13", | ||
"homepage": "http://haraka.github.io", | ||
@@ -9,0 +9,0 @@ "repository": { |
@@ -25,3 +25,3 @@ 'use strict'; | ||
var result = this.flat.load( | ||
'test/config/test.flat', 'list', null, regex); | ||
'test/config/test.flat', 'list', null, regex); | ||
test.deepEqual(result, [ 'line1', 'line2', 'line3', 'line5' ]); | ||
@@ -33,3 +33,3 @@ test.done(); | ||
var result = this.flat.load( | ||
'test/config/test.flat', null, null, regex); | ||
'test/config/test.flat', null, null, regex); | ||
test.deepEqual(result, 'line1'); | ||
@@ -36,0 +36,0 @@ test.done(); |
@@ -106,5 +106,5 @@ 'use strict'; | ||
test.deepEqual( | ||
this.ini.empty({ booleans: ['reject']}), | ||
{ main: { reject: false } } | ||
); | ||
this.ini.empty({ booleans: ['reject']}), | ||
{ main: { reject: false } } | ||
); | ||
test.done(); | ||
@@ -115,13 +115,13 @@ }, | ||
test.deepEqual( | ||
this.ini.empty({ booleans: ['+reject']}), | ||
{ main: { reject: true } } | ||
); | ||
this.ini.empty({ booleans: ['+reject']}), | ||
{ main: { reject: true } } | ||
); | ||
test.deepEqual( | ||
this.ini.empty({ booleans: ['+main.reject']}), | ||
{ main: { reject: true } } | ||
); | ||
this.ini.empty({ booleans: ['+main.reject']}), | ||
{ main: { reject: true } } | ||
); | ||
test.deepEqual( | ||
this.ini.empty({ booleans: ['main.+reject']}), | ||
{ main: { reject: true } } | ||
); | ||
this.ini.empty({ booleans: ['main.+reject']}), | ||
{ main: { reject: true } } | ||
); | ||
test.done(); | ||
@@ -132,13 +132,13 @@ }, | ||
test.deepEqual( | ||
this.ini.empty({ booleans: ['-reject']}), | ||
{ main: { reject: false } } | ||
); | ||
this.ini.empty({ booleans: ['-reject']}), | ||
{ main: { reject: false } } | ||
); | ||
test.deepEqual( | ||
this.ini.empty({ booleans: ['-main.reject']}), | ||
{ main: { reject: false } } | ||
); | ||
this.ini.empty({ booleans: ['-main.reject']}), | ||
{ main: { reject: false } } | ||
); | ||
test.deepEqual( | ||
this.ini.empty({ booleans: ['main.-reject']}), | ||
{ main: { reject: false } } | ||
); | ||
this.ini.empty({ booleans: ['main.-reject']}), | ||
{ main: { reject: false } } | ||
); | ||
test.done(); | ||
@@ -149,9 +149,9 @@ }, | ||
test.deepEqual( | ||
this.ini.empty({ booleans: ['-reject.boolf']}), | ||
{ main: { }, reject: {boolf: false} } | ||
); | ||
this.ini.empty({ booleans: ['-reject.boolf']}), | ||
{ main: { }, reject: {boolf: false} } | ||
); | ||
test.deepEqual( | ||
this.ini.empty({ booleans: ['+reject.boolt']}), | ||
{ main: { }, reject: {boolt: true} } | ||
); | ||
this.ini.empty({ booleans: ['+reject.boolt']}), | ||
{ main: { }, reject: {boolt: true} } | ||
); | ||
test.done(); | ||
@@ -158,0 +158,0 @@ }, |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
74597
1713
2