Comparing version 5.5.2 to 5.5.3
@@ -21,3 +21,3 @@ 'use strict'; | ||
var isProto = callBound('Object.prototype.isPrototypeOf'); | ||
var $test = callBound('RegExp.prototype.test'); | ||
var $exec = callBound('RegExp.prototype.exec'); | ||
var objectToString = callBound('Object.prototype.toString'); | ||
@@ -658,3 +658,3 @@ var $split = callBound('String.prototype.split'); | ||
} else if (isRegExp(expected)) { | ||
passed = $test(expected, caught.error); | ||
passed = $exec(expected, caught.error) !== null; | ||
expected = inspect(expected); | ||
@@ -670,3 +670,3 @@ } else if (expected && typeof expected === 'object') { // Handle validation objects. | ||
passed = every(keys, function (key) { | ||
if (typeof caught.error[key] === 'string' && isRegExp(expected[key]) && $test(expected[key], caught.error[key])) { | ||
if (typeof caught.error[key] === 'string' && isRegExp(expected[key]) && $exec(expected[key], caught.error[key]) !== null) { | ||
return true; | ||
@@ -731,3 +731,3 @@ } | ||
} else { | ||
var matches = $test(regexp, string); | ||
var matches = $exec(regexp, string) !== null; | ||
var message = defined( | ||
@@ -765,3 +765,3 @@ msg, | ||
} else { | ||
var matches = $test(regexp, string); | ||
var matches = $exec(regexp, string) !== null; | ||
var message = defined( | ||
@@ -768,0 +768,0 @@ msg, |
{ | ||
"name": "tape", | ||
"version": "5.5.2", | ||
"version": "5.5.3", | ||
"description": "tap-producing test harness for node and browsers", | ||
@@ -40,3 +40,3 @@ "main": "index.js", | ||
"is-regex": "^1.1.4", | ||
"minimist": "^1.2.5", | ||
"minimist": "^1.2.6", | ||
"object-inspect": "^1.12.0", | ||
@@ -62,2 +62,3 @@ "object-is": "^1.1.5", | ||
"js-yaml": "^3.14.0", | ||
"npm-run-posix-or-windows": "^2.0.2", | ||
"safe-publish-latest": "^2.0.0", | ||
@@ -70,3 +71,6 @@ "tap": "^8.0.1", | ||
"prepublish": "!(type not-in-publish) || not-in-publish || npm run prepublishOnly", | ||
"prelint": "eclint check $(git ls-files 2>/dev/null | xargs find 2> /dev/null | grep -vE 'node_modules|\\.git' || echo '*.md *.js test/*.js')", | ||
"prelint:files": "git ls-files 2>/dev/null | xargs find 2> /dev/null | grep -vE 'node_modules|\\.git' || echo '*.md *.js test/*.js'", | ||
"eclint": "FILES=\"$(npm run --silent prelint:files)\" eclint check \"${FILES:=package.json}\"", | ||
"eclint:windows": "eclint check *.js", | ||
"prelint": "npm-run-posix-or-windows eclint", | ||
"lint": "eslint --ext .js,.cjs,.mjs . bin/*", | ||
@@ -73,0 +77,0 @@ "pretest": "npm run lint", |
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
260431
14
Updatedminimist@^1.2.6