From 293c6961369ea66207c3d31a7e54fd6900aec2bc Mon Sep 17 00:00:00 2001 From: kgryte Date: Mon, 28 Mar 2016 23:14:21 -0700 Subject: [PATCH] Fix length check (resolves #1) --- .travis.yml | 9 ++++++--- LICENSE | 4 ++-- README.md | 2 +- lib/index.js | 2 +- package.json | 2 +- 5 files changed, 11 insertions(+), 8 deletions(-) diff --git a/.travis.yml b/.travis.yml index 29cff27..f5ae877 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,10 +1,13 @@ language: node_js node_js: + - 'stable' + - '5' + - '4' + - '3' + - '2' + - '1' - '0.12' - - '0.11' - '0.10' - - '0.8' - - 'iojs' before_install: - npm update -g npm after_script: diff --git a/LICENSE b/LICENSE index 097b153..08498e6 100644 --- a/LICENSE +++ b/LICENSE @@ -1,6 +1,6 @@ The MIT License (MIT) -Copyright (c) 2015 Athan Reines. +Copyright (c) 2015-2016 Athan Reines. Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal @@ -18,4 +18,4 @@ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. \ No newline at end of file +SOFTWARE. diff --git a/README.md b/README.md index c6a097b..b78d060 100644 --- a/README.md +++ b/README.md @@ -116,7 +116,7 @@ $ make view-cov ## Copyright -Copyright © 2015. Athan Reines. +Copyright © 2015-2016. Athan Reines. [npm-image]: http://img.shields.io/npm/v/validate.io-typed-array-like.svg diff --git a/lib/index.js b/lib/index.js index 94506d4..bda35df 100644 --- a/lib/index.js +++ b/lib/index.js @@ -7,7 +7,7 @@ var isInteger = require( 'validate.io-integer-primitive' ); // CONSTANTS // -var MAX = require( 'compute-const-max-safe-integer' ); +var MAX = require( 'const-max-uint32' ); // IS TYPED-ARRAY-LIKE // diff --git a/package.json b/package.json index 8975cc9..c970027 100644 --- a/package.json +++ b/package.json @@ -42,7 +42,7 @@ "url": "https://github.com/validate-io/typed-array-like/issues" }, "dependencies": { - "compute-const-max-safe-integer": "^1.0.0", + "const-max-uint32": "^1.0.2", "validate.io-integer-primitive": "^1.0.0" }, "devDependencies": {