@murasoftware/next-core
Advanced tools
Comparing version 2.0.12 to 2.0.13
@@ -564,12 +564,12 @@ import { useEffect, useState, createContext } from 'react'; | ||
if (instanceConfig.multitenant) { | ||
var _context$params, _context$params$page; | ||
if (typeof context == 'string') { | ||
instanceConfig.siteid = context; | ||
} else if (context != null && context.siteid) { | ||
instanceConfig.siteid = context.siteid; | ||
} else if (context != null && (_context$params = context.params) != null && (_context$params$page = _context$params.page) != null && _context$params$page.length) { | ||
instanceConfig.siteid = context.params.page[0]; | ||
} else { | ||
var _context$params, _context$params$page; | ||
if (context != null && (_context$params = context.params) != null && (_context$params$page = _context$params.page) != null && _context$params$page.length) { | ||
instanceConfig.siteid = context.params.page[0]; | ||
} else { | ||
instanceConfig.siteid = 'default'; | ||
} | ||
instanceConfig.siteid = 'default'; | ||
} | ||
@@ -654,3 +654,5 @@ } else { | ||
if (context != null && (_context$params2 = context.params) != null && (_context$params2$page = _context$params2.page) != null && _context$params2$page.length) { | ||
if (context != null && context.siteid) { | ||
instanceConfig.siteid = context.siteid; | ||
} else if (context != null && (_context$params2 = context.params) != null && (_context$params2$page = _context$params2.page) != null && _context$params2$page.length) { | ||
instanceConfig.siteid = context.params.page[0]; | ||
@@ -657,0 +659,0 @@ } else { |
@@ -569,12 +569,12 @@ (function (global, factory) { | ||
if (instanceConfig.multitenant) { | ||
var _context$params, _context$params$page; | ||
if (typeof context == 'string') { | ||
instanceConfig.siteid = context; | ||
} else if (context != null && context.siteid) { | ||
instanceConfig.siteid = context.siteid; | ||
} else if (context != null && (_context$params = context.params) != null && (_context$params$page = _context$params.page) != null && _context$params$page.length) { | ||
instanceConfig.siteid = context.params.page[0]; | ||
} else { | ||
var _context$params, _context$params$page; | ||
if (context != null && (_context$params = context.params) != null && (_context$params$page = _context$params.page) != null && _context$params$page.length) { | ||
instanceConfig.siteid = context.params.page[0]; | ||
} else { | ||
instanceConfig.siteid = 'default'; | ||
} | ||
instanceConfig.siteid = 'default'; | ||
} | ||
@@ -659,3 +659,5 @@ } else { | ||
if (context != null && (_context$params2 = context.params) != null && (_context$params2$page = _context$params2.page) != null && _context$params2$page.length) { | ||
if (context != null && context.siteid) { | ||
instanceConfig.siteid = context.siteid; | ||
} else if (context != null && (_context$params2 = context.params) != null && (_context$params2$page = _context$params2.page) != null && _context$params2$page.length) { | ||
instanceConfig.siteid = context.params.page[0]; | ||
@@ -662,0 +664,0 @@ } else { |
{ | ||
"name": "@murasoftware/next-core", | ||
"version": "2.0.12", | ||
"version": "2.0.13", | ||
"description": "Core utilties for Mura.js and Next.js", | ||
@@ -5,0 +5,0 @@ "author": "Mura Software", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 1 instance in 1 package
418047
3785
11