Skip to content

Commit 96fd639

Browse files
authored
Bump node generator version (#55)
1 parent 23875a0 commit 96fd639

File tree

4 files changed

+12
-6
lines changed

4 files changed

+12
-6
lines changed

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,12 @@ All notable changes to this project will be documented in this file.
55
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
66
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
77

8+
## [1.16.1] - 2022-01-07
9+
10+
### Changed
11+
12+
- No feature changes. Updates the openapi-generator version.
13+
814
## [1.16.0] - 2021-12-07
915

1016
### Removed

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@patch-technology/patch",
3-
"version": "1.16.0",
3+
"version": "1.16.1",
44
"description": "Node.js wrapper for the Patch API",
55
"license": "MIT",
66
"repository": {

src/ApiClient.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,14 +9,14 @@ import superagent from 'superagent';
99
import querystring from 'query-string';
1010

1111
class ApiClient {
12-
constructor() {
13-
this.basePath = 'https://api.patch.io'.replace(/\/+$/, '');
12+
constructor(basePath = 'https://api.patch.io') {
13+
this.basePath = basePath.replace(/\/+$/, '');
1414
this.authentications = {
1515
bearer_auth: { type: 'bearer' }
1616
};
1717

1818
this.defaultHeaders = {
19-
'User-Agent': 'patch-node/1.16.0'
19+
'User-Agent': 'patch-node/1.16.1'
2020
};
2121

2222
/**

0 commit comments

Comments
 (0)