diff --git a/CHANGELOG.md b/CHANGELOG.md index f8057a5..1c3ff9a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,12 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). +## [1.16.1] - 2022-01-07 + +### Changed + +- No feature changes. Updates the openapi-generator version. + ## [1.16.0] - 2021-12-07 ### Removed diff --git a/package-lock.json b/package-lock.json index 09f7a90..519b508 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "@patch-technology/patch", - "version": "1.16.0", + "version": "1.16.1", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "@patch-technology/patch", - "version": "1.16.0", + "version": "1.16.1", "license": "MIT", "dependencies": { "query-string": "^7.0.1", diff --git a/package.json b/package.json index a6e9311..7bbc06d 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@patch-technology/patch", - "version": "1.16.0", + "version": "1.16.1", "description": "Node.js wrapper for the Patch API", "license": "MIT", "repository": { diff --git a/src/ApiClient.js b/src/ApiClient.js index 58ac858..f28eb7e 100644 --- a/src/ApiClient.js +++ b/src/ApiClient.js @@ -9,14 +9,14 @@ import superagent from 'superagent'; import querystring from 'query-string'; class ApiClient { - constructor() { - this.basePath = 'https://api.patch.io'.replace(/\/+$/, ''); + constructor(basePath = 'https://api.patch.io') { + this.basePath = basePath.replace(/\/+$/, ''); this.authentications = { bearer_auth: { type: 'bearer' } }; this.defaultHeaders = { - 'User-Agent': 'patch-node/1.16.0' + 'User-Agent': 'patch-node/1.16.1' }; /**