diff --git a/.github/workflows/pull-request.yml b/.github/workflows/pull-request.yml index 91de60ca7e6..3a8a0988dd7 100644 --- a/.github/workflows/pull-request.yml +++ b/.github/workflows/pull-request.yml @@ -159,6 +159,9 @@ jobs: - name: Build Webex Core run: yarn workspace @webex/webex-core run build:src + - name: Build calling package (TODO fix is something wrong with tooling) + run: yarn workspace @webex/calling run build:src + - name: Build Other Packages run: yarn workspaces foreach --parallel --verbose run build:src diff --git a/docs/samples/contact-center/app.js b/docs/samples/contact-center/app.js index 5776f561046..de62381ffe2 100644 --- a/docs/samples/contact-center/app.js +++ b/docs/samples/contact-center/app.js @@ -28,17 +28,17 @@ const agentLoginButton = document.querySelector('#loginAgent'); const dialNumber = document.querySelector('#dialNumber'); const registerStatus = document.querySelector('#ws-connection-status'); -// Store and Grab `access-token` from localstorage -if (localStorage.getItem('date') > new Date().getTime()) { - tokenElm.value = localStorage.getItem('access-token'); +// Store and Grab `access-token` from sessionStorage +if (sessionStorage.getItem('date') > new Date().getTime()) { + tokenElm.value = sessionStorage.getItem('access-token'); } else { - localStorage.removeItem('access-token'); + sessionStorage.removeItem('access-token'); } tokenElm.addEventListener('change', (event) => { - localStorage.setItem('access-token', event.target.value); - localStorage.setItem('date', new Date().getTime() + (12 * 60 * 60 * 1000)); + sessionStorage.setItem('access-token', event.target.value); + sessionStorage.setItem('date', new Date().getTime() + (12 * 60 * 60 * 1000)); }); function changeAuthType() { @@ -185,8 +185,8 @@ if (window.location.hash) { const expiresIn = urlParams.get('expires_in'); if (accessToken) { - localStorage.setItem('access-token', accessToken); - localStorage.setItem('date', new Date().getTime() + parseInt(expiresIn, 10)); + sessionStorage.setItem('access-token', accessToken); + sessionStorage.setItem('date', new Date().getTime() + parseInt(expiresIn, 10)); tokenElm.value = accessToken; } } diff --git a/packages/@webex/plugin-cc/package.json b/packages/@webex/plugin-cc/package.json index f6daba0b555..3a686891336 100644 --- a/packages/@webex/plugin-cc/package.json +++ b/packages/@webex/plugin-cc/package.json @@ -12,7 +12,7 @@ "node": ">=20.x" }, "scripts": { - "build:src": "webex-legacy-tools build -dest \"./dist\" -src \"./src\" -js -ts && yarn build", + "build:src": "webex-legacy-tools build -dest \"./dist\" -src \"./src\" -js -ts -maps && yarn build", "build": "yarn run -T tsc --declaration true --declarationDir ./dist/types", "docs": "typedoc --emit none", "fix:lint": "eslint 'src/**/*.ts' --fix",