es-iterator-helpers
Advanced tools
Comparing version 1.0.14 to 1.0.15
@@ -8,2 +8,10 @@ # Changelog | ||
## [v1.0.15](https://github.com/es-shims/iterator-helpers/compare/v1.0.14...v1.0.15) - 2023-09-13 | ||
### Commits | ||
- [New] add `Iterator.prototype` shim [`c4a6203`](https://github.com/es-shims/iterator-helpers/commit/c4a6203a0ac87bf0a33835e775c207ff1911225d) | ||
- [Tests] add passing tests for native generators [`57bae8c`](https://github.com/es-shims/iterator-helpers/commit/57bae8ccbeb27ed0e6c449f35cddbda6cf6757e8) | ||
- [Deps] update `define-properties`, `iterator.prototype`, `safe-array-concat` [`56ca087`](https://github.com/es-shims/iterator-helpers/commit/56ca087f924dbefee47f0a1cb3b8468de76cd234) | ||
## [v1.0.14](https://github.com/es-shims/iterator-helpers/compare/v1.0.13...v1.0.14) - 2023-08-26 | ||
@@ -10,0 +18,0 @@ |
[ | ||
"Iterator", | ||
"Iterator.from", | ||
"Iterator.prototype", | ||
"Iterator.prototype.constructor", | ||
@@ -5,0 +6,0 @@ "Iterator.prototype.drop", |
@@ -6,3 +6,3 @@ 'use strict'; | ||
var $IteratorPrototype = require('iterator.prototype'); | ||
var $IteratorPrototype = require('../Iterator.prototype/implementation'); | ||
@@ -9,0 +9,0 @@ var $Iterator = require('./implementation'); |
@@ -6,3 +6,3 @@ 'use strict'; | ||
var $IteratorPrototype = require('iterator.prototype'); | ||
var $IteratorPrototype = require('../Iterator.prototype/implementation'); | ||
@@ -9,0 +9,0 @@ module.exports = function shimIteratorPrototypeDrop() { |
@@ -6,3 +6,3 @@ 'use strict'; | ||
var $IteratorPrototype = require('iterator.prototype'); | ||
var $IteratorPrototype = require('../Iterator.prototype/implementation'); | ||
@@ -9,0 +9,0 @@ module.exports = function shimIteratorPrototypeEvery() { |
@@ -6,3 +6,3 @@ 'use strict'; | ||
var $IteratorPrototype = require('iterator.prototype'); | ||
var $IteratorPrototype = require('../Iterator.prototype/implementation'); | ||
@@ -9,0 +9,0 @@ module.exports = function shimIteratorPrototypeFilter() { |
@@ -6,3 +6,3 @@ 'use strict'; | ||
var $IteratorPrototype = require('iterator.prototype'); | ||
var $IteratorPrototype = require('../Iterator.prototype/implementation'); | ||
@@ -9,0 +9,0 @@ module.exports = function shimIteratorPrototypeFind() { |
@@ -6,3 +6,3 @@ 'use strict'; | ||
var $IteratorPrototype = require('iterator.prototype'); | ||
var $IteratorPrototype = require('../Iterator.prototype/implementation'); | ||
@@ -9,0 +9,0 @@ module.exports = function shimIteratorPrototypeFlatMap() { |
@@ -6,3 +6,3 @@ 'use strict'; | ||
var $IteratorPrototype = require('iterator.prototype'); | ||
var $IteratorPrototype = require('../Iterator.prototype/implementation'); | ||
@@ -9,0 +9,0 @@ module.exports = function shimIteratorPrototypeForEach() { |
@@ -6,3 +6,3 @@ 'use strict'; | ||
var $IteratorPrototype = require('iterator.prototype'); | ||
var $IteratorPrototype = require('../Iterator.prototype/implementation'); | ||
@@ -9,0 +9,0 @@ module.exports = function shimIteratorPrototypeMap() { |
@@ -6,3 +6,3 @@ 'use strict'; | ||
var $IteratorPrototype = require('iterator.prototype'); | ||
var $IteratorPrototype = require('../Iterator.prototype/implementation'); | ||
@@ -9,0 +9,0 @@ module.exports = function shimIteratorPrototypeReduce() { |
@@ -6,3 +6,3 @@ 'use strict'; | ||
var $IteratorPrototype = require('iterator.prototype'); | ||
var $IteratorPrototype = require('../Iterator.prototype/implementation'); | ||
@@ -9,0 +9,0 @@ module.exports = function shimIteratorPrototypeSome() { |
@@ -6,3 +6,3 @@ 'use strict'; | ||
var $IteratorPrototype = require('iterator.prototype'); | ||
var $IteratorPrototype = require('../Iterator.prototype/implementation'); | ||
@@ -9,0 +9,0 @@ module.exports = function shimIteratorPrototypeTake() { |
@@ -6,3 +6,3 @@ 'use strict'; | ||
var $IteratorPrototype = require('iterator.prototype'); | ||
var $IteratorPrototype = require('../Iterator.prototype/implementation'); | ||
@@ -9,0 +9,0 @@ module.exports = function shimIteratorPrototypeToArray() { |
@@ -5,3 +5,3 @@ 'use strict'; | ||
var hasProto = require('has-proto')(); | ||
var iterProto = require('iterator.prototype'); | ||
var iterProto = require('../Iterator.prototype/implementation'); | ||
var SLOT = require('internal-slot'); | ||
@@ -8,0 +8,0 @@ |
{ | ||
"name": "es-iterator-helpers", | ||
"version": "1.0.14", | ||
"version": "1.0.15", | ||
"description": "An ESnext spec-compliant iterator helpers shim/polyfill/replacement that works as far down as ES3.", | ||
@@ -15,2 +15,7 @@ "main": "index.json", | ||
"./Iterator/shim": "./Iterator/shim.js", | ||
"./Iterator.prototype": "./Iterator.prototype/index.js", | ||
"./Iterator.prototype/auto": "./Iterator.prototype/auto.js", | ||
"./Iterator.prototype/polyfill": "./Iterator.prototype/polyfill.js", | ||
"./Iterator.prototype/implementation": "./Iterator.prototype/implementation.js", | ||
"./Iterator.prototype/shim": "./Iterator.prototype/shim.js", | ||
"./Iterator.from": "./Iterator.from/index.js", | ||
@@ -132,3 +137,3 @@ "./Iterator.from/auto": "./Iterator.from/auto.js", | ||
"call-bind": "^1.0.2", | ||
"define-properties": "^1.2.0", | ||
"define-properties": "^1.2.1", | ||
"es-abstract": "^1.22.1", | ||
@@ -143,4 +148,4 @@ "es-set-tostringtag": "^2.0.1", | ||
"internal-slot": "^1.0.5", | ||
"iterator.prototype": "^1.1.0", | ||
"safe-array-concat": "^1.0.0" | ||
"iterator.prototype": "^1.1.2", | ||
"safe-array-concat": "^1.0.1" | ||
}, | ||
@@ -159,4 +164,6 @@ "devDependencies": { | ||
"has-strict-mode": "^1.0.1", | ||
"has-tostringtag": "^1.0.0", | ||
"in-publish": "^2.0.1", | ||
"iterate-iterator": "^1.0.2", | ||
"make-generator-function": "^2.0.0", | ||
"mock-property": "^1.0.0", | ||
@@ -163,0 +170,0 @@ "npmignore": "^0.3.0", |
@@ -21,2 +21,3 @@ # es-iterator-helpers <sup>[![Version Badge][npm-version-svg]][package-url]</sup> | ||
- [`Iterator` constructor](https://tc39.es/proposal-iterator-helpers/#sec-iterator-constructor) | ||
- [`Iterator.prototype`](https://tc39.es/proposal-iterator-helpers/#sec-iterator.prototype) | ||
- [`Iterator.from`](https://tc39.es/proposal-iterator-helpers/#sec-iterator.from) | ||
@@ -23,0 +24,0 @@ - [`Iterator.prototype.constructor`](https://tc39.es/proposal-iterator-helpers/#sec-iteratorprototype.constructor) |
@@ -5,2 +5,3 @@ 'use strict'; | ||
var shimIteratorFrom = require('./Iterator.from/shim'); | ||
var shimIteratorProto = require('./Iterator.prototype/shim'); | ||
var shimIteratorCtor = require('./Iterator.prototype.constructor/shim'); | ||
@@ -22,2 +23,3 @@ var shimIteratorDrop = require('./Iterator.prototype.drop/shim'); | ||
shimIteratorFrom(); | ||
shimIteratorProto(); | ||
shimIteratorCtor(); | ||
@@ -24,0 +26,0 @@ shimIteratorDrop(); |
@@ -13,2 +13,3 @@ 'use strict'; | ||
} catch (e) { | ||
console.error(e); | ||
test(shim + ': index', { todo: true }); | ||
@@ -15,0 +16,0 @@ } |
@@ -12,2 +12,3 @@ 'use strict'; | ||
var hasSymbols = require('has-symbols/shams')(); | ||
var generators = require('make-generator-function')(); | ||
@@ -106,2 +107,13 @@ var index = require('../Iterator.prototype.map'); | ||
st.test('generators', { skip: generators.length === 0 }, function (s2t) { | ||
forEach(generators, function (gen) { | ||
s2t.doesNotThrow( | ||
function () { map(gen(), function () {}); }, | ||
'generator function ' + debug(gen) + ' does not need to be from-wrapped first' | ||
); | ||
}); | ||
s2t.end(); | ||
}); | ||
st.end(); | ||
@@ -108,0 +120,0 @@ }); |
@@ -13,3 +13,3 @@ 'use strict'; | ||
var SLOT = require('internal-slot'); | ||
var iterProto = require('iterator.prototype'); | ||
var iterProto = require('../Iterator.prototype/implementation'); | ||
@@ -16,0 +16,0 @@ // https://tc39.es/proposal-iterator-helpers/#sec-wrapforvaliditeratorprototype-object |
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
154930
115
3661
89
21
Updateddefine-properties@^1.2.1
Updatediterator.prototype@^1.1.2
Updatedsafe-array-concat@^1.0.1