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

@nestia/e2e

Package Overview
Dependencies
Maintainers
1
Versions
54
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@nestia/e2e - npm Package Compare versions

Comparing version 0.1.4 to 0.1.5

1

lib/ArrayUtil.d.ts

@@ -15,2 +15,3 @@ /**

function flat<T>(matrix: T[][]): T[];
function subsets<T>(array: T[]): T[][];
}

@@ -216,3 +216,20 @@ "use strict";

ArrayUtil.flat = flat;
function subsets(array) {
var check = new Array(array.length).fill(false);
var output = [];
var dfs = function (depth) {
if (depth === check.length)
output.push(array.filter(function (_v, idx) { return check[idx]; }));
else {
check[depth] = true;
dfs(depth + 1);
check[depth] = false;
dfs(depth + 1);
}
};
dfs(0);
return output;
}
ArrayUtil.subsets = subsets;
})(ArrayUtil = exports.ArrayUtil || (exports.ArrayUtil = {}));
//# sourceMappingURL=ArrayUtil.js.map

2

package.json
{
"name": "@nestia/e2e",
"version": "0.1.4",
"version": "0.1.5",
"description": "E2E test utilify functions",

@@ -5,0 +5,0 @@ "main": "lib/index.js",

@@ -87,2 +87,21 @@ /**

}
export function subsets<T>(array: T[]): T[][] {
const check: boolean[] = new Array(array.length).fill(false);
const output: T[][] = [];
const dfs = (depth: number) => {
if (depth === check.length)
output.push(array.filter((_v, idx) => check[idx]));
else {
check[depth] = true;
dfs(depth + 1);
check[depth] = false;
dfs(depth + 1);
}
};
dfs(0);
return output;
}
}

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