@sheet2db/sdk 2.0.1 → 2.0.3
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/package.json +2 -2
- package/src/index.ts +1 -1
package/package.json
CHANGED
package/src/index.ts
CHANGED
@@ -8,7 +8,7 @@ export class Sheet2DBClient {
|
|
8
8
|
constructor(apiId: string, version = 'v1' as const) {
|
9
9
|
if (!apiId?.trim()) throw new Error('apiId is required to create a Sheet2DBClient.');
|
10
10
|
this.axios = axios.create({
|
11
|
-
baseURL: process.env.SHEET2DB_BASE_URL || 'https://api.sheet2db.io/' + version + '/data/' + apiId,
|
11
|
+
baseURL: (typeof process != 'undefined' && process.env.SHEET2DB_BASE_URL) || 'https://api.sheet2db.io/' + version + '/data/' + apiId,
|
12
12
|
paramsSerializer: {
|
13
13
|
serialize: (params) => new URLSearchParams(params).toString()
|
14
14
|
}
|