@xylabs/set 2.11.24 → 2.12.0
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/node/index.cjs +49 -0
- package/dist/node/index.cjs.map +1 -0
- package/dist/node/index.js +2 -31
- package/dist/node/index.js.map +1 -1
- package/dist/node/lib/difference.cjs +33 -0
- package/dist/node/lib/difference.cjs.map +1 -0
- package/dist/node/lib/difference.js +2 -27
- package/dist/node/lib/difference.js.map +1 -1
- package/dist/node/lib/index.cjs +49 -0
- package/dist/node/lib/index.cjs.map +1 -0
- package/dist/node/lib/index.js +2 -31
- package/dist/node/lib/index.js.map +1 -1
- package/dist/node/lib/intersection.cjs +33 -0
- package/dist/node/lib/intersection.cjs.map +1 -0
- package/dist/node/lib/intersection.js +2 -27
- package/dist/node/lib/intersection.js.map +1 -1
- package/dist/node/lib/union.cjs +33 -0
- package/dist/node/lib/{union.mjs.map → union.cjs.map} +1 -1
- package/dist/node/lib/union.js +2 -27
- package/dist/node/lib/union.js.map +1 -1
- package/package.json +5 -7
- package/dist/node/index.mjs +0 -20
- package/dist/node/index.mjs.map +0 -1
- package/dist/node/lib/difference.mjs +0 -8
- package/dist/node/lib/difference.mjs.map +0 -1
- package/dist/node/lib/index.mjs +0 -20
- package/dist/node/lib/index.mjs.map +0 -1
- package/dist/node/lib/intersection.mjs +0 -8
- package/dist/node/lib/intersection.mjs.map +0 -1
- package/dist/node/lib/union.mjs +0 -8
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __export = (target, all) => {
|
|
7
|
+
for (var name in all)
|
|
8
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
+
};
|
|
10
|
+
var __copyProps = (to, from, except, desc) => {
|
|
11
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
+
for (let key of __getOwnPropNames(from))
|
|
13
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
+
}
|
|
16
|
+
return to;
|
|
17
|
+
};
|
|
18
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
+
|
|
20
|
+
// src/index.ts
|
|
21
|
+
var src_exports = {};
|
|
22
|
+
__export(src_exports, {
|
|
23
|
+
difference: () => difference,
|
|
24
|
+
intersection: () => intersection,
|
|
25
|
+
union: () => union
|
|
26
|
+
});
|
|
27
|
+
module.exports = __toCommonJS(src_exports);
|
|
28
|
+
|
|
29
|
+
// src/lib/difference.ts
|
|
30
|
+
var difference = (a, b) => {
|
|
31
|
+
return new Set(Array.from(a).filter((x) => !b.has(x)));
|
|
32
|
+
};
|
|
33
|
+
|
|
34
|
+
// src/lib/intersection.ts
|
|
35
|
+
var intersection = (a, b) => {
|
|
36
|
+
return new Set(Array.from(a).filter((x) => b.has(x)));
|
|
37
|
+
};
|
|
38
|
+
|
|
39
|
+
// src/lib/union.ts
|
|
40
|
+
var union = (a, b) => {
|
|
41
|
+
return /* @__PURE__ */ new Set([...a, ...b]);
|
|
42
|
+
};
|
|
43
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
44
|
+
0 && (module.exports = {
|
|
45
|
+
difference,
|
|
46
|
+
intersection,
|
|
47
|
+
union
|
|
48
|
+
});
|
|
49
|
+
//# sourceMappingURL=index.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../src/index.ts","../../src/lib/difference.ts","../../src/lib/intersection.ts","../../src/lib/union.ts"],"sourcesContent":["export * from './lib'\n","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":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;;ACAO,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":[]}
|
package/dist/node/index.js
CHANGED
|
@@ -1,31 +1,3 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __defProp = Object.defineProperty;
|
|
3
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
-
var __export = (target, all) => {
|
|
7
|
-
for (var name in all)
|
|
8
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
-
};
|
|
10
|
-
var __copyProps = (to, from, except, desc) => {
|
|
11
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
-
for (let key of __getOwnPropNames(from))
|
|
13
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
-
}
|
|
16
|
-
return to;
|
|
17
|
-
};
|
|
18
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
-
|
|
20
|
-
// src/index.ts
|
|
21
|
-
var src_exports = {};
|
|
22
|
-
__export(src_exports, {
|
|
23
|
-
difference: () => difference,
|
|
24
|
-
intersection: () => intersection,
|
|
25
|
-
union: () => union
|
|
26
|
-
});
|
|
27
|
-
module.exports = __toCommonJS(src_exports);
|
|
28
|
-
|
|
29
1
|
// src/lib/difference.ts
|
|
30
2
|
var difference = (a, b) => {
|
|
31
3
|
return new Set(Array.from(a).filter((x) => !b.has(x)));
|
|
@@ -40,10 +12,9 @@ var intersection = (a, b) => {
|
|
|
40
12
|
var union = (a, b) => {
|
|
41
13
|
return /* @__PURE__ */ new Set([...a, ...b]);
|
|
42
14
|
};
|
|
43
|
-
|
|
44
|
-
0 && (module.exports = {
|
|
15
|
+
export {
|
|
45
16
|
difference,
|
|
46
17
|
intersection,
|
|
47
18
|
union
|
|
48
|
-
}
|
|
19
|
+
};
|
|
49
20
|
//# sourceMappingURL=index.js.map
|
package/dist/node/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/
|
|
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":[]}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __export = (target, all) => {
|
|
7
|
+
for (var name in all)
|
|
8
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
+
};
|
|
10
|
+
var __copyProps = (to, from, except, desc) => {
|
|
11
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
+
for (let key of __getOwnPropNames(from))
|
|
13
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
+
}
|
|
16
|
+
return to;
|
|
17
|
+
};
|
|
18
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
+
|
|
20
|
+
// src/lib/difference.ts
|
|
21
|
+
var difference_exports = {};
|
|
22
|
+
__export(difference_exports, {
|
|
23
|
+
difference: () => difference
|
|
24
|
+
});
|
|
25
|
+
module.exports = __toCommonJS(difference_exports);
|
|
26
|
+
var difference = (a, b) => {
|
|
27
|
+
return new Set(Array.from(a).filter((x) => !b.has(x)));
|
|
28
|
+
};
|
|
29
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
30
|
+
0 && (module.exports = {
|
|
31
|
+
difference
|
|
32
|
+
});
|
|
33
|
+
//# sourceMappingURL=difference.cjs.map
|
|
@@ -0,0 +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":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;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,33 +1,8 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __defProp = Object.defineProperty;
|
|
3
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
-
var __export = (target, all) => {
|
|
7
|
-
for (var name in all)
|
|
8
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
-
};
|
|
10
|
-
var __copyProps = (to, from, except, desc) => {
|
|
11
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
-
for (let key of __getOwnPropNames(from))
|
|
13
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
-
}
|
|
16
|
-
return to;
|
|
17
|
-
};
|
|
18
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
-
|
|
20
1
|
// src/lib/difference.ts
|
|
21
|
-
var difference_exports = {};
|
|
22
|
-
__export(difference_exports, {
|
|
23
|
-
difference: () => difference
|
|
24
|
-
});
|
|
25
|
-
module.exports = __toCommonJS(difference_exports);
|
|
26
2
|
var difference = (a, b) => {
|
|
27
3
|
return new Set(Array.from(a).filter((x) => !b.has(x)));
|
|
28
4
|
};
|
|
29
|
-
|
|
30
|
-
0 && (module.exports = {
|
|
5
|
+
export {
|
|
31
6
|
difference
|
|
32
|
-
}
|
|
7
|
+
};
|
|
33
8
|
//# sourceMappingURL=difference.js.map
|
|
@@ -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":"
|
|
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":[]}
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __export = (target, all) => {
|
|
7
|
+
for (var name in all)
|
|
8
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
+
};
|
|
10
|
+
var __copyProps = (to, from, except, desc) => {
|
|
11
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
+
for (let key of __getOwnPropNames(from))
|
|
13
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
+
}
|
|
16
|
+
return to;
|
|
17
|
+
};
|
|
18
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
+
|
|
20
|
+
// src/lib/index.ts
|
|
21
|
+
var lib_exports = {};
|
|
22
|
+
__export(lib_exports, {
|
|
23
|
+
difference: () => difference,
|
|
24
|
+
intersection: () => intersection,
|
|
25
|
+
union: () => union
|
|
26
|
+
});
|
|
27
|
+
module.exports = __toCommonJS(lib_exports);
|
|
28
|
+
|
|
29
|
+
// src/lib/difference.ts
|
|
30
|
+
var difference = (a, b) => {
|
|
31
|
+
return new Set(Array.from(a).filter((x) => !b.has(x)));
|
|
32
|
+
};
|
|
33
|
+
|
|
34
|
+
// src/lib/intersection.ts
|
|
35
|
+
var intersection = (a, b) => {
|
|
36
|
+
return new Set(Array.from(a).filter((x) => b.has(x)));
|
|
37
|
+
};
|
|
38
|
+
|
|
39
|
+
// src/lib/union.ts
|
|
40
|
+
var union = (a, b) => {
|
|
41
|
+
return /* @__PURE__ */ new Set([...a, ...b]);
|
|
42
|
+
};
|
|
43
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
44
|
+
0 && (module.exports = {
|
|
45
|
+
difference,
|
|
46
|
+
intersection,
|
|
47
|
+
union
|
|
48
|
+
});
|
|
49
|
+
//# sourceMappingURL=index.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../src/lib/index.ts","../../../src/lib/difference.ts","../../../src/lib/intersection.ts","../../../src/lib/union.ts"],"sourcesContent":["export * from './difference'\nexport * from './intersection'\nexport * from './union'\n","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":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;;ACAO,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":[]}
|
package/dist/node/lib/index.js
CHANGED
|
@@ -1,31 +1,3 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __defProp = Object.defineProperty;
|
|
3
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
-
var __export = (target, all) => {
|
|
7
|
-
for (var name in all)
|
|
8
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
-
};
|
|
10
|
-
var __copyProps = (to, from, except, desc) => {
|
|
11
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
-
for (let key of __getOwnPropNames(from))
|
|
13
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
-
}
|
|
16
|
-
return to;
|
|
17
|
-
};
|
|
18
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
-
|
|
20
|
-
// src/lib/index.ts
|
|
21
|
-
var lib_exports = {};
|
|
22
|
-
__export(lib_exports, {
|
|
23
|
-
difference: () => difference,
|
|
24
|
-
intersection: () => intersection,
|
|
25
|
-
union: () => union
|
|
26
|
-
});
|
|
27
|
-
module.exports = __toCommonJS(lib_exports);
|
|
28
|
-
|
|
29
1
|
// src/lib/difference.ts
|
|
30
2
|
var difference = (a, b) => {
|
|
31
3
|
return new Set(Array.from(a).filter((x) => !b.has(x)));
|
|
@@ -40,10 +12,9 @@ var intersection = (a, b) => {
|
|
|
40
12
|
var union = (a, b) => {
|
|
41
13
|
return /* @__PURE__ */ new Set([...a, ...b]);
|
|
42
14
|
};
|
|
43
|
-
|
|
44
|
-
0 && (module.exports = {
|
|
15
|
+
export {
|
|
45
16
|
difference,
|
|
46
17
|
intersection,
|
|
47
18
|
union
|
|
48
|
-
}
|
|
19
|
+
};
|
|
49
20
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../src/lib/
|
|
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":[]}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __export = (target, all) => {
|
|
7
|
+
for (var name in all)
|
|
8
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
+
};
|
|
10
|
+
var __copyProps = (to, from, except, desc) => {
|
|
11
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
+
for (let key of __getOwnPropNames(from))
|
|
13
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
+
}
|
|
16
|
+
return to;
|
|
17
|
+
};
|
|
18
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
+
|
|
20
|
+
// src/lib/intersection.ts
|
|
21
|
+
var intersection_exports = {};
|
|
22
|
+
__export(intersection_exports, {
|
|
23
|
+
intersection: () => intersection
|
|
24
|
+
});
|
|
25
|
+
module.exports = __toCommonJS(intersection_exports);
|
|
26
|
+
var intersection = (a, b) => {
|
|
27
|
+
return new Set(Array.from(a).filter((x) => b.has(x)));
|
|
28
|
+
};
|
|
29
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
30
|
+
0 && (module.exports = {
|
|
31
|
+
intersection
|
|
32
|
+
});
|
|
33
|
+
//# sourceMappingURL=intersection.cjs.map
|
|
@@ -0,0 +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":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;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,33 +1,8 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __defProp = Object.defineProperty;
|
|
3
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
-
var __export = (target, all) => {
|
|
7
|
-
for (var name in all)
|
|
8
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
-
};
|
|
10
|
-
var __copyProps = (to, from, except, desc) => {
|
|
11
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
-
for (let key of __getOwnPropNames(from))
|
|
13
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
-
}
|
|
16
|
-
return to;
|
|
17
|
-
};
|
|
18
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
-
|
|
20
1
|
// src/lib/intersection.ts
|
|
21
|
-
var intersection_exports = {};
|
|
22
|
-
__export(intersection_exports, {
|
|
23
|
-
intersection: () => intersection
|
|
24
|
-
});
|
|
25
|
-
module.exports = __toCommonJS(intersection_exports);
|
|
26
2
|
var intersection = (a, b) => {
|
|
27
3
|
return new Set(Array.from(a).filter((x) => b.has(x)));
|
|
28
4
|
};
|
|
29
|
-
|
|
30
|
-
0 && (module.exports = {
|
|
5
|
+
export {
|
|
31
6
|
intersection
|
|
32
|
-
}
|
|
7
|
+
};
|
|
33
8
|
//# sourceMappingURL=intersection.js.map
|
|
@@ -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":"
|
|
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":[]}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __export = (target, all) => {
|
|
7
|
+
for (var name in all)
|
|
8
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
+
};
|
|
10
|
+
var __copyProps = (to, from, except, desc) => {
|
|
11
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
+
for (let key of __getOwnPropNames(from))
|
|
13
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
+
}
|
|
16
|
+
return to;
|
|
17
|
+
};
|
|
18
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
+
|
|
20
|
+
// src/lib/union.ts
|
|
21
|
+
var union_exports = {};
|
|
22
|
+
__export(union_exports, {
|
|
23
|
+
union: () => union
|
|
24
|
+
});
|
|
25
|
+
module.exports = __toCommonJS(union_exports);
|
|
26
|
+
var union = (a, b) => {
|
|
27
|
+
return /* @__PURE__ */ new Set([...a, ...b]);
|
|
28
|
+
};
|
|
29
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
30
|
+
0 && (module.exports = {
|
|
31
|
+
union
|
|
32
|
+
});
|
|
33
|
+
//# sourceMappingURL=union.cjs.map
|
|
@@ -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,IAAM,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":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAO,IAAM,QAAQ,CAAO,GAAc,MAA4B;AACpE,SAAO,oBAAI,IAAI,CAAC,GAAG,GAAG,GAAG,CAAC,CAAC;AAC7B;","names":[]}
|
package/dist/node/lib/union.js
CHANGED
|
@@ -1,33 +1,8 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __defProp = Object.defineProperty;
|
|
3
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
-
var __export = (target, all) => {
|
|
7
|
-
for (var name in all)
|
|
8
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
-
};
|
|
10
|
-
var __copyProps = (to, from, except, desc) => {
|
|
11
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
-
for (let key of __getOwnPropNames(from))
|
|
13
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
-
}
|
|
16
|
-
return to;
|
|
17
|
-
};
|
|
18
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
-
|
|
20
1
|
// src/lib/union.ts
|
|
21
|
-
var union_exports = {};
|
|
22
|
-
__export(union_exports, {
|
|
23
|
-
union: () => union
|
|
24
|
-
});
|
|
25
|
-
module.exports = __toCommonJS(union_exports);
|
|
26
2
|
var union = (a, b) => {
|
|
27
3
|
return /* @__PURE__ */ new Set([...a, ...b]);
|
|
28
4
|
};
|
|
29
|
-
|
|
30
|
-
0 && (module.exports = {
|
|
5
|
+
export {
|
|
31
6
|
union
|
|
32
|
-
}
|
|
7
|
+
};
|
|
33
8
|
//# sourceMappingURL=union.js.map
|
|
@@ -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":"
|
|
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
|
@@ -15,16 +15,15 @@
|
|
|
15
15
|
],
|
|
16
16
|
"description": "Base functionality used throughout XY Labs TypeScript/JavaScript libraries",
|
|
17
17
|
"docs": "dist/docs.json",
|
|
18
|
-
"types": "dist/node/index.d.ts",
|
|
19
18
|
"exports": {
|
|
20
19
|
".": {
|
|
21
20
|
"require": {
|
|
22
21
|
"types": "./dist/node/index.d.ts",
|
|
23
|
-
"default": "./dist/node/index.
|
|
22
|
+
"default": "./dist/node/index.cjs"
|
|
24
23
|
},
|
|
25
24
|
"import": {
|
|
26
25
|
"types": "./dist/node/index.d.mts",
|
|
27
|
-
"default": "./dist/node/index.
|
|
26
|
+
"default": "./dist/node/index.js"
|
|
28
27
|
}
|
|
29
28
|
},
|
|
30
29
|
"./docs": {
|
|
@@ -32,8 +31,6 @@
|
|
|
32
31
|
},
|
|
33
32
|
"./package.json": "./package.json"
|
|
34
33
|
},
|
|
35
|
-
"main": "dist/node/index.js",
|
|
36
|
-
"module": "dist/node/index.mjs",
|
|
37
34
|
"homepage": "https://xylabs.com",
|
|
38
35
|
"keywords": [
|
|
39
36
|
"xylabs",
|
|
@@ -54,6 +51,7 @@
|
|
|
54
51
|
"url": "https://github.com/xylabs/sdk-js.git"
|
|
55
52
|
},
|
|
56
53
|
"sideEffects": false,
|
|
57
|
-
"version": "2.
|
|
58
|
-
"packageManager": "yarn@3.3.1"
|
|
54
|
+
"version": "2.12.0",
|
|
55
|
+
"packageManager": "yarn@3.3.1",
|
|
56
|
+
"type": "module"
|
|
59
57
|
}
|
package/dist/node/index.mjs
DELETED
|
@@ -1,20 +0,0 @@
|
|
|
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
|
-
};
|
|
20
|
-
//# sourceMappingURL=index.mjs.map
|
package/dist/node/index.mjs.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
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 +0,0 @@
|
|
|
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":[]}
|
package/dist/node/lib/index.mjs
DELETED
|
@@ -1,20 +0,0 @@
|
|
|
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
|
-
};
|
|
20
|
-
//# sourceMappingURL=index.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
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 +0,0 @@
|
|
|
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":[]}
|