bh-mobile-sdk
Advanced tools
Comparing version 0.3.13 to 0.3.14
{ | ||
"name": "bh-mobile-sdk", | ||
"version": "0.3.13", | ||
"version": "0.3.14", | ||
"description": "wisedu mobile web sdk", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
@@ -0,1 +1,9 @@ | ||
const S4 = () => { | ||
return (((1 + Math.random()) * 0x10000) | 0).toString(32); | ||
} | ||
const UUID = () => { | ||
return (S4() + S4() + S4() + S4() + S4() + S4() + S4() + S4()); | ||
} | ||
export let uploadToEMAP = (server, files, config = {}) => { | ||
@@ -8,3 +16,4 @@ console.log('mobile_sdk_uploadToEMAP',server,files,config) | ||
} else { | ||
scope = new Date().getTime() + "" + parseInt(Math.random() * 100).toString() | ||
scope = UUID() + '' + parseInt(Math.random() * 100).toString(); | ||
// new Date().getTime() + "" + parseInt(Math.random() * 100).toString() | ||
token = scope + 1 | ||
@@ -11,0 +20,0 @@ } |
Sorry, the diff of this file is too big to display
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
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
56566
442
1