Socket
Socket
Sign inDemoInstall

@analytics/cookie-utils

Package Overview
Dependencies
2
Maintainers
1
Versions
14
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.2.11 to 0.2.12

8

CHANGELOG.md

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

## [0.2.12](https://github.com/DavidWells/analytics/tree/master/packages/analytics-util-cookie/compare/@analytics/cookie-utils@0.2.11...@analytics/cookie-utils@0.2.12) (2023-05-27)
**Note:** Version bump only for package @analytics/cookie-utils
## [0.2.11](https://github.com/DavidWells/analytics/tree/master/packages/analytics-util-cookie/compare/@analytics/cookie-utils@0.2.10...@analytics/cookie-utils@0.2.11) (2023-05-27)

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

2

dist/browser/cookie-utils.js

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

var utilCookies=function(n){var e="object";"undefined"==typeof process||process;var o="undefined"!=typeof window;function t(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 r=t.bind(null,"toUpperCase"),i=t.bind(null,"toLowerCase");function u(n,e){void 0===e&&(e=!0);var o=function(n){return a(n)?r("null"):"object"==typeof n?function(n){return l(n.constructor)?n.constructor.name:null}(n):Object.prototype.toString.call(n).slice(8,-1)}(n);return e?i(o):o}function c(n,e){return typeof e===n}var l=c.bind(null,"function"),f=c.bind(null,"string");function a(n){return null===n}function s(n,e){if("object"!=typeof e||a(e))return!1;if(e instanceof n)return!0;var o=u(new n(""));if(function(n){return n instanceof Error||f(n.message)&&n.constructor&&function(n){return"number"===u(n)&&!isNaN(n)}(n.constructor.stackTraceLimit)}(e))for(;e;){if(u(e)===o)return!0;e=Object.getPrototypeOf(e)}return!1}function d(n,e){var o=n instanceof Element||n instanceof HTMLDocument;return o&&e?function(n,e){return void 0===e&&(e=""),n&&n.nodeName===e.toUpperCase()}(n,e):o}function p(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"),s.bind(null,TypeError),s.bind(null,SyntaxError),p(d,"form"),p(d,"button"),p(d,"input"),p(d,"select");var b="__global__",v=typeof self===e&&self.self===self&&self||typeof global===e&&global.global===global&&global||void 0;function g(n){return v[b][n]}function m(n,e){return v[b][n]=e}v[b]||(v[b]={});var y="cookie",C=O(),k=h,w=h;function j(n){return C?h(n,"",-1):void delete v[b][n]}function O(){if(void 0!==C)return C;var n=y+y;try{h(n,n),C=-1!==document.cookie.indexOf(n),j(n)}catch(n){C=!1}return C}function h(n,e,o,t,r,i){if("undefined"!=typeof window){var u=arguments.length>1;return!1===C&&(u?m(n,e):g(n)),u?document.cookie=n+"="+encodeURIComponent(e)+(o?"; expires="+new Date(+new Date+1e3*o).toUTCString()+(t?"; path="+t:"")+(r?"; domain="+r:"")+(i?"; secure":""):""):decodeURIComponent((("; "+document.cookie).split("; "+n+"=")[1]||"").split(";")[0])}}return n.COOKIE=y,n.getCookie=k,n.hasCookies=O,n.removeCookie=j,n.setCookie=w,n}({});
var utilCookies=function(n){var e="object";"undefined"==typeof process||process;var o="undefined"!=typeof document;function t(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 r=t.bind(null,"toUpperCase"),i=t.bind(null,"toLowerCase");function u(n,e){void 0===e&&(e=!0);var o=function(n){return f(n)?r("null"):"object"==typeof n?function(n){return l(n.constructor)?n.constructor.name:null}(n):Object.prototype.toString.call(n).slice(8,-1)}(n);return e?i(o):o}function c(n,e){return typeof e===n}var l=c.bind(null,"function"),a=c.bind(null,"string");function f(n){return null===n}function s(n,e){if("object"!=typeof e||f(e))return!1;if(e instanceof n)return!0;var o=u(new n(""));if(function(n){return n instanceof Error||a(n.message)&&n.constructor&&function(n){return"number"===u(n)&&!isNaN(n)}(n.constructor.stackTraceLimit)}(e))for(;e;){if(u(e)===o)return!0;e=Object.getPrototypeOf(e)}return!1}function d(n,e){var o=n instanceof Element||n instanceof HTMLDocument;return o&&e?function(n,e){return void 0===e&&(e=""),n&&n.nodeName===e.toUpperCase()}(n,e):o}function p(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"),s.bind(null,TypeError),s.bind(null,SyntaxError),p(d,"form"),p(d,"button"),p(d,"input"),p(d,"select");var v="__global__",b=typeof self===e&&self.self===self&&self||typeof global===e&&global.global===global&&global||void 0;function g(n){return b[v][n]}function m(n,e){return b[v][n]=e}b[v]||(b[v]={});var y="cookie",C=O(),k=h,j=h;function w(n){return C?h(n,"",-1):void delete b[v][n]}function O(){if(void 0!==C)return C;var n=y+y;try{h(n,n),C=-1!==document.cookie.indexOf(n),w(n)}catch(n){C=!1}return C}function h(n,e,o,t,r,i){if("undefined"!=typeof window){var u=arguments.length>1;return!1===C&&(u?m(n,e):g(n)),u?document.cookie=n+"="+encodeURIComponent(e)+(o?"; expires="+new Date(+new Date+1e3*o).toUTCString()+(t?"; path="+t:"")+(r?"; domain="+r:"")+(i?"; secure":""):""):decodeURIComponent((("; "+document.cookie).split("; "+n+"=")[1]||"").split(";")[0])}}return n.COOKIE=y,n.getCookie=k,n.hasCookies=O,n.removeCookie=w,n.setCookie=j,n}({});
//# sourceMappingURL=cookie-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).utilCookies={})}(this,function(n){var e="object";"undefined"==typeof process||process;var o="undefined"!=typeof window;function t(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 r=t.bind(null,"toUpperCase"),i=t.bind(null,"toLowerCase");function u(n,e){void 0===e&&(e=!0);var o=function(n){return a(n)?r("null"):"object"==typeof n?function(n){return l(n.constructor)?n.constructor.name:null}(n):Object.prototype.toString.call(n).slice(8,-1)}(n);return e?i(o):o}function c(n,e){return typeof e===n}var l=c.bind(null,"function"),f=c.bind(null,"string");function a(n){return null===n}function d(n,e){if("object"!=typeof e||a(e))return!1;if(e instanceof n)return!0;var o=u(new n(""));if(function(n){return n instanceof Error||f(n.message)&&n.constructor&&function(n){return"number"===u(n)&&!isNaN(n)}(n.constructor.stackTraceLimit)}(e))for(;e;){if(u(e)===o)return!0;e=Object.getPrototypeOf(e)}return!1}function s(n,e){var o=n instanceof Element||n instanceof HTMLDocument;return o&&e?function(n,e){return void 0===e&&(e=""),n&&n.nodeName===e.toUpperCase()}(n,e):o}function p(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),p(s,"form"),p(s,"button"),p(s,"input"),p(s,"select");var b="__global__",v=typeof self===e&&self.self===self&&self||typeof global===e&&global.global===global&&global||void 0;function y(n){return v[b][n]}function g(n,e){return v[b][n]=e}v[b]||(v[b]={});var m="cookie",C=h(),k=x,w=x;function j(n){return C?x(n,"",-1):void delete v[b][n]}function h(){if(void 0!==C)return C;var n=m+m;try{x(n,n),C=-1!==document.cookie.indexOf(n),j(n)}catch(n){C=!1}return C}function x(n,e,o,t,r,i){if("undefined"!=typeof window){var u=arguments.length>1;return!1===C&&(u?g(n,e):y(n)),u?document.cookie=n+"="+encodeURIComponent(e)+(o?"; expires="+new Date(+new Date+1e3*o).toUTCString()+(t?"; path="+t:"")+(r?"; domain="+r:"")+(i?"; secure":""):""):decodeURIComponent((("; "+document.cookie).split("; "+n+"=")[1]||"").split(";")[0])}}n.COOKIE=m,n.getCookie=k,n.hasCookies=h,n.removeCookie=j,n.setCookie=w});
!function(n,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports):"function"==typeof define&&define.amd?define(["exports"],e):e((n||self).utilCookies={})}(this,function(n){var e="object";"undefined"==typeof process||process;var o="undefined"!=typeof document;function t(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 r=t.bind(null,"toUpperCase"),i=t.bind(null,"toLowerCase");function u(n,e){void 0===e&&(e=!0);var o=function(n){return a(n)?r("null"):"object"==typeof n?function(n){return l(n.constructor)?n.constructor.name:null}(n):Object.prototype.toString.call(n).slice(8,-1)}(n);return e?i(o):o}function c(n,e){return typeof e===n}var l=c.bind(null,"function"),f=c.bind(null,"string");function a(n){return null===n}function d(n,e){if("object"!=typeof e||a(e))return!1;if(e instanceof n)return!0;var o=u(new n(""));if(function(n){return n instanceof Error||f(n.message)&&n.constructor&&function(n){return"number"===u(n)&&!isNaN(n)}(n.constructor.stackTraceLimit)}(e))for(;e;){if(u(e)===o)return!0;e=Object.getPrototypeOf(e)}return!1}function s(n,e){var o=n instanceof Element||n instanceof HTMLDocument;return o&&e?function(n,e){return void 0===e&&(e=""),n&&n.nodeName===e.toUpperCase()}(n,e):o}function p(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),p(s,"form"),p(s,"button"),p(s,"input"),p(s,"select");var b="__global__",v=typeof self===e&&self.self===self&&self||typeof global===e&&global.global===global&&global||void 0;function g(n){return v[b][n]}function m(n,e){return v[b][n]=e}v[b]||(v[b]={});var y="cookie",C=w(),k=x,j=x;function h(n){return C?x(n,"",-1):void delete v[b][n]}function w(){if(void 0!==C)return C;var n=y+y;try{x(n,n),C=-1!==document.cookie.indexOf(n),h(n)}catch(n){C=!1}return C}function x(n,e,o,t,r,i){if("undefined"!=typeof window){var u=arguments.length>1;return!1===C&&(u?m(n,e):g(n)),u?document.cookie=n+"="+encodeURIComponent(e)+(o?"; expires="+new Date(+new Date+1e3*o).toUTCString()+(t?"; path="+t:"")+(r?"; domain="+r:"")+(i?"; secure":""):""):decodeURIComponent((("; "+document.cookie).split("; "+n+"=")[1]||"").split(";")[0])}}n.COOKIE=y,n.getCookie=k,n.hasCookies=w,n.removeCookie=h,n.setCookie=j});
//# sourceMappingURL=cookie-utils.umd.js.map
{
"name": "@analytics/cookie-utils",
"version": "0.2.11",
"version": "0.2.12",
"description": "Tiny cookie 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