pure-uuid
Advanced tools
Comparing version 1.4.0 to 1.4.1
{ | ||
"name": "pure-uuid", | ||
"version": "1.4.0", | ||
"version": "1.4.1", | ||
"homepage": "http://github.com/rse/pure-uuid", | ||
@@ -5,0 +5,0 @@ "description": "Pure JavaScript Based Universally Unique Identifier (UUID)", |
@@ -37,3 +37,3 @@ /* | ||
options: { | ||
config: "eslint.json" | ||
configFile: "eslint.json" | ||
}, | ||
@@ -40,0 +40,0 @@ target: [ "uuid.js", "uuid.test.js" ], |
@@ -5,3 +5,3 @@ { | ||
"description": "Pure JavaScript Based Universally Unique Identifier (UUID)", | ||
"version": "1.4.0", | ||
"version": "1.4.1", | ||
"license": "MIT", | ||
@@ -28,8 +28,8 @@ "author": { | ||
"grunt-contrib-jshint": "~1.0.0", | ||
"grunt-contrib-uglify": "~1.0.1", | ||
"grunt-contrib-uglify": "~2.0.0", | ||
"grunt-contrib-clean": "~1.0.0", | ||
"grunt-eslint": "~18.1.0", | ||
"grunt-mocha-test": "~0.12.7", | ||
"grunt-eslint": "~19.0.0", | ||
"grunt-mocha-test": "~0.13.2", | ||
"chai": "~3.5.0", | ||
"mocha": "~2.4.5" | ||
"mocha": "~3.1.2" | ||
}, | ||
@@ -36,0 +36,0 @@ "dependencies" : { |
@@ -632,2 +632,4 @@ /*! | ||
UUID.prototype.parse = function (str, type) { | ||
if (typeof str !== "string") | ||
throw new Error("UUID: parse: invalid argument (type string expected)"); | ||
if (type === "z85") | ||
@@ -647,2 +649,5 @@ z85_decode(str, this); | ||
str = map[str]; | ||
else if (!str.match(/^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/)) | ||
throw new Error("UUID: parse: invalid string representation " + | ||
"(expected \"xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx\")"); | ||
hs2a(str, 0, 7, this, 0); | ||
@@ -649,0 +654,0 @@ hs2a(str, 9, 12, this, 4); |
55200
1115