Socket
Socket
Sign inDemoInstall

array.prototype.reduce

Package Overview
Dependencies
66
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.0.2 to 1.0.3

19

CHANGELOG.md

@@ -8,2 +8,21 @@ # Changelog

## [v1.0.3](https://github.com/es-shims/Array.prototype.reduce/compare/v1.0.2...v1.0.3) - 2021-10-01
### Commits
- [actions] use `node/install` instead of `node/run`; use `codecov` action [`bbd7913`](https://github.com/es-shims/Array.prototype.reduce/commit/bbd791365c6aaaf9bf65ea408fa24145dae37e96)
- [Deps] update `es-abstract` [`6f05f53`](https://github.com/es-shims/Array.prototype.reduce/commit/6f05f530335550a8b05d1a7e8b9ff9f9a1f36fa2)
- [readme] remove travis badge [`fc5c01c`](https://github.com/es-shims/Array.prototype.reduce/commit/fc5c01cb4168a7478b64f07d79dec2cd3d72cb30)
- [Dev Deps] update `eslint`, `@ljharb/eslint-config`, `@es-shims/api`, `aud`, `auto-changelog`, `tape` [`7eb4251`](https://github.com/es-shims/Array.prototype.reduce/commit/7eb4251db41fc6350fcc8b4e45fe0161a8d43c4b)
- [Dev Deps] update `eslint`, `@ljharb/eslint-config`, `aud`, `functions-have-names`, `has-strict-mode`, `tape` [`b6d02ba`](https://github.com/es-shims/Array.prototype.reduce/commit/b6d02ba6579bef59150af4d37d867a8e3e6d74f9)
- [actions] update workflows [`403b142`](https://github.com/es-shims/Array.prototype.reduce/commit/403b1423722ebcf236d8b0f34d9e8cd4f3820221)
- [readme] add github actions/codecov badges [`e070a24`](https://github.com/es-shims/Array.prototype.reduce/commit/e070a2455b14ac47ef133aca8119e7cbd114f2b8)
- [actions] update workflows [`9657169`](https://github.com/es-shims/Array.prototype.reduce/commit/96571694e39f29a70d4ab222715096b21dd0359f)
- [Dep] move `is-string` to prod deps [`1eb89d6`](https://github.com/es-shims/Array.prototype.reduce/commit/1eb89d620d4493988824aade117f3f66c42a82c7)
- [Dev Deps] update `eslint`, `tape` [`70049c6`](https://github.com/es-shims/Array.prototype.reduce/commit/70049c65f794931d586b8cbe07b722048f457211)
- [Deps] update `call-bind`, `es-abstract` [`e49aea9`](https://github.com/es-shims/Array.prototype.reduce/commit/e49aea9752701d79fbc8606a172fb7dbc4d179cc)
- [meta] use `prepublishOnly` script for npm 7+ [`e2bbb8b`](https://github.com/es-shims/Array.prototype.reduce/commit/e2bbb8b440389573b900b0c084b5149fb8a487e7)
- [Tests] increase coverage [`4b9b02c`](https://github.com/es-shims/Array.prototype.reduce/commit/4b9b02ca6d5ebca08c68442ec410252ca7403fac)
- [Deps] update `es-abstract` [`e349e01`](https://github.com/es-shims/Array.prototype.reduce/commit/e349e0133314f6d2443ca7cc6451f0403fa147c0)
## [v1.0.2](https://github.com/es-shims/Array.prototype.reduce/compare/v1.0.1...v1.0.2) - 2020-11-19

@@ -10,0 +29,0 @@

14

implementation.js
'use strict';
var Call = require('es-abstract/2020/Call');
var Get = require('es-abstract/2020/Get');
var HasProperty = require('es-abstract/2020/HasProperty');
var IsCallable = require('es-abstract/2020/IsCallable');
var ToObject = require('es-abstract/2020/ToObject');
var ToString = require('es-abstract/2020/ToString');
var ToUint32 = require('es-abstract/2020/ToUint32');
var Call = require('es-abstract/2021/Call');
var Get = require('es-abstract/2021/Get');
var HasProperty = require('es-abstract/2021/HasProperty');
var IsCallable = require('es-abstract/2021/IsCallable');
var ToObject = require('es-abstract/2021/ToObject');
var ToString = require('es-abstract/2021/ToString');
var ToUint32 = require('es-abstract/2021/ToUint32');
var callBound = require('call-bind/callBound');

@@ -11,0 +11,0 @@ var isString = require('is-string');

'use strict';
var define = require('define-properties');
var RequireObjectCoercible = require('es-abstract/2020/RequireObjectCoercible');
var RequireObjectCoercible = require('es-abstract/2021/RequireObjectCoercible');
var callBind = require('call-bind');

@@ -6,0 +6,0 @@ var callBound = require('call-bind/callBound');

{
"name": "array.prototype.reduce",
"version": "1.0.2",
"version": "1.0.3",
"description": "An ES5 spec-compliant `Array.prototype.reduce` shim/polyfill/replacement that works as far down as ES3.",

@@ -10,3 +10,4 @@ "main": "index.js",

"scripts": {
"prepublish": "safe-publish-latest",
"prepublish": "not-in-publish || npm run prepublishOnly",
"prepublishOnly": "safe-publish-latest",
"version": "auto-changelog && git add CHANGELOG.md",

@@ -49,20 +50,20 @@ "postversion": "auto-changelog && git add CHANGELOG.md && git commit --no-edit --amend && git tag -f \"v$(node -e \"console.log(require('./package.json').version)\")\"",

"dependencies": {
"call-bind": "^1.0.0",
"call-bind": "^1.0.2",
"define-properties": "^1.1.3",
"es-abstract": "^1.18.0-next.1",
"es-array-method-boxes-properly": "^1.0.0"
"es-abstract": "^1.19.0",
"es-array-method-boxes-properly": "^1.0.0",
"is-string": "^1.0.7"
},
"devDependencies": {
"@es-shims/api": "^2.1.2",
"@ljharb/eslint-config": "^17.2.0",
"aud": "^1.1.3",
"auto-changelog": "^2.2.1",
"eslint": "^7.13.0",
"@es-shims/api": "^2.2.1",
"@ljharb/eslint-config": "^18.0.0",
"aud": "^1.1.5",
"auto-changelog": "^2.3.0",
"eslint": "^7.32.0",
"evalmd": "^0.0.19",
"functions-have-names": "^1.2.1",
"has-strict-mode": "^1.0.0",
"is-string": "^1.0.5",
"functions-have-names": "^1.2.2",
"has-strict-mode": "^1.0.1",
"nyc": "^10.3.2",
"safe-publish-latest": "^1.1.4",
"tape": "^5.0.1"
"tape": "^5.3.1"
},

@@ -69,0 +70,0 @@ "auto-changelog": {

# array.prototype.reduce <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]

@@ -13,3 +14,3 @@ [![dev dependency status][dev-deps-svg]][dev-deps-url]

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](http://www.ecma-international.org/ecma-262/5.1/).
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://www.ecma-international.org/ecma-262/5.1/).

@@ -55,5 +56,3 @@ Because `Array.prototype.reduce` 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.reduce
[npm-version-svg]: http://versionbadg.es/es-shims/Array.prototype.reduce.svg
[travis-svg]: https://travis-ci.org/es-shims/Array.prototype.reduce.svg
[travis-url]: https://travis-ci.org/es-shims/Array.prototype.reduce
[npm-version-svg]: https://versionbadg.es/es-shims/Array.prototype.reduce.svg
[deps-svg]: https://david-dm.org/es-shims/Array.prototype.reduce.svg

@@ -64,5 +63,9 @@ [deps-url]: https://david-dm.org/es-shims/Array.prototype.reduce

[npm-badge-png]: https://nodei.co/npm/array.prototype.reduce.png?downloads=true&stars=true
[license-image]: http://img.shields.io/npm/l/array.prototype.reduce.svg
[license-image]: https://img.shields.io/npm/l/array.prototype.reduce.svg
[license-url]: LICENSE
[downloads-image]: http://img.shields.io/npm/dm/array.prototype.reduce.svg
[downloads-url]: http://npm-stat.com/charts.html?package=array.prototype.reduce
[downloads-image]: https://img.shields.io/npm/dm/array.prototype.reduce.svg
[downloads-url]: https://npm-stat.com/charts.html?package=array.prototype.reduce
[codecov-image]: https://codecov.io/gh/es-shims/Array.prototype.reduce/branch/main/graphs/badge.svg
[codecov-url]: https://app.codecov.io/gh/es-shims/Array.prototype.reduce/
[actions-image]: https://img.shields.io/endpoint?url=https://github-actions-badge-u3jn4tfpocch.runkit.sh/es-shims/Array.prototype.reduce
[actions-url]: https://github.com/es-shims/Array.prototype.reduce/actions

@@ -1,2 +0,2 @@

require('../shim')();
require('../auto');

@@ -3,0 +3,0 @@ var test = require('tape');

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc