monkey-front-core 0.0.290 → 0.0.291
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.
- package/esm2020/lib/core/utils/utils.mjs +8 -1
- package/fesm2015/monkey-front-core.mjs +7 -0
- package/fesm2015/monkey-front-core.mjs.map +1 -1
- package/fesm2020/monkey-front-core.mjs +7 -0
- package/fesm2020/monkey-front-core.mjs.map +1 -1
- package/lib/core/utils/utils.d.ts +1 -0
- package/monkey-front-core-0.0.291.tgz +0 -0
- package/package.json +1 -1
- package/monkey-front-core-0.0.290.tgz +0 -0
|
@@ -289,6 +289,13 @@ class MonkeyEcxUtils {
|
|
|
289
289
|
const initialPath = window.location.origin;
|
|
290
290
|
return (initialPath || '') === frontend;
|
|
291
291
|
}
|
|
292
|
+
static replaceVariables(data, obj) {
|
|
293
|
+
let handled = data;
|
|
294
|
+
Object.entries(obj).forEach(([key, value]) => {
|
|
295
|
+
handled = handled.replace(new RegExp(`{${key}}`, 'g'), `${value}`);
|
|
296
|
+
});
|
|
297
|
+
return handled;
|
|
298
|
+
}
|
|
292
299
|
}
|
|
293
300
|
|
|
294
301
|
const moment$5 = moment_;
|