Skip to content

Commit

Permalink
Build the latest version
Browse files Browse the repository at this point in the history
  • Loading branch information
tylerlong committed Aug 12, 2024
1 parent 18c4eb2 commit 0a5260d
Show file tree
Hide file tree
Showing 14 changed files with 19 additions and 14 deletions.
2 changes: 1 addition & 1 deletion docs/callback.html
Original file line number Diff line number Diff line change
@@ -1 +1 @@
<!doctype html><html><script type="module" src="index.ff75d985.js"></script><body> <link rel="icon shortcut" href="favicon.4a73512e.png"> <script type="module" src="callback.6e27cad3.js"></script> </body></html>
<!doctype html><html><script type="module" src="index.f51ed9cc.js"></script><body> <link rel="icon shortcut" href="favicon.4a73512e.png"> <script type="module" src="callback.6e27cad3.js"></script> </body></html>
4 changes: 2 additions & 2 deletions docs/index.9ddd6c6e.js → docs/index.050916f2.js

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions docs/index.050916f2.js.map

Large diffs are not rendered by default.

1 change: 0 additions & 1 deletion docs/index.9ddd6c6e.js.map

This file was deleted.

2 changes: 2 additions & 0 deletions docs/index.f51ed9cc.js

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions docs/index.f51ed9cc.js.map

Large diffs are not rendered by default.

2 changes: 0 additions & 2 deletions docs/index.ff75d985.js

This file was deleted.

1 change: 0 additions & 1 deletion docs/index.ff75d985.js.map

This file was deleted.

4 changes: 2 additions & 2 deletions docs/index.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<!doctype html><html><head><script type="module" src="index.ff75d985.js"></script><link rel="stylesheet" href="index.f01e0bc4.css"><script type="module" src="index.runtime.da1d749b.js"></script><link rel="icon shortcut" href="favicon.4a73512e.png"><title>RingCentral WebPhone Demo</title></head><body> <div class="container"> <h1>RingCentral WebPhone Demo</h1> <div id="app"></div> </div> <video id="remoteVideo" hidden></video> <video id="localVideo" hidden muted></video> <script type="text/html" id="template-incoming">
<!doctype html><html><head><script type="module" src="index.f51ed9cc.js"></script><link rel="stylesheet" href="index.f01e0bc4.css"><script type="module" src="index.runtime.a3fa22e1.js"></script><link rel="icon shortcut" href="favicon.4a73512e.png"><title>RingCentral WebPhone Demo</title></head><body> <div class="container"> <h1>RingCentral WebPhone Demo</h1> <div id="app"></div> </div> <video id="remoteVideo" hidden></video> <video id="localVideo" hidden muted></video> <script type="text/html" id="template-incoming">
<div class="modal fade" tabindex="-1" role="dialog">
<div class="modal-dialog">
<div class="modal-content">
Expand Down Expand Up @@ -179,4 +179,4 @@ <h4 class="modal-title">
</div>
</div>
</div>
</script> <script type="module" src="index.9ddd6c6e.js"></script> </body></html>
</script> <script type="module" src="index.050916f2.js"></script> </body></html>

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "ringcentral-web-phone",
"version": "1.0.3",
"version": "1.0.4",
"homepage": "https://github.com/ringcentral/ringcentral-web-phone",
"bugs": {
"url": "https://github.com/ringcentral/ringcentral-web-phone/issues"
Expand Down Expand Up @@ -38,7 +38,7 @@
"types": "./lib/src/index.d.ts",
"scripts": {
"build": "rm -rf lib && yarn tsc && rm -rf docs && parcel build demo/index.html demo/callback.html --dist-dir docs --public-url ./",
"lint": "eslint --fix '**/*.{ts,tsx,js,jsx}' && prettier --write . && sort-package-json",
"lint": "tsc --noEmit --target ESNext --moduleResolution bundler ./src/*.ts && eslint --fix '**/*.{ts,tsx,js,jsx}' && prettier --write . && sort-package-json",
"serve": "rm -rf .parcel-cache && parcel demo/index.html demo/callback.html --dist-dir docs",
"test": "jest src/mediaStreams.spec.ts",
"test2": "NODE_OPTIONS=--require=dotenv-override-true/config playwright test test/index.spec.ts --workers=1",
Expand Down
4 changes: 4 additions & 0 deletions src/session.ts
Original file line number Diff line number Diff line change
Expand Up @@ -394,6 +394,7 @@ async function sendInfoAndReceiveResponse(this: WebPhoneSession, command: Comman

try {
obj = JSON.parse(body);
// eslint-disable-next-line @typescript-eslint/no-unused-vars
} catch (e) {
obj = {};
}
Expand Down Expand Up @@ -698,6 +699,7 @@ async function hold(this: WebPhoneSession): Promise<void> {
(this as any).logger.log('Hold Initiated');
await setHold(this, true);
(this as any).logger.log('Hold completed, held is set to true');
// eslint-disable-next-line @typescript-eslint/no-unused-vars
} catch (e) {
throw new Error('Hold could not be completed');
}
Expand All @@ -708,6 +710,7 @@ async function unhold(this: WebPhoneSession): Promise<void> {
(this as any).logger.log('Unhold Initiated');
await setHold(this, false);
(this as any).logger.log('Unhold completed, held is set to false');
// eslint-disable-next-line @typescript-eslint/no-unused-vars
} catch (e) {
throw new Error('Unhold could not be completed');
}
Expand Down Expand Up @@ -971,6 +974,7 @@ function stopMediaStreamStats(session: WebPhoneSession) {
}
}

// eslint-disable-next-line @typescript-eslint/no-unused-vars
function onLocalHold(this: WebPhoneSession): boolean {
return this.__localHold!;
}
Expand Down
1 change: 1 addition & 0 deletions src/userAgentCore.ts
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ function getIncomingInfoContent(message: IncomingRequestMessage): any {
let ret = {};
try {
ret = JSON.parse(message.body);
// eslint-disable-next-line @typescript-eslint/no-unused-vars
} catch (e) {
return {};
}
Expand Down

0 comments on commit 0a5260d

Please sign in to comment.