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

@manojadams/session-store

Package Overview
Dependencies
Maintainers
1
Versions
16
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@manojadams/session-store - npm Package Compare versions

Comparing version 1.0.7 to 1.0.8

2

dist/index.js

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

module.exports=/*#__PURE__*/function(){function t(t){this.__sessionData=void 0,this._name=void 0,this._createdAt=void 0,this._updatedAt=void 0,this.isReady=void 0,this._name=t||this.constructor.name,this.__sessionData={},this._createdAt=new Date,this._updatedAt=new Date,this.isReady=!1}var s=t.prototype;return s.init=function(){var t=sessionStorage.getItem(this._name);t&&(this.__sessionData=JSON.parse(t))},s.getData=function(t){return this.__sessionData[t]},s.setData=function(t,s){this.__sessionData[t]=s,this._updatedAt=new Date},s.destroy=function(){var t=this.__sessionData._createdAt||this._createdAt.toISOString(),s=this._updatedAt.toISOString();this.__sessionData._createdAt=t,this.__sessionData._updatedAt=s,sessionStorage.setItem(this._name,JSON.stringify(this.__sessionData))},t}();
module.exports=/*#__PURE__*/function(){function t(t){this.__sessionData=void 0,this._name=void 0,this._createdAt=void 0,this._updatedAt=void 0,this.isReady=void 0,this._name=t||this.constructor.name,this.__sessionData={},this._createdAt=new Date,this._updatedAt=new Date,this.isReady=!1}var s=t.prototype;return s.init=function(){var t=sessionStorage.getItem(this._name);t&&(this.__sessionData=JSON.parse(t),this.isReady=!0)},s.getData=function(t){return this.__sessionData[t]},s.setData=function(t,s){this.__sessionData[t]=s,this._updatedAt=new Date},s.destroy=function(){var t=this.__sessionData._createdAt||this._createdAt.toISOString(),s=this._updatedAt.toISOString();this.__sessionData._createdAt=t,this.__sessionData._updatedAt=s,sessionStorage.setItem(this._name,JSON.stringify(this.__sessionData))},t}();
//# sourceMappingURL=index.js.map

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

var t=/*#__PURE__*/function(){function t(t){this.__sessionData=void 0,this._name=void 0,this._createdAt=void 0,this._updatedAt=void 0,this.isReady=void 0,this._name=t||this.constructor.name,this.__sessionData={},this._createdAt=new Date,this._updatedAt=new Date,this.isReady=!1}var s=t.prototype;return s.init=function(){var t=sessionStorage.getItem(this._name);t&&(this.__sessionData=JSON.parse(t))},s.getData=function(t){return this.__sessionData[t]},s.setData=function(t,s){this.__sessionData[t]=s,this._updatedAt=new Date},s.destroy=function(){var t=this.__sessionData._createdAt||this._createdAt.toISOString(),s=this._updatedAt.toISOString();this.__sessionData._createdAt=t,this.__sessionData._updatedAt=s,sessionStorage.setItem(this._name,JSON.stringify(this.__sessionData))},t}();export{t as default};
var t=/*#__PURE__*/function(){function t(t){this.__sessionData=void 0,this._name=void 0,this._createdAt=void 0,this._updatedAt=void 0,this.isReady=void 0,this._name=t||this.constructor.name,this.__sessionData={},this._createdAt=new Date,this._updatedAt=new Date,this.isReady=!1}var s=t.prototype;return s.init=function(){var t=sessionStorage.getItem(this._name);t&&(this.__sessionData=JSON.parse(t),this.isReady=!0)},s.getData=function(t){return this.__sessionData[t]},s.setData=function(t,s){this.__sessionData[t]=s,this._updatedAt=new Date},s.destroy=function(){var t=this.__sessionData._createdAt||this._createdAt.toISOString(),s=this._updatedAt.toISOString();this.__sessionData._createdAt=t,this.__sessionData._updatedAt=s,sessionStorage.setItem(this._name,JSON.stringify(this.__sessionData))},t}();export{t as default};
//# sourceMappingURL=index.modern.js.map
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define(e):(t||self).sessionStore=e()}(this,function(){/*#__PURE__*/
return function(){function t(t){this.__sessionData=void 0,this._name=void 0,this._createdAt=void 0,this._updatedAt=void 0,this.isReady=void 0,this._name=t||this.constructor.name,this.__sessionData={},this._createdAt=new Date,this._updatedAt=new Date,this.isReady=!1}var e=t.prototype;return e.init=function(){var t=sessionStorage.getItem(this._name);t&&(this.__sessionData=JSON.parse(t))},e.getData=function(t){return this.__sessionData[t]},e.setData=function(t,e){this.__sessionData[t]=e,this._updatedAt=new Date},e.destroy=function(){var t=this.__sessionData._createdAt||this._createdAt.toISOString(),e=this._updatedAt.toISOString();this.__sessionData._createdAt=t,this.__sessionData._updatedAt=e,sessionStorage.setItem(this._name,JSON.stringify(this.__sessionData))},t}()});
return function(){function t(t){this.__sessionData=void 0,this._name=void 0,this._createdAt=void 0,this._updatedAt=void 0,this.isReady=void 0,this._name=t||this.constructor.name,this.__sessionData={},this._createdAt=new Date,this._updatedAt=new Date,this.isReady=!1}var e=t.prototype;return e.init=function(){var t=sessionStorage.getItem(this._name);t&&(this.__sessionData=JSON.parse(t),this.isReady=!0)},e.getData=function(t){return this.__sessionData[t]},e.setData=function(t,e){this.__sessionData[t]=e,this._updatedAt=new Date},e.destroy=function(){var t=this.__sessionData._createdAt||this._createdAt.toISOString(),e=this._updatedAt.toISOString();this.__sessionData._createdAt=t,this.__sessionData._updatedAt=e,sessionStorage.setItem(this._name,JSON.stringify(this.__sessionData))},t}()});
//# sourceMappingURL=index.umd.js.map
{
"name": "@manojadams/session-store",
"version": "1.0.7",
"version": "1.0.8",
"description": "Simple state management with session storage",

@@ -5,0 +5,0 @@ "main": "./dist/index.js",

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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