Skip to content

Commit 8382393

Browse files
authored
Merge pull request #494 from EasyPost/webhook_params
fix: wrap params for update webhook function
2 parents 36cfe42 + 9cb5933 commit 8382393

13 files changed

Lines changed: 540 additions & 1495 deletions

File tree

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
# CHANGELOG
22

3+
## Next Release
4+
5+
- Adds `webhook_secret` and `custom_headers` properties to Typescript definitions of a Webhook
6+
- Bumps dependencies
7+
38
## v7.5.5 (2025-02-06)
49

510
- Fixes type importing and constructor creation (closes #446)

audit-ci.jsonc

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
{
22
"$schema": "https://github.com/IBM/audit-ci/raw/main/docs/schema.json",
3-
"critical": true,
43
// Only fail the audit if there are critical vulnerabilities.
5-
"allowlist": []
4+
"critical": true,
5+
// TODO: `GHSA-67mh-4wv8-2f99` requires us to update `vite` once they bump their own dependencies to fix `esbuild`
6+
"allowlist": ["GHSA-67mh-4wv8-2f99"]
67
}

examples

Submodule examples updated 170 files

package-lock.json

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

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@
4949
"@pollyjs/persister-fs": "^6.0.5",
5050
"@typescript-eslint/eslint-plugin": "^5.59.5",
5151
"@typescript-eslint/parser": "^5.59.5",
52-
"@vitest/coverage-istanbul": "^2.1.8",
52+
"@vitest/coverage-istanbul": "^3.0.6",
5353
"audit-ci": "^6.6.1",
5454
"chai": "4.3.10",
5555
"chai-as-promised": "^7.1.1",
@@ -67,9 +67,9 @@
6767
"jsdoc": "^4.0.2",
6868
"prettier": "^2.8.8",
6969
"typescript": "^4.9.5 || ~5.0.0",
70-
"vite": "^6.0.11",
70+
"vite": "^6.1.0",
7171
"vite-plugin-externals": "^0.6.2",
72-
"vitest": "^2.1.8",
72+
"vitest": "^3.0.6",
7373
"vows": "^0.8.3"
7474
}
7575
}

src/services/webhook_service.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ export default (easypostClient) =>
3232
*/
3333
static async update(id, params) {
3434
const url = `webhooks/${id}`;
35+
3536
try {
3637
const response = await easypostClient._patch(url, params);
3738

test/cassettes/Webhook-Service_1674309497/creates-a-webhook_1900246512/recording.har

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

0 commit comments

Comments
 (0)