Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

method-tool

Package Overview
Dependencies
Maintainers
1
Versions
45
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

method-tool - npm Package Compare versions

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"
}
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc