Comparing version 1.1.0 to 1.2.0
@@ -196,3 +196,3 @@ 'use strict'; | ||
var inside = {}; | ||
var depth = 0; | ||
var depth = 1; | ||
var rec = function rec(lid) { | ||
@@ -199,0 +199,0 @@ if (maxDepth && depth > maxDepth || inside[lid]) { |
{ | ||
"name": "jseg", | ||
"version": "1.1.0", | ||
"version": "1.2.0", | ||
"description": "JavaScript Entity Graph: A super simple, in-memory, JS graph database.", | ||
@@ -5,0 +5,0 @@ "repository": { |
@@ -160,3 +160,3 @@ let baseSchema = { | ||
let inside = {}; | ||
let depth = 0; | ||
let depth = 1; | ||
let rec = (lid) => { | ||
@@ -163,0 +163,0 @@ if ((maxDepth && depth > maxDepth) || inside[lid]) { |
@@ -621,2 +621,9 @@ import * as assert from 'assert'; | ||
lid: 'b', | ||
}, | ||
}, {maxDepth: 1}); | ||
check('a', { | ||
lid: 'a', | ||
next: { | ||
lid: 'b', | ||
next: { | ||
@@ -629,3 +636,3 @@ lid: 'c', | ||
}, | ||
}, {maxDepth: 1}); | ||
}, {maxDepth: 2}); | ||
@@ -649,2 +656,2 @@ check('a', { | ||
}, | ||
}, {maxDepth: 2}); | ||
}, {maxDepth: 3}); |
31431
1153