svelte-common 6.15.5 → 6.15.6

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.15.5",
3
+ "version": "6.15.6",
4
4
  "publishConfig": {
5
5
  "access": "public",
6
6
  "provenance": true
@@ -63,13 +63,13 @@
63
63
  "documentation": "^14.0.3",
64
64
  "mf-styling": "^3.1.9",
65
65
  "npm-pkgbuild": "^15.3.32",
66
- "semantic-release": "^24.1.0",
66
+ "semantic-release": "^24.1.1",
67
67
  "stylelint": "^16.9.0",
68
68
  "stylelint-config-standard": "^36.0.1",
69
69
  "svelte": "^5.0.0-next.244",
70
70
  "testcafe": "^3.6.2",
71
71
  "typescript": "^5.6.2",
72
- "vite": "^5.4.3",
72
+ "vite": "^5.4.4",
73
73
  "vite-plugin-compression2": "^1.3.0"
74
74
  },
75
75
  "peerDependencies": {
@@ -268,16 +268,17 @@ export class Pagination {
268
268
  items.push(a);
269
269
  };
270
270
 
271
- add("<<", 1, "First Page");
272
- add("<", this.page - 1, "Previous Page");
271
+ if (np > 1) {
272
+ add("<<", 1, "First Page");
273
+ add("<", this.page - 1, "Previous Page");
273
274
 
274
- for (const n of navigationItems(np, this.page)) {
275
- add(String(n), n);
276
- }
277
-
278
- add(">", this.page + 1, "Next Page");
279
- add(">>", np, "Last Page");
275
+ for (const n of navigationItems(np, this.page)) {
276
+ add(String(n), n);
277
+ }
280
278
 
279
+ add(">", this.page + 1, "Next Page");
280
+ add(">>", np, "Last Page");
281
+ }
281
282
  nav.replaceChildren(...items);
282
283
  });
283
284