Skip to content

Commit

Permalink
fix object error
Browse files Browse the repository at this point in the history
  • Loading branch information
afc163 committed Mar 7, 2014
1 parent 721d421 commit 63abbdc
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
3 changes: 3 additions & 0 deletions lib/print.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,9 @@ exports.iciba = function(data) {
if (data.pos && data.pos.length) {
log();
data.pos.forEach(function(item, i) {
if (typeof data.pos[i] !== 'string') {
return;
}
log('- '.faint + (data.pos[i] + ' ' + data.acceptation[i]).green);
});
}
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "fanyi",
"version": "0.2.0",
"version": "0.2.1",
"description": "A translate tool in your command line",
"main": "index.js",
"repository": {
Expand All @@ -24,7 +24,7 @@
},
"readmeFilename": "README.md",
"dependencies": {
"request": "~2.33.0",
"request": "~2.34.0",
"xml2json": "~0.4.0",
"colorful": "~2.1.0",
"html-entities": "~1.0.10"
Expand Down

0 comments on commit 63abbdc

Please sign in to comment.