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

clues

Package Overview
Dependencies
Maintainers
2
Versions
158
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

clues - npm Package Compare versions

Comparing version 3.3.6 to 3.3.7

2

package.json
{
"name": "clues",
"version": "3.3.6",
"version": "3.3.7",
"description": "Lightweight logic tree solver using promises.",

@@ -5,0 +5,0 @@ "keywords": [

@@ -7,3 +7,3 @@ var clues = require('../clues'),

function stringify(obj,pretty) {
function stringify(obj,pretty,debug) {
var cache = [];

@@ -15,5 +15,5 @@

if (typeof value === 'function' || value.length && typeof value[value.length-1] === 'function')
return '[Function]';
return debug ? '[Function]' : undefined;
if (typeof value.then === 'function' || value.isFulfilled !== undefined)
return (!value.private) ? '[Promise]' : undefined;
return (!value.private && debug) ? '[Promise]' : undefined;

@@ -45,3 +45,3 @@ if (typeof value === 'object') {

err.message = 'Internal Error';
delete e.stack;
delete err.stack;
}

@@ -98,3 +98,3 @@ return err;

if (options.single) {
_res.send(d.error ? 500 : 200, stringify(d,pretty)+'\n');
_res.send(d.error ? 500 : 200, stringify(d,pretty,options.debug)+'\n');
_res.write = noop;

@@ -109,3 +109,3 @@ _res.end = noop;

txt[ref] = d;
txt = first+stringify(txt,pretty);
txt = first+stringify(txt,pretty,options.debug);
first = '';

@@ -112,0 +112,0 @@ _res.write(txt.slice(1,txt.length-1)+',\t\n');

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