create-prisma-php-app 1.8.13 → 1.8.14

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.
@@ -137,10 +137,14 @@ class StateManager {
137
137
  * Description placeholder
138
138
  *
139
139
  * @param {*} update
140
+ * @param {boolean} [saveToStorage=false]
140
141
  */
141
- setState(update) {
142
+ setState(update, saveToStorage = false) {
142
143
  this.state = { ...this.state, ...update };
143
144
  this.listeners.forEach((listener) => listener(this.state));
145
+ if (saveToStorage) {
146
+ this.saveState();
147
+ }
144
148
  }
145
149
 
146
150
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-prisma-php-app",
3
- "version": "1.8.13",
3
+ "version": "1.8.14",
4
4
  "description": "Prisma-PHP: A Revolutionary Library Bridging PHP with Prisma ORM",
5
5
  "main": "dist/index.js",
6
6
  "type": "module",