Comparing version 3.0.0-rc.2 to 3.0.0-rc.3
@@ -1,2 +0,2 @@ | ||
/*! js-cookie v3.0.0-rc.2 | MIT */ | ||
/*! js-cookie v3.0.0-rc.3 | MIT */ | ||
'use strict'; | ||
@@ -3,0 +3,0 @@ |
@@ -1,2 +0,2 @@ | ||
/*! js-cookie v3.0.0-rc.2 | MIT */ | ||
/*! js-cookie v3.0.0-rc.3 | MIT */ | ||
; | ||
@@ -3,0 +3,0 @@ (function (global, factory) { |
@@ -1,2 +0,2 @@ | ||
/*! js-cookie v3.0.0-rc.2 | MIT */ | ||
/*! js-cookie v3.0.0-rc.3 | MIT */ | ||
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):(e=e||self,function(){var n=e.Cookies,r=e.Cookies=t();r.noConflict=function(){return e.Cookies=n,r}}())}(this,function(){"use strict";function e(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)e[r]=n[r]}return e}var t={read:function(e){return e.replace(/(%[\dA-F]{2})+/gi,decodeURIComponent)},write:function(e){return encodeURIComponent(e).replace(/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,decodeURIComponent)}};return function n(r,o){function i(t,n,i){if("undefined"!=typeof document){"number"==typeof(i=e({},o,i)).expires&&(i.expires=new Date(Date.now()+864e5*i.expires)),i.expires&&(i.expires=i.expires.toUTCString()),t=encodeURIComponent(t).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape),n=r.write(n,t);var c="";for(var u in i)i[u]&&(c+="; "+u,!0!==i[u]&&(c+="="+i[u].split(";")[0]));return document.cookie=t+"="+n+c}}return Object.create({set:i,get:function(e){if("undefined"!=typeof document&&(!arguments.length||e)){for(var n=document.cookie?document.cookie.split("; "):[],o={},i=0;i<n.length;i++){var c=n[i].split("="),u=c.slice(1).join("=");'"'===u[0]&&(u=u.slice(1,-1));try{var f=t.read(c[0]);if(o[f]=r.read(u,f),e===f)break}catch(e){}}return e?o[e]:o}},remove:function(t,n){i(t,"",e({},n,{expires:-1}))},withAttributes:function(t){return n(this.converter,e({},this.attributes,t))},withConverter:function(t){return n(e({},this.converter,t),this.attributes)}},{attributes:{value:Object.freeze(o)},converter:{value:Object.freeze(r)}})}(t,{path:"/"})}); |
{ | ||
"name": "js-cookie", | ||
"version": "3.0.0-rc.2", | ||
"version": "3.0.0-rc.3", | ||
"description": "A simple, lightweight JavaScript API for handling cookies", | ||
@@ -10,4 +10,4 @@ "main": "dist/js.cookie.js", | ||
"exports": { | ||
"import": "dist/js.cookie.mjs", | ||
"require": "dist/js.cookie.js" | ||
"import": "./dist/js.cookie.mjs", | ||
"require": "./dist/js.cookie.js" | ||
}, | ||
@@ -45,4 +45,5 @@ "directories": { | ||
"browserstack-runner": "^0.9.0", | ||
"eslint": "^6.5.1", | ||
"eslint": "^6.8.0", | ||
"eslint-config-standard": "^14.1.0", | ||
"eslint-plugin-promise": "^4.2.1", | ||
"eslint-plugin-html": "^6.0.0", | ||
@@ -63,3 +64,3 @@ "eslint-plugin-markdown": "^1.0.0", | ||
"rollup-plugin-filesize": "^6.2.0", | ||
"rollup-plugin-license": "^0.13.0", | ||
"rollup-plugin-license": "^2.5.0", | ||
"rollup-plugin-terser": "^5.1.3", | ||
@@ -69,4 +70,4 @@ "standard": "^14.1.0" | ||
"engines": { | ||
"node": ">=10" | ||
"node": ">=12" | ||
} | ||
} |
@@ -68,3 +68,3 @@ <p align="center"> | ||
```html | ||
<script src="https://cdn.jsdelivr.net/npm/js-cookie@rc/dist/js.cookie.min.js"></script> | ||
<script src="//cdn.jsdelivr.net/npm/js-cookie@rc/dist/js.cookie.umd.min.js"></script> | ||
``` | ||
@@ -77,3 +77,3 @@ | ||
type="module" | ||
src="https://cdn.jsdelivr.net/npm/js-cookie@rc/dist/js.cookie.min.mjs" | ||
src="//cdn.jsdelivr.net/npm/js-cookie@rc/dist/js.cookie.min.mjs" | ||
></script> | ||
@@ -80,0 +80,0 @@ ``` |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
30645
22