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

cnd

Package Overview
Dependencies
Maintainers
1
Versions
62
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cnd - npm Package Compare versions

Comparing version 1.0.2 to 1.0.3

lib/BLOOM.js

9

lib/BITSNPIECES.js

@@ -31,6 +31,9 @@ // Generated by CoffeeScript 1.9.1

this.format_number = function(n) {
this.format_number = function(n, grouper) {
var f, h;
if (grouper == null) {
grouper = "'";
}
/* A simple number formatter. */
var f, h;
n = n.toString();

@@ -42,3 +45,3 @@ f = function(n) {

while (re.test(n)) {
n = n.replace(re, "$1" + "'" + "$2");
n = n.replace(re, "$1" + grouper + "$2");
}

@@ -45,0 +48,0 @@ return n;

@@ -13,2 +13,4 @@ // Generated by CoffeeScript 1.9.1

this.BLOOM = require('./BLOOM');
this.columnify = require('columnify');

@@ -15,0 +17,0 @@

@@ -102,2 +102,14 @@ // Generated by CoffeeScript 1.9.1

this.get_precedences = function(me) {
var R, delta, i, len, name, name_idx, nodes, ref;
nodes = (ref = me['%nodes']) != null ? ref : this.sort(me);
delta = nodes.length - 1;
R = {};
for (name_idx = i = 0, len = nodes.length; i < len; name_idx = ++i) {
name = nodes[name_idx];
R[name] = delta - name_idx;
}
return R;
};
this.precedence_of = function(me, name) {

@@ -104,0 +116,0 @@ var R, nodes, ref;

{
"name": "cnd",
"version": "1.0.2",
"version": "1.0.3",
"description": "a grab-bag NodeJS package mainly for functionalities that used to live in coffeenode-trm, coffeenode-bitsnpieces, and coffeenode-types",

@@ -26,2 +26,3 @@ "main": "lib/main.js",

"dependencies": {
"bloem": "^0.2.4",
"columnify": "^1.4.1",

@@ -28,0 +29,0 @@ "equals": "^1.0.0",

@@ -5,2 +5,3 @@

- [CND TSort](#cnd-tsort)
- [TSort API](#tsort-api)
- [Some TDOP Links](#some-tdop-links)

@@ -247,4 +248,16 @@

### TSort API
* `@new_graph = ( settings ) ->`
* `@link = ( me, f, r, g ) ->`
* `@link_down = ( me, precedence, consequence ) ->`
* `@link_up = ( me, consequence, precedence ) -> @link_down me, precedence, consequence`
* `@register = ( me, names... ) ->`
* `@sort = ( me ) ->`
* `@get_precedences = ( me ) ->`
* `@precedence_of = ( me, name ) ->`
### Some TDOP Links

@@ -251,0 +264,0 @@

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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