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

tape

Package Overview
Dependencies
Maintainers
1
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 0.3.0 to 0.3.1

test/circular-things.js

29

lib/render.js

@@ -73,4 +73,4 @@ var Stream = require('stream');

var ex = json.stringify(res.expected) || '';
var ac = json.stringify(res.actual) || '';
var ex = json.stringify(res.expected, getSerialize()) || '';
var ac = json.stringify(res.actual, getSerialize()) || '';

@@ -102,1 +102,26 @@ if (Math.max(ex.length, ac.length) > 65) {

}
function getSerialize() {
var seen = [];
return function (key, value) {
var ret = value;
if (typeof value === 'object' && value) {
var found = false
for (var i = 0; i < seen.length; i++) {
if (seen[i] === value) {
found = true
break;
}
}
if (found) {
ret = '[Circular]'
} else {
seen.push(value)
}
}
return ret
}
}

2

package.json
{
"name" : "tape",
"version" : "0.3.0",
"version" : "0.3.1",
"description" : "tap-producing test harness for node and browsers",

@@ -5,0 +5,0 @@ "main" : "index.js",

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