New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

svelte-local-storage-store

Package Overview
Dependencies
Maintainers
1
Versions
24
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

svelte-local-storage-store - npm Package Compare versions

Comparing version 0.1.1 to 0.1.2

4

dist/index.js

@@ -79,3 +79,3 @@ (function (global, factory) {

const {subscribe, set} = store;
const json = process.browser ?? localStorage.getItem(key);
const json = typeof(localStorage) != 'undefined' ?? localStorage.getItem(key);

@@ -88,3 +88,3 @@ if (json) {

set(value) {
process.browser ?? localStorage.setItem(key, JSON.stringify(value));
typeof(localStorage) != 'undefined' ?? localStorage.setItem(key, JSON.stringify(value));
set(value);

@@ -91,0 +91,0 @@ },

{
"name": "svelte-local-storage-store",
"version": "0.1.1",
"version": "0.1.2",
"svelte": "src/index.js",

@@ -5,0 +5,0 @@ "module": "dist/index.mjs",

@@ -6,3 +6,3 @@ import {writable as internal, get} from 'svelte/store'

const {subscribe, set} = store
const json = process.browser ?? localStorage.getItem(key)
const json = typeof(localStorage) != 'undefined' ?? localStorage.getItem(key)

@@ -15,3 +15,3 @@ if (json) {

set(value) {
process.browser ?? localStorage.setItem(key, JSON.stringify(value))
typeof(localStorage) != 'undefined' ?? localStorage.setItem(key, JSON.stringify(value))
set(value)

@@ -18,0 +18,0 @@ },

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