Skip to content

Commit

Permalink
Bump node generator version (#55)
Browse files Browse the repository at this point in the history
  • Loading branch information
pcothenet authored Jan 7, 2022
1 parent 23875a0 commit 96fd639
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 6 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

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

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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": {
Expand Down
6 changes: 3 additions & 3 deletions src/ApiClient.js
Original file line number Diff line number Diff line change
Expand Up @@ -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'
};

/**
Expand Down

0 comments on commit 96fd639

Please sign in to comment.