@zerosls/clm-sdk 1.1.2 → 1.1.4

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.
@@ -6,7 +6,6 @@ function resolveDefaultBaseUrl() {
6
6
  const fromWindow = (_a = globalThis === null || globalThis === void 0 ? void 0 : globalThis.SDK_CONFIG) === null || _a === void 0 ? void 0 : _a.API_BASE_URL;
7
7
  if (fromWindow)
8
8
  return normalizeUrl(String(fromWindow));
9
- return "https://api.clm-app.com/api";
10
9
  }
11
10
  export const DEFAULT_CONFIG = {
12
11
  baseUrl: resolveDefaultBaseUrl(),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zerosls/clm-sdk",
3
- "version": "1.1.2",
3
+ "version": "1.1.4",
4
4
  "description": "SDK for ZeroCLM API",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -4,15 +4,13 @@ function normalizeUrl(url: string) {
4
4
  return url.trim().replace(/\/+$/, "");
5
5
  }
6
6
 
7
- function resolveDefaultBaseUrl(): string {
7
+ function resolveDefaultBaseUrl(){
8
8
  const fromWindow = (globalThis as any)?.SDK_CONFIG?.API_BASE_URL;
9
9
  if (fromWindow) return normalizeUrl(String(fromWindow));
10
- return "https://api.clm-app.com/api";
11
10
  }
12
11
 
13
-
14
12
  export const DEFAULT_CONFIG: Partial<SdkConfig> = {
15
- baseUrl: resolveDefaultBaseUrl(),
13
+ baseUrl: resolveDefaultBaseUrl(),
16
14
  organization: "default-org",
17
15
  cache: { enabled: true, ttl: 60000 },
18
16
  debug: true,