iterator.prototype
Advanced tools
Comparing version 1.1.0 to 1.1.1
@@ -8,2 +8,10 @@ # Changelog | ||
## [v1.1.1](https://github.com/ljharb/Iterator.prototype/compare/v1.1.0...v1.1.1) - 2023-08-30 | ||
### Commits | ||
- [Fix] stop mutating node 4+ Iterator.prototype with Symbol.toStringTag [`74e9560`](https://github.com/ljharb/Iterator.prototype/commit/74e9560c10fcdadb207fea82577946976b9a87da) | ||
- [Dev Deps] update `@ljharb/eslint-config`, `aud`, `tape` [`63fd269`](https://github.com/ljharb/Iterator.prototype/commit/63fd269da6a0a39f79bc48b887b7ec81b6e5e0a0) | ||
- [Deps] update `define-properties`, `get-intrinsic` [`ef73f0e`](https://github.com/ljharb/Iterator.prototype/commit/ef73f0e78223e7eb09a987bc0614a802585e376a) | ||
## [v1.1.0](https://github.com/ljharb/Iterator.prototype/compare/v1.0.1...v1.1.0) - 2022-12-09 | ||
@@ -10,0 +18,0 @@ |
@@ -6,3 +6,2 @@ 'use strict'; | ||
var hasSymbols = require('has-symbols'); | ||
var hasToStringTag = require('has-tostringtag'); | ||
var define = require('define-properties'); | ||
@@ -24,2 +23,3 @@ | ||
if (!(Symbol.iterator in result)) { | ||
// needed when result === iterProto, or, node 0.11.15 - 3 | ||
defined[Symbol.iterator] = function () { | ||
@@ -31,7 +31,2 @@ return this; | ||
if (hasToStringTag() && !(Symbol.toStringTag in result)) { | ||
defined[Symbol.toStringTag] = 'Iterator'; | ||
predicates[Symbol.toStringTag] = trueThunk; | ||
} | ||
define(result, defined, predicates); | ||
@@ -38,0 +33,0 @@ } |
{ | ||
"name": "iterator.prototype", | ||
"version": "1.1.0", | ||
"version": "1.1.1", | ||
"description": "`Iterator.prototype`, or a shared object to use.", | ||
@@ -40,11 +40,10 @@ "main": "index.js", | ||
"dependencies": { | ||
"define-properties": "^1.1.4", | ||
"get-intrinsic": "^1.1.3", | ||
"define-properties": "^1.2.0", | ||
"get-intrinsic": "^1.2.1", | ||
"has-symbols": "^1.0.3", | ||
"has-tostringtag": "^1.0.0", | ||
"reflect.getprototypeof": "^1.0.3" | ||
}, | ||
"devDependencies": { | ||
"@ljharb/eslint-config": "^21.0.0", | ||
"aud": "^2.0.1", | ||
"@ljharb/eslint-config": "^21.1.0", | ||
"aud": "^2.0.3", | ||
"auto-changelog": "^2.4.0", | ||
@@ -56,3 +55,3 @@ "eslint": "=8.8.0", | ||
"safe-publish-latest": "^2.0.0", | ||
"tape": "^5.6.1" | ||
"tape": "^5.6.6" | ||
}, | ||
@@ -59,0 +58,0 @@ "testling": { |
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
9550
4
61
- Removedhas-tostringtag@^1.0.0
Updateddefine-properties@^1.2.0
Updatedget-intrinsic@^1.2.1