@legendapp/tools
Advanced tools
Comparing version 2.0.0-alpha.3 to 2.0.0-alpha.4
@@ -1,5 +0,5 @@ | ||
export { animationFrameOnce, clearAnimationFrameOnce, hasAnimationFrameOnce } from './animationFrameOnce'; | ||
export { arrayInsertSorted, arrayRemove, arrayRemoveAt } from './arrayFunctions'; | ||
export { isArray, isBoolean, isFunction, isNumber, isObject, isString } from './is'; | ||
export { ResizeObserver, polyfillResizeObserver } from './ResizeObserver'; | ||
export { clearTimeoutOnce, hasTimeoutOnce, timeoutOnce } from './timeoutOnce'; | ||
export * from './animationFrameOnce'; | ||
export * from './arrayFunctions'; | ||
export * from './is'; | ||
export * from './ResizeObserver'; | ||
export * from './timeoutOnce'; |
42
index.js
"use strict"; | ||
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { | ||
if (k2 === undefined) k2 = k; | ||
var desc = Object.getOwnPropertyDescriptor(m, k); | ||
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { | ||
desc = { enumerable: true, get: function() { return m[k]; } }; | ||
} | ||
Object.defineProperty(o, k2, desc); | ||
}) : (function(o, m, k, k2) { | ||
if (k2 === undefined) k2 = k; | ||
o[k2] = m[k]; | ||
})); | ||
var __exportStar = (this && this.__exportStar) || function(m, exports) { | ||
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p); | ||
}; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.timeoutOnce = exports.hasTimeoutOnce = exports.clearTimeoutOnce = exports.polyfillResizeObserver = exports.ResizeObserver = exports.isString = exports.isObject = exports.isNumber = exports.isFunction = exports.isBoolean = exports.isArray = exports.arrayRemoveAt = exports.arrayRemove = exports.arrayInsertSorted = exports.hasAnimationFrameOnce = exports.clearAnimationFrameOnce = exports.animationFrameOnce = void 0; | ||
var animationFrameOnce_1 = require("./animationFrameOnce"); | ||
Object.defineProperty(exports, "animationFrameOnce", { enumerable: true, get: function () { return animationFrameOnce_1.animationFrameOnce; } }); | ||
Object.defineProperty(exports, "clearAnimationFrameOnce", { enumerable: true, get: function () { return animationFrameOnce_1.clearAnimationFrameOnce; } }); | ||
Object.defineProperty(exports, "hasAnimationFrameOnce", { enumerable: true, get: function () { return animationFrameOnce_1.hasAnimationFrameOnce; } }); | ||
var arrayFunctions_1 = require("./arrayFunctions"); | ||
Object.defineProperty(exports, "arrayInsertSorted", { enumerable: true, get: function () { return arrayFunctions_1.arrayInsertSorted; } }); | ||
Object.defineProperty(exports, "arrayRemove", { enumerable: true, get: function () { return arrayFunctions_1.arrayRemove; } }); | ||
Object.defineProperty(exports, "arrayRemoveAt", { enumerable: true, get: function () { return arrayFunctions_1.arrayRemoveAt; } }); | ||
var is_1 = require("./is"); | ||
Object.defineProperty(exports, "isArray", { enumerable: true, get: function () { return is_1.isArray; } }); | ||
Object.defineProperty(exports, "isBoolean", { enumerable: true, get: function () { return is_1.isBoolean; } }); | ||
Object.defineProperty(exports, "isFunction", { enumerable: true, get: function () { return is_1.isFunction; } }); | ||
Object.defineProperty(exports, "isNumber", { enumerable: true, get: function () { return is_1.isNumber; } }); | ||
Object.defineProperty(exports, "isObject", { enumerable: true, get: function () { return is_1.isObject; } }); | ||
Object.defineProperty(exports, "isString", { enumerable: true, get: function () { return is_1.isString; } }); | ||
var ResizeObserver_1 = require("./ResizeObserver"); | ||
Object.defineProperty(exports, "ResizeObserver", { enumerable: true, get: function () { return ResizeObserver_1.ResizeObserver; } }); | ||
Object.defineProperty(exports, "polyfillResizeObserver", { enumerable: true, get: function () { return ResizeObserver_1.polyfillResizeObserver; } }); | ||
var timeoutOnce_1 = require("./timeoutOnce"); | ||
Object.defineProperty(exports, "clearTimeoutOnce", { enumerable: true, get: function () { return timeoutOnce_1.clearTimeoutOnce; } }); | ||
Object.defineProperty(exports, "hasTimeoutOnce", { enumerable: true, get: function () { return timeoutOnce_1.hasTimeoutOnce; } }); | ||
Object.defineProperty(exports, "timeoutOnce", { enumerable: true, get: function () { return timeoutOnce_1.timeoutOnce; } }); | ||
__exportStar(require("./animationFrameOnce"), exports); | ||
__exportStar(require("./arrayFunctions"), exports); | ||
__exportStar(require("./is"), exports); | ||
__exportStar(require("./ResizeObserver"), exports); | ||
__exportStar(require("./timeoutOnce"), exports); | ||
//# sourceMappingURL=index.js.map |
@@ -7,1 +7,2 @@ export declare function isArray(obj: unknown): obj is Array<any>; | ||
export declare function isFunction(obj: unknown): obj is Function; | ||
export declare function isObjectEmpty(obj: object): boolean; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.isFunction = exports.isBoolean = exports.isNumber = exports.isObject = exports.isString = exports.isArray = void 0; | ||
exports.isObjectEmpty = exports.isFunction = exports.isBoolean = exports.isNumber = exports.isObject = exports.isString = exports.isArray = void 0; | ||
function isArray(obj) { | ||
@@ -28,2 +28,6 @@ return Array.isArray(obj); | ||
exports.isFunction = isFunction; | ||
function isObjectEmpty(obj) { | ||
return obj && isObject(obj) && Object.keys(obj).length === 0; | ||
} | ||
exports.isObjectEmpty = isObjectEmpty; | ||
//# sourceMappingURL=is.js.map |
@@ -6,3 +6,3 @@ { | ||
"private": false, | ||
"version": "2.0.0-alpha.3", | ||
"version": "2.0.0-alpha.4", | ||
"license": "MIT", | ||
@@ -9,0 +9,0 @@ "main": "./index.js", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
32176