@yamada-ui/cli 0.0.0-dev-20230608024220

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,56 @@
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/utils/assertion.ts
21
+ var assertion_exports = {};
22
+ __export(assertion_exports, {
23
+ isArray: () => isArray,
24
+ isFunction: () => isFunction,
25
+ isNotNumber: () => isNotNumber,
26
+ isNull: () => isNull,
27
+ isNumber: () => isNumber,
28
+ isNumeric: () => isNumeric,
29
+ isObject: () => isObject,
30
+ isString: () => isString,
31
+ isUndefined: () => isUndefined
32
+ });
33
+ module.exports = __toCommonJS(assertion_exports);
34
+ var isNumber = (value) => typeof value === "number";
35
+ var isNotNumber = (value) => typeof value !== "number" || Number.isNaN(value) || !Number.isFinite(value);
36
+ var isNumeric = (value) => value != null && parseFloat(value.toString()) - parseFloat(value.toString()) + 1 >= 0;
37
+ var isString = (value) => Object.prototype.toString.call(value) === "[object String]";
38
+ var isUndefined = (value) => typeof value === "undefined" && value === void 0;
39
+ var isNull = (value) => value === null;
40
+ var isObject = (obj) => obj !== null && (typeof obj === "object" || typeof obj === "function") && !Array.isArray(obj);
41
+ var isArray = (value) => Array.isArray(value);
42
+ function isFunction(value) {
43
+ return typeof value === "function";
44
+ }
45
+ // Annotate the CommonJS export names for ESM import in node:
46
+ 0 && (module.exports = {
47
+ isArray,
48
+ isFunction,
49
+ isNotNumber,
50
+ isNull,
51
+ isNumber,
52
+ isNumeric,
53
+ isObject,
54
+ isString,
55
+ isUndefined
56
+ });