shelving 1.110.3 → 1.110.5

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/db/ItemStore.js CHANGED
@@ -34,7 +34,7 @@ export class ItemStore extends LazyStore {
34
34
  this.collection = collection;
35
35
  this.id = id;
36
36
  // Start loading the value from the provider if it doesn't exist.
37
- if (this.loading)
37
+ if (time === undefined)
38
38
  this.refresh();
39
39
  }
40
40
  /** Refresh this store from the source provider. */
package/db/QueryStore.js CHANGED
@@ -53,7 +53,7 @@ export class QueryStore extends LazyStore {
53
53
  this.query = query;
54
54
  this.limit = getLimit(query) ?? Infinity;
55
55
  // Start loading the value from the provider if it doesn't exist.
56
- if (this.loading)
56
+ if (time === undefined)
57
57
  this.refresh();
58
58
  }
59
59
  /** Refresh this store from the source provider. */
package/package.json CHANGED
@@ -11,7 +11,7 @@
11
11
  "state-management",
12
12
  "query-builder"
13
13
  ],
14
- "version": "1.110.3",
14
+ "version": "1.110.5",
15
15
  "repository": "https://github.com/dhoulb/shelving",
16
16
  "author": "Dave Houlbrooke <dave@shax.com>",
17
17
  "license": "0BSD",
package/util/number.js CHANGED
@@ -117,7 +117,7 @@ export function wrapNumber(num, min, max) {
117
117
  return num;
118
118
  }
119
119
  /** Format a number (based on the user's browser language settings). */
120
- export function formatNumber(num, options = { maximumFractionDigits: 2 }) {
120
+ export function formatNumber(num, options) {
121
121
  if (Number.isNaN(num))
122
122
  return "None";
123
123
  if (!Number.isFinite(num))