Skip to content

Commit

Permalink
feat: security updates (#247)
Browse files Browse the repository at this point in the history
  • Loading branch information
rentallect authored Feb 26, 2025
1 parent 25ce3a6 commit 7a0487d
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 33 deletions.
3 changes: 1 addition & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,7 @@
"description": "Custom Workbox Strategies used as part of the OpenZiti browZer stack",
"main": "src/index.js",
"scripts": {
"prebuild": "node scripts/prebuild.mjs",
"build": "run-s clean prebuild bundle-sw",
"build": "run-s clean bundle-sw",
"bundle-sw": "rollup -c",
"clean": "rimraf dist",
"test": "node_modules/.bin/mocha --require @babel/register",
Expand Down
28 changes: 0 additions & 28 deletions scripts/prebuild.mjs

This file was deleted.

5 changes: 2 additions & 3 deletions src/ZitiFirstStrategy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ import {
} from '@openziti/ziti-browzer-core';

import pjson from '../package.json';
import { buildInfo } from './buildInfo'


export interface ZitiFirstOptions extends StrategyOptions {
Expand Down Expand Up @@ -440,8 +439,8 @@ class ZitiFirstStrategy extends CacheFirst /* NetworkFirst */ {
controllerApi: this._controllerApi,
sdkType: pjson.name,
sdkVersion: pjson.version,
sdkBranch: buildInfo.sdkBranch,
sdkRevision: buildInfo.sdkRevision,
sdkBranch: this._zitiBrowzerServiceWorkerGlobalScope._zitiConfig.sdkBranch,
sdkRevision: this._zitiBrowzerServiceWorkerGlobalScope._zitiConfig.sdkRevision,
token_type: this._zitiBrowzerServiceWorkerGlobalScope._zitiConfig.token_type,
id_token: this._zitiBrowzerServiceWorkerGlobalScope._zitiConfig.id_token,
access_token: this._zitiBrowzerServiceWorkerGlobalScope._zitiConfig.access_token,
Expand Down

0 comments on commit 7a0487d

Please sign in to comment.