Skip to content

Commit 5471d66

Browse files
committed
make traffic_policy fit normal format
1 parent e123950 commit 5471d66

File tree

4 files changed

+7
-17
lines changed

4 files changed

+7
-17
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
## 1.4.1
2+
3+
- Fix `traffic_policy` naming for `ngrok.forward`
4+
15
## 1.4.0
26

37
- Rename `policy` to `traffic_policy`

__test__/connect.spec.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -347,7 +347,7 @@ test("traffic policy", async (t) => {
347347
addr: httpServer.listenTo,
348348
authtoken: process.env["NGROK_AUTHTOKEN"],
349349
proto: "http",
350-
trafficPolicy: trafficPolicy,
350+
traffic_policy: trafficPolicy,
351351
});
352352
const url = listener.url();
353353

index.d.ts

Lines changed: 1 addition & 16 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/config.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -302,6 +302,7 @@ pub struct Config {
302302
#[napi(js_name = "terminate_at")]
303303
pub terminate_at: Option<String>,
304304
/// The Traffic Policy to use for this endpoint.
305+
#[napi(js_name = "traffic_policy")]
305306
pub traffic_policy: Option<String>,
306307
/// Whether to disable certificate verification for this listener
307308
#[napi(js_name = "verify_upstream_tls")]

0 commit comments

Comments
 (0)