diff --git a/core/mappings.js b/core/mappings.js index 1da776d0..096b43f7 100644 --- a/core/mappings.js +++ b/core/mappings.js @@ -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, diff --git a/core/shorthands.js b/core/shorthands.js index 157b2747..d5333d61 100644 --- a/core/shorthands.js +++ b/core/shorthands.js @@ -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; } diff --git a/pages/updates/updates.html b/pages/updates/updates.html index 9b9754dd..3da968cc 100644 --- a/pages/updates/updates.html +++ b/pages/updates/updates.html @@ -47,6 +47,7 @@
  • Added: ajax-bootstrap-select v1.4.5 (#241)
  • Added: bootstrap-multiselect v0.9.16 (#242)
  • Added: knockout v3.5.1 (#243)
  • +
  • Added: js-cookie v3.0.0-beta.4 (#244)
  • diff --git a/resources/js-cookie/latest/js.cookie.min.jsm b/resources/js-cookie/latest/js.cookie.min.jsm new file mode 100644 index 00000000..8f086f5d --- /dev/null +++ b/resources/js-cookie/latest/js.cookie.min.jsm @@ -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