is-generator-function
Advanced tools
Comparing version 1.0.9 to 1.0.10
@@ -8,2 +8,10 @@ # Changelog | ||
## [v1.0.10](https://github.com/inspect-js/is-generator-function/compare/v1.0.9...v1.0.10) - 2021-08-05 | ||
### Commits | ||
- [Dev Deps] update `eslint`, `auto-changelog`, `core-js`, `tape` [`63cd935`](https://github.com/inspect-js/is-generator-function/commit/63cd9353eead5ad5eb8cf581fc4129841641bb43) | ||
- [Fix] use `has-tostringtag` to behave correctly in the presence of symbol shams [`8c3fe76`](https://github.com/inspect-js/is-generator-function/commit/8c3fe76b546fbc5085381df65800e4fc67e25ede) | ||
- [Dev Deps] unpin `core-js` v3 [`ebf2885`](https://github.com/inspect-js/is-generator-function/commit/ebf2885bc202b59f37e074f28951639873c6f38e) | ||
## [v1.0.9](https://github.com/inspect-js/is-generator-function/compare/v1.0.8...v1.0.9) - 2021-05-05 | ||
@@ -10,0 +18,0 @@ |
@@ -6,3 +6,3 @@ 'use strict'; | ||
var isFnRegex = /^\s*(?:function)?\*/; | ||
var hasToStringTag = typeof Symbol === 'function' && typeof Symbol.toStringTag === 'symbol'; | ||
var hasToStringTag = require('has-tostringtag/shams')(); | ||
var getProto = Object.getPrototypeOf; | ||
@@ -9,0 +9,0 @@ var getGeneratorFunc = function () { // eslint-disable-line consistent-return |
{ | ||
"name": "is-generator-function", | ||
"version": "1.0.9", | ||
"version": "1.0.10", | ||
"description": "Determine if a function is a native generator function.", | ||
@@ -43,12 +43,15 @@ "main": "index.js", | ||
}, | ||
"dependencies": { | ||
"has-tostringtag": "^1.0.0" | ||
}, | ||
"devDependencies": { | ||
"@ljharb/eslint-config": "^17.6.0", | ||
"aud": "^1.1.5", | ||
"auto-changelog": "^2.2.1", | ||
"core-js": "^2.6.5 || ^3 <3.9", | ||
"eslint": "^7.25.0", | ||
"auto-changelog": "^2.3.0", | ||
"core-js": "^2.6.5 || ^3.16.0", | ||
"eslint": "^7.32.0", | ||
"make-generator-function": "^2.0.0", | ||
"nyc": "^10.3.2", | ||
"safe-publish-latest": "^1.1.4", | ||
"tape": "^5.2.2", | ||
"tape": "^5.3.0", | ||
"uglify-register": "^1.0.1" | ||
@@ -55,0 +58,0 @@ }, |
@@ -8,3 +8,3 @@ 'use strict'; | ||
var generatorFuncs = require('make-generator-function')(); | ||
var hasToStringTag = typeof Symbol === 'function' && typeof Symbol.toStringTag === 'symbol'; | ||
var hasToStringTag = require('has-tostringtag/shams')(); | ||
@@ -11,0 +11,0 @@ var forEach = function (arr, func) { |
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
Uses eval
Supply chain riskPackage uses dynamic code execution (e.g., eval()), which is a dangerous practice. This can prevent the code from running in certain environments and increases the risk that the code may contain exploits or malicious behavior.
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
31881
1
1
+ Addedhas-tostringtag@^1.0.0
+ Addedhas-symbols@1.0.3(transitive)
+ Addedhas-tostringtag@1.0.2(transitive)