diff --git a/core/resources.js b/core/resources.js index 04da91d8..5b7f59c6 100644 --- a/core/resources.js +++ b/core/resources.js @@ -524,6 +524,11 @@ var resources = { 'path': 'resources/nvd3/{version}/nv.d3.min.css', 'type': 'text/css' }, + // object-assign + 'objectAssign': { + 'path': 'resources/object-assign/{version}/object-assign.min.jsm', + 'type': 'application/javascript' + }, // ocLazyLoad 'ocLazyLoad': { 'path': 'resources/oclazyload/{version}/ocLazyLoad.min.jsm', diff --git a/core/shorthands.js b/core/shorthands.js index 0834a147..b8d6d4bd 100644 --- a/core/shorthands.js +++ b/core/shorthands.js @@ -101,6 +101,13 @@ shorthands.specialFiles = function (channelHost, channelPath, searchString) { 'path': 'resources/rocket-loader/latest/rocket-loader.min.jsm', 'bundle': '' }; + } else if ((channelHost + channelPath) === 'unpkg.com/@umds/object-assign@4.1.1-beta.24/object-assign.min.js') { + return { + 'source': channelHost, + 'versionRequested': '4.1.1', + 'path': 'resources/object-assign/4.1.1/object-assign.min.jsm', + 'bundle': '' + }; } else { return false; } diff --git a/modules/internal/helpers.js b/modules/internal/helpers.js index 939d00db..26423968 100644 --- a/modules/internal/helpers.js +++ b/modules/internal/helpers.js @@ -481,6 +481,8 @@ helpers.setLastVersion = function (type, version) { } else if (type.includes('/mootools/1.')) { if (helpers.compareVersion('1.4.5', version)) return '1.4.5'; // <= v1.4.5 else return '1.6.0'; // > 1.4.5 + } else if (type.includes('/object-assign@4.')) { + return '4.1.1'; } else if (type.includes('/oclazyload/1.')) { return '1.1.0'; } else if (type.includes('/owl-carousel/1.')) { @@ -593,6 +595,7 @@ helpers.compareVersion = function (v1, v2) { }; const ListOfFiles = { + 'object-assign.min.jsm': 'Object assign', 'slick-lightbox.css': 'slick-lightbox CSS', 'slick-lightbox.min.jsm': 'slick-lightbox JS', 'noframework.waypoints.min.jsm': 'Waypoints (Bundle)', diff --git a/pages/updates/updates.html b/pages/updates/updates.html index 2bf123ca..be072632 100644 --- a/pages/updates/updates.html +++ b/pages/updates/updates.html @@ -25,7 +25,7 @@ New in LocalCDN:
diff --git a/resources/object-assign/4.1.1/object-assign.min.jsm b/resources/object-assign/4.1.1/object-assign.min.jsm new file mode 100644 index 00000000..18f383a5 --- /dev/null +++ b/resources/object-assign/4.1.1/object-assign.min.jsm @@ -0,0 +1,2 @@ +!function(a,b){typeof exports==='object'&&typeof module!=='undefined'?module.exports=b():typeof define==='function'&&define.amd?define(b):(a.ObjectAssign=b())}(this,(function(){'use strict';var a=Object.getOwnPropertySymbols,b=Object.prototype.hasOwnProperty,c=Object.prototype.propertyIsEnumerable;function d(a){if(a===null||a===undefined){throw new TypeError('Object.assign cannot be called with null or undefined')}return Object(a)}function e(){try{if(!Object.assign){return !1}var a=new String('abc');a[5]='de';if(Object.getOwnPropertyNames(a)[0]==='5'){return !1}var b={};for(var c=0;c<10;c++)b['_'+String.fromCharCode(c)]=c;var d=Object.getOwnPropertyNames(b).map(function(a){return b[a]});if(d.join('')!=='0123456789'){return !1}var e={};'abcdefghijklmnopqrst'.split('').forEach(function(a){e[a]=a});if(Object.keys(Object.assign({},e)).join('')!=='abcdefghijklmnopqrst'){return !1}return !0}catch(a){return !1}}var f=e()?Object.assign:function(e,f){var g,h=d(e),i;for(var j=1;j