@ngrok/ngrok 1.0.0 → 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.
- package/CHANGELOG.md +4 -0
- package/README.md +1 -0
- package/index.d.ts +4 -0
- package/package.json +14 -14
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,7 @@
|
|
|
1
|
+
## 1.1.0:
|
|
2
|
+
|
|
3
|
+
- Add `appProtocol(string)` to http listener builder, and `app_protocol: string` as a `ngrok.forward()` argument. Setting this to "http2" will enable HTTP/2 support to the backend application.
|
|
4
|
+
|
|
1
5
|
## 1.0.0:
|
|
2
6
|
|
|
3
7
|
- Add policy support to Listener builders and `ngrok.forward`
|
package/README.md
CHANGED
|
@@ -230,6 +230,7 @@ const listener = await ngrok.forward({
|
|
|
230
230
|
proxy_proto: "", // One of: "", "1", "2"
|
|
231
231
|
schemes: ["HTTPS"],
|
|
232
232
|
labels: "edge:edghts_2G...", // Along with proto="labeled"
|
|
233
|
+
app_protocol: "http2",
|
|
233
234
|
// module configuration
|
|
234
235
|
basic_auth: ["ngrok:online1line"],
|
|
235
236
|
circuit_breaker: 0.1,
|
package/index.d.ts
CHANGED
|
@@ -14,6 +14,8 @@ export interface Config {
|
|
|
14
14
|
* Examples: "80", "localhost:8080", "https://192.168.1.100:8443", "unix:/tmp/my.sock", "pipe://./my-pipe"
|
|
15
15
|
*/
|
|
16
16
|
addr?: number|string
|
|
17
|
+
/** The L7 application protocol to use for this edge, e.g. "http2" or "http1". */
|
|
18
|
+
app_protocol?: string
|
|
17
19
|
auth?: string|Array<string>
|
|
18
20
|
/**
|
|
19
21
|
* Configures the session to authenticate with the provided authtoken. You
|
|
@@ -396,6 +398,8 @@ export class HttpListenerBuilder {
|
|
|
396
398
|
* "HTTPS" or "HTTP", defaults to "HTTPS".
|
|
397
399
|
*/
|
|
398
400
|
scheme(scheme: string): this
|
|
401
|
+
/** The L7 application protocol to use for this edge, e.g. "http2" or "http1". */
|
|
402
|
+
appProtocol(appProtocol: string): this
|
|
399
403
|
/**
|
|
400
404
|
* The domain to request for this edge, any valid domain or hostname that you have
|
|
401
405
|
* 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": "1.
|
|
3
|
+
"version": "1.1.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": "1.
|
|
80
|
-
"@ngrok/ngrok-darwin-x64": "1.
|
|
81
|
-
"@ngrok/ngrok-linux-x64-gnu": "1.
|
|
82
|
-
"@ngrok/ngrok-darwin-arm64": "1.
|
|
83
|
-
"@ngrok/ngrok-android-arm64": "1.
|
|
84
|
-
"@ngrok/ngrok-linux-arm64-gnu": "1.
|
|
85
|
-
"@ngrok/ngrok-linux-arm64-musl": "1.
|
|
86
|
-
"@ngrok/ngrok-linux-arm-gnueabihf": "1.
|
|
87
|
-
"@ngrok/ngrok-linux-x64-musl": "1.
|
|
88
|
-
"@ngrok/ngrok-freebsd-x64": "1.
|
|
89
|
-
"@ngrok/ngrok-win32-ia32-msvc": "1.
|
|
90
|
-
"@ngrok/ngrok-android-arm-eabi": "1.
|
|
91
|
-
"@ngrok/ngrok-darwin-universal": "1.
|
|
79
|
+
"@ngrok/ngrok-win32-x64-msvc": "1.1.0",
|
|
80
|
+
"@ngrok/ngrok-darwin-x64": "1.1.0",
|
|
81
|
+
"@ngrok/ngrok-linux-x64-gnu": "1.1.0",
|
|
82
|
+
"@ngrok/ngrok-darwin-arm64": "1.1.0",
|
|
83
|
+
"@ngrok/ngrok-android-arm64": "1.1.0",
|
|
84
|
+
"@ngrok/ngrok-linux-arm64-gnu": "1.1.0",
|
|
85
|
+
"@ngrok/ngrok-linux-arm64-musl": "1.1.0",
|
|
86
|
+
"@ngrok/ngrok-linux-arm-gnueabihf": "1.1.0",
|
|
87
|
+
"@ngrok/ngrok-linux-x64-musl": "1.1.0",
|
|
88
|
+
"@ngrok/ngrok-freebsd-x64": "1.1.0",
|
|
89
|
+
"@ngrok/ngrok-win32-ia32-msvc": "1.1.0",
|
|
90
|
+
"@ngrok/ngrok-android-arm-eabi": "1.1.0",
|
|
91
|
+
"@ngrok/ngrok-darwin-universal": "1.1.0"
|
|
92
92
|
}
|
|
93
93
|
}
|