@thecms/sdk 0.20.1-dev.125 → 0.20.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.d.ts +1 -1
- package/dist/index.js +2 -2
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -855,7 +855,7 @@ declare const PLATFORM_API: string;
|
|
|
855
855
|
/** An address the CMS gave (an image, a file, a link of a list), absolute on the platform. */
|
|
856
856
|
declare function platformUrl(path: string): string;
|
|
857
857
|
/** SITE-CONNECTION (D266): this SDK's version, as its server announces it (`X-CMS-Site: sdk/<version>`; kept equal to package.json by a test). */
|
|
858
|
-
declare const SDK_VERSION = "0.20.1
|
|
858
|
+
declare const SDK_VERSION = "0.20.1";
|
|
859
859
|
/**
|
|
860
860
|
* SITE-CONNECTION (D269): the protocol this SDK keeps and the header its
|
|
861
861
|
* server announces it with — the same as core's `SITE_PROTOCOL` / `SITE_HEADER`
|
package/dist/index.js
CHANGED
|
@@ -288,13 +288,13 @@ function createLive(deps) {
|
|
|
288
288
|
}
|
|
289
289
|
|
|
290
290
|
// src/channel.ts
|
|
291
|
-
var PLATFORM_API = "https://
|
|
291
|
+
var PLATFORM_API = "https://api.dotscms.com";
|
|
292
292
|
|
|
293
293
|
// src/platform.ts
|
|
294
294
|
function platformUrl(path) {
|
|
295
295
|
return /^https?:\/\//.test(path) ? path : `${PLATFORM_API}${path.startsWith("/") ? "" : "/"}${path}`;
|
|
296
296
|
}
|
|
297
|
-
var SDK_VERSION = "0.20.1
|
|
297
|
+
var SDK_VERSION = "0.20.1";
|
|
298
298
|
var SITE_PROTOCOL = 2;
|
|
299
299
|
var SITE_HEADER = "X-CMS-Site";
|
|
300
300
|
var siteHeader = (library, version) => `${library}/${version}; protocol=${SITE_PROTOCOL}`;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@thecms/sdk",
|
|
3
|
-
"version": "0.20.1
|
|
3
|
+
"version": "0.20.1",
|
|
4
4
|
"license": "UNLICENSED",
|
|
5
5
|
"description": "theCMS. SDK: pages, lists, paywall, end-user login and preview for sites and apps; records, media and products with an API key (server-side)",
|
|
6
6
|
"type": "module",
|