Skip to content

Commit

Permalink
Release 2.0.1
Browse files Browse the repository at this point in the history
  • Loading branch information
Rui Marinho committed Jan 26, 2016
1 parent 9293a85 commit 8aa854b
Show file tree
Hide file tree
Showing 32 changed files with 240 additions and 54 deletions.
11 changes: 11 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,16 @@
# Changelog

## [2.0.1](https://github.com/seegno/validator.js-asserts/tree/2.0.1) (2016-01-26)
[Full Changelog](https://github.com/seegno/validator.js-asserts/compare/2.0.0...2.0.1)

**Fixed bugs:**

- Fix abavalidator not being considered optional [\#63](https://github.com/seegno/validator.js-asserts/pull/63) ([ruimarinho](https://github.com/ruimarinho))

**Merged pull requests:**

- Add module exports [\#64](https://github.com/seegno/validator.js-asserts/pull/64) ([ruimarinho](https://github.com/ruimarinho))

## [2.0.0](https://github.com/seegno/validator.js-asserts/tree/2.0.0) (2016-01-21)
[Full Changelog](https://github.com/seegno/validator.js-asserts/compare/1.1.0...2.0.0)

Expand Down
25 changes: 13 additions & 12 deletions dist/asserts/aba-routing-number-assert.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,23 +5,19 @@ Object.defineProperty(exports, "__esModule", {
});
exports.default = abaRoutingNumberAssert;

var _abavalidator = require('abavalidator');

var _abavalidator2 = _interopRequireDefault(_abavalidator);

var _validator = require('validator.js');

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

/**
* Export `AbaRoutingNumberAssert`.
*/

/**
* Module dependencies.
*/

function abaRoutingNumberAssert() {
/**
* Optional peer dependencies.
*/

const abaValidator = require('abavalidator');

/**
* Class name.
*/
Expand All @@ -37,12 +33,17 @@ function abaRoutingNumberAssert() {
throw new _validator.Violation(this, value, { value: _validator.Validator.errorCode.must_be_a_string });
}

if (!_abavalidator2.default.validate(value)) {
if (!abaValidator.validate(value)) {
throw new _validator.Violation(this, value);
}

return true;
};

return this;
}
}
/**
* Module dependencies.
*/

module.exports = exports['default'];
3 changes: 2 additions & 1 deletion dist/asserts/bank-identifier-code-assert.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,4 +45,5 @@ function bankIdentifierCodeAssert() {
};

return this;
}
}
module.exports = exports['default'];
4 changes: 3 additions & 1 deletion dist/asserts/big-number-assert.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,4 +42,6 @@ function bigNumberAssert() {
}
/**
* Module dependencies.
*/
*/

module.exports = exports['default'];
4 changes: 3 additions & 1 deletion dist/asserts/big-number-greater-than-assert.js
Original file line number Diff line number Diff line change
Expand Up @@ -58,4 +58,6 @@ function bigNumberGreaterThanAssert(threshold) {
}
/**
* Module dependencies.
*/
*/

module.exports = exports['default'];
4 changes: 3 additions & 1 deletion dist/asserts/big-number-greater-than-or-equal-to-assert.js
Original file line number Diff line number Diff line change
Expand Up @@ -58,4 +58,6 @@ function bigNumberGreaterThanOrEqualToAssert(threshold) {
}
/**
* Module dependencies.
*/
*/

module.exports = exports['default'];
4 changes: 3 additions & 1 deletion dist/asserts/big-number-less-than-assert.js
Original file line number Diff line number Diff line change
Expand Up @@ -58,4 +58,6 @@ function bigNumberLessThan(threshold) {
}
/**
* Module dependencies.
*/
*/

module.exports = exports['default'];
4 changes: 3 additions & 1 deletion dist/asserts/big-number-less-than-or-equal-to-assert.js
Original file line number Diff line number Diff line change
Expand Up @@ -58,4 +58,6 @@ function bigNumberLessThanOrEqualToAssert(threshold) {
}
/**
* Module dependencies.
*/
*/

module.exports = exports['default'];
4 changes: 3 additions & 1 deletion dist/asserts/boolean-assert.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,4 +34,6 @@ function booleanAssert() {
}
/**
* Module dependencies.
*/
*/

module.exports = exports['default'];
4 changes: 3 additions & 1 deletion dist/asserts/credit-card-assert.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,4 +44,6 @@ function creditCardAssert() {
}
/**
* Module dependencies.
*/
*/

module.exports = exports['default'];
4 changes: 3 additions & 1 deletion dist/asserts/date-assert.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,4 +38,6 @@ function dateAssert() {
}
/**
* Module dependencies.
*/
*/

module.exports = exports['default'];
3 changes: 2 additions & 1 deletion dist/asserts/date-diff-greater-than-assert.js
Original file line number Diff line number Diff line change
Expand Up @@ -82,4 +82,5 @@ function dateDiffGreaterThanAssert(threshold, options) {
};

return this;
}
}
module.exports = exports['default'];
3 changes: 2 additions & 1 deletion dist/asserts/date-diff-less-than-assert.js
Original file line number Diff line number Diff line change
Expand Up @@ -82,4 +82,5 @@ function dateDiffLessThanAssert(threshold, options) {
};

return this;
}
}
module.exports = exports['default'];
4 changes: 3 additions & 1 deletion dist/asserts/email-assert.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,4 +51,6 @@ function emailAssert() {
}
/**
* Module dependencies.
*/
*/

module.exports = exports['default'];
3 changes: 2 additions & 1 deletion dist/asserts/equal-keys-assert.js
Original file line number Diff line number Diff line change
Expand Up @@ -63,4 +63,5 @@ function equalKeysAssert() {
};

return this;
}
}
module.exports = exports['default'];
3 changes: 2 additions & 1 deletion dist/asserts/hash-assert.js
Original file line number Diff line number Diff line change
Expand Up @@ -64,4 +64,5 @@ function hashAssert(algorithm) {
};

return this;
}
}
module.exports = exports['default'];
3 changes: 2 additions & 1 deletion dist/asserts/integer-assert.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,4 +46,5 @@ function integerAssert() {
};

return this;
}
}
module.exports = exports['default'];
4 changes: 3 additions & 1 deletion dist/asserts/international-bank-account-number-assert.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,4 +45,6 @@ function internationalBankAccountNumberAssert() {
}
/**
* Module dependencies.
*/
*/

module.exports = exports['default'];
3 changes: 2 additions & 1 deletion dist/asserts/ip-assert.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,4 +47,5 @@ function ipAssert() {
};

return this;
}
}
module.exports = exports['default'];
3 changes: 2 additions & 1 deletion dist/asserts/iso-3166-country-assert.js
Original file line number Diff line number Diff line change
Expand Up @@ -72,4 +72,5 @@ function iso3166CountryAssert() {
};

return this;
}
}
module.exports = exports['default'];
4 changes: 3 additions & 1 deletion dist/asserts/json-assert.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,4 +36,6 @@ function jsonAssert() {
}
/**
* Module dependencies.
*/
*/

module.exports = exports['default'];
3 changes: 2 additions & 1 deletion dist/asserts/not-empty-assert.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,4 +37,5 @@ function notEmptyAssert() {
};

return this;
}
}
module.exports = exports['default'];
4 changes: 3 additions & 1 deletion dist/asserts/null-or-date-assert.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,4 +42,6 @@ function nullOrDateAssert() {
}
/**
* Module dependencies.
*/
*/

module.exports = exports['default'];
4 changes: 3 additions & 1 deletion dist/asserts/null-or-string-assert.js
Original file line number Diff line number Diff line change
Expand Up @@ -57,4 +57,6 @@ function nullOrStringAssert(boundaries) {
}
/**
* Module dependencies.
*/
*/

module.exports = exports['default'];
3 changes: 2 additions & 1 deletion dist/asserts/phone-assert.js
Original file line number Diff line number Diff line change
Expand Up @@ -73,4 +73,5 @@ function phoneAssert() {
};

return this;
}
}
module.exports = exports['default'];
3 changes: 2 additions & 1 deletion dist/asserts/plain-object-assert.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,4 +37,5 @@ function plainObjectAssert() {
};

return this;
}
}
module.exports = exports['default'];
3 changes: 2 additions & 1 deletion dist/asserts/uri-assert.js
Original file line number Diff line number Diff line change
Expand Up @@ -80,4 +80,5 @@ function uriAssert(constraints) {
};

return this;
}
}
module.exports = exports['default'];
3 changes: 2 additions & 1 deletion dist/asserts/us-subdivision-assert.js
Original file line number Diff line number Diff line change
Expand Up @@ -100,4 +100,5 @@ function usSubdivisionAssert() {
};

return this;
}
}
module.exports = exports['default'];
3 changes: 2 additions & 1 deletion dist/asserts/us-zip-code-assert.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,4 +46,5 @@ function usZipCodeAssert() {
};

return this;
}
}
module.exports = exports['default'];
3 changes: 2 additions & 1 deletion dist/asserts/uuid-assert.js
Original file line number Diff line number Diff line change
Expand Up @@ -61,4 +61,5 @@ function uuidAssert(version) {
};

return this;
}
}
module.exports = exports['default'];
Loading

0 comments on commit 8aa854b

Please sign in to comment.