@ngrok/ngrok 1.1.1 → 1.2.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.
Files changed (3) hide show
  1. package/CHANGELOG.md +4 -0
  2. package/index.d.ts +10 -0
  3. package/package.json +14 -14
package/CHANGELOG.md CHANGED
@@ -1,3 +1,7 @@
1
+ ## 1.2.0:
2
+
3
+ - Add `verifyUpstreamTls` to listener builders and `verify_upstream_tls` to `ngrok.forward`. Setting this to false will skip verification of the upstream application's TLS certificate.
4
+
1
5
  ## 1.1.1:
2
6
 
3
7
  - Add `appProtocol(string)` to the labeled listener builder. Setting this to "http2" will enable HTTP/2 support to the backend application.
package/index.d.ts CHANGED
@@ -289,6 +289,8 @@ export interface Config {
289
289
  subdomain?: string
290
290
  /** Unused, will warn and be ignored */
291
291
  terminate_at?: string
292
+ /** Whether to disable certificate verification for this listener */
293
+ verify_upstream_tls?: boolean
292
294
  /**
293
295
  * WebhookVerification configuration, the provider to use.
294
296
  * See [Webhook Verification] in the ngrok docs for additional details.
@@ -509,6 +511,8 @@ export class HttpListenerBuilder {
509
511
  webhookVerification(provider: string, secret: string): this
510
512
  /** Listener-specific opaque metadata. Viewable via the API. */
511
513
  metadata(metadata: string): this
514
+ /** Whether to disable certificate verification for this listener. */
515
+ verifyUpstreamTls(verifyUpstreamTls: boolean): this
512
516
  /** Begin listening for new connections on this listener. */
513
517
  listen(bind?: boolean | undefined | null): Promise<Listener>
514
518
  /**
@@ -558,6 +562,8 @@ export class HttpListenerBuilder {
558
562
  export class TcpListenerBuilder {
559
563
  /** Listener-specific opaque metadata. Viewable via the API. */
560
564
  metadata(metadata: string): this
565
+ /** Whether to disable certificate verification for this listener. */
566
+ verifyUpstreamTls(verifyUpstreamTls: boolean): this
561
567
  /** Begin listening for new connections on this listener. */
562
568
  listen(bind?: boolean | undefined | null): Promise<Listener>
563
569
  /**
@@ -614,6 +620,8 @@ export class TcpListenerBuilder {
614
620
  export class TlsListenerBuilder {
615
621
  /** Listener-specific opaque metadata. Viewable via the API. */
616
622
  metadata(metadata: string): this
623
+ /** Whether to disable certificate verification for this listener. */
624
+ verifyUpstreamTls(verifyUpstreamTls: boolean): this
617
625
  /** Begin listening for new connections on this listener. */
618
626
  listen(bind?: boolean | undefined | null): Promise<Listener>
619
627
  /**
@@ -685,6 +693,8 @@ export class TlsListenerBuilder {
685
693
  export class LabeledListenerBuilder {
686
694
  /** Listener-specific opaque metadata. Viewable via the API. */
687
695
  metadata(metadata: string): this
696
+ /** Whether to disable certificate verification for this listener. */
697
+ verifyUpstreamTls(verifyUpstreamTls: boolean): this
688
698
  /** Begin listening for new connections on this listener. */
689
699
  listen(bind?: boolean | undefined | null): Promise<Listener>
690
700
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ngrok/ngrok",
3
- "version": "1.1.1",
3
+ "version": "1.2.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.1.1",
80
- "@ngrok/ngrok-darwin-x64": "1.1.1",
81
- "@ngrok/ngrok-linux-x64-gnu": "1.1.1",
82
- "@ngrok/ngrok-darwin-arm64": "1.1.1",
83
- "@ngrok/ngrok-android-arm64": "1.1.1",
84
- "@ngrok/ngrok-linux-arm64-gnu": "1.1.1",
85
- "@ngrok/ngrok-linux-arm64-musl": "1.1.1",
86
- "@ngrok/ngrok-linux-arm-gnueabihf": "1.1.1",
87
- "@ngrok/ngrok-linux-x64-musl": "1.1.1",
88
- "@ngrok/ngrok-freebsd-x64": "1.1.1",
89
- "@ngrok/ngrok-win32-ia32-msvc": "1.1.1",
90
- "@ngrok/ngrok-android-arm-eabi": "1.1.1",
91
- "@ngrok/ngrok-darwin-universal": "1.1.1"
79
+ "@ngrok/ngrok-win32-x64-msvc": "1.2.0",
80
+ "@ngrok/ngrok-darwin-x64": "1.2.0",
81
+ "@ngrok/ngrok-linux-x64-gnu": "1.2.0",
82
+ "@ngrok/ngrok-darwin-arm64": "1.2.0",
83
+ "@ngrok/ngrok-android-arm64": "1.2.0",
84
+ "@ngrok/ngrok-linux-arm64-gnu": "1.2.0",
85
+ "@ngrok/ngrok-linux-arm64-musl": "1.2.0",
86
+ "@ngrok/ngrok-linux-arm-gnueabihf": "1.2.0",
87
+ "@ngrok/ngrok-linux-x64-musl": "1.2.0",
88
+ "@ngrok/ngrok-freebsd-x64": "1.2.0",
89
+ "@ngrok/ngrok-win32-ia32-msvc": "1.2.0",
90
+ "@ngrok/ngrok-android-arm-eabi": "1.2.0",
91
+ "@ngrok/ngrok-darwin-universal": "1.2.0"
92
92
  }
93
93
  }