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

haraka-config

Package Overview
Dependencies
Maintainers
3
Versions
31
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

haraka-config - npm Package Compare versions

Comparing version 1.0.12 to 1.0.13

1

.eslintrc.json

@@ -7,4 +7,3 @@ {

"rules": {
"no-console": 0
}
}

5

Changes.md

@@ -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 @@ },

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