@iebh/tera-fy 1.15.3 → 1.15.4
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 +7 -0
- package/lib/terafy.server.js +7 -0
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,12 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [1.15.4](https://github.com/IEBH/TERA-fy/compare/v1.15.3...v1.15.4) (2024-12-12)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### fix
|
|
7
|
+
|
|
8
|
+
* Throw error when trying to use setProjectState() with a nullish/empty path ([6aeb6ae](https://github.com/IEBH/TERA-fy/commit/6aeb6ae00bb1ecc5ec9cf3494e2fe88495d81468))
|
|
9
|
+
|
|
3
10
|
## [1.15.3](https://github.com/IEBH/TERA-fy/compare/v1.15.2...v1.15.3) (2024-11-18)
|
|
4
11
|
|
|
5
12
|
|
package/lib/terafy.server.js
CHANGED
|
@@ -756,6 +756,13 @@ export default class TeraFyServer {
|
|
|
756
756
|
|
|
757
757
|
if (!app.service('$projects').active) throw new Error('No active project');
|
|
758
758
|
if (typeof path != 'string' && !Array.isArray(path)) throw new Error('setProjectStateDefaults(path, value) - path must be a dotted string or array of path segments');
|
|
759
|
+
if (
|
|
760
|
+
path === ''
|
|
761
|
+
|| (
|
|
762
|
+
Array.isArray(path)
|
|
763
|
+
&& path.length == 0
|
|
764
|
+
)
|
|
765
|
+
) throw new Error('setProjectState path cannot be empty! Use replaceProjectState() if you really want to do this');
|
|
759
766
|
|
|
760
767
|
pathTools.set(
|
|
761
768
|
app.service('$projects').active,
|
package/package.json
CHANGED