diff --git a/lib/index.js b/lib/index.js index bc3a728..a0e795f 100644 --- a/lib/index.js +++ b/lib/index.js @@ -268,7 +268,7 @@ return module.exports = { for(var k in to_types){ if(from_types[i].type === to_types[k].type){ from = from_types[i]; - to = to_types[i]; + to = to_types[k]; break; } }