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

tape

Package Overview
Dependencies
Maintainers
3
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.7.1 to 5.7.2

6

lib/results.js

@@ -10,3 +10,3 @@ 'use strict';

var callBound = require('call-bind/callBound');
var has = require('has');
var hasOwn = require('hasown');
var $exec = callBound('RegExp.prototype.exec');

@@ -64,3 +64,3 @@ var $split = callBound('String.prototype.split');

if (has(res, 'expected') || has(res, 'actual')) {
if (hasOwn(res, 'expected') || hasOwn(res, 'actual')) {
var ex = inspect(res.expected, { depth: res.objectPrintDepth });

@@ -128,3 +128,3 @@ var ac = inspect(res.actual, { depth: res.objectPrintDepth });

};
if (has(extra, 'parent')) {
if (hasOwn(extra, 'parent')) {
row.parent = extra.parent;

@@ -131,0 +131,0 @@ }

@@ -8,3 +8,3 @@ 'use strict';

var EventEmitter = require('events').EventEmitter;
var has = require('has');
var hasOwn = require('hasown');
var isRegExp = require('is-regex');

@@ -471,6 +471,6 @@ var trim = require('string.prototype.trim');

};
if (has(opts, 'actual') || has(extra, 'actual')) {
if (hasOwn(opts, 'actual') || hasOwn(extra, 'actual')) {
res.actual = defined(extra.actual, opts.actual);
}
if (has(opts, 'expected') || has(extra, 'expected')) {
if (hasOwn(opts, 'expected') || hasOwn(extra, 'expected')) {
res.expected = defined(extra.expected, opts.expected);

@@ -802,3 +802,3 @@ }

caught = { error: err };
if (Object(err) === err && 'message' in err && (!isEnumerable(err, 'message') || !has(err, 'message'))) {
if (Object(err) === err && 'message' in err && (!isEnumerable(err, 'message') || !hasOwn(err, 'message'))) {
try {

@@ -805,0 +805,0 @@ var message = err.message;

{
"name": "tape",
"version": "5.7.1",
"version": "5.7.2",
"description": "tap-producing test harness for node and browsers",

@@ -31,3 +31,3 @@ "main": "index.js",

"array.prototype.every": "^1.1.5",
"call-bind": "^1.0.2",
"call-bind": "^1.0.5",
"deep-equal": "^2.2.2",

@@ -39,9 +39,9 @@ "defined": "^1.0.1",

"glob": "^7.2.3",
"has": "^1.0.3",
"has-dynamic-import": "^2.0.1",
"hasown": "^2.0.0",
"inherits": "^2.0.4",
"is-regex": "^1.1.4",
"minimist": "^1.2.8",
"mock-property": "^1.0.0",
"object-inspect": "^1.12.3",
"mock-property": "^1.0.2",
"object-inspect": "^1.13.1",
"object-is": "^1.1.5",

@@ -48,0 +48,0 @@ "object-keys": "^1.1.1",

@@ -9,3 +9,3 @@ 'use strict';

tap.test('object results', function (assert) {
var printer = through({ objectMode: true });
var printer = through(null, null, { objectMode: true });
var objects = [];

@@ -12,0 +12,0 @@

@@ -8,3 +8,3 @@ 'use strict';

tap.test('test.comment() in objectMode', function (assert) {
var printer = through({ objectMode: true });
var printer = through(null, null, { objectMode: true });
var objects = [];

@@ -11,0 +11,0 @@ printer.on('error', function (e) {

Sorry, the diff of this file is too big to display

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