svelte-common 6.6.6 → 6.6.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/package.json +2 -2
- package/src/filter.mjs +5 -8
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "svelte-common",
|
|
3
|
-
"version": "6.6.
|
|
3
|
+
"version": "6.6.7",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
@@ -64,7 +64,7 @@
|
|
|
64
64
|
},
|
|
65
65
|
"optionalDependencies": {
|
|
66
66
|
"mf-hosting-cloudflare": "^1.0.5",
|
|
67
|
-
"mf-hosting-frontend": "^2.2.
|
|
67
|
+
"mf-hosting-frontend": "^2.2.1"
|
|
68
68
|
},
|
|
69
69
|
"repository": {
|
|
70
70
|
"type": "git",
|
package/src/filter.mjs
CHANGED
|
@@ -35,13 +35,10 @@ function allOp(value, against, op) {
|
|
|
35
35
|
}
|
|
36
36
|
break;
|
|
37
37
|
|
|
38
|
+
case "bigint":
|
|
38
39
|
case "number":
|
|
39
40
|
if (value[Symbol.toPrimitive]) {
|
|
40
|
-
return allOp(
|
|
41
|
-
value[Symbol.toPrimitive](typeof against),
|
|
42
|
-
against,
|
|
43
|
-
op
|
|
44
|
-
);
|
|
41
|
+
return allOp(value[Symbol.toPrimitive](typeof against), against, op);
|
|
45
42
|
}
|
|
46
43
|
}
|
|
47
44
|
|
|
@@ -72,13 +69,13 @@ function allOp(value, against, op) {
|
|
|
72
69
|
}
|
|
73
70
|
|
|
74
71
|
if (against instanceof Map) {
|
|
75
|
-
for (const [k,v] of against) {
|
|
72
|
+
for (const [k, v] of against) {
|
|
76
73
|
if (value.match(k) || value.match(v)) {
|
|
77
74
|
return true;
|
|
78
75
|
}
|
|
79
76
|
}
|
|
80
77
|
}
|
|
81
|
-
|
|
78
|
+
|
|
82
79
|
if (Array.isArray(against) || against instanceof Set) {
|
|
83
80
|
for (const i of against) {
|
|
84
81
|
if (value.match(i)) {
|
|
@@ -96,7 +93,7 @@ function allOp(value, against, op) {
|
|
|
96
93
|
}
|
|
97
94
|
|
|
98
95
|
if (against instanceof Map) {
|
|
99
|
-
for (const [k,v] of against) {
|
|
96
|
+
for (const [k, v] of against) {
|
|
100
97
|
if (numberOp(value, k, op) || numberOp(value, v, op)) {
|
|
101
98
|
return true;
|
|
102
99
|
}
|