@exotel-npm-dev/exotel-ai-assist 1.3.4 → 1.3.5
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/controller/index.js +1 -14
- package/dist/index.js +1 -14
- package/dist/react/index.js +1 -14
- package/dist/utils/index.d.ts +0 -8
- package/package.json +1 -1
- package/src/utils/index.ts +1 -15
package/dist/controller/index.js
CHANGED
|
@@ -1556,7 +1556,7 @@ class Utils {
|
|
|
1556
1556
|
return new Date(ms).toLocaleTimeString([], {
|
|
1557
1557
|
hour: "2-digit",
|
|
1558
1558
|
minute: "2-digit",
|
|
1559
|
-
|
|
1559
|
+
second: "2-digit"
|
|
1560
1560
|
});
|
|
1561
1561
|
}
|
|
1562
1562
|
/**
|
|
@@ -1601,19 +1601,6 @@ class Utils {
|
|
|
1601
1601
|
[...pairs, ...extra].forEach(([k, v]) => query.append(k, v));
|
|
1602
1602
|
return query.toString();
|
|
1603
1603
|
}
|
|
1604
|
-
/**
|
|
1605
|
-
* Returns a unique ID string.
|
|
1606
|
-
*
|
|
1607
|
-
* If the browser supports `crypto.randomUUID`, it uses that. Otherwise, it
|
|
1608
|
-
* falls back to a simple timestamp-based ID.
|
|
1609
|
-
* @returns A unique ID string.
|
|
1610
|
-
*/
|
|
1611
|
-
static getUniqueId() {
|
|
1612
|
-
if (typeof crypto !== "undefined" && typeof crypto.randomUUID === "function") {
|
|
1613
|
-
return crypto.randomUUID();
|
|
1614
|
-
}
|
|
1615
|
-
return `${Date.now()}-${Math.random().toString(36).slice(2)}`;
|
|
1616
|
-
}
|
|
1617
1604
|
}
|
|
1618
1605
|
Utils.MAX_EXTRA_QUERY_PARAMS = 3;
|
|
1619
1606
|
|
package/dist/index.js
CHANGED
|
@@ -20998,7 +20998,7 @@ class Utils {
|
|
|
20998
20998
|
return new Date(ms).toLocaleTimeString([], {
|
|
20999
20999
|
hour: "2-digit",
|
|
21000
21000
|
minute: "2-digit",
|
|
21001
|
-
|
|
21001
|
+
second: "2-digit"
|
|
21002
21002
|
});
|
|
21003
21003
|
}
|
|
21004
21004
|
/**
|
|
@@ -21043,19 +21043,6 @@ class Utils {
|
|
|
21043
21043
|
[...pairs, ...extra].forEach(([k, v]) => query.append(k, v));
|
|
21044
21044
|
return query.toString();
|
|
21045
21045
|
}
|
|
21046
|
-
/**
|
|
21047
|
-
* Returns a unique ID string.
|
|
21048
|
-
*
|
|
21049
|
-
* If the browser supports `crypto.randomUUID`, it uses that. Otherwise, it
|
|
21050
|
-
* falls back to a simple timestamp-based ID.
|
|
21051
|
-
* @returns A unique ID string.
|
|
21052
|
-
*/
|
|
21053
|
-
static getUniqueId() {
|
|
21054
|
-
if (typeof crypto !== "undefined" && typeof crypto.randomUUID === "function") {
|
|
21055
|
-
return crypto.randomUUID();
|
|
21056
|
-
}
|
|
21057
|
-
return `${Date.now()}-${Math.random().toString(36).slice(2)}`;
|
|
21058
|
-
}
|
|
21059
21046
|
}
|
|
21060
21047
|
Utils.MAX_EXTRA_QUERY_PARAMS = 3;
|
|
21061
21048
|
|
package/dist/react/index.js
CHANGED
|
@@ -6284,7 +6284,7 @@ class Utils {
|
|
|
6284
6284
|
return new Date(ms).toLocaleTimeString([], {
|
|
6285
6285
|
hour: "2-digit",
|
|
6286
6286
|
minute: "2-digit",
|
|
6287
|
-
|
|
6287
|
+
second: "2-digit"
|
|
6288
6288
|
});
|
|
6289
6289
|
}
|
|
6290
6290
|
/**
|
|
@@ -6329,19 +6329,6 @@ class Utils {
|
|
|
6329
6329
|
[...pairs, ...extra].forEach(([k, v]) => query.append(k, v));
|
|
6330
6330
|
return query.toString();
|
|
6331
6331
|
}
|
|
6332
|
-
/**
|
|
6333
|
-
* Returns a unique ID string.
|
|
6334
|
-
*
|
|
6335
|
-
* If the browser supports `crypto.randomUUID`, it uses that. Otherwise, it
|
|
6336
|
-
* falls back to a simple timestamp-based ID.
|
|
6337
|
-
* @returns A unique ID string.
|
|
6338
|
-
*/
|
|
6339
|
-
static getUniqueId() {
|
|
6340
|
-
if (typeof crypto !== "undefined" && typeof crypto.randomUUID === "function") {
|
|
6341
|
-
return crypto.randomUUID();
|
|
6342
|
-
}
|
|
6343
|
-
return `${Date.now()}-${Math.random().toString(36).slice(2)}`;
|
|
6344
|
-
}
|
|
6345
6332
|
}
|
|
6346
6333
|
Utils.MAX_EXTRA_QUERY_PARAMS = 3;
|
|
6347
6334
|
|
package/dist/utils/index.d.ts
CHANGED
|
@@ -28,12 +28,4 @@ export declare class Utils {
|
|
|
28
28
|
*/
|
|
29
29
|
static buildWsUrl(params: ExotelAIAssistParams): string;
|
|
30
30
|
static constructQueryParams(params: ExotelAIAssistParams): string;
|
|
31
|
-
/**
|
|
32
|
-
* Returns a unique ID string.
|
|
33
|
-
*
|
|
34
|
-
* If the browser supports `crypto.randomUUID`, it uses that. Otherwise, it
|
|
35
|
-
* falls back to a simple timestamp-based ID.
|
|
36
|
-
* @returns A unique ID string.
|
|
37
|
-
*/
|
|
38
|
-
static getUniqueId(): string;
|
|
39
31
|
}
|
package/package.json
CHANGED
package/src/utils/index.ts
CHANGED
|
@@ -20,7 +20,7 @@ export class Utils {
|
|
|
20
20
|
* @returns The formatted time string.
|
|
21
21
|
*/
|
|
22
22
|
static formatTimestamp(ms: number): string {
|
|
23
|
-
return new Date(ms).toLocaleTimeString([], { hour: "2-digit", minute: "2-digit",
|
|
23
|
+
return new Date(ms).toLocaleTimeString([], { hour: "2-digit", minute: "2-digit", second: "2-digit" });
|
|
24
24
|
}
|
|
25
25
|
|
|
26
26
|
/**
|
|
@@ -71,18 +71,4 @@ export class Utils {
|
|
|
71
71
|
[...pairs, ...extra].forEach(([k, v]) => query.append(k, v));
|
|
72
72
|
return query.toString();
|
|
73
73
|
}
|
|
74
|
-
|
|
75
|
-
/**
|
|
76
|
-
* Returns a unique ID string.
|
|
77
|
-
*
|
|
78
|
-
* If the browser supports `crypto.randomUUID`, it uses that. Otherwise, it
|
|
79
|
-
* falls back to a simple timestamp-based ID.
|
|
80
|
-
* @returns A unique ID string.
|
|
81
|
-
*/
|
|
82
|
-
static getUniqueId(): string {
|
|
83
|
-
if (typeof crypto !== "undefined" && typeof crypto.randomUUID === "function") {
|
|
84
|
-
return crypto.randomUUID();
|
|
85
|
-
}
|
|
86
|
-
return `${Date.now()}-${Math.random().toString(36).slice(2)}`;
|
|
87
|
-
}
|
|
88
74
|
}
|