Skip to content

Commit

Permalink
fix: async SET_COOKIE msging (#149)
Browse files Browse the repository at this point in the history
  • Loading branch information
rentallect authored Aug 2, 2023
1 parent 9f5bfae commit 63eb57e
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 7 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.27.0",
"@openziti/ziti-browzer-core": "^0.27.1",
"async-mutex": "^0.3.2",
"cheerio": "^1.0.0-rc.12",
"jwt-decode": "^3.1.2",
Expand Down
3 changes: 1 addition & 2 deletions src/ZitiFirstStrategy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1289,13 +1289,12 @@ class ZitiFirstStrategy extends CacheFirst /* NetworkFirst */ {
if (Array.isArray(val)) {
for (var ndx = 0; ndx < val.length; ndx++) {
this.logger.trace( 'ZitiFirstStrategy: sending SET_COOKIE cmd');
let resp = await this._zitiBrowzerServiceWorkerGlobalScope._sendMessageToClients(
this._zitiBrowzerServiceWorkerGlobalScope._sendMessageToClients(
{
type: 'SET_COOKIE',
payload: val[ndx]
}
);
this.logger.trace( 'ZitiFirstStrategy: SET_COOKIE response: ', resp);
let parts = val[ndx].split('=');
this._zitiBrowzerServiceWorkerGlobalScope._cookieObject[parts[0]] = parts[1];
}
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.27.0":
version "0.27.0"
resolved "https://registry.yarnpkg.com/@openziti/ziti-browzer-core/-/ziti-browzer-core-0.27.0.tgz#413e6de182f91a183346dcfb707f2de744ae6f07"
integrity sha512-hV+D+0KjrPEXZonaGjctlpfz65m7H8xpV8yuzfWqVrRJ4CRoXF+QLMeOuJdP5OlCyn3vUhvt7NTEAND92K6Rdw==
"@openziti/ziti-browzer-core@^0.27.1":
version "0.27.1"
resolved "https://registry.yarnpkg.com/@openziti/ziti-browzer-core/-/ziti-browzer-core-0.27.1.tgz#7f636205e24aee537d0f9f74af4a0dfab07ce8ee"
integrity sha512-8f+6Vtz3AeGeKSCuHBk+n0BDH1qKva6FzFCLozpYr1tXzBbJIikDlBkLyi2qIgmYpU+NGfJr863Zc0e0jR/HZQ==
dependencies:
"@openziti/libcrypto-js" "^0.15.0"
"@openziti/ziti-browzer-edge-client" "^0.6.2"
Expand Down

0 comments on commit 63eb57e

Please sign in to comment.