phonic 0.8.0 → 0.8.1
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.js +2 -2
- package/dist/index.mjs +2 -2
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -35,7 +35,7 @@ __export(index_exports, {
|
|
|
35
35
|
module.exports = __toCommonJS(index_exports);
|
|
36
36
|
|
|
37
37
|
// package.json
|
|
38
|
-
var version = "0.8.
|
|
38
|
+
var version = "0.8.1";
|
|
39
39
|
|
|
40
40
|
// src/sts/index.ts
|
|
41
41
|
var import_ws = __toESM(require("ws"));
|
|
@@ -225,7 +225,7 @@ var Phonic = class {
|
|
|
225
225
|
'API key is missing. Pass it to the constructor: `new Phonic("ph_...")`'
|
|
226
226
|
);
|
|
227
227
|
}
|
|
228
|
-
this.baseUrl = config?.baseUrl ?? defaultBaseUrl;
|
|
228
|
+
this.baseUrl = (config?.baseUrl ?? defaultBaseUrl).replace(/\/$/, "");
|
|
229
229
|
this.headers = new Headers({
|
|
230
230
|
Authorization: `Bearer ${this.apiKey}`,
|
|
231
231
|
"User-Agent": process.env.PHONIC_USER_AGENT || defaultUserAgent,
|
package/dist/index.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// package.json
|
|
2
|
-
var version = "0.8.
|
|
2
|
+
var version = "0.8.1";
|
|
3
3
|
|
|
4
4
|
// src/sts/index.ts
|
|
5
5
|
import WebSocket from "ws";
|
|
@@ -189,7 +189,7 @@ var Phonic = class {
|
|
|
189
189
|
'API key is missing. Pass it to the constructor: `new Phonic("ph_...")`'
|
|
190
190
|
);
|
|
191
191
|
}
|
|
192
|
-
this.baseUrl = config?.baseUrl ?? defaultBaseUrl;
|
|
192
|
+
this.baseUrl = (config?.baseUrl ?? defaultBaseUrl).replace(/\/$/, "");
|
|
193
193
|
this.headers = new Headers({
|
|
194
194
|
Authorization: `Bearer ${this.apiKey}`,
|
|
195
195
|
"User-Agent": process.env.PHONIC_USER_AGENT || defaultUserAgent,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "phonic",
|
|
3
|
-
"version": "0.8.
|
|
3
|
+
"version": "0.8.1",
|
|
4
4
|
"description": "Phonic Node.js SDK",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "tsup",
|
|
@@ -41,7 +41,7 @@
|
|
|
41
41
|
"@changesets/cli": "2.28.1",
|
|
42
42
|
"@types/bun": "1.2.4",
|
|
43
43
|
"tsup": "8.4.0",
|
|
44
|
-
"typescript": "5.
|
|
44
|
+
"typescript": "5.8.2",
|
|
45
45
|
"zod": "3.24.2"
|
|
46
46
|
},
|
|
47
47
|
"files": ["dist/**"],
|