svelte-common 6.17.2 → 6.17.3

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "svelte-common",
3
- "version": "6.17.2",
3
+ "version": "6.17.3",
4
4
  "publishConfig": {
5
5
  "access": "public",
6
6
  "provenance": true
@@ -123,6 +123,8 @@ export class Pagination {
123
123
  set page(n) {
124
124
  const numberOfPages = this.numberOfPages;
125
125
 
126
+ n = Math.floor(n);
127
+
126
128
  if (n < 0) {
127
129
  n = numberOfPages + n + 1;
128
130
  } else {