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.16 to 1.0.17

6

aos/IteratorClose.js

@@ -10,3 +10,3 @@ 'use strict';

var assertRecord = require('es-abstract/helpers/assertRecord');
var isIteratorRecord = require('es-abstract/helpers/records/iterator-record');

@@ -16,3 +16,5 @@ // https://262.ecma-international.org/14.0/#sec-iteratorclose

module.exports = function IteratorClose(iteratorRecord, completion) {
assertRecord(Type, 'Iterator Record', 'iteratorRecord', iteratorRecord);
if (!isIteratorRecord(iteratorRecord)) {
throw new $TypeError('Assertion failed: `iteratorRecord` must be an Iterator Record'); // step 1
}
if (Type(iteratorRecord['[[Iterator]]']) !== 'Object') {

@@ -19,0 +21,0 @@ throw new $TypeError('Assertion failed: iteratorRecord.[[Iterator]] must be an Object'); // step 1

'use strict';
var $TypeError = require('es-errors/type');
var Get = require('es-abstract/2023/Get');
var IteratorComplete = require('es-abstract/2023/IteratorComplete');
var IteratorNext = require('es-abstract/2023/IteratorNext');
var Type = require('es-abstract/2023/Type');
var assertRecord = require('es-abstract/helpers/assertRecord');
var isIteratorRecord = require('es-abstract/helpers/records/iterator-record');

@@ -13,3 +14,5 @@ // https://262.ecma-international.org/15.0/#sec-iteratorstepvalue

module.exports = function IteratorStepValue(iteratorRecord) {
assertRecord(Type, 'Iterator Record', 'iteratorRecord', iteratorRecord);
if (!isIteratorRecord(iteratorRecord)) {
throw new $TypeError('Assertion failed: `iteratorRecord` must be an Iterator Record'); // step 1
}
/* eslint no-param-reassign: 0 */

@@ -16,0 +19,0 @@

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

## [v1.0.17](https://github.com/es-shims/iterator-helpers/compare/v1.0.16...v1.0.17) - 2024-02-13
### Fixed
- [Fix] avoid use of internal `assertRecord` helper from `es-abstract` [`#5`](https://github.com/es-shims/iterator-helpers/issues/5)
### Commits
- [Deps] update `call-bind`, `es-abstract`, `has-property-descriptors` [`e563ee7`](https://github.com/es-shims/iterator-helpers/commit/e563ee7230897c41f7f3623a11fc0ecc6862ee1c)
## [v1.0.16](https://github.com/es-shims/iterator-helpers/compare/v1.0.15...v1.0.16) - 2024-02-09

@@ -10,0 +20,0 @@

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

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

"asynciterator.prototype": "^1.0.0",
"call-bind": "^1.0.6",
"call-bind": "^1.0.7",
"define-properties": "^1.2.1",
"es-abstract": "^1.22.3",
"es-abstract": "^1.22.4",
"es-errors": "^1.3.0",

@@ -144,3 +144,3 @@ "es-set-tostringtag": "^2.0.2",

"globalthis": "^1.0.3",
"has-property-descriptors": "^1.0.1",
"has-property-descriptors": "^1.0.2",
"has-proto": "^1.0.1",

@@ -147,0 +147,0 @@ "has-symbols": "^1.0.3",

SocketSocket SOC 2 Logo

Product

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

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc