Comparing version 0.2.7 to 0.2.8
@@ -52,13 +52,11 @@ 'use strict'; | ||
if (copy.$schema) { | ||
base = $.resolveURL(copy.$schema, base); | ||
} | ||
if (base && SCHEMA_URI.indexOf(base) === -1) { | ||
if (copy.$schema && SCHEMA_URI.indexOf(copy.$schema) === -1) { | ||
throw new Error('Unsupported schema version (v4 only)'); | ||
} | ||
expand(copy, $.resolveURL(base, copy.id || '#'), push); | ||
base = $.resolveURL(copy.$schema || SCHEMA_URI[0], base); | ||
expand(copy, $.resolveURL(copy.id || '#', base), push); | ||
return copy; | ||
}; |
{ | ||
"name": "deref", | ||
"version": "0.2.7", | ||
"version": "0.2.8", | ||
"description": "JSON-Schema $ref resolution", | ||
@@ -14,7 +14,10 @@ "main": "lib/index.js", | ||
"grunt": "^0.4.5", | ||
"grunt-parts": "^0.3.1", | ||
"grunt-parts": "^0.3.3", | ||
"jayschema": "^0.3.1", | ||
"tv4": "^1.1.9", | ||
"z-schema": "^3.3.1" | ||
"z-schema": "^3.4.3" | ||
}, | ||
"publishConfig": { | ||
"registry": "http://registry.npmjs.org" | ||
} | ||
} |
10841
270