@atlaspack/utils 2.14.5-canary.74 → 2.14.5-canary.76

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaspack/utils",
3
- "version": "2.14.5-canary.74+c726abce6",
3
+ "version": "2.14.5-canary.76+9c1fa1a29",
4
4
  "description": "Blazing fast, zero configuration web application bundler",
5
5
  "license": "(MIT OR Apache-2.0)",
6
6
  "publishConfig": {
@@ -30,19 +30,21 @@
30
30
  }
31
31
  },
32
32
  "dependencies": {
33
- "@atlaspack/codeframe": "2.13.3-canary.142+c726abce6",
34
- "@atlaspack/diagnostic": "2.14.1-canary.142+c726abce6",
35
- "@atlaspack/feature-flags": "2.14.1-canary.142+c726abce6",
36
- "@atlaspack/logger": "2.14.5-canary.74+c726abce6",
37
- "@atlaspack/markdown-ansi": "2.14.1-canary.142+c726abce6",
38
- "@atlaspack/rust": "3.2.1-canary.74+c726abce6",
33
+ "@atlaspack/codeframe": "2.13.3-canary.144+9c1fa1a29",
34
+ "@atlaspack/diagnostic": "2.14.1-canary.144+9c1fa1a29",
35
+ "@atlaspack/feature-flags": "2.14.1-canary.144+9c1fa1a29",
36
+ "@atlaspack/logger": "2.14.5-canary.76+9c1fa1a29",
37
+ "@atlaspack/markdown-ansi": "2.14.1-canary.144+9c1fa1a29",
38
+ "@atlaspack/rust": "3.2.1-canary.76+9c1fa1a29",
39
39
  "@parcel/source-map": "^2.1.1",
40
40
  "chalk": "^4.1.0",
41
41
  "nullthrows": "^1.1.1"
42
42
  },
43
43
  "devDependencies": {
44
+ "@atlaspack/babel-register": "2.14.1",
44
45
  "@iarna/toml": "^2.2.0",
45
46
  "ansi-html-community": "0.0.8",
47
+ "benny": "^3.7.1",
46
48
  "clone": "^2.1.1",
47
49
  "fast-glob": "^3.2.12",
48
50
  "fastest-levenshtein": "^1.0.16",
@@ -66,5 +68,5 @@
66
68
  "@atlaspack/markdown-ansi": false
67
69
  },
68
70
  "type": "commonjs",
69
- "gitHead": "c726abce6cddc75a1a8e811d593d731278be8d13"
71
+ "gitHead": "9c1fa1a29518656838078ec75ae0ac6548daf5d6"
70
72
  }
package/src/collection.js CHANGED
@@ -94,6 +94,16 @@ export function setIntersect<T>(a: Set<T>, b: $ReadOnlySet<T>): void {
94
94
  }
95
95
  }
96
96
 
97
+ export function setIntersectStatic<T>(a: Set<T>, b: Set<T>): Set<T> {
98
+ let intersection = new Set();
99
+ for (let entry of a) {
100
+ if (b.has(entry)) {
101
+ intersection.add(entry);
102
+ }
103
+ }
104
+ return intersection;
105
+ }
106
+
97
107
  export function setUnion<T>(a: Iterable<T>, b: Iterable<T>): Set<T> {
98
108
  return new Set([...a, ...b]);
99
109
  }
package/src/index.js CHANGED
@@ -39,6 +39,7 @@ export {
39
39
  setSymmetricDifference,
40
40
  setEqual,
41
41
  setIntersect,
42
+ setIntersectStatic,
42
43
  setUnion,
43
44
  } from './collection';
44
45
  export {