Skip to content

Commit

Permalink
API version 2. See https://docs.patch.io/#/changelog for changes (#79)
Browse files Browse the repository at this point in the history
  • Loading branch information
Jeremy Oustrich authored Oct 13, 2022
1 parent 64481e0 commit 3d54524
Show file tree
Hide file tree
Showing 57 changed files with 885 additions and 373 deletions.
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.24.2",
"version": "2.0.0",
"description": "Node.js wrapper for the Patch API",
"license": "MIT",
"repository": {
Expand Down
5 changes: 3 additions & 2 deletions src/ApiClient.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* Patch API V1
* Patch API V2
* The core API used to integrate with Patch's service
*
* Contact: [email protected]
Expand All @@ -16,7 +16,8 @@ class ApiClient {
};

this.defaultHeaders = {
'User-Agent': 'patch-node/1.24.2'
'User-Agent': 'patch-node/2.0.0',
'Patch-Version': 2
};

/**
Expand Down
Loading

0 comments on commit 3d54524

Please sign in to comment.