regexp.prototype.flags
Advanced tools
Comparing version 1.4.3 to 1.5.0
@@ -8,2 +8,15 @@ # Changelog | ||
## [v1.5.0](https://github.com/es-shims/RegExp.prototype.flags/compare/v1.4.3...v1.5.0) - 2023-04-18 | ||
### Commits | ||
- [meta] use `npmignore` to autogenerate an npmignore file [`f7438ad`](https://github.com/es-shims/RegExp.prototype.flags/commit/f7438ad3728128b99daaeb1d3133a40d906d3621) | ||
- [New] add `unicodeSets`/`v` flag [`f922170`](https://github.com/es-shims/RegExp.prototype.flags/commit/f92217039c9c86a61421ce69594e93a546721397) | ||
- [Dev Deps] update `@es-shims/api`, `@ljharb/eslint-config`, `aud`, `available-regexp-flags`, `object-inspect`, `tape` [`1203078`](https://github.com/es-shims/RegExp.prototype.flags/commit/12030785e6beb1f06c406a4731714012d93867e2) | ||
- [actions] update rebase action to use reusable workflow [`c562ea2`](https://github.com/es-shims/RegExp.prototype.flags/commit/c562ea20c27442ff30ce65091a313b5e49ae8515) | ||
- [Dev Deps] update `aud`, `object-inspect`, `tape` [`f3ae811`](https://github.com/es-shims/RegExp.prototype.flags/commit/f3ae81109dd08b200dce8bd52c183bc44662c3b4) | ||
- [Deps] update `define-properties`, `functions-have-names` [`2d0476e`](https://github.com/es-shims/RegExp.prototype.flags/commit/2d0476e5eba1e4a9b786f169f3be96c2f5a192b2) | ||
- [Tests] use `for-each` instead of `foreach` [`d9f30da`](https://github.com/es-shims/RegExp.prototype.flags/commit/d9f30dab65ff0185a8688c6e62dc1fe650879cc0) | ||
- [Deps] update `define-properties` [`81c1c20`](https://github.com/es-shims/RegExp.prototype.flags/commit/81c1c2012070c1f4480a9ab55bc0cff206152603) | ||
## [v1.4.3](https://github.com/es-shims/RegExp.prototype.flags/compare/v1.4.2...v1.4.3) - 2022-04-14 | ||
@@ -10,0 +23,0 @@ |
@@ -31,2 +31,5 @@ 'use strict'; | ||
} | ||
if (this.unicodeSets) { | ||
result += 'v'; | ||
} | ||
if (this.sticky) { | ||
@@ -33,0 +36,0 @@ result += 'y'; |
{ | ||
"name": "regexp.prototype.flags", | ||
"version": "1.4.3", | ||
"version": "1.5.0", | ||
"author": "Jordan Harband <ljharb@gmail.com>", | ||
@@ -12,2 +12,3 @@ "funding": { | ||
"scripts": { | ||
"prepack": "npmignore --auto --commentLines=autogenerated", | ||
"prepublish": "not-in-publish || npm run prepublishOnly", | ||
@@ -44,21 +45,23 @@ "prepublishOnly": "safe-publish-latest", | ||
"call-bind": "^1.0.2", | ||
"define-properties": "^1.1.3", | ||
"functions-have-names": "^1.2.2" | ||
"define-properties": "^1.2.0", | ||
"functions-have-names": "^1.2.3" | ||
}, | ||
"devDependencies": { | ||
"@es-shims/api": "^2.2.3", | ||
"@ljharb/eslint-config": "^21.0.0", | ||
"aud": "^2.0.0", | ||
"@es-shims/api": "^2.3.1", | ||
"@ljharb/eslint-config": "^21.0.1", | ||
"aud": "^2.0.2", | ||
"auto-changelog": "^2.4.0", | ||
"available-regexp-flags": "^1.0.0", | ||
"available-regexp-flags": "^1.0.1", | ||
"covert": "^1.1.1", | ||
"eclint": "^2.8.1", | ||
"eslint": "=8.8.0", | ||
"foreach": "^2.0.5", | ||
"for-each": "^0.3.3", | ||
"has": "^1.0.3", | ||
"has-strict-mode": "^1.0.1", | ||
"in-publish": "^2.0.1", | ||
"npmignore": "^0.3.0", | ||
"nyc": "^10.3.2", | ||
"object-inspect": "^1.12.0", | ||
"object-inspect": "^1.12.3", | ||
"safe-publish-latest": "^2.0.0", | ||
"tape": "^5.5.3" | ||
"tape": "^5.6.3" | ||
}, | ||
@@ -93,3 +96,8 @@ "testling": { | ||
"hideCredit": true | ||
}, | ||
"publishConfig": { | ||
"ignore": [ | ||
".github/workflows" | ||
] | ||
} | ||
} |
@@ -7,3 +7,3 @@ 'use strict'; | ||
var forEach = require('foreach'); | ||
var forEach = require('for-each'); | ||
var availableFlags = require('available-regexp-flags'); | ||
@@ -52,6 +52,6 @@ var regexProperties = require('available-regexp-flags/properties'); | ||
var randomFlags = availableFlags.slice().sort(function () { return Math.random() > 0.5 ? 1 : -1; }).join(''); | ||
var randomFlags = availableFlags.slice().sort(function () { return Math.random() > 0.5 ? 1 : -1; }).join('').replace('v', ''); | ||
st.equal( | ||
flags(getRegexLiteral('/a/' + randomFlags)), | ||
sortedFlags, | ||
sortedFlags.replace('v', ''), | ||
'random: flags(/a/' + randomFlags + ') === ' + inspect(sortedFlags) | ||
@@ -81,5 +81,7 @@ ); | ||
forEach(availableFlags, function (flag) { | ||
obj[regexProperties[flag]] = true; | ||
if (flag !== 'v') { | ||
obj[regexProperties[flag]] = true; | ||
} | ||
}); | ||
st.equal(flags(obj), sortedFlags, 'an object with every available flag: ' + sortedFlags); | ||
st.equal(flags(obj), sortedFlags.replace('v', ''), 'an object with every available flag: ' + sortedFlags); | ||
@@ -86,0 +88,0 @@ st.end(); |
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
38482
299
17
Updateddefine-properties@^1.2.0
Updatedfunctions-have-names@^1.2.3