Skip to content

Commit d58a900

Browse files
committed
Release 2.0.2
1 parent c3ed22f commit d58a900

15 files changed

+20
-19
lines changed

CHANGELOG.md

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,18 @@
11
# Changelog
22

3+
## [2.0.2](https://github.com/seegno/validator.js-asserts/tree/2.0.2) (2016-04-07)
4+
[Full Changelog](https://github.com/seegno/validator.js-asserts/compare/2.0.1...2.0.2)
5+
6+
**Implemented enhancements:**
7+
8+
- Add automated releases [\#74](https://github.com/seegno/validator.js-asserts/pull/74) ([ruimarinho](https://github.com/ruimarinho))
9+
10+
**Merged pull requests:**
11+
12+
- Update dependencies [\#94](https://github.com/seegno/validator.js-asserts/pull/94) ([ruimarinho](https://github.com/ruimarinho))
13+
- Update dependencies [\#73](https://github.com/seegno/validator.js-asserts/pull/73) ([ruimarinho](https://github.com/ruimarinho))
14+
- Remove jscs inline camel case rules [\#65](https://github.com/seegno/validator.js-asserts/pull/65) ([nunofgs](https://github.com/nunofgs))
15+
316
## [2.0.1](https://github.com/seegno/validator.js-asserts/tree/2.0.1) (2016-01-26)
417
[Full Changelog](https://github.com/seegno/validator.js-asserts/compare/2.0.0...2.0.1)
518

@@ -110,4 +123,3 @@
110123
- Expose min and max in `NullOrString` [\#2](https://github.com/seegno/validator.js-asserts/pull/2) ([fixe](https://github.com/fixe))
111124
- Add `Email` assert [\#1](https://github.com/seegno/validator.js-asserts/pull/1) ([fixe](https://github.com/fixe))
112125

113-
## [0.0.1](https://github.com/seegno/validator.js-asserts/tree/0.0.1) (2014-11-12)

dist/asserts/date-diff-greater-than-assert.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ function dateDiffGreaterThanAssert(threshold, options) {
7575
}
7676

7777
if (diff <= this.threshold) {
78-
throw new _validator.Violation(this, value, { absolute: this.absolute, asFloat: this.asFloat, diff, fromDate: this.fromDate, threshold: this.threshold, unit: this.unit });
78+
throw new _validator.Violation(this, value, { absolute: this.absolute, asFloat: this.asFloat, diff: diff, fromDate: this.fromDate, threshold: this.threshold, unit: this.unit });
7979
}
8080

8181
return true;

dist/asserts/date-diff-less-than-assert.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ function dateDiffLessThanAssert(threshold, options) {
7575
}
7676

7777
if (diff >= this.threshold) {
78-
throw new _validator.Violation(this, value, { absolute: this.absolute, asFloat: this.asFloat, diff, fromDate: this.fromDate, threshold: this.threshold, unit: this.unit });
78+
throw new _validator.Violation(this, value, { absolute: this.absolute, asFloat: this.asFloat, diff: diff, fromDate: this.fromDate, threshold: this.threshold, unit: this.unit });
7979
}
8080

8181
return true;

dist/asserts/email-assert.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@ function emailAssert() {
3030

3131
this.validate = value => {
3232
if (typeof value !== 'string') {
33-
// jscs: disable requireCamelCaseOrUpperCaseIdentifiers
3433
throw new _validator.Violation(this, value, { value: _validator.Validator.errorCode.must_be_a_string });
3534
}
3635

dist/asserts/hash-assert.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,6 @@ function hashAssert(algorithm) {
5252

5353
this.validate = value => {
5454
if (typeof value !== 'string') {
55-
// jscs: disable requireCamelCaseOrUpperCaseIdentifiers
5655
throw new _validator.Violation(this, value, { value: _validator.Validator.errorCode.must_be_a_string });
5756
}
5857

dist/asserts/integer-assert.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,6 @@ function integerAssert() {
3434

3535
this.validate = value => {
3636
if (typeof value !== 'number') {
37-
// jscs: disable requireCamelCaseOrUpperCaseIdentifiers
3837
throw new _validator.Violation(this, value, { value: _validator.Validator.errorCode.must_be_a_number });
3938
}
4039

dist/asserts/international-bank-account-number-assert.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@ function internationalBankAccountNumberAssert() {
3030

3131
this.validate = value => {
3232
if (typeof value !== 'string') {
33-
// jscs: disable requireCamelCaseOrUpperCaseIdentifiers
3433
throw new _validator.Violation(this, value, { value: _validator.Validator.errorCode.must_be_a_string });
3534
}
3635

dist/asserts/ip-assert.js

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

8-
var _validator = require('validator.js');
9-
108
var _net = require('net');
119

1210
var _net2 = _interopRequireDefault(_net);
1311

12+
var _validator = require('validator.js');
13+
1414
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
1515

1616
/**
@@ -34,7 +34,6 @@ function ipAssert() {
3434

3535
this.validate = value => {
3636
if (typeof value !== 'string') {
37-
// jscs: disable requireCamelCaseOrUpperCaseIdentifiers
3837
throw new _validator.Violation(this, value, { value: _validator.Validator.errorCode.must_be_a_string });
3938
}
4039

dist/asserts/iso-3166-country-assert.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,10 @@ Object.defineProperty(exports, "__esModule", {
55
});
66
exports.default = iso3166CountryAssert;
77

8-
var _validator = require('validator.js');
9-
108
var _lodash = require('lodash');
119

10+
var _validator = require('validator.js');
11+
1212
/**
1313
* Export `Iso3166CountryAssert`.
1414
*/
@@ -42,7 +42,6 @@ function iso3166CountryAssert() {
4242

4343
this.validate = value => {
4444
if (typeof value !== 'string') {
45-
// jscs: disable requireCamelCaseOrUpperCaseIdentifiers
4645
throw new _validator.Violation(this, value, { value: _validator.Validator.errorCode.must_be_a_string });
4746
}
4847

dist/asserts/phone-assert.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,6 @@ function phoneAssert() {
5151

5252
this.validate = value => {
5353
if (typeof value !== 'string') {
54-
// jscs:disable requireCamelCaseOrUpperCaseIdentifiers
5554
throw new _validator.Violation(this, value, { value: _validator.Validator.errorCode.must_be_a_string });
5655
}
5756

0 commit comments

Comments
 (0)