From 33bb2487035d8f8f77cdb862b2ef55bf3bfe5889 Mon Sep 17 00:00:00 2001 From: meikidd Date: Mon, 21 Nov 2016 22:46:17 +0800 Subject: [PATCH] update package.json; build; --- build/index.js | 2 +- package.json | 7 +++++-- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/build/index.js b/build/index.js index 3dd0c27..d969da5 100644 --- a/build/index.js +++ b/build/index.js @@ -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]; diff --git a/package.json b/package.json index 0f05277..83425cb 100644 --- a/package.json +++ b/package.json @@ -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", @@ -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" + } }