New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

array.from

Package Overview
Dependencies
Maintainers
2
Versions
14
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

array.from - npm Package Compare versions

Comparing version 1.1.3 to 1.1.4

.github/SECURITY.md

21

CHANGELOG.md

@@ -0,1 +1,22 @@

# Changelog
All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/)
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
## [v1.1.4](https://github.com/mathiasbynens/Array.from/compare/v1.1.3...v1.1.4) - 2023-02-23
### Commits
- [meta] use `npmignore` to autogenerate an npmignore file [`5b6ad44`](https://github.com/mathiasbynens/Array.from/commit/5b6ad44c1b60afb506f15b3e42d0fd3a676083be)
- [Deps] update `es-abstract`, `define-properties` [`f24ca6b`](https://github.com/mathiasbynens/Array.from/commit/f24ca6bac14d99f21cf753c1001f8af4d5bc24c7)
- [meta] add `auto-changelog` [`1dcac08`](https://github.com/mathiasbynens/Array.from/commit/1dcac08bcc6df529748eff36e6a3d55ce3399e7d)
- [Dev Deps] update `@ljharb/eslint-config`, `@es-shims/api`, `aud`, `tape` [`20d7da6`](https://github.com/mathiasbynens/Array.from/commit/20d7da6ba5df808c1e8aec3d8cb8978b304db3e4)
- [Tests] use `mock-property` [`0a5711e`](https://github.com/mathiasbynens/Array.from/commit/0a5711ec16b900e956405a88a7274fe3ada96c12)
- [meta] create SECURITY.md [`3c6098f`](https://github.com/mathiasbynens/Array.from/commit/3c6098f918a5bb1ce2addad95acc8fffb91a7f09)
- [Tests] skip symbol test on non-symbol envs [`4970dd1`](https://github.com/mathiasbynens/Array.from/commit/4970dd19b98bc315f4e60b7ef2a18497a53f40a2)
<!-- auto-changelog-above -->
1.1.3 / 2022-04-12

@@ -2,0 +23,0 @@ =================

36

implementation.js
'use strict';
var AdvanceStringIndex = require('es-abstract/2021/AdvanceStringIndex');
var ArrayCreate = require('es-abstract/2021/ArrayCreate');
var Call = require('es-abstract/2021/Call');
var CreateDataPropertyOrThrow = require('es-abstract/2021/CreateDataPropertyOrThrow');
var Get = require('es-abstract/2021/Get');
var GetIterator = require('es-abstract/2021/GetIterator');
var GetMethod = require('es-abstract/2021/GetMethod');
var IsArray = require('es-abstract/2021/IsArray');
var IsCallable = require('es-abstract/2021/IsCallable');
var IsConstructor = require('es-abstract/2021/IsConstructor');
var IteratorClose = require('es-abstract/2021/IteratorClose');
var IteratorStep = require('es-abstract/2021/IteratorStep');
var IteratorValue = require('es-abstract/2021/IteratorValue');
var LengthOfArrayLike = require('es-abstract/2021/LengthOfArrayLike');
var Set = require('es-abstract/2021/Set');
var ToObject = require('es-abstract/2021/ToObject');
var ToString = require('es-abstract/2021/ToString');
var Type = require('es-abstract/2021/Type');
var AdvanceStringIndex = require('es-abstract/2022/AdvanceStringIndex');
var ArrayCreate = require('es-abstract/2022/ArrayCreate');
var Call = require('es-abstract/2022/Call');
var CreateDataPropertyOrThrow = require('es-abstract/2022/CreateDataPropertyOrThrow');
var Get = require('es-abstract/2022/Get');
var GetIterator = require('es-abstract/2022/GetIterator');
var GetMethod = require('es-abstract/2022/GetMethod');
var IsArray = require('es-abstract/2022/IsArray');
var IsCallable = require('es-abstract/2022/IsCallable');
var IsConstructor = require('es-abstract/2022/IsConstructor');
var IteratorClose = require('es-abstract/2022/IteratorClose');
var IteratorStep = require('es-abstract/2022/IteratorStep');
var IteratorValue = require('es-abstract/2022/IteratorValue');
var LengthOfArrayLike = require('es-abstract/2022/LengthOfArrayLike');
var Set = require('es-abstract/2022/Set');
var ToObject = require('es-abstract/2022/ToObject');
var ToString = require('es-abstract/2022/ToString');
var Type = require('es-abstract/2022/Type');

@@ -22,0 +22,0 @@ var getIteratorMethod = require('es-abstract/helpers/getIteratorMethod');

{
"name": "array.from",
"version": "1.1.3",
"version": "1.1.4",
"description": "A robust & optimized `Array.from` polyfill, based on the ECMAScript 6 specification.",

@@ -38,2 +38,5 @@ "homepage": "https://mths.be/array-from",

"scripts": {
"prepack": "npmignore --auto --commentLines=autogenerated",
"version": "auto-changelog && git add CHANGELOG.md",
"postversion": "auto-changelog && git add CHANGELOG.md && git commit --no-edit --amend && git tag -f \"v$(node -e \"console.log(require('./package.json').version)\")\"",
"prepublishOnly": "safe-publish-latest",

@@ -49,34 +52,35 @@ "prepublish": "not-in-publish || npm run prepublishOnly",

"devDependencies": {
"@es-shims/api": "^2.2.3",
"@ljharb/eslint-config": "^21.0.0",
"aud": "^2.0.0",
"@es-shims/api": "^2.3.1",
"@ljharb/eslint-config": "^21.0.1",
"aud": "^2.0.2",
"auto-changelog": "^2.4.0",
"eslint": "=8.8.0",
"has-symbols": "^1.0.3",
"mock-property": "^1.0.0",
"npmignore": "^0.3.0",
"nyc": "^10.3.2",
"safe-publish-latest": "^2.0.0",
"tape": "^5.5.3"
"tape": "^5.6.3"
},
"dependencies": {
"define-properties": "^1.1.3",
"es-abstract": "^1.19.4"
"define-properties": "^1.2.0",
"es-abstract": "^1.21.1"
},
"testling": {
"files": "test/index.js",
"browsers": [
"iexplore/6.0..latest",
"firefox/3.0..6.0",
"firefox/15.0..latest",
"firefox/nightly",
"chrome/4.0..10.0",
"chrome/20.0..latest",
"chrome/canary",
"opera/10.0..latest",
"opera/next",
"safari/4.0..latest",
"ipad/6.0..latest",
"iphone/6.0..latest",
"android-browser/4.2"
"files": "test/index.js"
},
"auto-changelog": {
"output": "CHANGELOG.md",
"template": "keepachangelog",
"unreleased": false,
"commitLimit": false,
"backfillLimit": false,
"hideCredit": true,
"startingVersion": "1.1.4"
},
"publishConfig": {
"ignore": [
".github/workflows"
]
}
}
'use strict';
var Call = require('es-abstract/2021/Call');
var IsArray = require('es-abstract/2021/IsArray');
var IsCallable = require('es-abstract/2021/IsCallable');
var Call = require('es-abstract/2022/Call');
var IsArray = require('es-abstract/2022/IsArray');
var IsCallable = require('es-abstract/2022/IsCallable');

@@ -7,0 +7,0 @@ var implementation = require('./implementation');

@@ -6,5 +6,6 @@ 'use strict';

var test = require('tape');
var IsCallable = require('es-abstract/2021/IsCallable');
var IsCallable = require('es-abstract/2022/IsCallable');
var supportsDescriptors = require('define-properties').supportsDescriptors;
var hasSymbols = require('has-symbols')();
var mockProperty = require('mock-property');

@@ -110,6 +111,4 @@ var makeIterable = function (array) {

test('it includes Object.prototype values when it is polluted', function (t) {
/* eslint-disable no-extend-native */
Object.prototype[4] = 42;
t.teardown(mockProperty(Object.prototype, 4, { 'value': 42 }));
t.deepEqual(arrayFrom({ '0': 1, '1': 2, '2': 3, '3': 4, 'length': 5 }), [1, 2, 3, 4, 42]);
delete Object.prototype[4];
t.end();

@@ -340,3 +339,3 @@ });

test('test262: iter-cstm-ctor', function (t) {
test('test262: iter-cstm-ctor', { 'skip': !hasSymbols }, function (t) {
var thisVal;

@@ -343,0 +342,0 @@ var args;

SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc