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

js-combinatorics

Package Overview
Dependencies
Maintainers
1
Versions
44
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

js-combinatorics - npm Package Compare versions

Comparing version 1.5.0 to 1.5.1

2

combinatorics.d.ts

@@ -14,3 +14,3 @@ /**

*/
export declare const version = "1.5.0";
export declare const version = "1.5.1";
/**

@@ -17,0 +17,0 @@ * BigInt Workaround

@@ -14,3 +14,3 @@ /**

*/
export const version = '1.5.0';
export const version = '1.5.1';
const _BI = typeof BigInt == 'function' ? BigInt : Number;

@@ -308,6 +308,7 @@ /**

return undefined;
return this.comb(n).reduce((a, v) => {
const elem = this.seed[v];
return a.concat(Array.isArray(elem) ? [elem] : elem);
}, []);
var result = [];
for (let i of this.comb(n)) {
result.push(this.seed[i]);
}
return result;
}

@@ -314,0 +315,0 @@ }

@@ -17,3 +17,3 @@ "use strict";

*/
exports.version = '1.5.0';
exports.version = '1.5.1';
const _BI = typeof BigInt == 'function' ? BigInt : Number;

@@ -318,6 +318,7 @@ /**

return undefined;
return this.comb(n).reduce((a, v) => {
const elem = this.seed[v];
return a.concat(Array.isArray(elem) ? [elem] : elem);
}, []);
var result = [];
for (let i of this.comb(n)) {
result.push(this.seed[i]);
}
return result;
}

@@ -324,0 +325,0 @@ }

{
"name": "js-combinatorics",
"version": "1.5.0",
"version": "1.5.1",
"description": "Simple combinatorics like power set, combination, and permutation in JavaScript",

@@ -5,0 +5,0 @@ "main": "combinatorics.js",

[![ES2015](https://img.shields.io/badge/JavaScript-ES2015-blue.svg)](http://www.ecma-international.org/ecma-262/6.0/)
[![MIT LiCENSE](https://img.shields.io/badge/license-MIT-blue.svg)](LICENSE)
[![build status](https://secure.travis-ci.org/dankogai/js-combinatorics.png)](http://travis-ci.org/dankogai/js-combinatorics)
[![build status](https://travis-ci.com/dankogai/js-combinatorics.svg)](http://travis-ci.com/dankogai/js-combinatorics)

@@ -55,3 +55,3 @@ js-combinatorics

```javascript
import * as $C from 'https://cdn.jsdelivr.net/npm/js-combinatorics@1.5.0/combinatorics.min.js';
import * as $C from 'https://cdn.jsdelivr.net/npm/js-combinatorics@1.5.1/combinatorics.min.js';
```

@@ -58,0 +58,0 @@

@@ -26,3 +26,3 @@ (function (factory) {

*/
exports.version = '1.5.0';
exports.version = '1.5.1';
const _BI = typeof BigInt == 'function' ? BigInt : Number;

@@ -327,6 +327,7 @@ /**

return undefined;
return this.comb(n).reduce((a, v) => {
const elem = this.seed[v];
return a.concat(Array.isArray(elem) ? [elem] : elem);
}, []);
var result = [];
for (let i of this.comb(n)) {
result.push(this.seed[i]);
}
return result;
}

@@ -333,0 +334,0 @@ }

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