notherbase-fs 3.4.0 → 3.4.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.
Files changed (2) hide show
  1. package/models/spirit.js +6 -0
  2. package/package.json +1 -1
package/models/spirit.js CHANGED
@@ -107,6 +107,8 @@ export default class Spirit {
107
107
  if (spirit.memory.data?._backupsEnabled) {
108
108
  spirit.memory.backups = spirit.memory.data.backups;
109
109
  spirit.memory.data = spirit.memory.backups[0].data;
110
+ spirit.memory.markModified("backups");
111
+ await spirit.commit();
110
112
  }
111
113
  }
112
114
 
@@ -137,6 +139,8 @@ export default class Spirit {
137
139
  if (spirit.memory.data?._backupsEnabled) {
138
140
  spirit.memory.backups = spirit.memory.data.backups;
139
141
  spirit.memory.data = spirit.memory.backups[0].data;
142
+ spirit.memory.markModified("backups");
143
+ await spirit.commit();
140
144
  }
141
145
 
142
146
  return spirit;
@@ -166,6 +170,8 @@ export default class Spirit {
166
170
  if (spirit.memory.data?._backupsEnabled) {
167
171
  spirit.memory.backups = spirit.memory.data.backups;
168
172
  spirit.memory.data = spirit.memory.backups[0].data;
173
+ spirit.memory.markModified("backups");
174
+ await spirit.commit();
169
175
  }
170
176
 
171
177
  return spirit;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "notherbase-fs",
3
- "version": "3.4.0",
3
+ "version": "3.4.1",
4
4
  "description": "Functions to help make developing for NotherBase easier.",
5
5
  "exports": "./notherbase-fs.js",
6
6
  "scripts": {