Comparing version 2024.5.15 to 2024.5.16
@@ -537,3 +537,3 @@ (function (window, document, undefined, $) { | ||
site.hide = site.hideObject = function (obj) { | ||
return site.to123(JSON.parse(obj)); | ||
return site.to123(JSON.stringify(obj)); | ||
}; | ||
@@ -540,0 +540,0 @@ site.show = site.showObject = function (obj) { |
@@ -303,2 +303,7 @@ module.exports = function init(req, res, ____0, route) { | ||
let path = null; | ||
let hide = false; | ||
if (name.startsWith('#')) { | ||
hide = true; | ||
name = name.replace('#', ''); | ||
} | ||
@@ -318,3 +323,5 @@ if (!path || !____0.isFileExistsSync(path)) { | ||
let arr = name.split('/'); | ||
if (arr.length === 2) { | ||
if (arr.length === 1) { | ||
path = ____0.path.join(route.parserDir, arr[0]); | ||
} else if (arr.length === 2) { | ||
path = ____0.path.join(____0.path.dirname(route.parserDir), 'apps', arr[0], 'site_files', ____0.path.extname(arr[1]).replace('.', ''), arr[1]); | ||
@@ -357,2 +364,5 @@ } else if (arr.length === 3) { | ||
txt = parser.js(txt); | ||
if (hide) { | ||
txt = ____0.hide(txt); | ||
} | ||
return txt; | ||
@@ -365,2 +375,5 @@ } else if (name.endsWith('.css')) { | ||
let txt = ____0.readFileSync(path); | ||
if (hide) { | ||
txt = ____0.hide(txt); | ||
} | ||
return txt; | ||
@@ -367,0 +380,0 @@ } |
{ | ||
"name": "isite", | ||
"version": "2024.05.15", | ||
"version": "2024.05.16", | ||
"description": "Create High Level Multi-Language Web Site [Fast and Easy] ", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Manifest confusion
Supply chain riskThis package has inconsistent metadata. This could be malicious or caused by an error when publishing the package.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Manifest confusion
Supply chain riskThis package has inconsistent metadata. This could be malicious or caused by an error when publishing the package.
Found 1 instance in 1 package
19136093
80487