Comparing version 0.2.5 to 0.2.6
@@ -5,4 +5,2 @@ 'use strict'; | ||
var cloneObj = require('./clone-obj'); | ||
function get(obj, path) { | ||
@@ -50,8 +48,3 @@ var hash = path.split('#')[1]; | ||
if (id !== target.id) { | ||
target = cloneObj(target); | ||
target.id = $.resolveURL(target.id, id); | ||
} | ||
return target; | ||
}; |
{ | ||
"name": "deref", | ||
"version": "0.2.5", | ||
"version": "0.2.6", | ||
"description": "JSON-Schema $ref resolution", | ||
@@ -8,3 +8,3 @@ "main": "lib/index.js", | ||
"type": "git", | ||
"url": "https://github.com/pateketrueke/deref" | ||
"url": "https://github.com/gextech/deref" | ||
}, | ||
@@ -11,0 +11,0 @@ "devDependencies": { |
@@ -140,2 +140,2 @@ Do you have $ref's ? | ||
[![Build Status](https://travis-ci.org/pateketrueke/deref.png?branch=master)](https://travis-ci.org/pateketrueke/deref) [![NPM version](https://badge.fury.io/js/deref.png)](http://badge.fury.io/js/deref) [![Coverage Status](https://coveralls.io/repos/pateketrueke/deref/badge.png?branch=master)](https://coveralls.io/r/pateketrueke/deref?branch=master) | ||
[![Build Status](https://travis-ci.org/gextech/deref.png?branch=master)](https://travis-ci.org/gextech/deref) [![NPM version](https://badge.fury.io/js/deref.png)](http://badge.fury.io/js/deref) [![Coverage Status](https://coveralls.io/repos/gextech/deref/badge.png?branch=master)](https://coveralls.io/r/gextech/deref?branch=master) |
10224
257