@xylabs/set 2.12.13 → 2.12.15

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.
@@ -1,2 +1,20 @@
1
- export * from "./lib";
1
+ // src/lib/difference.ts
2
+ var difference = (a, b) => {
3
+ return new Set(Array.from(a).filter((x) => !b.has(x)));
4
+ };
5
+
6
+ // src/lib/intersection.ts
7
+ var intersection = (a, b) => {
8
+ return new Set(Array.from(a).filter((x) => b.has(x)));
9
+ };
10
+
11
+ // src/lib/union.ts
12
+ var union = (a, b) => {
13
+ return /* @__PURE__ */ new Set([...a, ...b]);
14
+ };
15
+ export {
16
+ difference,
17
+ intersection,
18
+ union
19
+ };
2
20
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/index.ts"],"sourcesContent":["export * from './lib'\n"],"mappings":"AAAA,cAAc;","names":[]}
1
+ {"version":3,"sources":["../../src/lib/difference.ts","../../src/lib/intersection.ts","../../src/lib/union.ts"],"sourcesContent":["export const difference = <TKey>(a: Set<TKey>, b: Set<TKey>): Set<TKey> => {\n return new Set(Array.from(a).filter((x) => !b.has(x)))\n}\n","export const intersection = <TKey>(a: Set<TKey>, b: Set<TKey>): Set<TKey> => {\n return new Set(Array.from(a).filter((x) => b.has(x)))\n}\n","export const union = <TKey>(a: Set<TKey>, b: Set<TKey>): Set<TKey> => {\n return new Set([...a, ...b])\n}\n"],"mappings":";AAAO,IAAM,aAAa,CAAO,GAAc,MAA4B;AACzE,SAAO,IAAI,IAAI,MAAM,KAAK,CAAC,EAAE,OAAO,CAAC,MAAM,CAAC,EAAE,IAAI,CAAC,CAAC,CAAC;AACvD;;;ACFO,IAAM,eAAe,CAAO,GAAc,MAA4B;AAC3E,SAAO,IAAI,IAAI,MAAM,KAAK,CAAC,EAAE,OAAO,CAAC,MAAM,EAAE,IAAI,CAAC,CAAC,CAAC;AACtD;;;ACFO,IAAM,QAAQ,CAAO,GAAc,MAA4B;AACpE,SAAO,oBAAI,IAAI,CAAC,GAAG,GAAG,GAAG,CAAC,CAAC;AAC7B;","names":[]}
@@ -1,4 +1,5 @@
1
- const difference = (a, b) => {
1
+ // src/lib/difference.ts
2
+ var difference = (a, b) => {
2
3
  return new Set(Array.from(a).filter((x) => !b.has(x)));
3
4
  };
4
5
  export {
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/lib/difference.ts"],"sourcesContent":["export const difference = <TKey>(a: Set<TKey>, b: Set<TKey>): Set<TKey> => {\n return new Set(Array.from(a).filter((x) => !b.has(x)))\n}\n"],"mappings":"AAAO,MAAM,aAAa,CAAO,GAAc,MAA4B;AACzE,SAAO,IAAI,IAAI,MAAM,KAAK,CAAC,EAAE,OAAO,CAAC,MAAM,CAAC,EAAE,IAAI,CAAC,CAAC,CAAC;AACvD;","names":[]}
1
+ {"version":3,"sources":["../../../src/lib/difference.ts"],"sourcesContent":["export const difference = <TKey>(a: Set<TKey>, b: Set<TKey>): Set<TKey> => {\n return new Set(Array.from(a).filter((x) => !b.has(x)))\n}\n"],"mappings":";AAAO,IAAM,aAAa,CAAO,GAAc,MAA4B;AACzE,SAAO,IAAI,IAAI,MAAM,KAAK,CAAC,EAAE,OAAO,CAAC,MAAM,CAAC,EAAE,IAAI,CAAC,CAAC,CAAC;AACvD;","names":[]}
@@ -1,4 +1,20 @@
1
- export * from "./difference";
2
- export * from "./intersection";
3
- export * from "./union";
1
+ // src/lib/difference.ts
2
+ var difference = (a, b) => {
3
+ return new Set(Array.from(a).filter((x) => !b.has(x)));
4
+ };
5
+
6
+ // src/lib/intersection.ts
7
+ var intersection = (a, b) => {
8
+ return new Set(Array.from(a).filter((x) => b.has(x)));
9
+ };
10
+
11
+ // src/lib/union.ts
12
+ var union = (a, b) => {
13
+ return /* @__PURE__ */ new Set([...a, ...b]);
14
+ };
15
+ export {
16
+ difference,
17
+ intersection,
18
+ union
19
+ };
4
20
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/lib/index.ts"],"sourcesContent":["export * from './difference'\nexport * from './intersection'\nexport * from './union'\n"],"mappings":"AAAA,cAAc;AACd,cAAc;AACd,cAAc;","names":[]}
1
+ {"version":3,"sources":["../../../src/lib/difference.ts","../../../src/lib/intersection.ts","../../../src/lib/union.ts"],"sourcesContent":["export const difference = <TKey>(a: Set<TKey>, b: Set<TKey>): Set<TKey> => {\n return new Set(Array.from(a).filter((x) => !b.has(x)))\n}\n","export const intersection = <TKey>(a: Set<TKey>, b: Set<TKey>): Set<TKey> => {\n return new Set(Array.from(a).filter((x) => b.has(x)))\n}\n","export const union = <TKey>(a: Set<TKey>, b: Set<TKey>): Set<TKey> => {\n return new Set([...a, ...b])\n}\n"],"mappings":";AAAO,IAAM,aAAa,CAAO,GAAc,MAA4B;AACzE,SAAO,IAAI,IAAI,MAAM,KAAK,CAAC,EAAE,OAAO,CAAC,MAAM,CAAC,EAAE,IAAI,CAAC,CAAC,CAAC;AACvD;;;ACFO,IAAM,eAAe,CAAO,GAAc,MAA4B;AAC3E,SAAO,IAAI,IAAI,MAAM,KAAK,CAAC,EAAE,OAAO,CAAC,MAAM,EAAE,IAAI,CAAC,CAAC,CAAC;AACtD;;;ACFO,IAAM,QAAQ,CAAO,GAAc,MAA4B;AACpE,SAAO,oBAAI,IAAI,CAAC,GAAG,GAAG,GAAG,CAAC,CAAC;AAC7B;","names":[]}
@@ -1,4 +1,5 @@
1
- const intersection = (a, b) => {
1
+ // src/lib/intersection.ts
2
+ var intersection = (a, b) => {
2
3
  return new Set(Array.from(a).filter((x) => b.has(x)));
3
4
  };
4
5
  export {
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/lib/intersection.ts"],"sourcesContent":["export const intersection = <TKey>(a: Set<TKey>, b: Set<TKey>): Set<TKey> => {\n return new Set(Array.from(a).filter((x) => b.has(x)))\n}\n"],"mappings":"AAAO,MAAM,eAAe,CAAO,GAAc,MAA4B;AAC3E,SAAO,IAAI,IAAI,MAAM,KAAK,CAAC,EAAE,OAAO,CAAC,MAAM,EAAE,IAAI,CAAC,CAAC,CAAC;AACtD;","names":[]}
1
+ {"version":3,"sources":["../../../src/lib/intersection.ts"],"sourcesContent":["export const intersection = <TKey>(a: Set<TKey>, b: Set<TKey>): Set<TKey> => {\n return new Set(Array.from(a).filter((x) => b.has(x)))\n}\n"],"mappings":";AAAO,IAAM,eAAe,CAAO,GAAc,MAA4B;AAC3E,SAAO,IAAI,IAAI,MAAM,KAAK,CAAC,EAAE,OAAO,CAAC,MAAM,EAAE,IAAI,CAAC,CAAC,CAAC;AACtD;","names":[]}
@@ -1,4 +1,5 @@
1
- const union = (a, b) => {
1
+ // src/lib/union.ts
2
+ var union = (a, b) => {
2
3
  return /* @__PURE__ */ new Set([...a, ...b]);
3
4
  };
4
5
  export {
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/lib/union.ts"],"sourcesContent":["export const union = <TKey>(a: Set<TKey>, b: Set<TKey>): Set<TKey> => {\n return new Set([...a, ...b])\n}\n"],"mappings":"AAAO,MAAM,QAAQ,CAAO,GAAc,MAA4B;AACpE,SAAO,oBAAI,IAAI,CAAC,GAAG,GAAG,GAAG,CAAC,CAAC;AAC7B;","names":[]}
1
+ {"version":3,"sources":["../../../src/lib/union.ts"],"sourcesContent":["export const union = <TKey>(a: Set<TKey>, b: Set<TKey>): Set<TKey> => {\n return new Set([...a, ...b])\n}\n"],"mappings":";AAAO,IAAM,QAAQ,CAAO,GAAc,MAA4B;AACpE,SAAO,oBAAI,IAAI,CAAC,GAAG,GAAG,GAAG,CAAC,CAAC;AAC7B;","names":[]}
package/package.json CHANGED
@@ -42,8 +42,8 @@
42
42
  "esm"
43
43
  ],
44
44
  "devDependencies": {
45
- "@xylabs/ts-scripts-yarn3": "^3.0.78",
46
- "@xylabs/tsconfig": "^3.0.78",
45
+ "@xylabs/ts-scripts-yarn3": "^3.0.88",
46
+ "@xylabs/tsconfig": "^3.0.88",
47
47
  "typescript": "^5.2.2"
48
48
  },
49
49
  "publishConfig": {
@@ -54,7 +54,7 @@
54
54
  "url": "https://github.com/xylabs/sdk-js.git"
55
55
  },
56
56
  "sideEffects": false,
57
- "version": "2.12.13",
57
+ "version": "2.12.15",
58
58
  "packageManager": "yarn@3.3.1",
59
59
  "type": "module"
60
60
  }