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

localstorage-ttl

Package Overview
Dependencies
Maintainers
0
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

localstorage-ttl - npm Package Compare versions

Comparing version 2.0.4 to 2.0.5

4

index.ts

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

type StoredData<T> = {
interface StoredData<T> {
value: T;
expires_at?: number;
};
}

@@ -6,0 +6,0 @@ function set<T>(variable: string, value: T, ttl_ms?: number): void {

{
"name": "localstorage-ttl",
"version": "2.0.4",
"version": "2.0.5",
"description": "TS module to save data to localstorage with time to live. Data will expire after set time.",

@@ -5,0 +5,0 @@ "main": "index.ts",

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