[Pkg-javascript-commits] [node-isarray] 01/09: New upstream version 2.0.2
Ross Gammon
ross-guest at moszumanska.debian.org
Tue Aug 15 04:33:54 UTC 2017
This is an automated email from the git hooks/post-receive script.
ross-guest pushed a commit to branch master
in repository node-isarray.
commit 29fb38e1b2c102c54e167a48fe1759bd9cc87aaa
Author: Ross Gammon <rossgammon at mail.dk>
Date: Mon Aug 14 20:23:50 2017 +0200
New upstream version 2.0.2
---
.travis.yml | 7 +++++++
README.md | 14 +++++---------
package.json | 5 ++++-
test.js | 1 +
4 files changed, 17 insertions(+), 10 deletions(-)
diff --git a/.travis.yml b/.travis.yml
index cc4dba2..1e5f456 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -1,4 +1,11 @@
language: node_js
+sudo: false
node_js:
- "0.8"
- "0.10"
+ - "0.12"
+ - 3
+ - 4
+ - 5
+ - 6
+ - "stable"
diff --git a/README.md b/README.md
index 16d2c59..92c27d4 100644
--- a/README.md
+++ b/README.md
@@ -1,7 +1,7 @@
# isarray
-`Array#isArray` for older browsers.
+`Array#isArray` for older browsers and deprecated Node.js versions.
[![build status](https://secure.travis-ci.org/juliangruber/isarray.svg)](http://travis-ci.org/juliangruber/isarray)
[![downloads](https://img.shields.io/npm/dm/isarray.svg)](https://www.npmjs.org/package/isarray)
@@ -9,6 +9,8 @@
[![browser support](https://ci.testling.com/juliangruber/isarray.png)
](https://ci.testling.com/juliangruber/isarray)
+__Just use Array.isArray directly__, unless you need to support those older versions.
+
## Usage
```js
@@ -20,20 +22,14 @@ console.log(isArray({})); // => false
## Installation
-With [npm](http://npmjs.org) do
+With [npm](https://npmjs.org) do
```bash
$ npm install isarray
```
Then bundle for the browser with
-[browserify](https://github.com/substack/browserify).
-
-With [component](http://component.io) do
-
-```bash
-$ component install juliangruber/isarray
-```
+[browserify](https://github.com/substack/node-browserify).
## License
diff --git a/package.json b/package.json
index 1a4317a..e35adb7 100644
--- a/package.json
+++ b/package.json
@@ -1,13 +1,16 @@
{
"name": "isarray",
"description": "Array#isArray for older browsers",
- "version": "1.0.0",
+ "version": "2.0.2",
"repository": {
"type": "git",
"url": "git://github.com/juliangruber/isarray.git"
},
"homepage": "https://github.com/juliangruber/isarray",
"main": "index.js",
+ "files": [
+ "index.js"
+ ],
"dependencies": {},
"devDependencies": {
"tape": "~2.13.4"
diff --git a/test.js b/test.js
index e0c3444..44c8d0a 100644
--- a/test.js
+++ b/test.js
@@ -6,6 +6,7 @@ test('is array', function(t){
t.notOk(isArray({}));
t.notOk(isArray(null));
t.notOk(isArray(false));
+ t.notOk(isArray(""));
var obj = {};
obj[0] = true;
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/node-isarray.git
More information about the Pkg-javascript-commits
mailing list