New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

bloomreach-experience-react-sdk

Package Overview
Dependencies
Maintainers
1
Versions
29
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

bloomreach-experience-react-sdk - npm Package Compare versions

Comparing version

to
0.2.0-rc2

2

package.json
{
"name": "bloomreach-experience-react-sdk",
"version": "0.2.0-rc1",
"version": "0.2.0-rc2",
"description": "BloomReach Experience SDK for React",

@@ -5,0 +5,0 @@ "keywords": [

@@ -6,3 +6,3 @@ import pathToRegexp from 'path-to-regexp';

hostname: 'localhost',
port: '9080',
port: '8080',
contextPath: 'site',

@@ -9,0 +9,0 @@ channelPath: '',

@@ -9,6 +9,6 @@ import globalCmsUrls from './cms-urls';

const urlPath = request.path;
let hostName = request.hostName;
// remove port number from host name
if (hostName.indexOf(':') != -1) {
hostName = hostName.substring(0, hostName.indexOf(':'));
let hostname = request.hostname;
// remove port number from hostname
if (hostname.indexOf(':') != -1) {
hostname = hostname.substring(0, hostname.indexOf(':'));
}

@@ -33,10 +33,10 @@

let preview;
if (cmsUrls.live.baseUrl !== cmsUrls.preview.baseUrl) {
if (hostName === cmsUrls.live.hostName) {
if (cmsUrls.live.hostname !== cmsUrls.preview.hostname) {
if (hostname === cmsUrls.live.hostname) {
preview = false;
} else if (hostName === cmsUrls.preview.hostName) {
} else if (hostname === cmsUrls.preview.hostname) {
preview = true;
} else {
preview = false;
console.log(`Warning! Could not detect preview mode for ${hostName}. Check if cmsUrls have been properly set. Setting preview to false.`);
console.log(`Warning! Could not detect preview mode for ${hostname}. Check if cmsUrls have been properly set. Setting preview to false.`);
}

@@ -43,0 +43,0 @@ } else {

Sorry, the diff of this file is too big to display