@speedkit/cli 2.29.0 → 2.29.1
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/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,10 @@
|
|
|
1
|
+
## [2.29.1](https://gitlab.orestes.info/baqend/speed-kit-cli/compare/v2.29.0...v2.29.1) (2024-05-29)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* **onboarding:** live change styles ([0864916](https://gitlab.orestes.info/baqend/speed-kit-cli/commit/0864916970910c701cf62dc7358b146211ba0719))
|
|
7
|
+
|
|
1
8
|
# [2.29.0](https://gitlab.orestes.info/baqend/speed-kit-cli/compare/v2.28.0...v2.29.0) (2024-05-23)
|
|
2
9
|
|
|
3
10
|
|
package/README.md
CHANGED
|
@@ -116,9 +116,10 @@ class FileWatcher {
|
|
|
116
116
|
async onChangeDynamicStyleCallback(file, page) {
|
|
117
117
|
this.cli.writeWarning(`changed file: ${file.name} (update styles on page)`);
|
|
118
118
|
const escapedStyles = encodeURI(file.getContent());
|
|
119
|
-
const evaluateResult = await (0, safe_1.safe)(page.evaluate(`(${this.updateStyles.toString()})("${escapedStyles}");`));
|
|
119
|
+
const evaluateResult = await (0, safe_1.safe)(page.evaluate(`(function ${this.updateStyles.toString()})("${escapedStyles}");`));
|
|
120
120
|
if (evaluateResult.success === false) {
|
|
121
121
|
this.cli.writeError(evaluateResult.error);
|
|
122
|
+
console.log(evaluateResult.errorObj);
|
|
122
123
|
}
|
|
123
124
|
const clearPageResult = await (0, safe_1.safe)(this.clearPageFunction(page));
|
|
124
125
|
if (clearPageResult.success === false) {
|
package/oclif.manifest.json
CHANGED