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

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.1.0 to 3.1.1

test/array-private-scope-test.js

2

clues.js

@@ -28,3 +28,3 @@ (function(self) {

if (typeof logic === 'function')
if (typeof logic === 'function' || (logic && typeof logic.then === 'function'))
return clues({},logic,$global,caller,fullref)

@@ -31,0 +31,0 @@ .then(function(logic) {

{
"name": "clues",
"version": "3.1.0",
"version": "3.1.1",
"description": "Lightweight logic tree solver using promises.",

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

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

});
var $global = {res:res,req:req,input:req.body},
facts = (typeof(api) === 'function')
? clues({},api,$global,'reptiles')
: Object.create(api);
$global.root = facts;
// The api request is either determined by options.select, req.param.fn or by remaining url

@@ -64,4 +71,3 @@ var data = (options.select || (req.params.fn || req.url.slice(1).replace(/\//g,'.').replace(/\?.*/,'')).split(','))

ref = ref.replace(/\//g,'.');
var facts = typeof(api) === 'object' ? Object.create(api) : api;
return clues(facts,ref,{res:res,req:req,input:req.body,$root:facts},'__user__')
return clues(facts,ref,$global,'__user__')
.catch(stringifyError)

@@ -68,0 +74,0 @@ .then(function(d) {

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