@william-callao/antonella-utils 1.0.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.
@@ -0,0 +1,6 @@
1
+ declare function cn(...values: Array<string | false | null | undefined>): string;
2
+ declare function isDefined<T>(value: T | null | undefined): value is T;
3
+ declare function noop(): void;
4
+ declare function isWeb(): boolean;
5
+
6
+ export { cn, isDefined, isWeb, noop };
package/dist/index.js ADDED
@@ -0,0 +1,46 @@
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 index_exports = {};
22
+ __export(index_exports, {
23
+ cn: () => cn,
24
+ isDefined: () => isDefined,
25
+ isWeb: () => isWeb,
26
+ noop: () => noop
27
+ });
28
+ module.exports = __toCommonJS(index_exports);
29
+ function cn(...values) {
30
+ return values.filter(Boolean).join(" ");
31
+ }
32
+ function isDefined(value) {
33
+ return value !== null && value !== void 0;
34
+ }
35
+ function noop() {
36
+ }
37
+ function isWeb() {
38
+ return typeof window !== "undefined" && typeof document !== "undefined";
39
+ }
40
+ // Annotate the CommonJS export names for ESM import in node:
41
+ 0 && (module.exports = {
42
+ cn,
43
+ isDefined,
44
+ isWeb,
45
+ noop
46
+ });
package/package.json ADDED
@@ -0,0 +1,19 @@
1
+ {
2
+ "name": "@william-callao/antonella-utils",
3
+ "version": "1.0.0",
4
+ "description": "Utilidades puras compartidas de Antonella.",
5
+ "main": "dist/index.js",
6
+ "types": "dist/index.d.ts",
7
+ "react-native": "dist/index.js",
8
+ "sideEffects": false,
9
+ "files": [
10
+ "dist"
11
+ ],
12
+ "publishConfig": {
13
+ "access": "public"
14
+ },
15
+ "scripts": {
16
+ "build": "tsup",
17
+ "typecheck": "tsc --noEmit"
18
+ }
19
+ }