Skip to content
This repository has been archived by the owner on May 4, 2019. It is now read-only.

Commit

Permalink
Merge pull request #78 from marmelab/0.9.5
Browse files Browse the repository at this point in the history
[RFR] Build for 0.9.5
  • Loading branch information
jpetitcolas committed Feb 11, 2016
2 parents a322a65 + dfc4d3e commit 29887ad
Show file tree
Hide file tree
Showing 8 changed files with 92 additions and 58 deletions.
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
CHANGELOG
=========

v0.9.5 - 11 Feb. 2016
---------------------

* Headers access fix in FF v43.0.3 and Safari v9.0.2 [#77](https://github.com/marmelab/restful.js/pull/77) ([yborunov](https://github.com/yborunov))
2 changes: 1 addition & 1 deletion bower.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "restful.js",
"version": "0.9.4",
"version": "0.9.5",
"homepage": "https://github.com/marmelab/restful.js",
"authors": [
"Robin Bressan <[email protected]>"
Expand Down
43 changes: 26 additions & 17 deletions dist/es5/http/fetch.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,30 +47,39 @@ exports['default'] = function (fetch) {
return fetch(!queryString.length ? url : url + '?' + queryString, config).then(function (response) {
return parseBody(response).then(function (json) {
var headers = {};
var keys = response.headers.keys();
var _iteratorNormalCompletion = true;
var _didIteratorError = false;
var _iteratorError = undefined;

try {
for (var _iterator = keys[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {
var key = _step.value;
if (typeof Headers.prototype.forEach === 'function') {
response.headers.forEach(function (value, name) {
headers[name] = value;
});
} else if (typeof Headers.prototype.keys === 'function') {
var keys = response.headers.keys();
var _iteratorNormalCompletion = true;
var _didIteratorError = false;
var _iteratorError = undefined;

headers[key] = response.headers.get(key);
}
} catch (err) {
_didIteratorError = true;
_iteratorError = err;
} finally {
try {
if (!_iteratorNormalCompletion && _iterator['return']) {
_iterator['return']();
for (var _iterator = keys[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {
var key = _step.value;

headers[key] = response.headers.get(key);
}
} catch (err) {
_didIteratorError = true;
_iteratorError = err;
} finally {
if (_didIteratorError) {
throw _iteratorError;
try {
if (!_iteratorNormalCompletion && _iterator['return']) {
_iterator['return']();
}
} finally {
if (_didIteratorError) {
throw _iteratorError;
}
}
}
} else {
headers = response.headers;
}

var responsePayload = {
Expand Down
43 changes: 26 additions & 17 deletions dist/restful.js
Original file line number Diff line number Diff line change
Expand Up @@ -5546,30 +5546,39 @@ return /******/ (function(modules) { // webpackBootstrap
return fetch(!queryString.length ? url : url + '?' + queryString, config).then(function (response) {
return parseBody(response).then(function (json) {
var headers = {};
var keys = response.headers.keys();
var _iteratorNormalCompletion = true;
var _didIteratorError = false;
var _iteratorError = undefined;

try {
for (var _iterator = keys[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {
var key = _step.value;
if (typeof Headers.prototype.forEach === 'function') {
response.headers.forEach(function (value, name) {
headers[name] = value;
});
} else if (typeof Headers.prototype.keys === 'function') {
var keys = response.headers.keys();
var _iteratorNormalCompletion = true;
var _didIteratorError = false;
var _iteratorError = undefined;

headers[key] = response.headers.get(key);
}
} catch (err) {
_didIteratorError = true;
_iteratorError = err;
} finally {
try {
if (!_iteratorNormalCompletion && _iterator['return']) {
_iterator['return']();
for (var _iterator = keys[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {
var key = _step.value;

headers[key] = response.headers.get(key);
}
} catch (err) {
_didIteratorError = true;
_iteratorError = err;
} finally {
if (_didIteratorError) {
throw _iteratorError;
try {
if (!_iteratorNormalCompletion && _iterator['return']) {
_iterator['return']();
}
} finally {
if (_didIteratorError) {
throw _iteratorError;
}
}
}
} else {
headers = response.headers;
}

var responsePayload = {
Expand Down
6 changes: 3 additions & 3 deletions dist/restful.min.js

Large diffs are not rendered by default.

43 changes: 26 additions & 17 deletions dist/restful.standalone.js
Original file line number Diff line number Diff line change
Expand Up @@ -5557,30 +5557,39 @@ return /******/ (function(modules) { // webpackBootstrap
return fetch(!queryString.length ? url : url + '?' + queryString, config).then(function (response) {
return parseBody(response).then(function (json) {
var headers = {};
var keys = response.headers.keys();
var _iteratorNormalCompletion = true;
var _didIteratorError = false;
var _iteratorError = undefined;

try {
for (var _iterator = keys[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {
var key = _step.value;
if (typeof Headers.prototype.forEach === 'function') {
response.headers.forEach(function (value, name) {
headers[name] = value;
});
} else if (typeof Headers.prototype.keys === 'function') {
var keys = response.headers.keys();
var _iteratorNormalCompletion = true;
var _didIteratorError = false;
var _iteratorError = undefined;

headers[key] = response.headers.get(key);
}
} catch (err) {
_didIteratorError = true;
_iteratorError = err;
} finally {
try {
if (!_iteratorNormalCompletion && _iterator['return']) {
_iterator['return']();
for (var _iterator = keys[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {
var key = _step.value;

headers[key] = response.headers.get(key);
}
} catch (err) {
_didIteratorError = true;
_iteratorError = err;
} finally {
if (_didIteratorError) {
throw _iteratorError;
try {
if (!_iteratorNormalCompletion && _iterator['return']) {
_iterator['return']();
}
} finally {
if (_didIteratorError) {
throw _iteratorError;
}
}
}
} else {
headers = response.headers;
}

var responsePayload = {
Expand Down
4 changes: 2 additions & 2 deletions dist/restful.standalone.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "restful.js",
"version": "0.9.4",
"version": "0.9.5",
"repository": {
"type": "git",
"url": "https://github.com/marmelab/restful.js"
Expand Down

0 comments on commit 29887ad

Please sign in to comment.