Skip to content

Commit

Permalink
update package.json; build;
Browse files Browse the repository at this point in the history
  • Loading branch information
meikidd committed Nov 21, 2016
1 parent 4cc164a commit 33bb248
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion build/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ ISO6391.getCode = function (name) {
code = _ref6[0],
language = _ref6[1];

return language.name === name || language.nativeName === name;
return language.name.toLowerCase() === name.toLowerCase() || language.nativeName.toLowerCase() === name.toLowerCase();
}),
_Object$entries$find2 = (0, _slicedToArray3.default)(_Object$entries$find, 1),
code = _Object$entries$find2[0];
Expand Down
7 changes: 5 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"main": "build/index.js",
"scripts": {
"build": "babel src --out-dir build",
"test": "mocha --require babel-core/register --harmony_array_includes"
"test": "mocha --require babel-core/register"
},
"repository": {
"type": "git",
Expand Down Expand Up @@ -34,5 +34,8 @@
"babel-runtime": "^6.18.0",
"mocha": "^3.1.2"
},
"homepage": "https://github.com/meikidd/iso-639-1#readme"
"homepage": "https://github.com/meikidd/iso-639-1#readme",
"engines" : {
"node" : ">=6.0"
}
}

0 comments on commit 33bb248

Please sign in to comment.