natural-compare-lite
Advanced tools
Comparing version 1.3.1 to 1.4.0
13
index.js
@@ -5,4 +5,4 @@ | ||
/* | ||
* @version 1.3.1 | ||
* @date 2015-03-02 | ||
* @version 1.4.0 | ||
* @date 2015-10-26 | ||
* @stability 3 - Stable | ||
@@ -14,3 +14,3 @@ * @author Lauri Rooden (https://github.com/litejs/natural-compare-lite) | ||
String.naturalCompare = function(a, b) { | ||
var naturalCompare = function(a, b) { | ||
var i, codeA | ||
@@ -55,3 +55,6 @@ , codeB = 1 | ||
try { | ||
module.exports = naturalCompare; | ||
} catch (e) { | ||
String.naturalCompare = naturalCompare; | ||
} |
{ | ||
"name": "natural-compare-lite", | ||
"version": "1.3.1", | ||
"version": "1.4.0", | ||
"stability": 3, | ||
@@ -26,4 +26,3 @@ "author": "Lauri Rooden (https://github.com/litejs/natural-compare-lite)", | ||
"build": "node node_modules/buildman/index.js --all", | ||
"travis-test": "istanbul cover ./tests/run.js && (coveralls < coverage/lcov.info || exit 0)", | ||
"test": "node tests/run.js" | ||
"test": "node tests/index.js" | ||
}, | ||
@@ -30,0 +29,0 @@ "repository": "git://github.com/litejs/natural-compare-lite.git", |
@@ -11,4 +11,4 @@ | ||
@version 1.3.1 | ||
@date 2015-03-02 | ||
@version 1.4.0 | ||
@date 2015-10-26 | ||
@stability 3 - Stable | ||
@@ -15,0 +15,0 @@ |
46
5626