svelte-common 6.9.5 → 6.9.7
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/LICENSE +1 -1
- package/README.md +5 -2
- package/package.json +14 -14
- package/src/filter.mjs +2 -3
- package/src/pagination.mjs +3 -0
package/LICENSE
CHANGED
package/README.md
CHANGED
|
@@ -10,8 +10,11 @@
|
|
|
10
10
|
[](https://snyk.io/test/github/arlac77/svelte-common)
|
|
11
11
|
[](https://coveralls.io/github/arlac77/svelte-common)
|
|
12
12
|
[](https://github.com/DevExpress/testcafe)
|
|
13
|
-
|
|
14
|
-
or the [live example](https://arlac77.github.io/components/svelte-common/example/index.html)
|
|
13
|
+
# svelte-common common components utils used in svelte apps# usageCheck out the code in the [example](/example) folder,
|
|
14
|
+
or the [live example](https://arlac77.github.io/components/svelte-common/example/index.html).
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
# API<!-- Generated by documentation.js. Update this documentation by updating the source code. -->### Table of Contents* [AttributeDefinition](#attributedefinition)
|
|
15
18
|
* [Properties](#properties)
|
|
16
19
|
* [tokens](#tokens)
|
|
17
20
|
* [Parameters](#parameters)
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "svelte-common",
|
|
3
|
-
"version": "6.9.
|
|
3
|
+
"version": "6.9.7",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
@@ -41,7 +41,7 @@
|
|
|
41
41
|
"preview": "vite preview"
|
|
42
42
|
},
|
|
43
43
|
"dependencies": {
|
|
44
|
-
"pacc": "^
|
|
44
|
+
"pacc": "^3.0.0",
|
|
45
45
|
"svelte-command": "^1.1.50",
|
|
46
46
|
"svelte-entitlement": "^1.2.70"
|
|
47
47
|
},
|
|
@@ -49,19 +49,19 @@
|
|
|
49
49
|
"@semantic-release/commit-analyzer": "^11.1.0",
|
|
50
50
|
"@semantic-release/exec": "^6.0.3",
|
|
51
51
|
"@semantic-release/release-notes-generator": "^12.1.0",
|
|
52
|
-
"@sveltejs/vite-plugin-svelte": "^3.0.
|
|
53
|
-
"ava": "^6.
|
|
54
|
-
"c8": "^
|
|
55
|
-
"documentation": "^14.0.
|
|
52
|
+
"@sveltejs/vite-plugin-svelte": "^3.0.2",
|
|
53
|
+
"ava": "^6.1.1",
|
|
54
|
+
"c8": "^9.1.0",
|
|
55
|
+
"documentation": "^14.0.3",
|
|
56
56
|
"mf-styling": "^3.1.2",
|
|
57
|
-
"npm-pkgbuild": "^13.0.
|
|
58
|
-
"semantic-release": "^
|
|
59
|
-
"stylelint": "^16.
|
|
60
|
-
"stylelint-config-standard": "^
|
|
61
|
-
"svelte": "^4.2.
|
|
62
|
-
"testcafe": "^3.
|
|
63
|
-
"vite": "^5.0.
|
|
64
|
-
"vite-plugin-compression2": "^0.
|
|
57
|
+
"npm-pkgbuild": "^13.0.18",
|
|
58
|
+
"semantic-release": "^23.0.0",
|
|
59
|
+
"stylelint": "^16.2.1",
|
|
60
|
+
"stylelint-config-standard": "^36.0.0",
|
|
61
|
+
"svelte": "^4.2.9",
|
|
62
|
+
"testcafe": "^3.5.0",
|
|
63
|
+
"vite": "^5.0.12",
|
|
64
|
+
"vite-plugin-compression2": "^0.12.0"
|
|
65
65
|
},
|
|
66
66
|
"optionalDependencies": {
|
|
67
67
|
"mf-hosting-cloudflare": "^1.0.6",
|
package/src/filter.mjs
CHANGED
|
@@ -192,14 +192,13 @@ function numberOp(value, against, op) {
|
|
|
192
192
|
/**
|
|
193
193
|
* Generate filter function.
|
|
194
194
|
* @param {Object} [filterBy]
|
|
195
|
-
* @param {Object} [getters]
|
|
196
195
|
* @returns {Function}
|
|
197
196
|
*/
|
|
198
|
-
export function filter(filterBy
|
|
197
|
+
export function filter(filterBy) {
|
|
199
198
|
if (filterBy) {
|
|
200
199
|
const filters = Object.entries(filterBy).map(([key, against]) => {
|
|
201
200
|
return a => {
|
|
202
|
-
const [value, op] = getAttributeAndOperator(a, key
|
|
201
|
+
const [value, op] = getAttributeAndOperator(a, key);
|
|
203
202
|
return allOp(value, against, op);
|
|
204
203
|
};
|
|
205
204
|
});
|
package/src/pagination.mjs
CHANGED