Skip to content
This repository has been archived by the owner on Dec 1, 2023. It is now read-only.

Commit

Permalink
Merge branch 'release/0.7.3'
Browse files Browse the repository at this point in the history
  • Loading branch information
steffans committed Jun 11, 2016
2 parents 6c28be8 + 79f1f5c commit 0c28352
Show file tree
Hide file tree
Showing 8 changed files with 123 additions and 27 deletions.
2 changes: 1 addition & 1 deletion bower.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "vue-resource",
"main": "dist/vue-resource.js",
"description": "A web request service for Vue.js",
"version": "0.7.2",
"version": "0.7.3",
"homepage": "https://github.com/vuejs/vue-resource",
"license": "MIT",
"ignore": [
Expand Down
6 changes: 3 additions & 3 deletions build/webpack.build.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ module.exports = [
},
module: {
loaders: [
{test: /.js/, exclude: /node_modules/, loader: 'babel', query: {presets: ['es2015-without-strict']}}
{test: /.js/, exclude: /node_modules/, loader: 'babel', query: {presets: ['es2015']}}
]
},
plugins: [
Expand All @@ -37,7 +37,7 @@ module.exports = [
},
module: {
loaders: [
{test: /.js/, exclude: /node_modules/, loader: 'babel', query: {presets: ['es2015-without-strict']}}
{test: /.js/, exclude: /node_modules/, loader: 'babel', query: {presets: ['es2015']}}
]
},
plugins: [
Expand All @@ -55,7 +55,7 @@ module.exports = [
},
module: {
loaders: [
{test: /.js/, exclude: /node_modules/, loader: 'babel', query: {presets: ['es2015-without-strict']}}
{test: /.js/, exclude: /node_modules/, loader: 'babel', query: {presets: ['es2015']}}
]
},
plugins: [
Expand Down
60 changes: 54 additions & 6 deletions dist/vue-resource.common.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* vue-resource v0.7.2
* vue-resource v0.7.3
* https://github.com/vuejs/vue-resource
* Released under the MIT License.
*/
Expand Down Expand Up @@ -51,6 +51,8 @@ module.exports =
/* 0 */
/***/ function(module, exports, __webpack_require__) {

'use strict';

/**
* Install plugin.
*/
Expand Down Expand Up @@ -115,6 +117,8 @@ module.exports =
/* 1 */
/***/ function(module, exports) {

'use strict';

var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol ? "symbol" : typeof obj; };

/**
Expand Down Expand Up @@ -246,6 +250,8 @@ module.exports =
/* 2 */
/***/ function(module, exports, __webpack_require__) {

'use strict';

/**
* Service for URL templating.
*/
Expand Down Expand Up @@ -380,6 +386,8 @@ module.exports =
/* 3 */
/***/ function(module, exports, __webpack_require__) {

'use strict';

/**
* URL Template (RFC 6570) Transform.
*/
Expand All @@ -402,6 +410,8 @@ module.exports =
/* 4 */
/***/ function(module, exports) {

'use strict';

/**
* URL Template v2.0.6 (https://github.com/bramstein/url-template)
*/
Expand Down Expand Up @@ -560,6 +570,8 @@ module.exports =
/* 5 */
/***/ function(module, exports, __webpack_require__) {

'use strict';

/**
* Legacy Transform.
*/
Expand Down Expand Up @@ -604,6 +616,8 @@ module.exports =
/* 6 */
/***/ function(module, exports, __webpack_require__) {

'use strict';

/**
* Query Parameter Transform.
*/
Expand Down Expand Up @@ -635,6 +649,8 @@ module.exports =
/* 7 */
/***/ function(module, exports, __webpack_require__) {

'use strict';

/**
* Root Prefix Transform.
*/
Expand All @@ -656,6 +672,8 @@ module.exports =
/* 8 */
/***/ function(module, exports, __webpack_require__) {

'use strict';

/**
* Service for sending network requests.
*/
Expand All @@ -667,19 +685,19 @@ module.exports =
var jsonType = { 'Content-Type': 'application/json' };

function Http(url, options) {
var _this = this;

var client = Client,
var self = this || {},
client = Client,
request,
promise;

Http.interceptors.forEach(function (handler) {
client = interceptor(handler, _this.$vm)(client);
client = interceptor(handler, self.$vm)(client);
});

options = _.isObject(url) ? url : _.extend({ url: url }, options);
request = _.merge({}, Http.options, this.$options, options);
promise = client(request).bind(this.$vm).then(function (response) {
request = _.merge({}, Http.options, self.$options, options);
promise = client(request).bind(self.$vm).then(function (response) {

return response.ok ? response : Promise.reject(response);
}, function (response) {
Expand Down Expand Up @@ -753,6 +771,8 @@ module.exports =
/* 9 */
/***/ function(module, exports, __webpack_require__) {

'use strict';

/**
* Base client.
*/
Expand Down Expand Up @@ -822,6 +842,8 @@ module.exports =
/* 10 */
/***/ function(module, exports, __webpack_require__) {

'use strict';

/**
* Promise adapter.
*/
Expand Down Expand Up @@ -935,6 +957,8 @@ module.exports =
/* 11 */
/***/ function(module, exports, __webpack_require__) {

'use strict';

var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol ? "symbol" : typeof obj; };

/**
Expand Down Expand Up @@ -1121,6 +1145,8 @@ module.exports =
/* 12 */
/***/ function(module, exports, __webpack_require__) {

'use strict';

/**
* XMLHttp client.
*/
Expand Down Expand Up @@ -1178,6 +1204,8 @@ module.exports =
/* 13 */
/***/ function(module, exports, __webpack_require__) {

'use strict';

/**
* Interceptor factory.
*/
Expand Down Expand Up @@ -1228,6 +1256,8 @@ module.exports =
/* 14 */
/***/ function(module, exports, __webpack_require__) {

'use strict';

/**
* Before Interceptor.
*/
Expand All @@ -1251,6 +1281,8 @@ module.exports =
/* 15 */
/***/ function(module, exports) {

"use strict";

/**
* Timeout Interceptor.
*/
Expand Down Expand Up @@ -1286,6 +1318,8 @@ module.exports =
/* 16 */
/***/ function(module, exports, __webpack_require__) {

'use strict';

/**
* JSONP Interceptor.
*/
Expand All @@ -1309,6 +1343,8 @@ module.exports =
/* 17 */
/***/ function(module, exports, __webpack_require__) {

'use strict';

/**
* JSONP client.
*/
Expand Down Expand Up @@ -1365,6 +1401,8 @@ module.exports =
/* 18 */
/***/ function(module, exports) {

'use strict';

/**
* HTTP method override Interceptor.
*/
Expand All @@ -1387,6 +1425,8 @@ module.exports =
/* 19 */
/***/ function(module, exports, __webpack_require__) {

'use strict';

/**
* Mime Interceptor.
*/
Expand Down Expand Up @@ -1428,6 +1468,8 @@ module.exports =
/* 20 */
/***/ function(module, exports, __webpack_require__) {

'use strict';

/**
* Header Interceptor.
*/
Expand Down Expand Up @@ -1455,6 +1497,8 @@ module.exports =
/* 21 */
/***/ function(module, exports, __webpack_require__) {

'use strict';

/**
* CORS Interceptor.
*/
Expand Down Expand Up @@ -1497,6 +1541,8 @@ module.exports =
/* 22 */
/***/ function(module, exports, __webpack_require__) {

'use strict';

/**
* XDomain client (Internet Explorer).
*/
Expand Down Expand Up @@ -1541,6 +1587,8 @@ module.exports =
/* 23 */
/***/ function(module, exports, __webpack_require__) {

'use strict';

/**
* Service for interacting with RESTful services.
*/
Expand Down
Loading

0 comments on commit 0c28352

Please sign in to comment.