Comparing version 3.3.7 to 3.3.8
{ | ||
"name": "clues", | ||
"version": "3.3.7", | ||
"version": "3.3.8", | ||
"description": "Lightweight logic tree solver using promises.", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
@@ -0,1 +1,6 @@ | ||
[![NPM Version][npm-image]][npm-url] | ||
[![NPM Downloads][downloads-image]][downloads-url] | ||
[![Test Coverage][circle-image]][circle-url] | ||
**clues.js** is a lean-mean-promisified-getter-machine that crunches through any javascript objects, including complex trees, functions, values and promises. Clues consists of a single getter function (just over 100 loc) that dynamically resolves dependency trees and memoizes resolutions (lets call them derived facts) along the way. | ||
@@ -592,1 +597,8 @@ | ||
The main reason why a `$root` is not set automatically by `clues` is that there is no real concept of a top-level object. You can run `clues` on any subsection of a tree without knowing anything about possible parents (which could be multiple) | ||
[npm-image]: https://img.shields.io/npm/v/clues.svg | ||
[npm-url]: https://npmjs.org/package/clues | ||
[circle-image]: https://circleci.com/gh/ZJONSSON/clues.png?style=shield | ||
[circle-url]: https://circleci.com/gh/ZJONSSON/clues/tree/master | ||
[downloads-image]: https://img.shields.io/npm/dm/clues.svg | ||
[downloads-url]: https://npmjs.org/package/clues |
@@ -41,5 +41,8 @@ var clues = require('../clues'), | ||
}); | ||
if (e.stack && !options.debug) { | ||
err.message = 'Internal Error'; | ||
delete err.stack; | ||
if (e.stack) { | ||
err.status = 500; | ||
if (!options.debug) { | ||
err.message = 'Internal Error'; | ||
delete err.stack; | ||
} | ||
} | ||
@@ -96,3 +99,3 @@ return err; | ||
if (options.single) { | ||
_res.send(d.error ? 500 : 200, stringify(d,pretty,options.debug)+'\n'); | ||
_res.send(d.error ? (d.status||400) : 200, stringify(d,pretty,options.debug)+'\n'); | ||
_res.write = noop; | ||
@@ -99,0 +102,0 @@ _res.end = noop; |
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
96997
1642
604