@ngrok/ngrok 0.9.1 → 1.0.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.
- package/CHANGELOG.md +4 -0
- package/README.md +2 -0
- package/index.d.ts +5 -0
- package/package.json +14 -14
package/CHANGELOG.md
CHANGED
package/README.md
CHANGED
|
@@ -229,6 +229,7 @@ const listener = await ngrok.forward({
|
|
|
229
229
|
proto: "http",
|
|
230
230
|
proxy_proto: "", // One of: "", "1", "2"
|
|
231
231
|
schemes: ["HTTPS"],
|
|
232
|
+
labels: "edge:edghts_2G...", // Along with proto="labeled"
|
|
232
233
|
// module configuration
|
|
233
234
|
basic_auth: ["ngrok:online1line"],
|
|
234
235
|
circuit_breaker: 0.1,
|
|
@@ -252,6 +253,7 @@ const listener = await ngrok.forward({
|
|
|
252
253
|
oidc_allow_domains: ["<domain>"],
|
|
253
254
|
oidc_allow_emails: ["<email>"],
|
|
254
255
|
oidc_scopes: ["<scope>"],
|
|
256
|
+
policy: "<policy_json>",
|
|
255
257
|
request_header_remove: ["X-Req-Nope"],
|
|
256
258
|
response_header_remove: ["X-Res-Nope"],
|
|
257
259
|
request_header_add: ["X-Req-Yup:true"],
|
package/index.d.ts
CHANGED
|
@@ -217,6 +217,8 @@ export interface Config {
|
|
|
217
217
|
onLogEvent?: (data: string) => void
|
|
218
218
|
/** 'closed' - connection is lost, 'connected' - reconnected */
|
|
219
219
|
onStatusChange?: (status: string) => void
|
|
220
|
+
/** The Traffic Policy to use for this endpoint. */
|
|
221
|
+
policy?: string
|
|
220
222
|
/**
|
|
221
223
|
* The port for the listener to forward to.
|
|
222
224
|
* Only used if addr is not defined.
|
|
@@ -542,6 +544,7 @@ export class HttpListenerBuilder {
|
|
|
542
544
|
* set this `forwardsTo` value.
|
|
543
545
|
*/
|
|
544
546
|
forwardsTo(forwardsTo: string): this
|
|
547
|
+
policy(policy: string): this
|
|
545
548
|
}
|
|
546
549
|
/**
|
|
547
550
|
*r" An ngrok listener backing a TCP endpoint.
|
|
@@ -590,6 +593,7 @@ export class TcpListenerBuilder {
|
|
|
590
593
|
* set this `forwardsTo` value.
|
|
591
594
|
*/
|
|
592
595
|
forwardsTo(forwardsTo: string): this
|
|
596
|
+
policy(policy: string): this
|
|
593
597
|
/**
|
|
594
598
|
* The TCP address to request for this edge.
|
|
595
599
|
* These addresses can be reserved in the [ngrok dashboard] to use across sessions. For example: remote_addr("2.tcp.ngrok.io:21746")
|
|
@@ -645,6 +649,7 @@ export class TlsListenerBuilder {
|
|
|
645
649
|
* set this `forwardsTo` value.
|
|
646
650
|
*/
|
|
647
651
|
forwardsTo(forwardsTo: string): this
|
|
652
|
+
policy(policy: string): this
|
|
648
653
|
/**
|
|
649
654
|
* The domain to request for this edge, any valid domain or hostname that you have
|
|
650
655
|
* previously registered with ngrok. If using a custom domain, this requires
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ngrok/ngrok",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "1.0.0",
|
|
4
4
|
"main": "index.js",
|
|
5
5
|
"types": "index.d.ts",
|
|
6
6
|
"files": [
|
|
@@ -76,18 +76,18 @@
|
|
|
76
76
|
"url": "https://github.com/ngrok/ngrok-javascript.git"
|
|
77
77
|
},
|
|
78
78
|
"optionalDependencies": {
|
|
79
|
-
"@ngrok/ngrok-win32-x64-msvc": "0.
|
|
80
|
-
"@ngrok/ngrok-darwin-x64": "0.
|
|
81
|
-
"@ngrok/ngrok-linux-x64-gnu": "0.
|
|
82
|
-
"@ngrok/ngrok-darwin-arm64": "0.
|
|
83
|
-
"@ngrok/ngrok-android-arm64": "0.
|
|
84
|
-
"@ngrok/ngrok-linux-arm64-gnu": "0.
|
|
85
|
-
"@ngrok/ngrok-linux-arm64-musl": "0.
|
|
86
|
-
"@ngrok/ngrok-linux-arm-gnueabihf": "0.
|
|
87
|
-
"@ngrok/ngrok-linux-x64-musl": "0.
|
|
88
|
-
"@ngrok/ngrok-freebsd-x64": "0.
|
|
89
|
-
"@ngrok/ngrok-win32-ia32-msvc": "0.
|
|
90
|
-
"@ngrok/ngrok-android-arm-eabi": "0.
|
|
91
|
-
"@ngrok/ngrok-darwin-universal": "0.
|
|
79
|
+
"@ngrok/ngrok-win32-x64-msvc": "1.0.0",
|
|
80
|
+
"@ngrok/ngrok-darwin-x64": "1.0.0",
|
|
81
|
+
"@ngrok/ngrok-linux-x64-gnu": "1.0.0",
|
|
82
|
+
"@ngrok/ngrok-darwin-arm64": "1.0.0",
|
|
83
|
+
"@ngrok/ngrok-android-arm64": "1.0.0",
|
|
84
|
+
"@ngrok/ngrok-linux-arm64-gnu": "1.0.0",
|
|
85
|
+
"@ngrok/ngrok-linux-arm64-musl": "1.0.0",
|
|
86
|
+
"@ngrok/ngrok-linux-arm-gnueabihf": "1.0.0",
|
|
87
|
+
"@ngrok/ngrok-linux-x64-musl": "1.0.0",
|
|
88
|
+
"@ngrok/ngrok-freebsd-x64": "1.0.0",
|
|
89
|
+
"@ngrok/ngrok-win32-ia32-msvc": "1.0.0",
|
|
90
|
+
"@ngrok/ngrok-android-arm-eabi": "1.0.0",
|
|
91
|
+
"@ngrok/ngrok-darwin-universal": "1.0.0"
|
|
92
92
|
}
|
|
93
93
|
}
|