Comparing version 0.1.0 to 0.1.1
@@ -18,3 +18,8 @@ 'use strict'; | ||
$.normalizeSchema(fakeroot, from); | ||
$ref.refs[$.getDocumentURI(from.id)] = from; | ||
var base = $.getDocumentURI(from.id); | ||
if (!$ref.refs[base]) { | ||
$ref.refs[base] = from; | ||
} | ||
} | ||
@@ -25,3 +30,5 @@ | ||
} else { | ||
$ref.refs = refs || {}; | ||
for (var key in refs) { | ||
pushReference(refs[key]); | ||
} | ||
} | ||
@@ -28,0 +35,0 @@ |
{ | ||
"name": "deref", | ||
"version": "0.1.0", | ||
"version": "0.1.1", | ||
"description": "JSON-Schema $ref resolution", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
201
7842
6