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

bant-compact

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

bant-compact - npm Package Compare versions

Comparing version 0.1.0 to 0.1.1

Readme.md

10

index.js
var toposort = require('toposort');
module.exports = function (tree) {
return sort(tree.map(traverse.bind(null))).map(function (name) {
var tree = sort(tree.map(traverse.bind(null))).map(function (name) {
return tree[find(tree, name, true)];
}).reduce(function (a, b, i) {
});
if (tree.length == 1) return tree;
tree = tree.reduce(function (a, b, i) {
var arr = [].concat(a);

@@ -13,2 +17,4 @@ if (distance(arr, b) !== 1)

return tree;
function traverse (branch) {

@@ -15,0 +21,0 @@ branch.locals = [].concat(branch.locals)

2

package.json
{
"name": "bant-compact",
"version": "0.1.0",
"version": "0.1.1",
"description": "",

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

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