Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

tape

Package Overview
Dependencies
Maintainers
4
Versions
158
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

tape - npm Package Compare versions

Comparing version 5.5.2 to 5.5.3

10

lib/test.js

@@ -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",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc