Comparing version 0.1.1 to 0.1.2
@@ -42,4 +42,8 @@ 'use strict'; | ||
function(v, path, cb) { | ||
var vb; | ||
try { | ||
var vb = resolve(objB, path); | ||
vb = resolve(objB, path); | ||
if (vb === undefined) { | ||
throw true; | ||
} | ||
} catch(e) { | ||
@@ -46,0 +50,0 @@ return missing(path, cb); |
{ | ||
"name": "abyss", | ||
"description": "Deep and asynchronous.", | ||
"version": "0.1.1", | ||
"version": "0.1.2", | ||
"author": "Qix (http://github.com/Qix-)", | ||
@@ -6,0 +6,0 @@ "license": "MIT", |
15
test.js
@@ -192,2 +192,17 @@ 'use strict'; | ||
}); | ||
it('should ignore non-relevant transforms', function(done) { | ||
abyss.clone(obj, function(err, cloned) { | ||
if (err) return done(err); | ||
var transformation = function(v) { | ||
return v.split('').reverse().join(''); | ||
}; | ||
abyss.transform({g:{u:transformation}}, cloned, function(err) { | ||
if (err) return done(err); | ||
abyss.equals({g:{h:'Hello!'}}, cloned, function(equal) { | ||
equal.should.equal(true); | ||
done(); | ||
}); | ||
}); | ||
}); | ||
}); | ||
}); |
11586
345