@pipecat-ai/daily-transport 1.2.1 → 1.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +10 -1
- package/dist/index.js.map +1 -1
- package/dist/index.module.js +10 -1
- package/dist/index.module.js.map +1 -1
- package/package.json +3 -3
package/dist/index.module.js
CHANGED
|
@@ -1465,7 +1465,7 @@ globalThis.WavRecorder = WavRecorder;
|
|
|
1465
1465
|
|
|
1466
1466
|
|
|
1467
1467
|
var $58d19ff082af5e5c$exports = {};
|
|
1468
|
-
$58d19ff082af5e5c$exports = JSON.parse("{\"name\":\"@pipecat-ai/daily-transport\",\"version\":\"1.
|
|
1468
|
+
$58d19ff082af5e5c$exports = JSON.parse("{\"name\":\"@pipecat-ai/daily-transport\",\"version\":\"1.4.0\",\"license\":\"BSD-2-Clause\",\"main\":\"dist/index.js\",\"module\":\"dist/index.module.js\",\"types\":\"dist/index.d.ts\",\"source\":\"src/index.ts\",\"repository\":{\"type\":\"git\",\"url\":\"git+https://github.com/pipecat-ai/pipecat-client-web-transports.git\"},\"files\":[\"dist\",\"package.json\",\"README.md\"],\"scripts\":{\"build\":\"parcel build --no-cache\",\"dev\":\"parcel watch\",\"lint\":\"eslint . --ext ts --report-unused-disable-directives --max-warnings 0\"},\"devDependencies\":{\"@pipecat-ai/client-js\":\"^1.4.0\",\"eslint\":\"9.11.1\",\"eslint-config-prettier\":\"^9.1.0\",\"eslint-plugin-simple-import-sort\":\"^12.1.1\"},\"peerDependencies\":{\"@pipecat-ai/client-js\":\"~1.4.0\"},\"dependencies\":{\"@daily-co/daily-js\":\"^0.83.1\"},\"description\":\"Pipecat Daily Transport Package\",\"author\":\"Daily.co\",\"bugs\":{\"url\":\"https://github.com/pipecat-ai/pipecat-client-web-transports/issues\"},\"homepage\":\"https://github.com/pipecat-ai/pipecat-client-web-transports/blob/main/transports/daily-webrtc/README.md\"}");
|
|
1469
1469
|
|
|
1470
1470
|
|
|
1471
1471
|
var $683f111f61e07358$export$ef180de88fd317cc;
|
|
@@ -1528,6 +1528,12 @@ class $683f111f61e07358$export$b1ca982aa1e488c1 extends (0, $7zbD8$Transport) {
|
|
|
1528
1528
|
this._callbacks = {};
|
|
1529
1529
|
const { bufferLocalAudioUntilBotReady: bufferLocalAudioUntilBotReady, ...dailyOpts } = opts;
|
|
1530
1530
|
this._dailyFactoryOptions = dailyOpts;
|
|
1531
|
+
// Enable device preference cookies by default
|
|
1532
|
+
if (typeof this._dailyFactoryOptions.dailyConfig?.useDevicePreferenceCookies === "undefined") {
|
|
1533
|
+
// purposeful == to check undefined or null
|
|
1534
|
+
if (this._dailyFactoryOptions.dailyConfig == null) this._dailyFactoryOptions.dailyConfig = {};
|
|
1535
|
+
this._dailyFactoryOptions.dailyConfig.useDevicePreferenceCookies = true;
|
|
1536
|
+
}
|
|
1531
1537
|
this._bufferLocalAudioUntilBotReady = bufferLocalAudioUntilBotReady || false;
|
|
1532
1538
|
this._daily = (0, $7zbD8$dailycodailyjs).createCallObject({
|
|
1533
1539
|
...this._dailyFactoryOptions,
|
|
@@ -1766,6 +1772,9 @@ class $683f111f61e07358$export$b1ca982aa1e488c1 extends (0, $7zbD8$Transport) {
|
|
|
1766
1772
|
return /iPad|iPhone|iPod/.test(userAgent) || /Macintosh/.test(userAgent) && "ontouchend" in document;
|
|
1767
1773
|
};
|
|
1768
1774
|
const sendReadyMessage = ()=>{
|
|
1775
|
+
// TODO: Consider changing to match the iOS/Android SDKs where
|
|
1776
|
+
// we don't actually set our state to "ready" until
|
|
1777
|
+
// we've received the bot_ready signal
|
|
1769
1778
|
this.state = "ready";
|
|
1770
1779
|
this.flushAudioQueue();
|
|
1771
1780
|
this.sendMessage((0, $7zbD8$RTVIMessage).clientReady());
|