Socket
Socket
Sign inDemoInstall

@analytics/localstorage-utils

Package Overview
Dependencies
2
Maintainers
1
Versions
12
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.1.9 to 0.1.10

8

CHANGELOG.md

@@ -6,2 +6,10 @@ # Change Log

## [0.1.10](https://github.com/DavidWells/analytics/tree/master/packages/analytics-util-localstorage/compare/@analytics/localstorage-utils@0.1.9...@analytics/localstorage-utils@0.1.10) (2023-05-27)
**Note:** Version bump only for package @analytics/localstorage-utils
## [0.1.9](https://github.com/DavidWells/analytics/tree/master/packages/analytics-util-localstorage/compare/@analytics/localstorage-utils@0.1.8...@analytics/localstorage-utils@0.1.9) (2023-05-27)

@@ -8,0 +16,0 @@

2

dist/browser/localstorage-utils.js

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

var utilLocalStorage=function(n){var e="undefined",t="object";"undefined"==typeof process||process;var r="undefined"!=typeof window;function o(n,e){return e.charAt(0)[n]()+e.slice(1)}"undefined"!=typeof Deno&&Deno,r&&"nodejs"===window.name||"undefined"!=typeof navigator&&(navigator.userAgent.includes("Node.js")||navigator.userAgent.includes("jsdom"));var u=o.bind(null,"toUpperCase"),i=o.bind(null,"toLowerCase");function l(n,e){void 0===e&&(e=!0);var t=function(n){return s(n)?u("null"):"object"==typeof n?function(n){return a(n.constructor)?n.constructor.name:null}(n):Object.prototype.toString.call(n).slice(8,-1)}(n);return e?i(t):t}function c(n,e){return typeof e===n}var a=c.bind(null,"function"),f=c.bind(null,"string");function s(n){return null===n}function d(n,e){if("object"!=typeof e||s(e))return!1;if(e instanceof n)return!0;var t=l(new n(""));if(function(n){return n instanceof Error||f(n.message)&&n.constructor&&function(n){return"number"===l(n)&&!isNaN(n)}(n.constructor.stackTraceLimit)}(e))for(;e;){if(l(e)===t)return!0;e=Object.getPrototypeOf(e)}return!1}function b(n,e){var t=n instanceof Element||n instanceof HTMLDocument;return t&&e?function(n,e){return void 0===e&&(e=""),n&&n.nodeName===e.toUpperCase()}(n,e):t}function v(n){var e=[].slice.call(arguments,1);return function(){return n.apply(void 0,[].slice.call(arguments).concat(e))}}c.bind(null,"undefined"),c.bind(null,"boolean"),c.bind(null,"symbol"),d.bind(null,TypeError),d.bind(null,SyntaxError),v(b,"form"),v(b,"button"),v(b,"input"),v(b,"select");var p="__global__",m=typeof self===t&&self.self===self&&self||typeof global===t&&global.global===global&&global||void 0;function g(n,e,t){var r;try{if(w(n)){var o=window[n];r=o[e].bind(o)}}catch(n){}return r||t}m[p]||(m[p]={});var y={};function w(n){if(typeof y[n]!==e)return y[n];try{var t=window[n];t.setItem(e,e),t.removeItem(e)}catch(e){return y[n]=!1}return y[n]=!0}var j="localStorage",I=w.bind(null,j),L=g(j,"getItem",function(n){return m[p][n]}),S=g(j,"setItem",function(n,e){return m[p][n]=e}),A=g(j,"removeItem",function(n){delete m[p][n]});return n.LOCAL_STORAGE=j,n.getItem=L,n.hasLocalStorage=I,n.removeItem=A,n.setItem=S,n}({});
var utilLocalStorage=function(n){var e="undefined",t="object";"undefined"==typeof process||process;var r="undefined"!=typeof document;function o(n,e){return e.charAt(0)[n]()+e.slice(1)}"undefined"!=typeof Deno&&Deno,r&&"nodejs"===window.name||"undefined"!=typeof navigator&&void 0!==navigator.userAgent&&(navigator.userAgent.includes("Node.js")||navigator.userAgent.includes("jsdom"));var u=o.bind(null,"toUpperCase"),i=o.bind(null,"toLowerCase");function l(n,e){void 0===e&&(e=!0);var t=function(n){return s(n)?u("null"):"object"==typeof n?function(n){return a(n.constructor)?n.constructor.name:null}(n):Object.prototype.toString.call(n).slice(8,-1)}(n);return e?i(t):t}function c(n,e){return typeof e===n}var a=c.bind(null,"function"),f=c.bind(null,"string");function s(n){return null===n}function d(n,e){if("object"!=typeof e||s(e))return!1;if(e instanceof n)return!0;var t=l(new n(""));if(function(n){return n instanceof Error||f(n.message)&&n.constructor&&function(n){return"number"===l(n)&&!isNaN(n)}(n.constructor.stackTraceLimit)}(e))for(;e;){if(l(e)===t)return!0;e=Object.getPrototypeOf(e)}return!1}function v(n,e){var t=n instanceof Element||n instanceof HTMLDocument;return t&&e?function(n,e){return void 0===e&&(e=""),n&&n.nodeName===e.toUpperCase()}(n,e):t}function b(n){var e=[].slice.call(arguments,1);return function(){return n.apply(void 0,[].slice.call(arguments).concat(e))}}c.bind(null,"undefined"),c.bind(null,"boolean"),c.bind(null,"symbol"),d.bind(null,TypeError),d.bind(null,SyntaxError),b(v,"form"),b(v,"button"),b(v,"input"),b(v,"select");var m="__global__",p=typeof self===t&&self.self===self&&self||typeof global===t&&global.global===global&&global||void 0;function g(n,e,t){var r;try{if(j(n)){var o=window[n];r=o[e].bind(o)}}catch(n){}return r||t}p[m]||(p[m]={});var y={};function j(n){if(typeof y[n]!==e)return y[n];try{var t=window[n];t.setItem(e,e),t.removeItem(e)}catch(e){return y[n]=!1}return y[n]=!0}var w="localStorage",I=j.bind(null,w),L=g(w,"getItem",function(n){return p[m][n]}),A=g(w,"setItem",function(n,e){return p[m][n]=e}),S=g(w,"removeItem",function(n){delete p[m][n]});return n.LOCAL_STORAGE=w,n.getItem=L,n.hasLocalStorage=I,n.removeItem=S,n.setItem=A,n}({});
//# sourceMappingURL=localstorage-utils.js.map

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

!function(n,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports):"function"==typeof define&&define.amd?define(["exports"],e):e((n||self).utilLocalStorage={})}(this,function(n){var e="undefined",t="object";"undefined"==typeof process||process;var o="undefined"!=typeof window;function r(n,e){return e.charAt(0)[n]()+e.slice(1)}"undefined"!=typeof Deno&&Deno,o&&"nodejs"===window.name||"undefined"!=typeof navigator&&(navigator.userAgent.includes("Node.js")||navigator.userAgent.includes("jsdom"));var i=r.bind(null,"toUpperCase"),u=r.bind(null,"toLowerCase");function l(n,e){void 0===e&&(e=!0);var t=function(n){return s(n)?i("null"):"object"==typeof n?function(n){return c(n.constructor)?n.constructor.name:null}(n):Object.prototype.toString.call(n).slice(8,-1)}(n);return e?u(t):t}function f(n,e){return typeof e===n}var c=f.bind(null,"function"),a=f.bind(null,"string");function s(n){return null===n}function d(n,e){if("object"!=typeof e||s(e))return!1;if(e instanceof n)return!0;var t=l(new n(""));if(function(n){return n instanceof Error||a(n.message)&&n.constructor&&function(n){return"number"===l(n)&&!isNaN(n)}(n.constructor.stackTraceLimit)}(e))for(;e;){if(l(e)===t)return!0;e=Object.getPrototypeOf(e)}return!1}function p(n,e){var t=n instanceof Element||n instanceof HTMLDocument;return t&&e?function(n,e){return void 0===e&&(e=""),n&&n.nodeName===e.toUpperCase()}(n,e):t}function b(n){var e=[].slice.call(arguments,1);return function(){return n.apply(void 0,[].slice.call(arguments).concat(e))}}f.bind(null,"undefined"),f.bind(null,"boolean"),f.bind(null,"symbol"),d.bind(null,TypeError),d.bind(null,SyntaxError),b(p,"form"),b(p,"button"),b(p,"input"),b(p,"select");var m="__global__",v=typeof self===t&&self.self===self&&self||typeof global===t&&global.global===global&&global||void 0;function g(n,e,t){var o;try{if(w(n)){var r=window[n];o=r[e].bind(r)}}catch(n){}return o||t}v[m]||(v[m]={});var y={};function w(n){if(typeof y[n]!==e)return y[n];try{var t=window[n];t.setItem(e,e),t.removeItem(e)}catch(e){return y[n]=!1}return y[n]=!0}var j="localStorage",I=w.bind(null,j),h=g(j,"getItem",function(n){return v[m][n]}),L=g(j,"setItem",function(n,e){return v[m][n]=e}),S=g(j,"removeItem",function(n){delete v[m][n]});n.LOCAL_STORAGE=j,n.getItem=h,n.hasLocalStorage=I,n.removeItem=S,n.setItem=L});
!function(n,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports):"function"==typeof define&&define.amd?define(["exports"],e):e((n||self).utilLocalStorage={})}(this,function(n){var e="undefined",t="object";"undefined"==typeof process||process;var o="undefined"!=typeof document;function r(n,e){return e.charAt(0)[n]()+e.slice(1)}"undefined"!=typeof Deno&&Deno,o&&"nodejs"===window.name||"undefined"!=typeof navigator&&void 0!==navigator.userAgent&&(navigator.userAgent.includes("Node.js")||navigator.userAgent.includes("jsdom"));var i=r.bind(null,"toUpperCase"),u=r.bind(null,"toLowerCase");function l(n,e){void 0===e&&(e=!0);var t=function(n){return s(n)?i("null"):"object"==typeof n?function(n){return f(n.constructor)?n.constructor.name:null}(n):Object.prototype.toString.call(n).slice(8,-1)}(n);return e?u(t):t}function c(n,e){return typeof e===n}var f=c.bind(null,"function"),a=c.bind(null,"string");function s(n){return null===n}function d(n,e){if("object"!=typeof e||s(e))return!1;if(e instanceof n)return!0;var t=l(new n(""));if(function(n){return n instanceof Error||a(n.message)&&n.constructor&&function(n){return"number"===l(n)&&!isNaN(n)}(n.constructor.stackTraceLimit)}(e))for(;e;){if(l(e)===t)return!0;e=Object.getPrototypeOf(e)}return!1}function p(n,e){var t=n instanceof Element||n instanceof HTMLDocument;return t&&e?function(n,e){return void 0===e&&(e=""),n&&n.nodeName===e.toUpperCase()}(n,e):t}function b(n){var e=[].slice.call(arguments,1);return function(){return n.apply(void 0,[].slice.call(arguments).concat(e))}}c.bind(null,"undefined"),c.bind(null,"boolean"),c.bind(null,"symbol"),d.bind(null,TypeError),d.bind(null,SyntaxError),b(p,"form"),b(p,"button"),b(p,"input"),b(p,"select");var v="__global__",m=typeof self===t&&self.self===self&&self||typeof global===t&&global.global===global&&global||void 0;function g(n,e,t){var o;try{if(j(n)){var r=window[n];o=r[e].bind(r)}}catch(n){}return o||t}m[v]||(m[v]={});var y={};function j(n){if(typeof y[n]!==e)return y[n];try{var t=window[n];t.setItem(e,e),t.removeItem(e)}catch(e){return y[n]=!1}return y[n]=!0}var w="localStorage",I=j.bind(null,w),h=g(w,"getItem",function(n){return m[v][n]}),L=g(w,"setItem",function(n,e){return m[v][n]=e}),A=g(w,"removeItem",function(n){delete m[v][n]});n.LOCAL_STORAGE=w,n.getItem=h,n.hasLocalStorage=I,n.removeItem=A,n.setItem=L});
//# sourceMappingURL=localstorage-utils.umd.js.map
{
"name": "@analytics/localstorage-utils",
"version": "0.1.9",
"version": "0.1.10",
"description": "Tiny LocalStorage utility library",

@@ -52,5 +52,5 @@ "author": "David Wells",

"dependencies": {
"@analytics/global-storage-utils": "^0.1.6"
"@analytics/global-storage-utils": "^0.1.7"
},
"gitHead": "587a2ec0e20db0b24151fd69626d0fa19ac22131"
"gitHead": "904e8bc88a9de0d9e55ecbe1e87ac2ee2a454e32"
}

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc