Skip to content

Commit 8aa854b

Browse files
author
Rui Marinho
committed
Release 2.0.1
1 parent 9293a85 commit 8aa854b

32 files changed

+240
-54
lines changed

CHANGELOG.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,16 @@
11
# Changelog
22

3+
## [2.0.1](https://github.com/seegno/validator.js-asserts/tree/2.0.1) (2016-01-26)
4+
[Full Changelog](https://github.com/seegno/validator.js-asserts/compare/2.0.0...2.0.1)
5+
6+
**Fixed bugs:**
7+
8+
- Fix abavalidator not being considered optional [\#63](https://github.com/seegno/validator.js-asserts/pull/63) ([ruimarinho](https://github.com/ruimarinho))
9+
10+
**Merged pull requests:**
11+
12+
- Add module exports [\#64](https://github.com/seegno/validator.js-asserts/pull/64) ([ruimarinho](https://github.com/ruimarinho))
13+
314
## [2.0.0](https://github.com/seegno/validator.js-asserts/tree/2.0.0) (2016-01-21)
415
[Full Changelog](https://github.com/seegno/validator.js-asserts/compare/1.1.0...2.0.0)
516

dist/asserts/aba-routing-number-assert.js

Lines changed: 13 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -5,23 +5,19 @@ Object.defineProperty(exports, "__esModule", {
55
});
66
exports.default = abaRoutingNumberAssert;
77

8-
var _abavalidator = require('abavalidator');
9-
10-
var _abavalidator2 = _interopRequireDefault(_abavalidator);
11-
128
var _validator = require('validator.js');
139

14-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
15-
1610
/**
1711
* Export `AbaRoutingNumberAssert`.
1812
*/
1913

20-
/**
21-
* Module dependencies.
22-
*/
23-
2414
function abaRoutingNumberAssert() {
15+
/**
16+
* Optional peer dependencies.
17+
*/
18+
19+
const abaValidator = require('abavalidator');
20+
2521
/**
2622
* Class name.
2723
*/
@@ -37,12 +33,17 @@ function abaRoutingNumberAssert() {
3733
throw new _validator.Violation(this, value, { value: _validator.Validator.errorCode.must_be_a_string });
3834
}
3935

40-
if (!_abavalidator2.default.validate(value)) {
36+
if (!abaValidator.validate(value)) {
4137
throw new _validator.Violation(this, value);
4238
}
4339

4440
return true;
4541
};
4642

4743
return this;
48-
}
44+
}
45+
/**
46+
* Module dependencies.
47+
*/
48+
49+
module.exports = exports['default'];

dist/asserts/bank-identifier-code-assert.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,4 +45,5 @@ function bankIdentifierCodeAssert() {
4545
};
4646

4747
return this;
48-
}
48+
}
49+
module.exports = exports['default'];

dist/asserts/big-number-assert.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,4 +42,6 @@ function bigNumberAssert() {
4242
}
4343
/**
4444
* Module dependencies.
45-
*/
45+
*/
46+
47+
module.exports = exports['default'];

dist/asserts/big-number-greater-than-assert.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,4 +58,6 @@ function bigNumberGreaterThanAssert(threshold) {
5858
}
5959
/**
6060
* Module dependencies.
61-
*/
61+
*/
62+
63+
module.exports = exports['default'];

dist/asserts/big-number-greater-than-or-equal-to-assert.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,4 +58,6 @@ function bigNumberGreaterThanOrEqualToAssert(threshold) {
5858
}
5959
/**
6060
* Module dependencies.
61-
*/
61+
*/
62+
63+
module.exports = exports['default'];

dist/asserts/big-number-less-than-assert.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,4 +58,6 @@ function bigNumberLessThan(threshold) {
5858
}
5959
/**
6060
* Module dependencies.
61-
*/
61+
*/
62+
63+
module.exports = exports['default'];

dist/asserts/big-number-less-than-or-equal-to-assert.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,4 +58,6 @@ function bigNumberLessThanOrEqualToAssert(threshold) {
5858
}
5959
/**
6060
* Module dependencies.
61-
*/
61+
*/
62+
63+
module.exports = exports['default'];

dist/asserts/boolean-assert.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,4 +34,6 @@ function booleanAssert() {
3434
}
3535
/**
3636
* Module dependencies.
37-
*/
37+
*/
38+
39+
module.exports = exports['default'];

dist/asserts/credit-card-assert.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,4 +44,6 @@ function creditCardAssert() {
4444
}
4545
/**
4646
* Module dependencies.
47-
*/
47+
*/
48+
49+
module.exports = exports['default'];

0 commit comments

Comments
 (0)