svas 1.7.0 → 1.7.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.
@@ -96,12 +96,12 @@ export class Collection {
96
96
  async refresh() {
97
97
  if (this.request === undefined)
98
98
  return;
99
+ this.timestamp = Date.now();
99
100
  const items = await this.request();
100
101
  if (!(items instanceof Error))
101
102
  this.replace(items);
102
103
  else
103
104
  this.store.set(items);
104
- this.timestamp = Date.now();
105
105
  }
106
106
  persist(key) {
107
107
  if (typeof window === 'undefined')
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "svas",
3
- "version": "1.7.0",
3
+ "version": "1.7.1",
4
4
  "repository": "https://github.com/temich/svas",
5
5
  "scripts": {
6
6
  "dev": "vite dev",