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.
- package/dist/collection.js +1 -1
- package/package.json +1 -1
package/dist/collection.js
CHANGED
|
@@ -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')
|