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

bbop-graph

Package Overview
Dependencies
Maintainers
1
Versions
19
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

bbop-graph - npm Package Compare versions

Comparing version 0.0.7 to 0.0.8

31

lib/graph.js

@@ -26,9 +26,3 @@ /**

/**
* Variable: default_predicate
*
* The predicate we'll use when none other is defined. You can
* probably safely ignore this if all of the edges in your graph are
* the same.
*/
// Common point for assigning the defaul predicate in here.
var default_predicate = 'points_at';

@@ -136,2 +130,11 @@

/**
* The predicate we'll use when none other is defined. You can
* probably safely ignore this if all of the edges in your graph are
* the same.
*
* @variable
*/
this.default_predicate = default_predicate;
// Either a string or a node.

@@ -154,3 +157,3 @@ if( ! subject ){

// Predicate default or incoming.
this._predicate_id = default_predicate;
this._predicate_id = this.default_predicate;
if( predicate ){

@@ -246,2 +249,11 @@ this._predicate_id = predicate;

/**
* The predicate we'll use when none other is defined. You can
* probably safely ignore this if all of the edges in your graph are
* the same.
*
* @variable
*/
this.default_predicate = default_predicate;
this._id = undefined;

@@ -470,3 +482,3 @@

if( ! pred ){ pred = default_predicate; }
if( ! pred ){ pred = this.default_predicate; }

@@ -987,3 +999,2 @@ var ret_edge = null;

default_predicate: default_predicate,
node: node,

@@ -990,0 +1001,0 @@ edge: edge,

{
"name": "bbop-graph",
"version": "0.0.7",
"version": "0.0.8",
"license": "BSD-3-Clause",

@@ -57,4 +57,5 @@ "description": "General purpose (mathematical) graph library in JavaScript.",

"scripts": {
"update-docs": "git checkout gh-pages && git pull && git merge master && gulp doc && git commit -a -m 'bump docs' && git push && git checkout master",
"test": "./node_modules/.bin/gulp test"
}
}

@@ -15,2 +15,2 @@ # bbop-graph

[index](https://berkeleybop.github.io/bbop-graph/docs/index.html)
[index](https://berkeleybop.github.io/bbop-graph/doc/index.html)

@@ -61,3 +61,3 @@ ////

assert.equal(model.default_predicate, e1.predicate_id(), 'is p');
assert.equal(e1.default_predicate, e1.predicate_id(), 'is p');
assert.equal('foo', e2.predicate_id(), 'is p 2');

@@ -102,3 +102,3 @@

dpred = model.default_predicate;
dpred = g.default_predicate;
});

@@ -105,0 +105,0 @@

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