@mono-labs/cli 0.0.143 → 0.0.144
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.
|
@@ -22,6 +22,8 @@ export function hasData(key) {
|
|
|
22
22
|
|
|
23
23
|
export function replaceTokens(str, env = {}) {
|
|
24
24
|
if (typeof str !== 'string') return str;
|
|
25
|
+
console.log('str:', str);
|
|
26
|
+
console.log('env:', env);
|
|
25
27
|
|
|
26
28
|
const rVal = str.replace(/\$\{([^}]+)\}/g, (m, k) => {
|
|
27
29
|
// ✅ 1. Priority: existing dataLayer replacement
|
|
@@ -39,6 +41,7 @@ export function replaceTokens(str, env = {}) {
|
|
|
39
41
|
// ✅ 3. Fallback: replace with empty string
|
|
40
42
|
return '';
|
|
41
43
|
});
|
|
44
|
+
console.log('rVal:', rVal);
|
|
42
45
|
|
|
43
46
|
return rVal;
|
|
44
47
|
}
|