array.prototype.flatmap
Advanced tools
Comparing version 1.1.0 to 1.1.1
@@ -0,1 +1,8 @@ | ||
1.1.1 / 2017-11-29 | ||
================= | ||
* [Fix] avoid an extra hole in the array (#1) | ||
* [Deps] update `es-abstract` | ||
* [Dev Deps] update `eslint`, `nsp`, `object-inspect` | ||
* [Tests] up to `node` `v9.2`, `v8.9`, `v6.12`; pin included builds to LTS | ||
1.1.0 / 2017-10-03 | ||
@@ -2,0 +9,0 @@ ================= |
@@ -60,5 +60,5 @@ 'use strict'; | ||
var A = ES.ArraySpeciesCreate(O, 0); | ||
var lastIndex = FlattenIntoArray(A, O, O, sourceLen, 0, 1, callbackfn, T); | ||
ES.Set(A, 'length', lastIndex + 1, true); | ||
var nextIndex = FlattenIntoArray(A, O, O, sourceLen, 0, 1, callbackfn, T); | ||
ES.Set(A, 'length', nextIndex, true); | ||
return A; | ||
}; |
{ | ||
"name": "array.prototype.flatmap", | ||
"version": "1.1.0", | ||
"version": "1.1.1", | ||
"author": { | ||
@@ -20,2 +20,3 @@ "name": "Jordan Harband", | ||
"scripts": { | ||
"prepublish": "safe-publish-latest", | ||
"pretest": "npm run --silent lint && evalmd README.md", | ||
@@ -48,3 +49,3 @@ "test": "npm run --silent tests-only", | ||
"define-properties": "^1.1.2", | ||
"es-abstract": "^1.9.0", | ||
"es-abstract": "^1.10.0", | ||
"function-bind": "^1.1.1" | ||
@@ -56,8 +57,9 @@ }, | ||
"covert": "^1.1.0", | ||
"eslint": "^4.8.0", | ||
"eslint": "^4.12.0", | ||
"evalmd": "^0.0.17", | ||
"foreach": "^2.0.5", | ||
"nsp": "^2.8.1", | ||
"nsp": "^3.1.0", | ||
"nyc": "^10.3.2", | ||
"object-inspect": "^1.3.0", | ||
"object-inspect": "^1.4.0", | ||
"safe-publish-latest": "^1.1.1", | ||
"tape": "^4.8.0" | ||
@@ -64,0 +66,0 @@ }, |
@@ -24,3 +24,5 @@ 'use strict'; | ||
st.deepEqual(mapped, [1, 0, [2], 1, [3, 4], 2], 'array is flattened and mapped to tuples of item/index'); | ||
var expected = [1, 0, [2], 1, [3, 4], 2]; | ||
st.deepEqual(mapped, expected, 'array is flattened and mapped to tuples of item/index'); | ||
st.equal(mapped.length, expected.length, 'array has expected length'); | ||
@@ -27,0 +29,0 @@ var context = {}; |
Sorry, the diff of this file is not supported yet
159
19077
11
16
Updatedes-abstract@^1.10.0