Skip to content

Commit

Permalink
chore(all): prepare release 1.0.0-beta.1.2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
EisenbergEffect committed Mar 22, 2016
1 parent f336462 commit e207120
Show file tree
Hide file tree
Showing 13 changed files with 341 additions and 461 deletions.
2 changes: 1 addition & 1 deletion bower.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "aurelia-fetch-client",
"version": "1.0.0-beta.1.1.1",
"version": "1.0.0-beta.1.2.0",
"description": "A simple client based on the Fetch standard.",
"keywords": [
"aurelia",
Expand Down
7 changes: 7 additions & 0 deletions dist/amd/aurelia-fetch-client.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,10 @@ declare module 'aurelia-fetch-client' {
responseError?: (error: any, request?: Request) => Response | Promise<Response>;
}

/**
* The init object used to initialize a fetch Request.
* See https://developer.mozilla.org/en-US/docs/Web/API/Request/Request
*/
/**
* The init object used to initialize a fetch Request.
* See https://developer.mozilla.org/en-US/docs/Web/API/Request/Request
Expand All @@ -65,6 +69,9 @@ declare module 'aurelia-fetch-client' {
*/
export function json(body: any): Blob;

/**
* A class for configuring HttpClients.
*/
/**
* A class for configuring HttpClients.
*/
Expand Down
54 changes: 31 additions & 23 deletions dist/amd/aurelia-fetch-client.js
Original file line number Diff line number Diff line change
@@ -1,16 +1,28 @@
define(['exports'], function (exports) {
'use strict';

exports.__esModule = true;
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.json = json;

function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError('Cannot call a class as a function'); } }
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;
};

function _classCallCheck(instance, Constructor) {
if (!(instance instanceof Constructor)) {
throw new TypeError("Cannot call a class as a function");
}
}

function json(body) {
return new Blob([JSON.stringify(body)], { type: 'application/json' });
}

var HttpClientConfiguration = (function () {
var HttpClientConfiguration = exports.HttpClientConfiguration = function () {
function HttpClientConfiguration() {
_classCallCheck(this, HttpClientConfiguration);

Expand Down Expand Up @@ -45,9 +57,7 @@ define(['exports'], function (exports) {
};

return HttpClientConfiguration;
})();

exports.HttpClientConfiguration = HttpClientConfiguration;
}();

function rejectOnError(response) {
if (!response.ok) {
Expand All @@ -57,7 +67,7 @@ define(['exports'], function (exports) {
return response;
}

var HttpClient = (function () {
var HttpClient = exports.HttpClient = function () {
function HttpClient() {
_classCallCheck(this, HttpClient);

Expand All @@ -76,9 +86,9 @@ define(['exports'], function (exports) {
HttpClient.prototype.configure = function configure(config) {
var _interceptors;

var normalizedConfig = undefined;
var normalizedConfig = void 0;

if (typeof config === 'object') {
if ((typeof config === 'undefined' ? 'undefined' : _typeof(config)) === 'object') {
normalizedConfig = { defaults: config };
} else if (typeof config === 'function') {
normalizedConfig = new HttpClientConfiguration();
Expand All @@ -103,7 +113,7 @@ define(['exports'], function (exports) {
return this;
};

HttpClient.prototype.fetch = (function (_fetch) {
HttpClient.prototype.fetch = function (_fetch) {
function fetch(_x, _x2) {
return _fetch.apply(this, arguments);
}
Expand All @@ -113,7 +123,7 @@ define(['exports'], function (exports) {
};

return fetch;
})(function (input, init) {
}(function (input, init) {
var _this = this;

trackRequestStart.call(this);
Expand Down Expand Up @@ -142,9 +152,7 @@ define(['exports'], function (exports) {
});

return HttpClient;
})();

exports.HttpClient = HttpClient;
}();

var absoluteUrlRegexp = /^([a-z][a-z0-9+\-.]*:)?\/\//i;

Expand All @@ -164,9 +172,9 @@ define(['exports'], function (exports) {

function parseHeaderValues(headers) {
var parsedHeaders = {};
for (var _name in headers || {}) {
if (headers.hasOwnProperty(_name)) {
parsedHeaders[_name] = typeof headers[_name] === 'function' ? headers[_name]() : headers[_name];
for (var name in headers || {}) {
if (headers.hasOwnProperty(name)) {
parsedHeaders[name] = typeof headers[name] === 'function' ? headers[name]() : headers[name];
}
}
return parsedHeaders;
Expand All @@ -175,9 +183,9 @@ define(['exports'], function (exports) {
function buildRequest(input, init) {
init || (init = {});
var defaults = this.defaults || {};
var source = undefined;
var url = undefined;
var body = undefined;
var source = void 0;
var url = void 0;
var body = void 0;

if (Request.prototype.isPrototypeOf(input)) {
if (!this.isConfigured) {
Expand Down Expand Up @@ -221,9 +229,9 @@ define(['exports'], function (exports) {
}

function setDefaultHeaders(headers, defaultHeaders) {
for (var _name2 in defaultHeaders || {}) {
if (defaultHeaders.hasOwnProperty(_name2) && !headers.has(_name2)) {
headers.set(_name2, defaultHeaders[_name2]);
for (var name in defaultHeaders || {}) {
if (defaultHeaders.hasOwnProperty(name) && !headers.has(name)) {
headers.set(name, defaultHeaders[name]);
}
}
}
Expand Down
7 changes: 7 additions & 0 deletions dist/aurelia-fetch-client.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,10 @@ declare module 'aurelia-fetch-client' {
responseError?: (error: any, request?: Request) => Response | Promise<Response>;
}

/**
* The init object used to initialize a fetch Request.
* See https://developer.mozilla.org/en-US/docs/Web/API/Request/Request
*/
/**
* The init object used to initialize a fetch Request.
* See https://developer.mozilla.org/en-US/docs/Web/API/Request/Request
Expand All @@ -65,6 +69,9 @@ declare module 'aurelia-fetch-client' {
*/
export function json(body: any): Blob;

/**
* A class for configuring HttpClients.
*/
/**
* A class for configuring HttpClients.
*/
Expand Down
7 changes: 7 additions & 0 deletions dist/commonjs/aurelia-fetch-client.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,10 @@ declare module 'aurelia-fetch-client' {
responseError?: (error: any, request?: Request) => Response | Promise<Response>;
}

/**
* The init object used to initialize a fetch Request.
* See https://developer.mozilla.org/en-US/docs/Web/API/Request/Request
*/
/**
* The init object used to initialize a fetch Request.
* See https://developer.mozilla.org/en-US/docs/Web/API/Request/Request
Expand All @@ -65,6 +69,9 @@ declare module 'aurelia-fetch-client' {
*/
export function json(body: any): Blob;

/**
* A class for configuring HttpClients.
*/
/**
* A class for configuring HttpClients.
*/
Expand Down
47 changes: 24 additions & 23 deletions dist/commonjs/aurelia-fetch-client.js
Original file line number Diff line number Diff line change
@@ -1,15 +1,20 @@
'use strict';

exports.__esModule = true;
Object.defineProperty(exports, "__esModule", {
value: true
});

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; };

exports.json = json;

function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError('Cannot call a class as a function'); } }
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }

function json(body) {
return new Blob([JSON.stringify(body)], { type: 'application/json' });
}

var HttpClientConfiguration = (function () {
var HttpClientConfiguration = exports.HttpClientConfiguration = function () {
function HttpClientConfiguration() {
_classCallCheck(this, HttpClientConfiguration);

Expand Down Expand Up @@ -44,9 +49,7 @@ var HttpClientConfiguration = (function () {
};

return HttpClientConfiguration;
})();

exports.HttpClientConfiguration = HttpClientConfiguration;
}();

function rejectOnError(response) {
if (!response.ok) {
Expand All @@ -56,7 +59,7 @@ function rejectOnError(response) {
return response;
}

var HttpClient = (function () {
var HttpClient = exports.HttpClient = function () {
function HttpClient() {
_classCallCheck(this, HttpClient);

Expand All @@ -75,9 +78,9 @@ var HttpClient = (function () {
HttpClient.prototype.configure = function configure(config) {
var _interceptors;

var normalizedConfig = undefined;
var normalizedConfig = void 0;

if (typeof config === 'object') {
if ((typeof config === 'undefined' ? 'undefined' : _typeof(config)) === 'object') {
normalizedConfig = { defaults: config };
} else if (typeof config === 'function') {
normalizedConfig = new HttpClientConfiguration();
Expand All @@ -102,7 +105,7 @@ var HttpClient = (function () {
return this;
};

HttpClient.prototype.fetch = (function (_fetch) {
HttpClient.prototype.fetch = function (_fetch) {
function fetch(_x, _x2) {
return _fetch.apply(this, arguments);
}
Expand All @@ -112,7 +115,7 @@ var HttpClient = (function () {
};

return fetch;
})(function (input, init) {
}(function (input, init) {
var _this = this;

trackRequestStart.call(this);
Expand Down Expand Up @@ -141,9 +144,7 @@ var HttpClient = (function () {
});

return HttpClient;
})();

exports.HttpClient = HttpClient;
}();

var absoluteUrlRegexp = /^([a-z][a-z0-9+\-.]*:)?\/\//i;

Expand All @@ -163,9 +164,9 @@ function trackRequestEndWith(promise) {

function parseHeaderValues(headers) {
var parsedHeaders = {};
for (var _name in headers || {}) {
if (headers.hasOwnProperty(_name)) {
parsedHeaders[_name] = typeof headers[_name] === 'function' ? headers[_name]() : headers[_name];
for (var name in headers || {}) {
if (headers.hasOwnProperty(name)) {
parsedHeaders[name] = typeof headers[name] === 'function' ? headers[name]() : headers[name];
}
}
return parsedHeaders;
Expand All @@ -174,9 +175,9 @@ function parseHeaderValues(headers) {
function buildRequest(input, init) {
init || (init = {});
var defaults = this.defaults || {};
var source = undefined;
var url = undefined;
var body = undefined;
var source = void 0;
var url = void 0;
var body = void 0;

if (Request.prototype.isPrototypeOf(input)) {
if (!this.isConfigured) {
Expand Down Expand Up @@ -220,9 +221,9 @@ function getRequestUrl(baseUrl, url) {
}

function setDefaultHeaders(headers, defaultHeaders) {
for (var _name2 in defaultHeaders || {}) {
if (defaultHeaders.hasOwnProperty(_name2) && !headers.has(_name2)) {
headers.set(_name2, defaultHeaders[_name2]);
for (var name in defaultHeaders || {}) {
if (defaultHeaders.hasOwnProperty(name) && !headers.has(name)) {
headers.set(name, defaultHeaders[name]);
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,10 @@ declare module 'aurelia-fetch-client' {
responseError?: (error: any, request?: Request) => Response | Promise<Response>;
}

/**
* The init object used to initialize a fetch Request.
* See https://developer.mozilla.org/en-US/docs/Web/API/Request/Request
*/
/**
* The init object used to initialize a fetch Request.
* See https://developer.mozilla.org/en-US/docs/Web/API/Request/Request
Expand All @@ -65,6 +69,9 @@ declare module 'aurelia-fetch-client' {
*/
export function json(body: any): Blob;

/**
* A class for configuring HttpClients.
*/
/**
* A class for configuring HttpClients.
*/
Expand Down

0 comments on commit e207120

Please sign in to comment.