@estjs/shared 0.0.14 → 0.0.15-beta.1
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/README.md +14 -0
- package/dist/shared.cjs.js +2 -0
- package/dist/shared.cjs.js.map +1 -0
- package/dist/shared.d.cts +287 -42
- package/dist/shared.d.ts +287 -42
- package/dist/shared.dev.cjs.js +395 -0
- package/dist/shared.dev.cjs.js.map +1 -0
- package/dist/shared.dev.esm.js +311 -0
- package/dist/shared.dev.esm.js.map +1 -0
- package/dist/shared.esm.js +2 -0
- package/dist/shared.esm.js.map +1 -0
- package/package.json +22 -7
- package/dist/shared.cjs +0 -224
- package/dist/shared.cjs.map +0 -1
- package/dist/shared.js +0 -165
- package/dist/shared.js.map +0 -1
package/dist/shared.cjs
DELETED
|
@@ -1,224 +0,0 @@
|
|
|
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
|
-
_toString: () => _toString,
|
|
24
|
-
camelCase: () => camelCase,
|
|
25
|
-
capitalize: () => capitalize,
|
|
26
|
-
coerceArray: () => coerceArray,
|
|
27
|
-
error: () => error,
|
|
28
|
-
escape: () => escape,
|
|
29
|
-
extend: () => extend,
|
|
30
|
-
generateUniqueId: () => generateUniqueId,
|
|
31
|
-
hasChanged: () => hasChanged,
|
|
32
|
-
hasOwn: () => hasOwn,
|
|
33
|
-
info: () => info,
|
|
34
|
-
isArray: () => isArray,
|
|
35
|
-
isBrowser: () => isBrowser,
|
|
36
|
-
isExclude: () => isExclude,
|
|
37
|
-
isFalsy: () => isFalsy,
|
|
38
|
-
isFunction: () => isFunction,
|
|
39
|
-
isHTMLElement: () => isHTMLElement,
|
|
40
|
-
isMap: () => isMap,
|
|
41
|
-
isNil: () => isNil,
|
|
42
|
-
isObject: () => isObject,
|
|
43
|
-
isPlainObject: () => isPlainObject,
|
|
44
|
-
isPrimitive: () => isPrimitive,
|
|
45
|
-
isPromise: () => isPromise,
|
|
46
|
-
isSet: () => isSet,
|
|
47
|
-
isString: () => isString,
|
|
48
|
-
isStringNumber: () => isStringNumber,
|
|
49
|
-
isSymbol: () => isSymbol,
|
|
50
|
-
isWeakMap: () => isWeakMap,
|
|
51
|
-
isWeakSet: () => isWeakSet,
|
|
52
|
-
kebabCase: () => kebabCase,
|
|
53
|
-
noop: () => noop,
|
|
54
|
-
startsWith: () => startsWith,
|
|
55
|
-
warn: () => warn
|
|
56
|
-
});
|
|
57
|
-
module.exports = __toCommonJS(src_exports);
|
|
58
|
-
|
|
59
|
-
// src/is.ts
|
|
60
|
-
var isObject = (val) => val !== null && typeof val === "object";
|
|
61
|
-
function isPromise(val) {
|
|
62
|
-
return _toString.call(val) === "[object Promise]";
|
|
63
|
-
}
|
|
64
|
-
var isArray = Array.isArray;
|
|
65
|
-
function isString(val) {
|
|
66
|
-
return typeof val === "string";
|
|
67
|
-
}
|
|
68
|
-
function isNull(val) {
|
|
69
|
-
return val === null;
|
|
70
|
-
}
|
|
71
|
-
function isSymbol(val) {
|
|
72
|
-
return typeof val === "symbol";
|
|
73
|
-
}
|
|
74
|
-
function isSet(val) {
|
|
75
|
-
return _toString.call(val) === "[object Set]";
|
|
76
|
-
}
|
|
77
|
-
function isWeakMap(val) {
|
|
78
|
-
return _toString.call(val) === "[object WeakMap]";
|
|
79
|
-
}
|
|
80
|
-
function isWeakSet(val) {
|
|
81
|
-
return _toString.call(val) === "[object WeakSet]";
|
|
82
|
-
}
|
|
83
|
-
function isMap(val) {
|
|
84
|
-
return _toString.call(val) === "[object Map]";
|
|
85
|
-
}
|
|
86
|
-
function isNil(x) {
|
|
87
|
-
return x === null || x === void 0;
|
|
88
|
-
}
|
|
89
|
-
var isFunction = (val) => typeof val === "function";
|
|
90
|
-
function isFalsy(x) {
|
|
91
|
-
return x === false || x === null || x === void 0;
|
|
92
|
-
}
|
|
93
|
-
var isPrimitive = (val) => ["string", "number", "boolean", "symbol", "undefined"].includes(typeof val) || isNull(val);
|
|
94
|
-
function isHTMLElement(obj) {
|
|
95
|
-
if (!obj) return false;
|
|
96
|
-
return obj && typeof obj === "object" && obj.nodeType === 1 && typeof obj.nodeName === "string";
|
|
97
|
-
}
|
|
98
|
-
var isPlainObject = (val) => _toString.call(val) === "[object Object]";
|
|
99
|
-
function isStringNumber(val) {
|
|
100
|
-
if (!isString(val)) {
|
|
101
|
-
return false;
|
|
102
|
-
}
|
|
103
|
-
return !Number.isNaN(Number(val));
|
|
104
|
-
}
|
|
105
|
-
|
|
106
|
-
// src/comm.ts
|
|
107
|
-
var _toString = Object.prototype.toString;
|
|
108
|
-
var extend = Object.assign;
|
|
109
|
-
var hasOwnProperty = Object.prototype.hasOwnProperty;
|
|
110
|
-
var hasOwn = (val, key) => hasOwnProperty.call(val, key);
|
|
111
|
-
function coerceArray(data) {
|
|
112
|
-
return isArray(data) ? data.flat() : [data];
|
|
113
|
-
}
|
|
114
|
-
var hasChanged = (value, oldValue) => value !== oldValue && (value === value || oldValue === oldValue);
|
|
115
|
-
var noop = Function.prototype;
|
|
116
|
-
function startsWith(str, searchString) {
|
|
117
|
-
if (!isString(str)) {
|
|
118
|
-
return false;
|
|
119
|
-
}
|
|
120
|
-
return str.indexOf(searchString) === 0;
|
|
121
|
-
}
|
|
122
|
-
function escape(str) {
|
|
123
|
-
return str.replaceAll(/["&'<>]/g, (char) => {
|
|
124
|
-
switch (char) {
|
|
125
|
-
case "&":
|
|
126
|
-
return "&";
|
|
127
|
-
case "<":
|
|
128
|
-
return "<";
|
|
129
|
-
case ">":
|
|
130
|
-
return ">";
|
|
131
|
-
case '"':
|
|
132
|
-
return """;
|
|
133
|
-
case "'":
|
|
134
|
-
return "'";
|
|
135
|
-
default:
|
|
136
|
-
return char;
|
|
137
|
-
}
|
|
138
|
-
});
|
|
139
|
-
}
|
|
140
|
-
function isExclude(key, exclude) {
|
|
141
|
-
return isArray(exclude) ? exclude.includes(key) : isFunction(exclude) ? exclude(key) : false;
|
|
142
|
-
}
|
|
143
|
-
function generateUniqueId() {
|
|
144
|
-
const characters = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789";
|
|
145
|
-
let result = "";
|
|
146
|
-
const charactersLength = characters.length;
|
|
147
|
-
for (let i = 0; i < 8; i++) {
|
|
148
|
-
result += characters.charAt(Math.floor(Math.random() * charactersLength));
|
|
149
|
-
}
|
|
150
|
-
return result;
|
|
151
|
-
}
|
|
152
|
-
function isBrowser() {
|
|
153
|
-
return typeof window !== "undefined" && typeof document !== "undefined";
|
|
154
|
-
}
|
|
155
|
-
var cacheStringFunction = (fn) => {
|
|
156
|
-
const cache = /* @__PURE__ */ Object.create(null);
|
|
157
|
-
return (str) => {
|
|
158
|
-
const hit = cache[str];
|
|
159
|
-
return hit || (cache[str] = fn(str));
|
|
160
|
-
};
|
|
161
|
-
};
|
|
162
|
-
|
|
163
|
-
// src/name.ts
|
|
164
|
-
var hyphenateRE = /\B([A-Z])/g;
|
|
165
|
-
var kebabCase = cacheStringFunction(
|
|
166
|
-
(str) => str.replaceAll(hyphenateRE, "-$1").toLowerCase()
|
|
167
|
-
);
|
|
168
|
-
var camelizeRE = /-(\w)/g;
|
|
169
|
-
var camelCase = cacheStringFunction((str) => {
|
|
170
|
-
return str.replaceAll(camelizeRE, (_, c) => c ? c.toUpperCase() : "");
|
|
171
|
-
});
|
|
172
|
-
var capitalize = cacheStringFunction(
|
|
173
|
-
(str) => {
|
|
174
|
-
return str.charAt(0).toUpperCase() + str.slice(1);
|
|
175
|
-
}
|
|
176
|
-
);
|
|
177
|
-
|
|
178
|
-
// src/console.ts
|
|
179
|
-
function warn(msg, ...args) {
|
|
180
|
-
console.warn.apply(console, [`[Essor warn]: ${msg}`].concat(args));
|
|
181
|
-
}
|
|
182
|
-
function info(msg, ...args) {
|
|
183
|
-
console.info.apply(console, [`[Essor info]: ${msg}`].concat(args));
|
|
184
|
-
}
|
|
185
|
-
function error(msg, ...args) {
|
|
186
|
-
console.error.apply(console, [`[Essor error]: ${msg}`].concat(args));
|
|
187
|
-
}
|
|
188
|
-
// Annotate the CommonJS export names for ESM import in node:
|
|
189
|
-
0 && (module.exports = {
|
|
190
|
-
_toString,
|
|
191
|
-
camelCase,
|
|
192
|
-
capitalize,
|
|
193
|
-
coerceArray,
|
|
194
|
-
error,
|
|
195
|
-
escape,
|
|
196
|
-
extend,
|
|
197
|
-
generateUniqueId,
|
|
198
|
-
hasChanged,
|
|
199
|
-
hasOwn,
|
|
200
|
-
info,
|
|
201
|
-
isArray,
|
|
202
|
-
isBrowser,
|
|
203
|
-
isExclude,
|
|
204
|
-
isFalsy,
|
|
205
|
-
isFunction,
|
|
206
|
-
isHTMLElement,
|
|
207
|
-
isMap,
|
|
208
|
-
isNil,
|
|
209
|
-
isObject,
|
|
210
|
-
isPlainObject,
|
|
211
|
-
isPrimitive,
|
|
212
|
-
isPromise,
|
|
213
|
-
isSet,
|
|
214
|
-
isString,
|
|
215
|
-
isStringNumber,
|
|
216
|
-
isSymbol,
|
|
217
|
-
isWeakMap,
|
|
218
|
-
isWeakSet,
|
|
219
|
-
kebabCase,
|
|
220
|
-
noop,
|
|
221
|
-
startsWith,
|
|
222
|
-
warn
|
|
223
|
-
});
|
|
224
|
-
//# sourceMappingURL=shared.cjs.map
|
package/dist/shared.cjs.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/index.ts","../src/is.ts","../src/comm.ts","../src/name.ts","../src/console.ts"],"sourcesContent":["export {\n noop,\n _toString,\n extend,\n hasChanged,\n coerceArray,\n hasOwn,\n startsWith,\n escape,\n isExclude,\n ExcludeType,\n generateUniqueId,\n isBrowser,\n} from './comm';\nexport {\n isString,\n isObject,\n isArray,\n isMap,\n isSet,\n isWeakMap,\n isWeakSet,\n isFunction,\n isNil,\n isPromise,\n isSymbol,\n isFalsy,\n isPlainObject,\n isPrimitive,\n isHTMLElement,\n isStringNumber,\n StringNumber,\n} from './is';\nexport { camelCase, kebabCase, capitalize } from './name';\nexport { warn, info, error } from './console';\n","import { _toString } from './comm';\n\nexport const isObject = (val: unknown): val is Record<any, any> =>\n val !== null && typeof val === 'object';\nexport function isPromise(val: any): val is Promise<any> {\n return _toString.call(val) === '[object Promise]';\n}\n\nexport const isArray = Array.isArray;\n\nexport function isString(val: unknown): val is string {\n return typeof val === 'string';\n}\nexport function isNull(val: any): val is null {\n return val === null;\n}\nexport function isSymbol(val: unknown): val is symbol {\n return typeof val === 'symbol';\n}\n\nexport function isSet(val: any): val is Set<any> {\n return _toString.call(val) === '[object Set]';\n}\nexport function isWeakMap(val: any): val is WeakMap<any, any> {\n return _toString.call(val) === '[object WeakMap]';\n}\nexport function isWeakSet(val: any): val is WeakSet<any> {\n return _toString.call(val) === '[object WeakSet]';\n}\n\nexport function isMap(val: unknown): val is Map<any, any> {\n return _toString.call(val) === '[object Map]';\n}\nexport function isNil(x: any): x is null | undefined {\n return x === null || x === undefined;\n}\n\nexport const isFunction = (val: unknown): val is Function => typeof val === 'function';\n\nexport function isFalsy(x: any): x is false | null | undefined {\n return x === false || x === null || x === undefined;\n}\n\nexport const isPrimitive = (\n val: unknown,\n): val is string | number | boolean | symbol | null | undefined =>\n ['string', 'number', 'boolean', 'symbol', 'undefined'].includes(typeof val) || isNull(val);\n\nexport function isHTMLElement(obj) {\n if (!obj) return false;\n return obj && typeof obj === 'object' && obj.nodeType === 1 && typeof obj.nodeName === 'string';\n}\n\nexport const isPlainObject = (val: unknown): val is object =>\n _toString.call(val) === '[object Object]';\n\nexport type StringNumber = `${number}`;\nexport function isStringNumber(val: unknown): val is StringNumber {\n if (!isString(val)) {\n return false;\n }\n return !Number.isNaN(Number(val));\n}\n","import { isArray, isFunction, isString } from './is';\n\nexport const _toString = Object.prototype.toString;\nexport const extend = Object.assign;\nconst hasOwnProperty = Object.prototype.hasOwnProperty;\nexport const hasOwn = (val: object, key: string | symbol): key is keyof typeof val =>\n hasOwnProperty.call(val, key);\n\nexport function coerceArray<T>(data: T | T[]): T[] {\n return isArray(data) ? (data.flat() as T[]) : [data];\n}\nexport const hasChanged = (value, oldValue) =>\n value !== oldValue && (value === value || oldValue === oldValue);\nexport const noop = Function.prototype as () => void;\n\n/**\n * A function that checks if a string starts with a specific substring.\n * indexOf faster under normal circumstances\n * @see https://www.measurethat.net/Benchmarks/Show/12350/0/startswith-vs-test-vs-match-vs-indexof#latest_results_block\n\n * @param {string} str - The input string to check.\n * @param {string} searchString - The substring to check for at the beginning of the input string.\n * @return {boolean} Returns true if the input string starts with the specified substring, otherwise false.\n */\nexport function startsWith(str, searchString) {\n if (!isString(str)) {\n return false;\n }\n return str.indexOf(searchString) === 0;\n}\n\n/**\n * Escapes special HTML characters in a string.\n * @param str - The string to escape.\n * @returns The escaped string.\n */\nexport function escape(str: string): string {\n return str.replaceAll(/[\"&'<>]/g, char => {\n switch (char) {\n case '&':\n return '&';\n case '<':\n return '<';\n case '>':\n return '>';\n case '\"':\n return '"';\n case \"'\":\n return ''';\n default:\n return char;\n }\n });\n}\n\nexport type ExcludeType = ((key: string | symbol) => boolean) | (string | symbol)[];\n\n/**\n * Checks if a key should be excluded based on the provided exclude criteria.\n * @param key - The key to check.\n * @param exclude - The exclusion criteria.\n * @returns True if the key should be excluded, otherwise false.\n */\nexport function isExclude(key: string | symbol, exclude?: ExcludeType): boolean {\n return isArray(exclude) ? exclude.includes(key) : isFunction(exclude) ? exclude(key) : false;\n}\n\n/**\n * Generates a unique random 8 character string ID.\n * The generated IDs only contain alphanumeric characters.\n * @returns A unique random 8 character string ID.\n */\nexport function generateUniqueId() {\n const characters = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789';\n let result = '';\n const charactersLength = characters.length;\n for (let i = 0; i < 8; i++) {\n result += characters.charAt(Math.floor(Math.random() * charactersLength));\n }\n return result;\n}\n\n/**\n * Checks if the current environment is a browser.\n * @returns True if the current environment is a browser, otherwise false.\n */\nexport function isBrowser() {\n return typeof window !== 'undefined' && typeof document !== 'undefined';\n}\n\nexport const cacheStringFunction = <T extends (str: string) => string>(fn: T): T => {\n const cache: Record<string, string> = Object.create(null);\n return ((str: string) => {\n const hit = cache[str];\n return hit || (cache[str] = fn(str));\n }) as T;\n};\n","import { cacheStringFunction } from './comm';\n\nconst hyphenateRE = /\\B([A-Z])/g;\nexport const kebabCase: (str: string) => string = cacheStringFunction((str: string) =>\n str.replaceAll(hyphenateRE, '-$1').toLowerCase(),\n);\n\nconst camelizeRE = /-(\\w)/g;\nexport const camelCase: (str: string) => string = cacheStringFunction((str: string): string => {\n return str.replaceAll(camelizeRE, (_, c) => (c ? c.toUpperCase() : ''));\n});\n/**\n * Capitalizes the first letter of a string.\n *\n * @param {string} inputString - The input string to capitalize the first letter.\n * @return {string} The string with the first letter capitalized.\n */\nexport const capitalize: <T extends string>(str: T) => Capitalize<T> = cacheStringFunction(\n <T extends string>(str: T) => {\n return (str.charAt(0).toUpperCase() + str.slice(1)) as Capitalize<T>;\n },\n);\n","export function warn(msg: string, ..._args: any[]): void;\nexport function warn(msg: string, ...args): void {\n // eslint-disable-next-line prefer-spread\n console.warn.apply(console, [`[Essor warn]: ${msg}`].concat(args) as [string, ...any[]]);\n}\n\nexport function info(msg: string, ..._args: any[]): void;\nexport function info(msg: string, ...args): void {\n // eslint-disable-next-line prefer-spread, no-console\n console.info.apply(console, [`[Essor info]: ${msg}`].concat(args) as [string, ...any[]]);\n}\n\nexport function error(msg: string, ..._args: any[]): void;\nexport function error(msg: string, ...args): void {\n // eslint-disable-next-line prefer-spread\n console.error.apply(console, [`[Essor error]: ${msg}`].concat(args) as [string, ...any[]]);\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;;ACEO,IAAM,WAAW,CAAC,QACvB,QAAQ,QAAQ,OAAO,QAAQ;AAC1B,SAAS,UAAU,KAA+B;AACvD,SAAO,UAAU,KAAK,GAAG,MAAM;AACjC;AAEO,IAAM,UAAU,MAAM;AAEtB,SAAS,SAAS,KAA6B;AACpD,SAAO,OAAO,QAAQ;AACxB;AACO,SAAS,OAAO,KAAuB;AAC5C,SAAO,QAAQ;AACjB;AACO,SAAS,SAAS,KAA6B;AACpD,SAAO,OAAO,QAAQ;AACxB;AAEO,SAAS,MAAM,KAA2B;AAC/C,SAAO,UAAU,KAAK,GAAG,MAAM;AACjC;AACO,SAAS,UAAU,KAAoC;AAC5D,SAAO,UAAU,KAAK,GAAG,MAAM;AACjC;AACO,SAAS,UAAU,KAA+B;AACvD,SAAO,UAAU,KAAK,GAAG,MAAM;AACjC;AAEO,SAAS,MAAM,KAAoC;AACxD,SAAO,UAAU,KAAK,GA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,iBAAiB,GAAG,EAAE,EAAE,OAAO,IAAI,CAAuB;AACzF;AAGO,SAAS,KAAK,QAAgB,MAAY;AAE/C,UAAQ,KAAK,MAAM,SAAS,CAAC,iBAAiB,GAAG,EAAE,EAAE,OAAO,IAAI,CAAuB;AACzF;AAGO,SAAS,MAAM,QAAgB,MAAY;AAEhD,UAAQ,MAAM,MAAM,SAAS,CAAC,kBAAkB,GAAG,EAAE,EAAE,OAAO,IAAI,CAAuB;AAC3F;","names":[]}
|
package/dist/shared.js
DELETED
|
@@ -1,165 +0,0 @@
|
|
|
1
|
-
// src/is.ts
|
|
2
|
-
var isObject = (val) => val !== null && typeof val === "object";
|
|
3
|
-
function isPromise(val) {
|
|
4
|
-
return _toString.call(val) === "[object Promise]";
|
|
5
|
-
}
|
|
6
|
-
var isArray = Array.isArray;
|
|
7
|
-
function isString(val) {
|
|
8
|
-
return typeof val === "string";
|
|
9
|
-
}
|
|
10
|
-
function isNull(val) {
|
|
11
|
-
return val === null;
|
|
12
|
-
}
|
|
13
|
-
function isSymbol(val) {
|
|
14
|
-
return typeof val === "symbol";
|
|
15
|
-
}
|
|
16
|
-
function isSet(val) {
|
|
17
|
-
return _toString.call(val) === "[object Set]";
|
|
18
|
-
}
|
|
19
|
-
function isWeakMap(val) {
|
|
20
|
-
return _toString.call(val) === "[object WeakMap]";
|
|
21
|
-
}
|
|
22
|
-
function isWeakSet(val) {
|
|
23
|
-
return _toString.call(val) === "[object WeakSet]";
|
|
24
|
-
}
|
|
25
|
-
function isMap(val) {
|
|
26
|
-
return _toString.call(val) === "[object Map]";
|
|
27
|
-
}
|
|
28
|
-
function isNil(x) {
|
|
29
|
-
return x === null || x === void 0;
|
|
30
|
-
}
|
|
31
|
-
var isFunction = (val) => typeof val === "function";
|
|
32
|
-
function isFalsy(x) {
|
|
33
|
-
return x === false || x === null || x === void 0;
|
|
34
|
-
}
|
|
35
|
-
var isPrimitive = (val) => ["string", "number", "boolean", "symbol", "undefined"].includes(typeof val) || isNull(val);
|
|
36
|
-
function isHTMLElement(obj) {
|
|
37
|
-
if (!obj) return false;
|
|
38
|
-
return obj && typeof obj === "object" && obj.nodeType === 1 && typeof obj.nodeName === "string";
|
|
39
|
-
}
|
|
40
|
-
var isPlainObject = (val) => _toString.call(val) === "[object Object]";
|
|
41
|
-
function isStringNumber(val) {
|
|
42
|
-
if (!isString(val)) {
|
|
43
|
-
return false;
|
|
44
|
-
}
|
|
45
|
-
return !Number.isNaN(Number(val));
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
// src/comm.ts
|
|
49
|
-
var _toString = Object.prototype.toString;
|
|
50
|
-
var extend = Object.assign;
|
|
51
|
-
var hasOwnProperty = Object.prototype.hasOwnProperty;
|
|
52
|
-
var hasOwn = (val, key) => hasOwnProperty.call(val, key);
|
|
53
|
-
function coerceArray(data) {
|
|
54
|
-
return isArray(data) ? data.flat() : [data];
|
|
55
|
-
}
|
|
56
|
-
var hasChanged = (value, oldValue) => value !== oldValue && (value === value || oldValue === oldValue);
|
|
57
|
-
var noop = Function.prototype;
|
|
58
|
-
function startsWith(str, searchString) {
|
|
59
|
-
if (!isString(str)) {
|
|
60
|
-
return false;
|
|
61
|
-
}
|
|
62
|
-
return str.indexOf(searchString) === 0;
|
|
63
|
-
}
|
|
64
|
-
function escape(str) {
|
|
65
|
-
return str.replaceAll(/["&'<>]/g, (char) => {
|
|
66
|
-
switch (char) {
|
|
67
|
-
case "&":
|
|
68
|
-
return "&";
|
|
69
|
-
case "<":
|
|
70
|
-
return "<";
|
|
71
|
-
case ">":
|
|
72
|
-
return ">";
|
|
73
|
-
case '"':
|
|
74
|
-
return """;
|
|
75
|
-
case "'":
|
|
76
|
-
return "'";
|
|
77
|
-
default:
|
|
78
|
-
return char;
|
|
79
|
-
}
|
|
80
|
-
});
|
|
81
|
-
}
|
|
82
|
-
function isExclude(key, exclude) {
|
|
83
|
-
return isArray(exclude) ? exclude.includes(key) : isFunction(exclude) ? exclude(key) : false;
|
|
84
|
-
}
|
|
85
|
-
function generateUniqueId() {
|
|
86
|
-
const characters = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789";
|
|
87
|
-
let result = "";
|
|
88
|
-
const charactersLength = characters.length;
|
|
89
|
-
for (let i = 0; i < 8; i++) {
|
|
90
|
-
result += characters.charAt(Math.floor(Math.random() * charactersLength));
|
|
91
|
-
}
|
|
92
|
-
return result;
|
|
93
|
-
}
|
|
94
|
-
function isBrowser() {
|
|
95
|
-
return typeof window !== "undefined" && typeof document !== "undefined";
|
|
96
|
-
}
|
|
97
|
-
var cacheStringFunction = (fn) => {
|
|
98
|
-
const cache = /* @__PURE__ */ Object.create(null);
|
|
99
|
-
return (str) => {
|
|
100
|
-
const hit = cache[str];
|
|
101
|
-
return hit || (cache[str] = fn(str));
|
|
102
|
-
};
|
|
103
|
-
};
|
|
104
|
-
|
|
105
|
-
// src/name.ts
|
|
106
|
-
var hyphenateRE = /\B([A-Z])/g;
|
|
107
|
-
var kebabCase = cacheStringFunction(
|
|
108
|
-
(str) => str.replaceAll(hyphenateRE, "-$1").toLowerCase()
|
|
109
|
-
);
|
|
110
|
-
var camelizeRE = /-(\w)/g;
|
|
111
|
-
var camelCase = cacheStringFunction((str) => {
|
|
112
|
-
return str.replaceAll(camelizeRE, (_, c) => c ? c.toUpperCase() : "");
|
|
113
|
-
});
|
|
114
|
-
var capitalize = cacheStringFunction(
|
|
115
|
-
(str) => {
|
|
116
|
-
return str.charAt(0).toUpperCase() + str.slice(1);
|
|
117
|
-
}
|
|
118
|
-
);
|
|
119
|
-
|
|
120
|
-
// src/console.ts
|
|
121
|
-
function warn(msg, ...args) {
|
|
122
|
-
console.warn.apply(console, [`[Essor warn]: ${msg}`].concat(args));
|
|
123
|
-
}
|
|
124
|
-
function info(msg, ...args) {
|
|
125
|
-
console.info.apply(console, [`[Essor info]: ${msg}`].concat(args));
|
|
126
|
-
}
|
|
127
|
-
function error(msg, ...args) {
|
|
128
|
-
console.error.apply(console, [`[Essor error]: ${msg}`].concat(args));
|
|
129
|
-
}
|
|
130
|
-
export {
|
|
131
|
-
_toString,
|
|
132
|
-
camelCase,
|
|
133
|
-
capitalize,
|
|
134
|
-
coerceArray,
|
|
135
|
-
error,
|
|
136
|
-
escape,
|
|
137
|
-
extend,
|
|
138
|
-
generateUniqueId,
|
|
139
|
-
hasChanged,
|
|
140
|
-
hasOwn,
|
|
141
|
-
info,
|
|
142
|
-
isArray,
|
|
143
|
-
isBrowser,
|
|
144
|
-
isExclude,
|
|
145
|
-
isFalsy,
|
|
146
|
-
isFunction,
|
|
147
|
-
isHTMLElement,
|
|
148
|
-
isMap,
|
|
149
|
-
isNil,
|
|
150
|
-
isObject,
|
|
151
|
-
isPlainObject,
|
|
152
|
-
isPrimitive,
|
|
153
|
-
isPromise,
|
|
154
|
-
isSet,
|
|
155
|
-
isString,
|
|
156
|
-
isStringNumber,
|
|
157
|
-
isSymbol,
|
|
158
|
-
isWeakMap,
|
|
159
|
-
isWeakSet,
|
|
160
|
-
kebabCase,
|
|
161
|
-
noop,
|
|
162
|
-
startsWith,
|
|
163
|
-
warn
|
|
164
|
-
};
|
|
165
|
-
//# sourceMappingURL=shared.js.map
|
package/dist/shared.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/is.ts","../src/comm.ts","../src/name.ts","../src/console.ts"],"sourcesContent":["import { _toString } from './comm';\n\nexport const isObject = (val: unknown): val is Record<any, any> =>\n val !== null && typeof val === 'object';\nexport function isPromise(val: any): val is Promise<any> {\n return _toString.call(val) === '[object Promise]';\n}\n\nexport const isArray = Array.isArray;\n\nexport function isString(val: unknown): val is string {\n return typeof val === 'string';\n}\nexport function isNull(val: any): val is null {\n return val === null;\n}\nexport function isSymbol(val: unknown): val is symbol {\n return typeof val === 'symbol';\n}\n\nexport function isSet(val: any): val is Set<any> {\n return _toString.call(val) === '[object Set]';\n}\nexport function isWeakMap(val: any): val is WeakMap<any, any> {\n return _toString.call(val) === '[object WeakMap]';\n}\nexport function isWeakSet(val: any): val is WeakSet<any> {\n return _toString.call(val) === '[object WeakSet]';\n}\n\nexport function isMap(val: unknown): val is Map<any, any> {\n return _toString.call(val) === '[object Map]';\n}\nexport function isNil(x: any): x is null | undefined {\n return x === null || x === undefined;\n}\n\nexport const isFunction = (val: unknown): val is Function => typeof val === 'function';\n\nexport function isFalsy(x: any): x is false | null | undefined {\n return x === false || x === null || x === undefined;\n}\n\nexport const isPrimitive = (\n val: unknown,\n): val is string | number | boolean | symbol | null | undefined =>\n ['string', 'number', 'boolean', 'symbol', 'undefined'].includes(typeof val) || isNull(val);\n\nexport function isHTMLElement(obj) {\n if (!obj) return false;\n return obj && typeof obj === 'object' && obj.nodeType === 1 && typeof obj.nodeName === 'string';\n}\n\nexport const isPlainObject = (val: unknown): val is object =>\n _toString.call(val) === '[object Object]';\n\nexport type StringNumber = `${number}`;\nexport function isStringNumber(val: unknown): val is StringNumber {\n if (!isString(val)) {\n return false;\n }\n return !Number.isNaN(Number(val));\n}\n","import { isArray, isFunction, isString } from './is';\n\nexport const _toString = Object.prototype.toString;\nexport const extend = Object.assign;\nconst hasOwnProperty = Object.prototype.hasOwnProperty;\nexport const hasOwn = (val: object, key: string | symbol): key is keyof typeof val =>\n hasOwnProperty.call(val, key);\n\nexport function coerceArray<T>(data: T | T[]): T[] {\n return isArray(data) ? (data.flat() as T[]) : [data];\n}\nexport const hasChanged = (value, oldValue) =>\n value !== oldValue && (value === value || oldValue === oldValue);\nexport const noop = Function.prototype as () => void;\n\n/**\n * A function that checks if a string starts with a specific substring.\n * indexOf faster under normal circumstances\n * @see https://www.measurethat.net/Benchmarks/Show/12350/0/startswith-vs-test-vs-match-vs-indexof#latest_results_block\n\n * @param {string} str - The input string to check.\n * @param {string} searchString - The substring to check for at the beginning of the input string.\n * @return {boolean} Returns true if the input string starts with the specified substring, otherwise false.\n */\nexport function startsWith(str, searchString) {\n if (!isString(str)) {\n return false;\n }\n return str.indexOf(searchString) === 0;\n}\n\n/**\n * Escapes special HTML characters in a string.\n * @param str - The string to escape.\n * @returns The escaped string.\n */\nexport function escape(str: string): string {\n return str.replaceAll(/[\"&'<>]/g, char => {\n switch (char) {\n case '&':\n return '&';\n case '<':\n return '<';\n case '>':\n return '>';\n case '\"':\n return '"';\n case \"'\":\n return ''';\n default:\n return char;\n }\n });\n}\n\nexport type ExcludeType = ((key: string | symbol) => boolean) | (string | symbol)[];\n\n/**\n * Checks if a key should be excluded based on the provided exclude criteria.\n * @param key - The key to check.\n * @param exclude - The exclusion criteria.\n * @returns True if the key should be excluded, otherwise false.\n */\nexport function isExclude(key: string | symbol, exclude?: ExcludeType): boolean {\n return isArray(exclude) ? exclude.includes(key) : isFunction(exclude) ? exclude(key) : false;\n}\n\n/**\n * Generates a unique random 8 character string ID.\n * The generated IDs only contain alphanumeric characters.\n * @returns A unique random 8 character string ID.\n */\nexport function generateUniqueId() {\n const characters = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789';\n let result = '';\n const charactersLength = characters.length;\n for (let i = 0; i < 8; i++) {\n result += characters.charAt(Math.floor(Math.random() * charactersLength));\n }\n return result;\n}\n\n/**\n * Checks if the current environment is a browser.\n * @returns True if the current environment is a browser, otherwise false.\n */\nexport function isBrowser() {\n return typeof window !== 'undefined' && typeof document !== 'undefined';\n}\n\nexport const cacheStringFunction = <T extends (str: string) => string>(fn: T): T => {\n const cache: Record<string, string> = Object.create(null);\n return ((str: string) => {\n const hit = cache[str];\n return hit || (cache[str] = fn(str));\n }) as T;\n};\n","import { cacheStringFunction } from './comm';\n\nconst hyphenateRE = /\\B([A-Z])/g;\nexport const kebabCase: (str: string) => string = cacheStringFunction((str: string) =>\n str.replaceAll(hyphenateRE, '-$1').toLowerCase(),\n);\n\nconst camelizeRE = /-(\\w)/g;\nexport const camelCase: (str: string) => string = cacheStringFunction((str: string): string => {\n return str.replaceAll(camelizeRE, (_, c) => (c ? c.toUpperCase() : ''));\n});\n/**\n * Capitalizes the first letter of a string.\n *\n * @param {string} inputString - The input string to capitalize the first letter.\n * @return {string} The string with the first letter capitalized.\n */\nexport const capitalize: <T extends string>(str: T) => Capitalize<T> = cacheStringFunction(\n <T extends string>(str: T) => {\n return (str.charAt(0).toUpperCase() + str.slice(1)) as Capitalize<T>;\n },\n);\n","export function warn(msg: string, ..._args: any[]): void;\nexport function warn(msg: string, ...args): void {\n // eslint-disable-next-line prefer-spread\n console.warn.apply(console, [`[Essor warn]: ${msg}`].concat(args) as [string, ...any[]]);\n}\n\nexport function info(msg: string, ..._args: any[]): void;\nexport function info(msg: string, ...args): void {\n // eslint-disable-next-line prefer-spread, no-console\n console.info.apply(console, [`[Essor info]: ${msg}`].concat(args) as [string, ...any[]]);\n}\n\nexport function error(msg: string, ..._args: any[]): void;\nexport function error(msg: string, ...args): void {\n // eslint-disable-next-line prefer-spread\n console.error.apply(console, [`[Essor error]: ${msg}`].concat(args) as [string, ...any[]]);\n}\n"],"mappings":";AAEO,IAAM,WAAW,CAAC,QACvB,QAAQ,QAAQ,OAAO,QAAQ;AAC1B,SAAS,UAAU,KAA+B;AACvD,SAAO,UAAU,KAAK,GAAG,MAAM;AACjC;AAEO,IAAM,UAAU,MAAM;AAEtB,SAAS,SAAS,KAA6B;AACpD,SAAO,OAAO,QAAQ;AACxB;AACO,SAAS,OAAO,KAAuB;AAC5C,SAAO,QAAQ;AACjB;AACO,SAAS,SAAS,KAA6B;AACpD,SAAO,OAAO,QAAQ;AACxB;AAEO,SAAS,MAAM,KAA2B;AAC/C,SAAO,UAAU,KAAK,GAAG,MAAM;AACjC;AACO,SAAS,UAAU,KAAoC;AAC5D,SAAO,UAAU,KAAK,GAAG,MAAM;AACjC;AACO,SAAS,UAAU,KAA+B;AACvD,SAAO,UAAU,KAAK,GAAG,MAAM;AACjC;AAEO,SAAS,MAAM,KAAoC;AACxD,SAAO,UAAU,KAAK,GAAG,MAAM;AACjC;AACO,SAAS,MAAM,GAA+B;AACnD,SAAO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