array.prototype.flatmap
Advanced tools
Comparing version 1.2.4 to 1.2.5
@@ -0,1 +1,11 @@ | ||
1.2.5 / 2021-10-01 | ||
================= | ||
* [readme] add github actions/codecov badges; update description; remove travis badge | ||
* [Deps] update `call-bind`, `es-abstract`; remove unused `function-bind` | ||
* [meta] use `prepublishOnly`, for npm 7+ | ||
* [Dev Deps] update `eslint`, `@ljharb/eslint-config`, `@es-shims/api`, `aud`, `has-strict-mode`, `object-inspect`, `tape` | ||
* [actions] update workflows | ||
* [actions] use `node/install` instead of `node/run`; use `codecov` action | ||
* [Tests] increase coverage | ||
1.2.4 / 2020-11-18 | ||
@@ -2,0 +12,0 @@ ================= |
'use strict'; | ||
var ArraySpeciesCreate = require('es-abstract/2020/ArraySpeciesCreate'); | ||
var FlattenIntoArray = require('es-abstract/2020/FlattenIntoArray'); | ||
var Get = require('es-abstract/2020/Get'); | ||
var IsCallable = require('es-abstract/2020/IsCallable'); | ||
var ToLength = require('es-abstract/2020/ToLength'); | ||
var ToObject = require('es-abstract/2020/ToObject'); | ||
var ArraySpeciesCreate = require('es-abstract/2021/ArraySpeciesCreate'); | ||
var FlattenIntoArray = require('es-abstract/2021/FlattenIntoArray'); | ||
var Get = require('es-abstract/2021/Get'); | ||
var IsCallable = require('es-abstract/2021/IsCallable'); | ||
var ToLength = require('es-abstract/2021/ToLength'); | ||
var ToObject = require('es-abstract/2021/ToObject'); | ||
@@ -10,0 +10,0 @@ module.exports = function flatMap(mapperFunction) { |
{ | ||
"name": "array.prototype.flatmap", | ||
"version": "1.2.4", | ||
"version": "1.2.5", | ||
"author": { | ||
@@ -19,3 +19,3 @@ "name": "Jordan Harband", | ||
], | ||
"description": "An ESnext spec-compliant `Array.prototype.flatMap` shim/polyfill/replacement that works as far down as ES3.", | ||
"description": "An ES2019 spec-compliant `Array.prototype.flatMap` shim/polyfill/replacement that works as far down as ES3.", | ||
"license": "MIT", | ||
@@ -50,18 +50,17 @@ "main": "index", | ||
"define-properties": "^1.1.3", | ||
"es-abstract": "^1.18.0-next.1", | ||
"function-bind": "^1.1.1" | ||
"es-abstract": "^1.19.0" | ||
}, | ||
"devDependencies": { | ||
"@es-shims/api": "^2.1.2", | ||
"@ljharb/eslint-config": "^17.2.0", | ||
"aud": "^1.1.3", | ||
"@es-shims/api": "^2.2.1", | ||
"@ljharb/eslint-config": "^18.0.0", | ||
"aud": "^1.1.5", | ||
"covert": "^1.1.1", | ||
"eslint": "^7.13.0", | ||
"eslint": "^7.32.0", | ||
"evalmd": "0.0.19", | ||
"foreach": "^2.0.5", | ||
"has-strict-mode": "^1.0.0", | ||
"has-strict-mode": "^1.0.1", | ||
"nyc": "^10.3.2", | ||
"object-inspect": "^1.8.0", | ||
"object-inspect": "^1.11.0", | ||
"safe-publish-latest": "^1.1.4", | ||
"tape": "^5.0.1" | ||
"tape": "^5.3.1" | ||
}, | ||
@@ -68,0 +67,0 @@ "testling": { |
# array.prototype.flatmap <sup>[![Version Badge][npm-version-svg]][package-url]</sup> | ||
[![Build Status][travis-svg]][travis-url] | ||
[![github actions][actions-image]][actions-url] | ||
[![coverage][codecov-image]][codecov-url] | ||
[![dependency status][deps-svg]][deps-url] | ||
@@ -11,5 +12,5 @@ [![dev dependency status][dev-deps-svg]][dev-deps-url] | ||
An ESnext spec-compliant `Array.prototype.flatMap` shim/polyfill/replacement that works as far down as ES3. | ||
An ES2019 spec-compliant `Array.prototype.flatMap` shim/polyfill/replacement that works as far down as ES3. | ||
This package implements the [es-shim API](https://github.com/es-shims/api) interface. It works in an ES3-supported environment and complies with the proposed [spec](https://tc39.github.io/proposal-flatMap/). | ||
This package implements the [es-shim API](https://github.com/es-shims/api) interface. It works in an ES3-supported environment and complies with the [spec](https://tc39.es/ecma262/#sec-array.prototype.flatmap). | ||
@@ -69,5 +70,3 @@ Because `Array.prototype.flatMap` depends on a receiver (the `this` value), the main export takes the array to operate on as the first argument. | ||
[package-url]: https://npmjs.org/package/array.prototype.flatmap | ||
[npm-version-svg]: http://versionbadg.es/es-shims/Array.prototype.flatMap.svg | ||
[travis-svg]: https://travis-ci.org/es-shims/Array.prototype.flatMap.svg | ||
[travis-url]: https://travis-ci.org/es-shims/Array.prototype.flatMap | ||
[npm-version-svg]: https://versionbadg.es/es-shims/Array.prototype.flatMap.svg | ||
[deps-svg]: https://david-dm.org/es-shims/Array.prototype.flatMap.svg | ||
@@ -78,5 +77,9 @@ [deps-url]: https://david-dm.org/es-shims/Array.prototype.flatMap | ||
[npm-badge-png]: https://nodei.co/npm/array.prototype.flatmap.png?downloads=true&stars=true | ||
[license-image]: http://img.shields.io/npm/l/array.prototype.flatmap.svg | ||
[license-image]: https://img.shields.io/npm/l/array.prototype.flatmap.svg | ||
[license-url]: LICENSE | ||
[downloads-image]: http://img.shields.io/npm/dm/array.prototype.flatmap.svg | ||
[downloads-url]: http://npm-stat.com/charts.html?package=array.prototype.flatmap | ||
[downloads-image]: https://img.shields.io/npm/dm/array.prototype.flatmap.svg | ||
[downloads-url]: https://npm-stat.com/charts.html?package=array.prototype.flatmap | ||
[codecov-image]: https://codecov.io/gh/es-shims/Array.prototype.flatMap/branch/main/graphs/badge.svg | ||
[codecov-url]: https://app.codecov.io/gh/es-shims/Array.prototype.flatMap/ | ||
[actions-image]: https://img.shields.io/endpoint?url=https://github-actions-badge-u3jn4tfpocch.runkit.sh/es-shims/Array.prototype.flatMap | ||
[actions-url]: https://github.com/es-shims/Array.prototype.flatMap/actions |
'use strict'; | ||
require('../shim')(); | ||
require('../auto'); | ||
var test = require('tape'); | ||
var defineProperties = require('define-properties'); | ||
var bind = require('function-bind'); | ||
var callBind = require('call-bind'); | ||
var isEnumerable = Object.prototype.propertyIsEnumerable; | ||
@@ -33,5 +33,5 @@ var functionsHaveNames = function f() {}.name === 'f'; | ||
runTests(bind.call(Function.call, Array.prototype.flatMap), t); | ||
runTests(callBind(Array.prototype.flatMap), t); | ||
t.end(); | ||
}); |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
16140
3
83
- Removedfunction-bind@^1.1.1
Updatedes-abstract@^1.19.0