@hapi/topo
Advanced tools
Comparing version 6.0.1 to 6.0.2
'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", |
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
0
10871