regexp.prototype.flags
Advanced tools
Comparing version 1.5.0 to 1.5.1
@@ -8,2 +8,10 @@ # Changelog | ||
## [v1.5.1](https://github.com/es-shims/RegExp.prototype.flags/compare/v1.5.0...v1.5.1) - 2023-09-12 | ||
### Commits | ||
- [Refactor] use `set-function-name` [`1384147`](https://github.com/es-shims/RegExp.prototype.flags/commit/13841474baf5700de8e3f65fae3670ad1b233483) | ||
- [Dev Deps] update `@es-shims/api`, `@ljharb/eslint-config`, `aud`, `available-regexp-flags`, `tape` [`07bf9a2`](https://github.com/es-shims/RegExp.prototype.flags/commit/07bf9a2c354cc41379b01fe5c383233adaaccf0e) | ||
- [Dev Deps] add missing `npmignore` dep [`8ca9dfe`](https://github.com/es-shims/RegExp.prototype.flags/commit/8ca9dfe4da31ef74ee48a4dcf62692eebb8f8fdd) | ||
## [v1.5.0](https://github.com/es-shims/RegExp.prototype.flags/compare/v1.4.3...v1.5.0) - 2023-04-18 | ||
@@ -10,0 +18,0 @@ |
'use strict'; | ||
var functionsHaveConfigurableNames = require('functions-have-names').functionsHaveConfigurableNames(); | ||
var setFunctionName = require('set-function-name'); | ||
@@ -8,3 +8,3 @@ var $Object = Object; | ||
module.exports = function flags() { | ||
module.exports = setFunctionName(function flags() { | ||
if (this != null && this !== $Object(this)) { | ||
@@ -39,6 +39,3 @@ throw new $TypeError('RegExp.prototype.flags getter called on non-object'); | ||
return result; | ||
}; | ||
}, 'get flags', true); | ||
if (functionsHaveConfigurableNames && Object.defineProperty) { | ||
Object.defineProperty(module.exports, 'name', { value: 'get flags' }); | ||
} |
{ | ||
"name": "regexp.prototype.flags", | ||
"version": "1.5.0", | ||
"version": "1.5.1", | ||
"author": "Jordan Harband <ljharb@gmail.com>", | ||
@@ -45,10 +45,10 @@ "funding": { | ||
"define-properties": "^1.2.0", | ||
"functions-have-names": "^1.2.3" | ||
"set-function-name": "^2.0.0" | ||
}, | ||
"devDependencies": { | ||
"@es-shims/api": "^2.3.1", | ||
"@ljharb/eslint-config": "^21.0.1", | ||
"aud": "^2.0.2", | ||
"@es-shims/api": "^2.4.2", | ||
"@ljharb/eslint-config": "^21.1.0", | ||
"aud": "^2.0.3", | ||
"auto-changelog": "^2.4.0", | ||
"available-regexp-flags": "^1.0.1", | ||
"available-regexp-flags": "^1.0.2", | ||
"covert": "^1.1.1", | ||
@@ -58,2 +58,3 @@ "eclint": "^2.8.1", | ||
"for-each": "^0.3.3", | ||
"functions-have-names": "^1.2.3", | ||
"has": "^1.0.3", | ||
@@ -66,3 +67,3 @@ "has-strict-mode": "^1.0.1", | ||
"safe-publish-latest": "^2.0.0", | ||
"tape": "^5.6.3" | ||
"tape": "^5.6.6" | ||
}, | ||
@@ -69,0 +70,0 @@ "testling": { |
Sorry, the diff of this file is not supported yet
39023
18
296
+ Addedset-function-name@^2.0.0
+ Addedset-function-name@2.0.2(transitive)
- Removedfunctions-have-names@^1.2.3