@culturehq/client
Advanced tools
Comparing version 10.1.0 to 10.2.0
@@ -9,2 +9,8 @@ # Changelog | ||
## [10.2.0] - 2020-01-27 | ||
### Added | ||
- The `makeClient` function to allow passing in options like `apiHost` to an object that will thereafter configure all API calls. | ||
## [10.1.0] - 2019-12-06 | ||
@@ -1447,3 +1453,4 @@ | ||
[unreleased]: https://github.com/CultureHQ/client/compare/v10.1.0...HEAD | ||
[unreleased]: https://github.com/CultureHQ/client/compare/v10.2.0...HEAD | ||
[10.2.0]: https://github.com/CultureHQ/client/compare/v10.1.0...v10.2.0 | ||
[10.1.0]: https://github.com/CultureHQ/client/compare/v10.0.1...v10.1.0 | ||
@@ -1450,0 +1457,0 @@ [10.0.1]: https://github.com/CultureHQ/client/compare/v10.0.0...v10.0.1 |
@@ -8,3 +8,3 @@ "use strict"; | ||
var _calls = _interopRequireDefault(require("./calls")); | ||
var _calls = _interopRequireDefault(require("./calls.json")); | ||
@@ -11,0 +11,0 @@ var _constants = require("./constants"); |
@@ -21,3 +21,4 @@ "use strict"; | ||
onUserActivityCreated: true, | ||
skipPreflightChecks: true | ||
skipPreflightChecks: true, | ||
makeClient: true | ||
}; | ||
@@ -114,2 +115,8 @@ Object.defineProperty(exports, "getToken", { | ||
}); | ||
Object.defineProperty(exports, "makeClient", { | ||
enumerable: true, | ||
get: function get() { | ||
return _makeClient["default"]; | ||
} | ||
}); | ||
exports["default"] = void 0; | ||
@@ -142,2 +149,4 @@ | ||
var _makeClient = _interopRequireDefault(require("./makeClient")); | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } | ||
@@ -144,0 +153,0 @@ |
{ | ||
"name": "@culturehq/client", | ||
"version": "10.1.0", | ||
"version": "10.2.0", | ||
"description": "A JavaScript client that wraps the CultureHQ API", | ||
@@ -26,6 +26,6 @@ "main": "dist/client.js", | ||
"devDependencies": { | ||
"@babel/cli": "^7.7.5", | ||
"@babel/core": "^7.7.5", | ||
"@babel/cli": "^7.8.3", | ||
"@babel/core": "^7.7.7", | ||
"@babel/preset-env": "^7.7.5", | ||
"@culturehq/scripts": "^5.0.0", | ||
"@culturehq/scripts": "^5.1.2", | ||
"isomorphic-fetch": "^2.2.1", | ||
@@ -32,0 +32,0 @@ "isomorphic-form-data": "^2.0.0", |
@@ -1,2 +0,2 @@ | ||
import calls from "./calls"; | ||
import calls from "./calls.json"; | ||
import { API_HOST } from "./constants"; | ||
@@ -3,0 +3,0 @@ import performRequest from "./performRequest"; |
@@ -32,1 +32,2 @@ import client from "./apiCalls"; | ||
export * from "./requests"; | ||
export { default as makeClient } from "./makeClient"; |
156009
37
2218