@tryvital/vital-node 1.0.9 → 1.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -9,7 +9,7 @@ export class WebhooksApi {
9
9
  this.client = axios;
10
10
  }
11
11
 
12
- public static constructWebhookEvent(
12
+ public constructWebhookEvent(
13
13
  payload: string,
14
14
  headers: Record<string, string>,
15
15
  secret: string
@@ -3,5 +3,5 @@ export declare class WebhooksApi {
3
3
  baseURL: string;
4
4
  client: AxiosInstance;
5
5
  constructor(baseURL: string, axios: AxiosInstance);
6
- static constructWebhookEvent(payload: string, headers: Record<string, string>, secret: string): unknown;
6
+ constructWebhookEvent(payload: string, headers: Record<string, string>, secret: string): unknown;
7
7
  }
@@ -7,7 +7,7 @@ var WebhooksApi = /** @class */ (function () {
7
7
  this.baseURL = baseURL;
8
8
  this.client = axios;
9
9
  }
10
- WebhooksApi.constructWebhookEvent = function (payload, headers, secret) {
10
+ WebhooksApi.prototype.constructWebhookEvent = function (payload, headers, secret) {
11
11
  var wh = new svix_1.Webhook(secret);
12
12
  return wh.verify(payload, headers);
13
13
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tryvital/vital-node",
3
- "version": "1.0.9",
3
+ "version": "1.1.0",
4
4
  "description": "Node client for Vital",
5
5
  "author": "maitham",
6
6
  "keywords": [
@@ -42,8 +42,8 @@
42
42
  "eslint-plugin-import": "^2.24.0",
43
43
  "eslint-plugin-prettier": "^3.4.0",
44
44
  "esm": "^3.2.25",
45
- "mocha": "^8.4.0",
46
- "mocha-junit-reporter": "^1.23.1",
45
+ "mocha": "^9.2.0",
46
+ "mocha-junit-reporter": "^2.0.2",
47
47
  "nock": "^13.1.1",
48
48
  "nyc": "^15.1.0",
49
49
  "prettier": "^2.3.2",