regexp.prototype.flags
Advanced tools
Comparing version 1.1.0 to 1.1.1
@@ -0,1 +1,5 @@ | ||
1.1.1 / 2015-08-16 | ||
================= | ||
* [Fix] cover the case where there is no descriptor on the prototype | ||
1.1.0 / 2015-08-16 | ||
@@ -2,0 +6,0 @@ ================= |
{ | ||
"name": "regexp.prototype.flags", | ||
"version": "1.1.0", | ||
"version": "1.1.1", | ||
"author": "Jordan Harband", | ||
@@ -25,8 +25,11 @@ "description": "ES6 spec-compliant RegExp.prototype.flags shim.", | ||
"regex", | ||
"regular expression", | ||
"ES6", | ||
"shim", | ||
"flag", | ||
"flags", | ||
"regexp", | ||
"RegExp#flags", | ||
"polyfill" | ||
"polyfill", | ||
"es-shim API" | ||
], | ||
@@ -33,0 +36,0 @@ "dependencies": { |
@@ -14,5 +14,8 @@ 'use strict'; | ||
if (/a/mig.flags === 'gim') { | ||
return gOPD(RegExp.prototype, 'flags').get; | ||
var descriptor = gOPD(RegExp.prototype, 'flags'); | ||
if (descriptor && typeof descriptor.get === 'function') { | ||
return descriptor.get; | ||
} | ||
} | ||
return implementation; | ||
}; |
@@ -55,2 +55,1 @@ RegExp.prototype.flags <sup>[![Version Badge][npm-version-svg]][package-url]</sup> | ||
[downloads-url]: http://npm-stat.com/charts.html?package=regexp.prototype.flags | ||
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
17110
269
1
55