Socket
Socket
Sign inDemoInstall

web-local-storage

Package Overview
Dependencies
1
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.1.8 to 0.1.9

3

dist/web-local-storage.d.ts

@@ -15,4 +15,5 @@ import Cookies from 'js-cookie';

}
export default function getStorage(useCookies?: boolean, useSessionStorage?: boolean): (Cookies.CookiesStatic<string> & {
declare const _default: (useCookies?: boolean, useSessionStorage?: boolean) => (Cookies.CookiesStatic<string> & {
noConflict?(): Cookies.CookiesStatic<string>;
}) | WebLocalStorage;
export default _default;

@@ -49,8 +49,7 @@ "use strict";

exports.WebLocalStorage = WebLocalStorage;
function getStorage(useCookies, useSessionStorage) {
exports.default = (function (useCookies, useSessionStorage) {
if (useCookies === void 0) { useCookies = false; }
if (useSessionStorage === void 0) { useSessionStorage = false; }
return useCookies ? js_cookie_1.default : new WebLocalStorage(useSessionStorage);
}
exports.default = getStorage;
});
//# sourceMappingURL=web-local-storage.js.map
{
"name": "web-local-storage",
"version": "0.1.8",
"version": "0.1.9",
"description": "Convenience class to work with localStorage. Implements the same interface as js-cookie.",

@@ -5,0 +5,0 @@ "main": "dist/web-local-storage.js",

@@ -40,4 +40,4 @@ import Cookies from 'js-cookie'

export default function getStorage(useCookies: boolean = false, useSessionStorage: boolean = false) {
export default (useCookies: boolean = false, useSessionStorage: boolean = false) => {
return useCookies ? Cookies : new WebLocalStorage(useSessionStorage);
}

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc