Comparing version 2.0.2 to 2.0.3
{ | ||
"name": "jseg", | ||
"version": "2.0.2", | ||
"version": "2.0.3", | ||
"description": "JavaScript Entity Graph: A super simple, in-memory, JS graph database.", | ||
@@ -5,0 +5,0 @@ "repository": { |
@@ -106,3 +106,4 @@ let {getOwn, eachPair, objEmpty, StringMap} = require('./util'); | ||
if (!field) { | ||
this._log('unknown field', fieldName, 'on', obj.type); | ||
this._log('unknown field', JSON.stringify(fieldName), | ||
'on', obj.type._name); | ||
return; | ||
@@ -216,2 +217,3 @@ } | ||
} | ||
obj[name] = other; | ||
let set = other[reverse.name]; | ||
@@ -218,0 +220,0 @@ if (!set) { |
@@ -125,1 +125,19 @@ let assert = require('assert'); | ||
tg.g.put({ | ||
type: t.Node, | ||
lid: 'x', | ||
parent: {lid: 'root'}, | ||
}); | ||
tg.check('x', { | ||
type: t.Node, | ||
lid: 'x', | ||
parent: { | ||
type: t.Node, | ||
lid: 'root', | ||
children: [ | ||
{lid: 'x'}, | ||
], | ||
}, | ||
}); |
@@ -25,3 +25,3 @@ let assert = require('assert'); | ||
tg.expectMessage('unknown field mystery', () => { | ||
tg.expectMessage('unknown field "mystery"', () => { | ||
tg.g.put({ | ||
@@ -28,0 +28,0 @@ type: t.Thing, |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
49382
1716