svelte-common 6.8.3 → 6.8.4
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 +3 -3
- package/src/pagination.mjs +2 -4
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "svelte-common",
|
|
3
|
-
"version": "6.8.
|
|
3
|
+
"version": "6.8.4",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
@@ -52,8 +52,8 @@
|
|
|
52
52
|
"ava": "^5.3.1",
|
|
53
53
|
"c8": "^8.0.1",
|
|
54
54
|
"documentation": "^14.0.2",
|
|
55
|
-
"mf-styling": "^3.0.
|
|
56
|
-
"npm-pkgbuild": "^12.1.
|
|
55
|
+
"mf-styling": "^3.0.6",
|
|
56
|
+
"npm-pkgbuild": "^12.1.6",
|
|
57
57
|
"semantic-release": "^22.0.5",
|
|
58
58
|
"stylelint": "^15.10.3",
|
|
59
59
|
"stylelint-config-standard": "^34.0.0",
|
package/src/pagination.mjs
CHANGED
|
@@ -155,12 +155,10 @@ export class Pagination {
|
|
|
155
155
|
|
|
156
156
|
const n = this.page - 1;
|
|
157
157
|
|
|
158
|
-
|
|
158
|
+
yield *data.slice(
|
|
159
159
|
n * this.itemsPerPage,
|
|
160
160
|
(n + 1) * this.itemsPerPage
|
|
161
|
-
))
|
|
162
|
-
yield item;
|
|
163
|
-
}
|
|
161
|
+
)[Symbol.iterator]();
|
|
164
162
|
}
|
|
165
163
|
|
|
166
164
|
/**
|