Comparing version 1.0.1 to 1.0.2
21
index.js
@@ -28,20 +28,9 @@ /* | ||
function guidGenerator () { | ||
function S4 (parts, prefix) { | ||
var str = ''; | ||
var i; | ||
parts = parts || 8; | ||
prefix = prefix || '-'; | ||
for (i = parts || 1; i > 0; i--) { | ||
str += prefix; | ||
str += parseInt (((Math.random () + 1) * 0x10000), 10) | ||
.toString (16) | ||
.substring (1); | ||
} | ||
return str; | ||
function s4 () { | ||
return Math.floor ((1 + Math.random ()) * 0x10000) | ||
.toString (16) | ||
.substring (1); | ||
} | ||
return (S4 (2) + S4 (4, '-') + S4 (2)); | ||
return s4 () + s4 () + '-' + s4 () + '-' + s4 () + '-' + s4 () + '-' + s4 () + s4 () + s4 (); | ||
} | ||
@@ -48,0 +37,0 @@ |
@@ -9,3 +9,3 @@ { | ||
"description": "CloudSight image recognition API (unofficial)", | ||
"version": "1.0.1", | ||
"version": "1.0.2", | ||
"repository": { | ||
@@ -23,3 +23,3 @@ "type": "git", | ||
"devDependencies": { | ||
"eslint": "1.x" | ||
"eslint": "2.x" | ||
}, | ||
@@ -36,2 +36,3 @@ "optionalDependencies": {}, | ||
"image recognition", | ||
"vision", | ||
"ocr", | ||
@@ -38,0 +39,0 @@ "api", |
@@ -11,3 +11,3 @@ cloudsight | ||
* [API documentation](http://cloudsightapi.com/docs) | ||
* [Development](https://github.com/fvdm/nodejs-cloudsight/wiki) | ||
* [Development](https://github.com/fvdm/nodejs-cloudsight/blob/develop/CONTRIBUTING.md) | ||
@@ -14,0 +14,0 @@ |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
30671
10
462