Skip to content

Commit

Permalink
feat: improve intercept.v1 config protocol parsing (#193)
Browse files Browse the repository at this point in the history
  • Loading branch information
rentallect authored Mar 5, 2024
1 parent 88b9dca commit 40cdfe5
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 5 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@
]
},
"dependencies": {
"@openziti/ziti-browzer-core": "^0.38.0",
"@openziti/ziti-browzer-core": "^0.39.0",
"async-mutex": "^0.3.2",
"cheerio": "^1.0.0-rc.12",
"jwt-decode": "^3.1.2",
Expand Down
9 changes: 9 additions & 0 deletions src/ZitiFirstStrategy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -328,6 +328,14 @@ class ZitiFirstStrategy extends CacheFirst /* NetworkFirst */ {

}

async noConfigProtocolForServiceEventHandler(noConfigProtocolForServiceEvent: any) {

this.logger.trace(`noConfigProtocolForServiceEventHandler() `, noConfigProtocolForServiceEvent);

await this._zitiBrowzerServiceWorkerGlobalScope._noConfigProtocolForService(noConfigProtocolForServiceEvent);

}

async sessionCreationErrorEventHandler(sessionCreationErrorEvent: any) {

this.logger.trace(`sessionCreationErrorEventHandler() `, sessionCreationErrorEvent);
Expand Down Expand Up @@ -433,6 +441,7 @@ class ZitiFirstStrategy extends CacheFirst /* NetworkFirst */ {
this._zitiContext.on(ZITI_CONSTANTS.ZITI_EVENT_NO_WSS_ROUTERS, this.noWSSRoutersEventHandler);
this._zitiContext.on(ZITI_CONSTANTS.ZITI_EVENT_XGRESS, this.xgressEventHandler);
this._zitiContext.on(ZITI_CONSTANTS.ZITI_EVENT_NESTED_TLS_HANDSHAKE_TIMEOUT, this.nestedTLSHandshakeTimeoutEventHandler);
this._zitiContext.on(ZITI_CONSTANTS.ZITI_EVENT_NO_CONFIG_PROTOCOL_FOR_SERVICE, this.noConfigProtocolForServiceEventHandler);


this.logger.trace(`_initialize: ZitiContext '${this._uuid}' initialized`);
Expand Down
8 changes: 4 additions & 4 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -969,10 +969,10 @@
"@types/emscripten" "^1.39.6"
"@wasmer/wasi" "^1.0.2"

"@openziti/ziti-browzer-core@^0.38.0":
version "0.38.0"
resolved "https://registry.yarnpkg.com/@openziti/ziti-browzer-core/-/ziti-browzer-core-0.38.0.tgz#d7736710e0135457b8c249b9d9603bbb49fc5df6"
integrity sha512-rkfea0+QODGZIL4E8z1HUqqz0l32W1dCuY4AePQc3aWJ12x0oMersckVfwCw1dvs5+9xUuLr/u0vO2o5DR3UHg==
"@openziti/ziti-browzer-core@^0.39.0":
version "0.39.0"
resolved "https://registry.yarnpkg.com/@openziti/ziti-browzer-core/-/ziti-browzer-core-0.39.0.tgz#e74004130067efd291a54d55ec43df69d7d1c1ee"
integrity sha512-uH5HbPX2iw3m5FddefYCBcy9sG9S3ZU8g9KJkmYHpfZ8C0KiMWxTQHjyGMa9JAHQ+N91m2q13EKPN+v2ORXhAA==
dependencies:
"@openziti/libcrypto-js" "^0.19.0"
"@openziti/ziti-browzer-edge-client" "^0.6.2"
Expand Down

0 comments on commit 40cdfe5

Please sign in to comment.