Skip to content

Commit 3d54524

Browse files
author
Jeremy Oustrich
authored
API version 2. See https://docs.patch.io/#/changelog for changes (#79)
1 parent 64481e0 commit 3d54524

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

57 files changed

+885
-373
lines changed

package-lock.json

+2-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

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

src/ApiClient.js

+3-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
* Patch API V1
2+
* Patch API V2
33
* The core API used to integrate with Patch's service
44
*
55
* Contact: [email protected]
@@ -16,7 +16,8 @@ class ApiClient {
1616
};
1717

1818
this.defaultHeaders = {
19-
'User-Agent': 'patch-node/1.24.2'
19+
'User-Agent': 'patch-node/2.0.0',
20+
'Patch-Version': 2
2021
};
2122

2223
/**

0 commit comments

Comments
 (0)