Socket
Socket
Sign inDemoInstall

es-iterator-helpers

Package Overview
Dependencies
Maintainers
1
Versions
20
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

es-iterator-helpers - npm Package Compare versions

Comparing version 1.0.0 to 1.0.1

test/Iterator.js

6

CHANGELOG.md

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

## [v1.0.1](https://github.com/es-shims/iterator-helpers/compare/v1.0.0...v1.0.1) - 2023-02-07
### Commits
- [Fix] `Iterator`: throw when Iterator() is called without new [`a6fc7e7`](https://github.com/es-shims/iterator-helpers/commit/a6fc7e768cbf4d43117365ec2f1bd300247d8dfd)
## v1.0.0 - 2023-02-05

@@ -10,0 +16,0 @@

10

Iterator/implementation.js
'use strict';
var GetIntrinsic = require('get-intrinsic');
var $TypeError = GetIntrinsic('%TypeError%');
var iterProto = require('iterator.prototype');
var $Iterator = typeof Iterator === 'function' ? Iterator : function Iterator() {};
var $Iterator = typeof Iterator === 'function' ? Iterator : function Iterator() {
if (!(this instanceof Iterator)) {
throw new $TypeError('`Iterator` can only be called with new');
}
};

@@ -7,0 +15,0 @@ if ($Iterator.prototype !== iterProto) {

2

package.json
{
"name": "es-iterator-helpers",
"version": "1.0.0",
"version": "1.0.1",
"description": "An ESnext spec-compliant iterator helpers shim/polyfill/replacement that works as far down as ES3.",

@@ -5,0 +5,0 @@ "main": "index.json",

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