From 6a4476b9c543c998ed2e54086645cd74460ce8e2 Mon Sep 17 00:00:00 2001 From: Rob Eisenberg Date: Tue, 8 Nov 2016 09:13:01 -0800 Subject: [PATCH] chore(all): prepare release 1.0.3 --- bower.json | 2 +- dist/amd/aurelia-http-client.js | 2 +- dist/aurelia-http-client.js | 2 +- dist/commonjs/aurelia-http-client.js | 2 +- dist/es2015/aurelia-http-client.js | 2 +- dist/native-modules/aurelia-http-client.js | 2 +- dist/system/aurelia-http-client.js | 2 +- doc/CHANGELOG.md | 10 ++++++++++ package.json | 2 +- src/http-response-message.js | 2 +- 10 files changed, 19 insertions(+), 9 deletions(-) diff --git a/bower.json b/bower.json index d9e675b..e0398c5 100644 --- a/bower.json +++ b/bower.json @@ -1,6 +1,6 @@ { "name": "aurelia-http-client", - "version": "1.0.2", + "version": "1.0.3", "description": "A simple, restful, message-based wrapper around XMLHttpRequest.", "keywords": [ "aurelia", diff --git a/dist/amd/aurelia-http-client.js b/dist/amd/aurelia-http-client.js index fbdf74f..cf27df0 100644 --- a/dist/amd/aurelia-http-client.js +++ b/dist/amd/aurelia-http-client.js @@ -191,7 +191,7 @@ define(['exports', 'aurelia-path', 'aurelia-pal'], function (exports, _aureliaPa return this._content; } - if (this.response === undefined || this.response === null) { + if (this.response === undefined || this.response === null || this.response === '') { this._content = this.response; return this._content; } diff --git a/dist/aurelia-http-client.js b/dist/aurelia-http-client.js index 72e5853..bc09859 100644 --- a/dist/aurelia-http-client.js +++ b/dist/aurelia-http-client.js @@ -256,7 +256,7 @@ export class HttpResponseMessage { return this._content; } - if (this.response === undefined || this.response === null) { + if (this.response === undefined || this.response === null || this.response === '') { this._content = this.response; return this._content; } diff --git a/dist/commonjs/aurelia-http-client.js b/dist/commonjs/aurelia-http-client.js index 7f4a59c..3df5330 100644 --- a/dist/commonjs/aurelia-http-client.js +++ b/dist/commonjs/aurelia-http-client.js @@ -159,7 +159,7 @@ var HttpResponseMessage = exports.HttpResponseMessage = function () { return this._content; } - if (this.response === undefined || this.response === null) { + if (this.response === undefined || this.response === null || this.response === '') { this._content = this.response; return this._content; } diff --git a/dist/es2015/aurelia-http-client.js b/dist/es2015/aurelia-http-client.js index c18bb71..0b063d6 100644 --- a/dist/es2015/aurelia-http-client.js +++ b/dist/es2015/aurelia-http-client.js @@ -119,7 +119,7 @@ export let HttpResponseMessage = class HttpResponseMessage { return this._content; } - if (this.response === undefined || this.response === null) { + if (this.response === undefined || this.response === null || this.response === '') { this._content = this.response; return this._content; } diff --git a/dist/native-modules/aurelia-http-client.js b/dist/native-modules/aurelia-http-client.js index 5a48b7f..8cb92e7 100644 --- a/dist/native-modules/aurelia-http-client.js +++ b/dist/native-modules/aurelia-http-client.js @@ -141,7 +141,7 @@ export var HttpResponseMessage = function () { return this._content; } - if (this.response === undefined || this.response === null) { + if (this.response === undefined || this.response === null || this.response === '') { this._content = this.response; return this._content; } diff --git a/dist/system/aurelia-http-client.js b/dist/system/aurelia-http-client.js index 99510dc..39c49de 100644 --- a/dist/system/aurelia-http-client.js +++ b/dist/system/aurelia-http-client.js @@ -324,7 +324,7 @@ System.register(['aurelia-path', 'aurelia-pal'], function (_export, _context) { return this._content; } - if (this.response === undefined || this.response === null) { + if (this.response === undefined || this.response === null || this.response === '') { this._content = this.response; return this._content; } diff --git a/doc/CHANGELOG.md b/doc/CHANGELOG.md index e5954ed..954b64c 100644 --- a/doc/CHANGELOG.md +++ b/doc/CHANGELOG.md @@ -1,3 +1,13 @@ + +## [1.0.3](https://github.com/aurelia/http-client/compare/1.0.2...v1.0.3) (2016-11-08) + + +### Bug Fixes + +* **http-response-message:** handle empty responses ([bae5188](https://github.com/aurelia/http-client/commit/bae5188)) + + + ## 1.0.2 ### Bug Fixes diff --git a/package.json b/package.json index 14dd603..d82a161 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "aurelia-http-client", - "version": "1.0.2", + "version": "1.0.3", "description": "A simple, restful, message-based wrapper around XMLHttpRequest.", "keywords": [ "aurelia", diff --git a/src/http-response-message.js b/src/http-response-message.js index 01a7e61..41eb7ae 100644 --- a/src/http-response-message.js +++ b/src/http-response-message.js @@ -101,7 +101,7 @@ export class HttpResponseMessage { return this._content; } - if (this.response === undefined || this.response === null || this.response == '') { + if (this.response === undefined || this.response === null || this.response === '') { this._content = this.response; return this._content; }