New:Socket for Asana Is Now Available.Learn more
Sign In

@applitools/utils

Package Overview
Dependencies
Maintainers
48
Versions
95
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@applitools/utils - npm Package Compare versions

Comparing version
1.7.8
to
1.8.0
+7
-0
CHANGELOG.md
# Changelog
## [1.8.0](https://github.com/Applitools-Dev/sdk/compare/js/utils@1.7.8...js/utils@1.8.0) (2025-03-30)
### Features
* allow sending callback functions to waitBeforeCapture ([#2780](https://github.com/Applitools-Dev/sdk/issues/2780)) ([4caa2e8](https://github.com/Applitools-Dev/sdk/commit/4caa2e8ae055d3dd48164eeceaa4c691eeadcdd4))
## [1.7.8](https://github.com/Applitools-Dev/sdk/compare/js/utils@1.7.7...js/utils@1.7.8) (2025-02-26)

@@ -4,0 +11,0 @@

+8
-1

@@ -26,3 +26,3 @@ "use strict";

Object.defineProperty(exports, "__esModule", { value: true });
exports.custom = exports.instanceOf = exports.isOneOf = exports.isEnumValue = exports.isObject = exports.isArray = exports.isNumeric = exports.isAlpha = exports.isAlphanumeric = exports.isString = exports.isGreaterThenOrEqual = exports.isGreaterThen = exports.isLessThenOrEqual = exports.isLessThen = exports.isInteger = exports.isNumber = exports.isBoolean = exports.notNull = void 0;
exports.custom = exports.instanceOf = exports.isOneOf = exports.isEnumValue = exports.isObject = exports.isArray = exports.isNumeric = exports.isAlpha = exports.isAlphanumeric = exports.isString = exports.isGreaterThenOrEqual = exports.isGreaterThen = exports.isLessThenOrEqual = exports.isLessThen = exports.isFunction = exports.isInteger = exports.isNumber = exports.isBoolean = exports.notNull = void 0;
const types = __importStar(require("./types"));

@@ -69,2 +69,9 @@ function notNull(value, { name }) {

exports.isInteger = isInteger;
// eslint-disable-next-line @typescript-eslint/ban-types
function isFunction(value, { name, strict = true }) {
if ((strict || !types.isNull(value)) && !types.isFunction(value)) {
throw new Error(`IllegalArgument: ${name} must be of type function. Received ${value}`);
}
}
exports.isFunction = isFunction;
function isLessThen(value, limit, { name }) {

@@ -71,0 +78,0 @@ if (!(value < limit)) {

+1
-1
{
"name": "@applitools/utils",
"version": "1.7.8",
"version": "1.8.0",
"keywords": [

@@ -5,0 +5,0 @@ "applitools",

@@ -24,2 +24,3 @@ type NamedParam = {

export declare function isInteger(value: any, { name, strict, lt, lte, gt, gte }: NumberParam): void;
export declare function isFunction(value: any, { name, strict }: StrictParam): asserts value is Function;
export declare function isLessThen(value: any, limit: number, { name }: NamedParam): void;

@@ -26,0 +27,0 @@ export declare function isLessThenOrEqual(value: any, limit: number, { name }: NamedParam): void;