1
0
mirror of https://codeberg.org/nobody/LocalCDN.git synced 2024-12-27 18:42:33 +01:00

Added: js-cookie v3.0.0-beta.4 (#244)

This commit is contained in:
nobody 2021-01-22 06:40:12 +01:00
parent 10eb8f9e93
commit 3e11dbfe91
No known key found for this signature in database
GPG Key ID: 8F6DE3D614FCFD7A
4 changed files with 10 additions and 0 deletions

View File

@ -481,6 +481,7 @@ mappings.cdn = {
'jquery-ui-dist@{version}/jquery-ui.js': resources.jQueryUI,
'jquery-ui-dist@{version}/jquery-ui.min.js': resources.jQueryUI,
'jquery-validation@{version}/dist/jquery.validate.': resources.jqueryValidationPlugin,
'js-cookie@beta/dist/js.cookie.':resources.jscookie,
'lodash@{version}/lodash.min.js': resources.lodashJS,
'lozad': resources.lozad,
'npm-modernizr@{version}/modernizr.': resources.modernizr,

View File

@ -170,6 +170,12 @@ shorthands.specialFiles = function (channelHost, channelPath, searchString) {
'path': 'resources/bootstrap/fonts/' + helpers.extractFilenameFromPath(channelPath),
'bundle': 'Bootstrap (Fonts)'
};
} else if (channelHost + channelPath === 'cdn.jsdelivr.net/npm/js-cookie@beta/dist/js.cookie.min.js') {
return {
'source': channelHost,
'path': 'resources/js-cookie/latest/js.cookie.min.jsm',
'bundle': 'JSCookies'
};
} else {
return false;
}

View File

@ -47,6 +47,7 @@
<li>Added: ajax-bootstrap-select v1.4.5 (<a href="https://codeberg.org/nobody/LocalCDN/issues/241">#241</a>)</li>
<li>Added: bootstrap-multiselect v0.9.16 (<a href="https://codeberg.org/nobody/LocalCDN/issues/242">#242</a>)</li>
<li>Added: knockout v3.5.1 (<a href="https://codeberg.org/nobody/LocalCDN/issues/243">#243</a>)</li>
<li>Added: js-cookie v3.0.0-beta.4 (<a href="https://codeberg.org/nobody/LocalCDN/issues/244">#244</a>)</li>
</ul>
<div id="generator-section">
<div class="topic-label">

View File

@ -0,0 +1,2 @@
/*! js-cookie v3.0.0-beta.4 | 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 r=e.Cookies,n=e.Cookies=t();n.noConflict=function(){return e.Cookies=r,n}}())}(this,function(){"use strict";function e(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)e[n]=r[n]}return e}var t={read:function(e){return e.replace(/%3B/g,";")},write:function(e){return e.replace(/;/g,"%3B")}};return function r(n,i){function o(r,o,u){if("undefined"!=typeof document){"number"==typeof(u=e({},i,u)).expires&&(u.expires=new Date(Date.now()+864e5*u.expires)),u.expires&&(u.expires=u.expires.toUTCString()),r=t.write(r).replace(/=/g,"%3D"),o=n.write(String(o),r);var c="";for(var f in u)u[f]&&(c+="; "+f,!0!==u[f]&&(c+="="+u[f].split(";")[0]));return document.cookie=r+"="+o+c}}return Object.create({set:o,get:function(e){if("undefined"!=typeof document&&(!arguments.length||e)){for(var r=document.cookie?document.cookie.split("; "):[],i={},o=0;o<r.length;o++){var u=r[o].split("="),c=u.slice(1).join("="),f=t.read(u[0]).replace(/%3D/g,"=");if(i[f]=n.read(c,f),e===f)break}return e?i[e]:i}},remove:function(t,r){o(t,"",e({},r,{expires:-1}))},withAttributes:function(t){return r(this.converter,e({},this.attributes,t))},withConverter:function(t){return r(e({},this.converter,t),this.attributes)}},{attributes:{value:Object.freeze(i)},converter:{value:Object.freeze(n)}})}(t,{path:"/"})});