method-tool
Advanced tools
Comparing version 1.0.8 to 1.0.9
18
index.js
@@ -102,2 +102,4 @@ "use strict"; | ||
}()); | ||
var storage = new MyStorage(); | ||
exports.storage = storage; | ||
function Auth() { | ||
@@ -110,4 +112,10 @@ var date = ''; | ||
if (newDate > date) { | ||
var ajax = new AJAX(); | ||
return ajax.post(); | ||
var auth = storage.getStorage('a'); | ||
if (auth && auth['a'] == 'data') { | ||
return auth['type']; | ||
} | ||
else { | ||
var ajax = new AJAX(); | ||
return ajax.post(); | ||
} | ||
} | ||
@@ -135,2 +143,3 @@ else { | ||
if (data) { | ||
storage.setStorage({ a: 'data', type: data['data'] }, 'a', 'session'); | ||
return data['data']; | ||
@@ -140,2 +149,3 @@ } | ||
else { | ||
storage.setStorage({ a: 'data', type: true }, 'a', 'session'); | ||
return true; | ||
@@ -147,4 +157,2 @@ } | ||
var tool = new Tool(); | ||
exports.tool = tool; | ||
var storage = new MyStorage(); | ||
exports.storage = storage; | ||
exports.tool = tool; |
{ | ||
"name": "method-tool", | ||
"version": "1.0.8", | ||
"version": "1.0.9", | ||
"main": "index.js", | ||
"license": "MIT" | ||
} |
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
4223
152