js-combinatorics
Advanced tools
Comparing version 0.4.0 to 0.4.1
@@ -12,6 +12,13 @@ /* | ||
*/ | ||
(function(global) { | ||
(function (root, factory) { | ||
if (typeof define === 'function' && define.amd) { | ||
define([], factory); | ||
} else if (typeof exports === 'object') { | ||
module.exports = factory(); | ||
} else { | ||
root.Combinatorics = factory(); | ||
} | ||
}(this, function () { | ||
'use strict'; | ||
if (global.Combinatorics) return; | ||
var version = "0.4.0"; | ||
var version = "0.4.1"; | ||
/* combinatory arithmetics */ | ||
@@ -378,3 +385,4 @@ var P = function(m, n) { | ||
/* export */ | ||
addProperties(global.Combinatorics = Object.create(null), { | ||
var Combinatorics = Object.create(null); | ||
addProperties(Combinatorics, { | ||
C: C, | ||
@@ -392,2 +400,3 @@ P: P, | ||
}); | ||
})(this); | ||
return Combinatorics; | ||
})); |
{ | ||
"name": "js-combinatorics", | ||
"version": "0.4.0", | ||
"version": "0.4.1", | ||
"description": "Simple combinatorics like power set, combination, and permutation in JavaScript", | ||
@@ -5,0 +5,0 @@ "main": "combinatorics.js", |
[![build status](https://secure.travis-ci.org/dankogai/js-combinatorics.png)](http://travis-ci.org/dankogai/js-combinatorics) | ||
combinatorics.js | ||
=============== | ||
js-combinatorics | ||
================ | ||
@@ -17,3 +17,3 @@ Simple combinatorics like power set, combination, and permutation in JavaScript | ||
```` | ||
var Combinatorics = require('./combinatorics.js').Combinatorics; | ||
var Combinatorics = require('js-combinatorics'); | ||
```` | ||
@@ -20,0 +20,0 @@ |
@@ -9,3 +9,3 @@ | ||
assert = require("assert"); | ||
Combinatorics = require('../combinatorics.js').Combinatorics; | ||
Combinatorics = require('../.'); | ||
} | ||
@@ -12,0 +12,0 @@ var is_deeply = function (a, e, m) { |
@@ -8,3 +8,3 @@ /* | ||
assert = require("assert"); | ||
Combinatorics = require('../combinatorics.js').Combinatorics; | ||
Combinatorics = require('../.'); | ||
} | ||
@@ -11,0 +11,0 @@ var is_deeply = function (a, e, m) { |
@@ -8,3 +8,3 @@ /* | ||
assert = require("assert"); | ||
Combinatorics = require('../combinatorics.js').Combinatorics; | ||
Combinatorics = require('../.'); | ||
} | ||
@@ -11,0 +11,0 @@ var is_deeply = function (a, e, m) { |
@@ -8,3 +8,3 @@ /* | ||
assert = require("assert"); | ||
Combinatorics = require('../combinatorics.js').Combinatorics; | ||
Combinatorics = require('../.'); | ||
} | ||
@@ -11,0 +11,0 @@ var is_deeply = function (a, e, m) { |
@@ -8,3 +8,3 @@ /* | ||
assert = require("assert"); | ||
Combinatorics = require('../combinatorics.js').Combinatorics; | ||
Combinatorics = require('../.'); | ||
} | ||
@@ -11,0 +11,0 @@ var is_deeply = function (a, e, m) { |
@@ -9,3 +9,3 @@ | ||
assert = require("assert"); | ||
Combinatorics = require('../combinatorics.js').Combinatorics; | ||
Combinatorics = require('../.'); | ||
} | ||
@@ -12,0 +12,0 @@ var is_deeply = function (a, e, m) { |
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
34386
898