diff --git a/core/mappings.js b/core/mappings.js index 712bd2f5..33d46762 100644 --- a/core/mappings.js +++ b/core/mappings.js @@ -315,6 +315,7 @@ var mappings = { 'underscore.js/{version}/underscore-min.': resources.underscore, 'urlive/{version}/jquery.urlive.': resources.jqueryURLive, 'vue/{version}/vue.min.js': resources.vueJs, + 'vue-resource/{version}/vue-resource.': resources.vueResource, 'waypoints/{version}/jquery.waypoints.': resources.jQueryWaypoints, 'webfont/{version}/webfont.js': resources.webfontloader, 'webfont/{version}/webfontloader.js': resources.webfontloader, @@ -382,6 +383,7 @@ var mappings = { 'underscore@{version}/underscore-min.': resources.underscore, 'urlize.js/urlize.js': resources.urlize, 'vanilla-lazyload@{version}/dist/lazyload.': resources.vanillaLazyload, + 'vue-resource@{version}/dist/vue-resource.': resources.vueResource, '@webcomponents/webcomponentsjs/webcomponents-loader.js': resources.webcomponentsJS, 'webfontloader@{version}/webfontloader.': resources.webfontloader }, diff --git a/core/resources.js b/core/resources.js index b249efb3..9768b22a 100644 --- a/core/resources.js +++ b/core/resources.js @@ -680,6 +680,11 @@ var resources = { 'path': 'resources/vue/{version}/vue.min.jsm', 'type': 'application/javascript' }, + // vue-resource + 'vueResource': { + 'path': 'resources/vue-resource/{version}/vue-resource.min.jsm', + 'type': 'application/javascript' + }, // Waypoints (jQuery) 'jQueryWaypoints': { 'path': 'resources/waypoints/{version}/jquery.waypoints.min.jsm', diff --git a/modules/internal/helpers.js b/modules/internal/helpers.js index 3ea43dd1..f84cf712 100644 --- a/modules/internal/helpers.js +++ b/modules/internal/helpers.js @@ -533,6 +533,8 @@ helpers.setLastVersion = function (type, version) { return '1.0.28'; } else if (type.includes('/vue/2.')) { return '2.6.12'; + } else if (type.includes('/vue-resource/1.')) { + return '1.5.1'; } else if (type.includes('/waypoints/4.') && type.includes('jquery.waypoints')) { return '4.0.0'; } else if (type.includes('webfont')) { @@ -565,6 +567,7 @@ helpers.compareVersion = function (v1, v2) { }; const ListOfFiles = { + 'vue-resource.min.jsm': 'vue-resource', 'jquery.lazy.min.jsm': 'jQuery Lazy (Bundle)', 'jquery.lazy.plugins.min.jsm': 'jQuery Lazy (Bundle)', 'jquery.lazy.ajax.min.jsm': 'jQuery Lazy (Bundle)', diff --git a/pages/updates/updates.html b/pages/updates/updates.html index 28f765ba..ecb49f82 100644 --- a/pages/updates/updates.html +++ b/pages/updates/updates.html @@ -33,6 +33,7 @@
  • Updated: Handling of Google Fonts (#85)
  • Added: jQuery Lazy (with Plugins) v1.7.11 (#88)
  • Updated: Vue.js v2.6.11 to v2.6.12 (#89)
  • +
  • Added: vue-resource v1.5.1 (#89)
  • diff --git a/resources/vue-resource/1.5.1/vue-resource.min.jsm b/resources/vue-resource/1.5.1/vue-resource.min.jsm new file mode 100644 index 00000000..7715164e --- /dev/null +++ b/resources/vue-resource/1.5.1/vue-resource.min.jsm @@ -0,0 +1,7 @@ +/*! + * vue-resource v1.5.1 + * https://github.com/pagekit/vue-resource + * Released under the MIT License. + */ + +!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define(e):t.VueResource=e()}(this,function(){"use strict";function u(t){this.state=2,this.value=void 0,this.deferred=[];var e=this;try{t(function(t){e.resolve(t)},function(t){e.reject(t)})}catch(t){e.reject(t)}}u.reject=function(n){return new u(function(t,e){e(n)})},u.resolve=function(n){return new u(function(t,e){t(n)})},u.all=function(s){return new u(function(n,t){var o=0,r=[];function e(e){return function(t){r[e]=t,(o+=1)===s.length&&n(r)}}0===s.length&&n(r);for(var i=0;i