Skip to content

Commit

Permalink
Merge pull request #280 from gregorylegarec/chore/v0.14.0
Browse files Browse the repository at this point in the history
Prepare 0.14.0 💎
  • Loading branch information
gregorylegarec authored Oct 31, 2018
2 parents c6f30e8 + 78ee53d commit 65400b3
Show file tree
Hide file tree
Showing 7 changed files with 30 additions and 10 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,12 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
### Removed
- none yet


## [v0.14.0] - 2018-10-31
### Added
- Expose `fetch()` method


## [v0.13.0] - 2018-09-19
### Added
- Added a function to migrate PouchDB databases from one adapter to another.
Expand Down
13 changes: 10 additions & 3 deletions dist/cozy-client.js
Original file line number Diff line number Diff line change
Expand Up @@ -4812,6 +4812,8 @@ function typedBuffer() {
"use strict";


var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };

var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); /* global fetch URL */


Expand All @@ -4831,9 +4833,9 @@ var _data = __webpack_require__(65);

var data = _interopRequireWildcard(_data);

var _fetch = __webpack_require__(0);
var _fetch2 = __webpack_require__(0);

var cozyFetch = _interopRequireWildcard(_fetch);
var cozyFetch = _interopRequireWildcard(_fetch2);

var _mango = __webpack_require__(66);

Expand Down Expand Up @@ -5075,7 +5077,12 @@ var Client = function () {
this.offline.init(options.offline);
}

// Exposing cozyFetchJSON to make some development easier. Should be temporary.
this.fetch = function _fetch(method, url) {
var options = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};

return cozyFetch.cozyFetch(this, url, _extends({}, options, { method: method }));
};

this.fetchJSON = function _fetchJSON() {
var args = [this].concat(Array.prototype.slice.call(arguments));
return cozyFetch.cozyFetchJSON.apply(this, args);
Expand Down
2 changes: 1 addition & 1 deletion dist/cozy-client.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/cozy-client.min.js

Large diffs are not rendered by default.

13 changes: 10 additions & 3 deletions dist/cozy-client.node.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/cozy-client.node.js.map

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": "cozy-client-js",
"version": "0.13.0",
"version": "0.14.0",
"description": "Javascript library to interact with a cozy",
"main": "dist/cozy-client.node.js",
"browser": "dist/cozy-client.js",
Expand Down

0 comments on commit 65400b3

Please sign in to comment.