[Pkg-javascript-commits] [node-array-find-index] 01/03: New upstream version 1.0.2
Thorsten Alteholz
alteholz at moszumanska.debian.org
Fri Nov 4 21:42:59 UTC 2016
This is an automated email from the git hooks/post-receive script.
alteholz pushed a commit to branch master
in repository node-array-find-index.
commit 61a48622a2ec3c8e0fb98df4bf40cd1ca508d279
Author: Thorsten Alteholz <debian at alteholz.de>
Date: Fri Nov 4 19:49:02 2016 +0100
New upstream version 1.0.2
---
.editorconfig | 3 ---
.travis.yml | 3 ++-
package.json | 3 +--
readme.md | 8 +++-----
test.js | 9 +++++----
5 files changed, 11 insertions(+), 15 deletions(-)
diff --git a/.editorconfig b/.editorconfig
index 8f9d77e..98a761d 100644
--- a/.editorconfig
+++ b/.editorconfig
@@ -10,6 +10,3 @@ insert_final_newline = true
[{package.json,*.yml}]
indent_style = space
indent_size = 2
-
-[*.md]
-trim_trailing_whitespace = false
diff --git a/.travis.yml b/.travis.yml
index 2a2f1c6..e526ffa 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -1,5 +1,6 @@
language: node_js
node_js:
- - 'stable'
+ - '6'
+ - '4'
- '0.12'
- '0.10'
diff --git a/package.json b/package.json
index 01dddd0..ee2e62d 100644
--- a/package.json
+++ b/package.json
@@ -1,6 +1,6 @@
{
"name": "array-find-index",
- "version": "1.0.1",
+ "version": "1.0.2",
"description": "ES2015 `Array#findIndex()` ponyfill",
"license": "MIT",
"repository": "sindresorhus/array-find-index",
@@ -19,7 +19,6 @@
"index.js"
],
"keywords": [
- "es6",
"es2015",
"ponyfill",
"polyfill",
diff --git a/readme.md b/readme.md
index cf06dd3..3166341 100644
--- a/readme.md
+++ b/readme.md
@@ -1,8 +1,6 @@
# array-find-index [![Build Status](https://travis-ci.org/sindresorhus/array-find-index.svg?branch=master)](https://travis-ci.org/sindresorhus/array-find-index)
-> ES2015 [`Array#findIndex()`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/findIndex) ponyfill
-
-> Ponyfill: A polyfill that doesn't overwrite the native method
+> ES2015 [`Array#findIndex()`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/findIndex) [ponyfill](https://ponyfill.com)
## Install
@@ -15,7 +13,7 @@ $ npm install --save array-find-index
## Usage
```js
-arrayFindIndex = require('array-find-index');
+const arrayFindIndex = require('array-find-index');
arrayFindIndex(['rainbow', 'unicorn', 'pony'], x => x === 'unicorn');
//=> 1
@@ -29,4 +27,4 @@ Same as `Array#findIndex()`, but with the input array as the first argument.
## License
-MIT © [Sindre Sorhus](http://sindresorhus.com)
+MIT © [Sindre Sorhus](https://sindresorhus.com)
diff --git a/test.js b/test.js
index 7945cb1..02ed803 100644
--- a/test.js
+++ b/test.js
@@ -1,11 +1,12 @@
/* eslint-disable no-extend-native */
-Array.prototype.findIndex = undefined;
import test from 'ava';
-import fn from './';
+
+Array.prototype.findIndex = undefined;
+const m = require('./');
const f = [10, 20, 30, 40];
test(t => {
- t.is(fn(f, x => x === 30), 2);
- t.is(fn(f, x => x === 'noop'), -1);
+ t.is(m(f, x => x === 30), 2);
+ t.is(m(f, x => x === 'noop'), -1);
});
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/node-array-find-index.git
More information about the Pkg-javascript-commits
mailing list