@stacksjs/arrays 0.37.8 → 0.38.1

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/README.md CHANGED
@@ -36,7 +36,7 @@ pnpm test
36
36
 
37
37
  ## 📈 Changelog
38
38
 
39
- Please see our [releases](https://github.com/stacksjs/stacksjs/releases) page for more information on what has changed recently.
39
+ Please see our [releases](https://github.com/stacksjs/stacks/releases) page for more information on what has changed recently.
40
40
 
41
41
  ## 💪🏼 Contributing
42
42
 
package/dist/index.d.ts CHANGED
@@ -1 +1,5 @@
1
1
  export declare function contains(needle: string, haystack: string[]): boolean;
2
+ export declare function containsAll(needles: string[], haystack: string[]): boolean;
3
+ export declare function containsAny(needles: string[], haystack: string[]): boolean;
4
+ export declare function containsNone(needles: string[], haystack: string[]): boolean;
5
+ export declare function containsOnly(needles: string[], haystack: string[]): boolean;
package/dist/index.mjs CHANGED
@@ -1,3 +1,15 @@
1
1
  export function contains(needle, haystack) {
2
2
  return haystack.some((hay) => needle.includes(hay));
3
3
  }
4
+ export function containsAll(needles, haystack) {
5
+ return needles.every((needle) => contains(needle, haystack));
6
+ }
7
+ export function containsAny(needles, haystack) {
8
+ return needles.some((needle) => contains(needle, haystack));
9
+ }
10
+ export function containsNone(needles, haystack) {
11
+ return !containsAny(needles, haystack);
12
+ }
13
+ export function containsOnly(needles, haystack) {
14
+ return containsAll(haystack, needles);
15
+ }
package/package.json CHANGED
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "name": "@stacksjs/arrays",
3
3
  "type": "module",
4
- "version": "0.37.8",
5
- "packageManager": "pnpm@7.14.0",
4
+ "version": "0.38.1",
5
+ "packageManager": "pnpm@7.15.0",
6
6
  "description": "The Stacks array utilities.",
7
7
  "author": "Chris Breuer",
8
8
  "license": "MIT",
@@ -31,14 +31,15 @@
31
31
  "Chris Breuer <chris@ow3.org>"
32
32
  ],
33
33
  "files": [
34
- "dist"
34
+ "dist",
35
+ "README.md"
35
36
  ],
36
37
  "engines": {
37
- "node": ">=v18.10.0",
38
- "pnpm": ">=7.14.0"
38
+ "node": ">=v18.12.1",
39
+ "pnpm": ">=7.15.0"
39
40
  },
40
41
  "devDependencies": {
41
- "mkdist": "^0.3.13",
42
+ "mkdist": "^0.4.0",
42
43
  "typescript": "^4.8.4"
43
44
  },
44
45
  "scripts": {