Socket
Socket
Sign inDemoInstall

@hapi/topo

Package Overview
Dependencies
1
Maintainers
7
Versions
13
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 6.0.1 to 6.0.2

16

lib/index.js
'use strict';
const Assert = require('@hapi/hoek/assert');
const { assert } = require('@hapi/hoek');

@@ -28,6 +28,6 @@

Assert(!before.includes(group), `Item cannot come before itself: ${group}`);
Assert(!before.includes('?'), 'Item cannot come before unassociated items');
Assert(!after.includes(group), `Item cannot come after itself: ${group}`);
Assert(!after.includes('?'), 'Item cannot come after unassociated items');
assert(!before.includes(group), `Item cannot come before itself: ${group}`);
assert(!before.includes('?'), 'Item cannot come before unassociated items');
assert(!after.includes(group), `Item cannot come after itself: ${group}`);
assert(!after.includes('?'), 'Item cannot come after unassociated items');

@@ -55,3 +55,3 @@ if (!Array.isArray(nodes)) {

const valid = this._sort();
Assert(valid, 'item', group !== '?' ? `added into group ${group}` : '', 'created a dependencies error');
assert(valid, 'item', group !== '?' ? `added into group ${group}` : '', 'created a dependencies error');
}

@@ -84,3 +84,3 @@

const valid = this._sort();
Assert(valid, 'merge created a dependencies error');
assert(valid, 'merge created a dependencies error');

@@ -93,3 +93,3 @@ return this.nodes;

const valid = this._sort();
Assert(valid, 'sort created a dependencies error');
assert(valid, 'sort created a dependencies error');

@@ -96,0 +96,0 @@ return this.nodes;

{
"name": "@hapi/topo",
"description": "Topological sorting with grouping support",
"version": "6.0.1",
"version": "6.0.2",
"repository": "git://github.com/hapijs/topo",

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc