notherbase-fs 3.3.3 → 3.3.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.
Files changed (2) hide show
  1. package/models/spirit.js +7 -8
  2. package/package.json +1 -1
package/models/spirit.js CHANGED
@@ -186,15 +186,14 @@ export default class Spirit {
186
186
  backups: [ oldData ]
187
187
  };
188
188
  }
189
- else {
190
- this.memory.data.backups.unshift({
191
- _lastUpdate: Date.now(),
192
- data: data
193
- });
194
189
 
195
- if (max > 1) {
196
- while (this.memory.data.backups.length > max) this.memory.data.backups.pop();
197
- }
190
+ this.memory.data.backups.unshift({
191
+ _lastUpdate: Date.now(),
192
+ data: data
193
+ });
194
+
195
+ if (max > 1) {
196
+ while (this.memory.data.backups.length > max) this.memory.data.backups.pop();
198
197
  }
199
198
  }
200
199
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "notherbase-fs",
3
- "version": "3.3.3",
3
+ "version": "3.3.4",
4
4
  "description": "Functions to help make developing for NotherBase easier.",
5
5
  "exports": "./notherbase-fs.js",
6
6
  "scripts": {