@sitecore-cloudsdk/personalize
Advanced tools
Comparing version 0.1.0-rc.3 to 0.1.0-rc.4
{ | ||
"name": "@sitecore-cloudsdk/personalize", | ||
"version": "0.1.0-rc.3", | ||
"version": "0.1.0-rc.4", | ||
"license": "Apache-2.0", | ||
"exports": { | ||
"./server": { | ||
"import": "./dist/esm/src/server.js", | ||
"require": "./dist/cjs/src/server.js", | ||
"types": "./dist/esm/src/server.d.ts" | ||
"import": "./server.js", | ||
"require": "./server.cjs", | ||
"types": "./server.d.ts" | ||
}, | ||
"./browser": { | ||
"import": "./dist/esm/src/browser.js", | ||
"require": "./dist/cjs/src/browser.js", | ||
"types": "./dist/esm/src/browser.d.ts" | ||
"import": "./browser.js", | ||
"require": "./browser.cjs", | ||
"types": "./browser.d.ts" | ||
} | ||
@@ -28,4 +28,10 @@ }, | ||
"dist", | ||
"README.md" | ||
"README.md", | ||
"browser.js", | ||
"browser.cjs", | ||
"browser.d.ts", | ||
"server.cjs", | ||
"server.js", | ||
"server.d.ts" | ||
] | ||
} |
@@ -28,3 +28,3 @@ "use strict"; | ||
if (!dependencies) { | ||
throw Error(`[IE-0008] You must first initialize the "personalize" module. Run the "init" function.`); | ||
throw Error(`[IE-0008] You must first initialize the "personalize" package. Run the "init" function.`); | ||
} | ||
@@ -31,0 +31,0 @@ return dependencies; |
@@ -25,3 +25,3 @@ "use strict"; | ||
if (!serverDependencies) { | ||
throw Error(`[IE-0009] You must first initialize the "personalize" module. Run the "init" function.`); | ||
throw Error(`[IE-0009] You must first initialize the "personalize" package. Run the "init" function.`); | ||
} | ||
@@ -28,0 +28,0 @@ return serverDependencies; |
@@ -5,3 +5,2 @@ "use strict"; | ||
exports.CallFlowEdgeProxyClient = void 0; | ||
const core_1 = require("@sitecore-cloudsdk/core"); | ||
const utils_1 = require("@sitecore-cloudsdk/utils"); | ||
@@ -25,3 +24,3 @@ const consts_1 = require("../consts"); | ||
async sendCallFlowsRequest(cdpCallFlowsBody, timeout) { | ||
const requestUrl = `${core_1.TARGET_URL}/personalize/v2/callFlows?sitecoreContextId=${this.settings.sitecoreEdgeContextId}&siteId=${this.settings.siteName}`; | ||
const requestUrl = `${this.settings.sitecoreEdgeUrl}/personalize/v2/callFlows?sitecoreContextId=${this.settings.sitecoreEdgeContextId}&siteId=${this.settings.siteName}`; | ||
const fetchOptions = { | ||
@@ -28,0 +27,0 @@ body: JSON.stringify(cdpCallFlowsBody), |
{ | ||
"name": "@sitecore-cloudsdk/personalize", | ||
"version": "0.1.0-rc.3", | ||
"version": "0.1.0-rc.4", | ||
"license": "Apache-2.0", | ||
"exports": { | ||
"./server": { | ||
"import": "./dist/esm/src/server.js", | ||
"require": "./dist/cjs/src/server.js", | ||
"types": "./dist/esm/src/server.d.ts" | ||
"import": "./server.js", | ||
"require": "./server.cjs", | ||
"types": "./server.d.ts" | ||
}, | ||
"./browser": { | ||
"import": "./dist/esm/src/browser.js", | ||
"require": "./dist/cjs/src/browser.js", | ||
"types": "./dist/esm/src/browser.d.ts" | ||
"import": "./browser.js", | ||
"require": "./browser.cjs", | ||
"types": "./browser.d.ts" | ||
} | ||
@@ -28,4 +28,10 @@ }, | ||
"dist", | ||
"README.md" | ||
"README.md", | ||
"browser.js", | ||
"browser.cjs", | ||
"browser.d.ts", | ||
"server.cjs", | ||
"server.js", | ||
"server.d.ts" | ||
] | ||
} |
@@ -24,3 +24,3 @@ // © Sitecore Corporation A/S. All rights reserved. Sitecore® is a registered trademark of Sitecore Corporation A/S. | ||
if (!dependencies) { | ||
throw Error(`[IE-0008] You must first initialize the "personalize" module. Run the "init" function.`); | ||
throw Error(`[IE-0008] You must first initialize the "personalize" package. Run the "init" function.`); | ||
} | ||
@@ -27,0 +27,0 @@ return dependencies; |
@@ -21,3 +21,3 @@ // © Sitecore Corporation A/S. All rights reserved. Sitecore® is a registered trademark of Sitecore Corporation A/S. | ||
if (!serverDependencies) { | ||
throw Error(`[IE-0009] You must first initialize the "personalize" module. Run the "init" function.`); | ||
throw Error(`[IE-0009] You must first initialize the "personalize" package. Run the "init" function.`); | ||
} | ||
@@ -24,0 +24,0 @@ return serverDependencies; |
// © Sitecore Corporation A/S. All rights reserved. Sitecore® is a registered trademark of Sitecore Corporation A/S. | ||
import { TARGET_URL } from '@sitecore-cloudsdk/core'; | ||
import { fetchWithTimeout } from '@sitecore-cloudsdk/utils'; | ||
@@ -21,3 +20,3 @@ import { LIBRARY_VERSION } from '../consts'; | ||
async sendCallFlowsRequest(cdpCallFlowsBody, timeout) { | ||
const requestUrl = `${TARGET_URL}/personalize/v2/callFlows?sitecoreContextId=${this.settings.sitecoreEdgeContextId}&siteId=${this.settings.siteName}`; | ||
const requestUrl = `${this.settings.sitecoreEdgeUrl}/personalize/v2/callFlows?sitecoreContextId=${this.settings.sitecoreEdgeContextId}&siteId=${this.settings.siteName}`; | ||
const fetchOptions = { | ||
@@ -24,0 +23,0 @@ body: JSON.stringify(cdpCallFlowsBody), |
{ | ||
"name": "@sitecore-cloudsdk/personalize", | ||
"version": "0.1.0-rc.3", | ||
"version": "0.1.0-rc.4", | ||
"license": "Apache-2.0", | ||
"exports": { | ||
"./server": { | ||
"import": "./dist/esm/src/server.js", | ||
"require": "./dist/cjs/src/server.js", | ||
"types": "./dist/esm/src/server.d.ts" | ||
"import": "./server.js", | ||
"require": "./server.cjs", | ||
"types": "./server.d.ts" | ||
}, | ||
"./browser": { | ||
"import": "./dist/esm/src/browser.js", | ||
"require": "./dist/cjs/src/browser.js", | ||
"types": "./dist/esm/src/browser.d.ts" | ||
"import": "./browser.js", | ||
"require": "./browser.cjs", | ||
"types": "./browser.d.ts" | ||
} | ||
@@ -28,4 +28,10 @@ }, | ||
"dist", | ||
"README.md" | ||
"README.md", | ||
"browser.js", | ||
"browser.cjs", | ||
"browser.d.ts", | ||
"server.cjs", | ||
"server.js", | ||
"server.d.ts" | ||
] | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
105503
52
1012