@sitecore-content-sdk/core 0.2.0-beta.20 → 0.2.0-beta.21
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.
|
@@ -11,6 +11,6 @@ const normalize_url_1 = require("../utils/normalize-url");
|
|
|
11
11
|
* @param {boolean} params.preview Indicates if preview mode is enabled
|
|
12
12
|
* @returns {string} Content graphql endpoint url
|
|
13
13
|
*/
|
|
14
|
-
function getContentUrl({ url = 'https://
|
|
15
|
-
return `${(0, normalize_url_1.normalizeUrl)(url)}/api/graphql
|
|
14
|
+
function getContentUrl({ url = 'https://edge-platform.sitecorecloud.io', tenant, environment, preview, }) {
|
|
15
|
+
return `${(0, normalize_url_1.normalizeUrl)(url)}/cs/api/v2/graphql/${tenant}/${environment}?preview=${preview}`;
|
|
16
16
|
}
|
|
@@ -8,6 +8,6 @@ import { normalizeUrl } from '../utils/normalize-url';
|
|
|
8
8
|
* @param {boolean} params.preview Indicates if preview mode is enabled
|
|
9
9
|
* @returns {string} Content graphql endpoint url
|
|
10
10
|
*/
|
|
11
|
-
export function getContentUrl({ url = 'https://
|
|
12
|
-
return `${normalizeUrl(url)}/api/graphql
|
|
11
|
+
export function getContentUrl({ url = 'https://edge-platform.sitecorecloud.io', tenant, environment, preview, }) {
|
|
12
|
+
return `${normalizeUrl(url)}/cs/api/v2/graphql/${tenant}/${environment}?preview=${preview}`;
|
|
13
13
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sitecore-content-sdk/core",
|
|
3
|
-
"version": "0.2.0-beta.
|
|
3
|
+
"version": "0.2.0-beta.21",
|
|
4
4
|
"main": "dist/cjs/index.js",
|
|
5
5
|
"module": "dist/esm/index.js",
|
|
6
6
|
"sideEffects": false,
|
|
@@ -78,7 +78,7 @@
|
|
|
78
78
|
},
|
|
79
79
|
"description": "",
|
|
80
80
|
"types": "types/index.d.ts",
|
|
81
|
-
"gitHead": "
|
|
81
|
+
"gitHead": "09fafe89fe05ef49b349bfc139ed6174940564ba",
|
|
82
82
|
"files": [
|
|
83
83
|
"dist",
|
|
84
84
|
"types",
|