Comparing version 1.0.2 to 1.0.3
@@ -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
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
175583
25
2004
267
5
+ Addedbloem@^0.2.4
+ Addedbitbuffer@0.1.3(transitive)
+ Addedbloem@0.2.4(transitive)
+ Addedfnv@0.1.3(transitive)