wxt 0.17.9 → 0.17.11
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/dist/chunk-5X3S6AWF.js +22 -0
- package/dist/{chunk-ONUEB57P.js → chunk-XFXYT75Z.js} +1553 -1531
- package/dist/cli.js +1561 -1519
- package/dist/{index-mZodC81T.d.cts → index-2A45qoLY.d.cts} +25 -6
- package/dist/{index-mZodC81T.d.ts → index-2A45qoLY.d.ts} +25 -6
- package/dist/index.cjs +1545 -1511
- package/dist/index.d.cts +3 -3
- package/dist/index.d.ts +3 -3
- package/dist/index.js +57 -58
- package/dist/storage.cjs +6 -1
- package/dist/storage.js +4 -1
- package/dist/testing.cjs +54 -615
- package/dist/testing.d.cts +1 -1
- package/dist/testing.d.ts +1 -1
- package/dist/testing.js +2 -1
- package/dist/virtual/background-entrypoint.js +1 -1
- package/dist/virtual/content-script-isolated-world-entrypoint.js +1 -1
- package/dist/virtual/content-script-main-world-entrypoint.js +1 -1
- package/dist/virtual/unlisted-script-entrypoint.js +1 -1
- package/package.json +5 -9
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
// src/core/utils/arrays.ts
|
|
2
|
+
function every(array, predicate) {
|
|
3
|
+
for (let i = 0; i < array.length; i++)
|
|
4
|
+
if (!predicate(array[i], i))
|
|
5
|
+
return false;
|
|
6
|
+
return true;
|
|
7
|
+
}
|
|
8
|
+
function some(array, predicate) {
|
|
9
|
+
for (let i = 0; i < array.length; i++)
|
|
10
|
+
if (predicate(array[i], i))
|
|
11
|
+
return true;
|
|
12
|
+
return false;
|
|
13
|
+
}
|
|
14
|
+
function toArray(a) {
|
|
15
|
+
return Array.isArray(a) ? a : [a];
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
export {
|
|
19
|
+
every,
|
|
20
|
+
some,
|
|
21
|
+
toArray
|
|
22
|
+
};
|