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

clues

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

clues - npm Package Compare versions

Comparing version 2.5.0-beta3 to 2.5.0-beta4

4

clues.js

@@ -48,3 +48,3 @@ // clues.js (c) 2009-2014 Ziggy.jonsson.nyc@gmail.com @license MIT

// If the reference contains dots we solve recursively
if (ref.indexOf('.') > -1) {
if (!self.options.ignoreDots && ref.indexOf('.') > -1) {
var keys = ref.split('.'), i=-1;

@@ -57,3 +57,3 @@

if (typeof d !== 'object') throw {ref: ref, fullref: fullref || ref, caller: caller, message: ref+' not defined', name: 'Undefined'};
if (!d.solve) d = clues(d);
if (!d.solve) d = clues(d,{},self.options);
return d.facts[keys.slice(i).join('.')] = d.solve(key,local,caller,fullref).then(next);

@@ -60,0 +60,0 @@ }(self);

{
"name": "clues",
"version": "2.5.0-beta3",
"version": "2.5.0-beta4",
"description": "Lightweight logic tree solver using promises.",

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

@@ -34,3 +34,3 @@ #### Breaking changes in version 2.0:

##### Nesting
Logic trees can contain clues objects that provide a separate fact/logic space for any sub-components. This allows for example person1 and person2 to have identical logic trees without sharing the same facts. Trees can be traversed using dot notation, either when solving by string or using the minification definition above. See `recursive-test.js` in the test directory for examples. (todo: more docs)
Logic trees can contain clues objects that provide a separate fact/logic space for any sub-components. This allows for example person1 and person2 to have identical logic trees without sharing the same facts. Trees can be traversed using dot notation, either when solving by string or using the minification definition above. See `recursive-test.js` in the test directory for examples. (todo: more docs). Nesting can be turned off by defining the `ignoreDots` option when the clues object is created.

@@ -46,3 +46,3 @@ ## API Reference

An optional fallback function can be defined in the options object. This function will be called whenever a reference can not be found in current fact/logic space and must return a promise.
An optional `fallback` function can be defined in the options object. This function will be called whenever a reference can not be found in current fact/logic space and must return a promise. To turn off nesting (see below) define the `ignoreDots` option as `true`.

@@ -49,0 +49,0 @@ ### `clues.logic = {}`

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