rattail 0.0.1 → 0.0.2
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 +2 -1
- package/README.zh-CN.md +2 -1
- package/lib/index.cjs +0 -8
- package/lib/index.d.cts +1 -2
- package/lib/index.d.ts +1 -2
- package/lib/index.js +0 -7
- package/package.json +1 -1
package/README.md
CHANGED
package/README.zh-CN.md
CHANGED
package/lib/index.cjs
CHANGED
|
@@ -82,7 +82,6 @@ __export(src_exports, {
|
|
|
82
82
|
isString: () => isString,
|
|
83
83
|
isSymbol: () => isSymbol,
|
|
84
84
|
isTruthy: () => isTruthy,
|
|
85
|
-
isURL: () => isURL,
|
|
86
85
|
isWindow: () => isWindow,
|
|
87
86
|
kebabCase: () => kebabCase,
|
|
88
87
|
localStorage: () => localStorage,
|
|
@@ -174,12 +173,6 @@ function isNullish(val) {
|
|
|
174
173
|
function isTruthy(v) {
|
|
175
174
|
return Boolean(v);
|
|
176
175
|
}
|
|
177
|
-
function isURL(val) {
|
|
178
|
-
if (!val) {
|
|
179
|
-
return false;
|
|
180
|
-
}
|
|
181
|
-
return /^(http)|(\.*\/)/.test(val);
|
|
182
|
-
}
|
|
183
176
|
function isEmpty(val) {
|
|
184
177
|
return val === void 0 || val === null || val === "" || isArray(val) && !val.length;
|
|
185
178
|
}
|
|
@@ -641,7 +634,6 @@ var localStorage = createStorage(globalThis.localStorage);
|
|
|
641
634
|
isString,
|
|
642
635
|
isSymbol,
|
|
643
636
|
isTruthy,
|
|
644
|
-
isURL,
|
|
645
637
|
isWindow,
|
|
646
638
|
kebabCase,
|
|
647
639
|
localStorage,
|
package/lib/index.d.cts
CHANGED
|
@@ -57,7 +57,6 @@ declare function isFunction(val: unknown): val is Function;
|
|
|
57
57
|
declare function isArray(val: unknown): val is Array<any>;
|
|
58
58
|
declare function isNullish<T>(val: T | null | undefined): val is NonNullable<T>;
|
|
59
59
|
declare function isTruthy<T>(v: T): v is NonNullable<T>;
|
|
60
|
-
declare function isURL(val: string | undefined | null): boolean;
|
|
61
60
|
declare function isEmpty(val: unknown): boolean;
|
|
62
61
|
declare function isWindow(val: unknown): val is Window;
|
|
63
62
|
declare function supportTouch(): boolean;
|
|
@@ -98,4 +97,4 @@ declare function createStorage(storage: globalThis.Storage): Storage;
|
|
|
98
97
|
declare const sessionStorage: Storage;
|
|
99
98
|
declare const localStorage: Storage;
|
|
100
99
|
|
|
101
|
-
export { type BEM, type ClassName, type Classes, NOOP, type Storage, at, call, camelize, cancelAnimationFrame, capitalizeFirstLetter, clamp, clampArrayRange, classes, createNamespaceFn, createStorage, debounce, doubleRaf, find, genNumberKey, genStringKey, getAllParentScroller, getGlobalThis, getParentScroller, getRect, getScrollLeft, getScrollTop, getStyle, hasOwn, inBrowser, inMobile, inViewport, isArray, isBoolean, isDate, isEmpty, isFunction, isMap, isNonEmptyArray, isNullish, isNumber, isNumeric, isObject, isPlainObject, isPromise, isRegExp, isSet, isString, isSymbol, isTruthy,
|
|
100
|
+
export { type BEM, type ClassName, type Classes, NOOP, type Storage, at, call, camelize, cancelAnimationFrame, capitalizeFirstLetter, clamp, clampArrayRange, classes, createNamespaceFn, createStorage, debounce, doubleRaf, find, genNumberKey, genStringKey, getAllParentScroller, getGlobalThis, getParentScroller, getRect, getScrollLeft, getScrollTop, getStyle, hasOwn, inBrowser, inMobile, inViewport, isArray, isBoolean, isDate, isEmpty, isFunction, isMap, isNonEmptyArray, isNullish, isNumber, isNumeric, isObject, isPlainObject, isPromise, isRegExp, isSet, isString, isSymbol, isTruthy, isWindow, kebabCase, localStorage, mergeWith, normalizeToArray, objectToString, pascalCase, prettyJSONObject, preventDefault, raf, randomNumber, removeArrayBlank, removeArrayEmpty, removeItem, requestAnimationFrame, sessionStorage, shuffle, slash, sum, sumBy, supportTouch, throttle, toArrayBuffer, toDataURL, toNumber, toRawType, toText, toTypeString, toggleItem, tryParseJSON, uniq, uniqBy };
|
package/lib/index.d.ts
CHANGED
|
@@ -57,7 +57,6 @@ declare function isFunction(val: unknown): val is Function;
|
|
|
57
57
|
declare function isArray(val: unknown): val is Array<any>;
|
|
58
58
|
declare function isNullish<T>(val: T | null | undefined): val is NonNullable<T>;
|
|
59
59
|
declare function isTruthy<T>(v: T): v is NonNullable<T>;
|
|
60
|
-
declare function isURL(val: string | undefined | null): boolean;
|
|
61
60
|
declare function isEmpty(val: unknown): boolean;
|
|
62
61
|
declare function isWindow(val: unknown): val is Window;
|
|
63
62
|
declare function supportTouch(): boolean;
|
|
@@ -98,4 +97,4 @@ declare function createStorage(storage: globalThis.Storage): Storage;
|
|
|
98
97
|
declare const sessionStorage: Storage;
|
|
99
98
|
declare const localStorage: Storage;
|
|
100
99
|
|
|
101
|
-
export { type BEM, type ClassName, type Classes, NOOP, type Storage, at, call, camelize, cancelAnimationFrame, capitalizeFirstLetter, clamp, clampArrayRange, classes, createNamespaceFn, createStorage, debounce, doubleRaf, find, genNumberKey, genStringKey, getAllParentScroller, getGlobalThis, getParentScroller, getRect, getScrollLeft, getScrollTop, getStyle, hasOwn, inBrowser, inMobile, inViewport, isArray, isBoolean, isDate, isEmpty, isFunction, isMap, isNonEmptyArray, isNullish, isNumber, isNumeric, isObject, isPlainObject, isPromise, isRegExp, isSet, isString, isSymbol, isTruthy,
|
|
100
|
+
export { type BEM, type ClassName, type Classes, NOOP, type Storage, at, call, camelize, cancelAnimationFrame, capitalizeFirstLetter, clamp, clampArrayRange, classes, createNamespaceFn, createStorage, debounce, doubleRaf, find, genNumberKey, genStringKey, getAllParentScroller, getGlobalThis, getParentScroller, getRect, getScrollLeft, getScrollTop, getStyle, hasOwn, inBrowser, inMobile, inViewport, isArray, isBoolean, isDate, isEmpty, isFunction, isMap, isNonEmptyArray, isNullish, isNumber, isNumeric, isObject, isPlainObject, isPromise, isRegExp, isSet, isString, isSymbol, isTruthy, isWindow, kebabCase, localStorage, mergeWith, normalizeToArray, objectToString, pascalCase, prettyJSONObject, preventDefault, raf, randomNumber, removeArrayBlank, removeArrayEmpty, removeItem, requestAnimationFrame, sessionStorage, shuffle, slash, sum, sumBy, supportTouch, throttle, toArrayBuffer, toDataURL, toNumber, toRawType, toText, toTypeString, toggleItem, tryParseJSON, uniq, uniqBy };
|
package/lib/index.js
CHANGED
|
@@ -74,12 +74,6 @@ function isNullish(val) {
|
|
|
74
74
|
function isTruthy(v) {
|
|
75
75
|
return Boolean(v);
|
|
76
76
|
}
|
|
77
|
-
function isURL(val) {
|
|
78
|
-
if (!val) {
|
|
79
|
-
return false;
|
|
80
|
-
}
|
|
81
|
-
return /^(http)|(\.*\/)/.test(val);
|
|
82
|
-
}
|
|
83
77
|
function isEmpty(val) {
|
|
84
78
|
return val === void 0 || val === null || val === "" || isArray(val) && !val.length;
|
|
85
79
|
}
|
|
@@ -540,7 +534,6 @@ export {
|
|
|
540
534
|
isString,
|
|
541
535
|
isSymbol,
|
|
542
536
|
isTruthy,
|
|
543
|
-
isURL,
|
|
544
537
|
isWindow,
|
|
545
538
|
kebabCase,
|
|
546
539
|
localStorage,
|