@applitools/utils
Advanced tools
Comparing version 1.3.24 to 1.3.25
@@ -144,3 +144,5 @@ "use strict"; | ||
function wrap(func, wrapper) { | ||
return ((...args) => wrapper(func, ...args)); | ||
return new Proxy(func, { | ||
apply: (func, _this, args) => wrapper(func, ...args), | ||
}); | ||
} | ||
@@ -147,0 +149,0 @@ exports.wrap = wrap; |
@@ -29,3 +29,3 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.config = exports.process = exports.math = exports.promises = exports.geometry = exports.general = exports.guard = exports.types = void 0; | ||
exports.config = exports.process = exports.streams = exports.math = exports.promises = exports.geometry = exports.general = exports.guard = exports.types = void 0; | ||
__exportStar(require("./utility-types"), exports); | ||
@@ -38,3 +38,4 @@ exports.types = __importStar(require("./types")); | ||
exports.math = __importStar(require("./math")); | ||
exports.streams = __importStar(require("./streams")); | ||
exports.process = __importStar(require("./process")); | ||
exports.config = __importStar(require("./config")); |
{ | ||
"name": "@applitools/utils", | ||
"version": "1.3.24", | ||
"version": "1.3.25", | ||
"keywords": [ | ||
@@ -77,3 +77,3 @@ "applitools", | ||
"ts-node": "^10.8.0", | ||
"typescript": "^4.7.2" | ||
"typescript": "^4.9.4" | ||
}, | ||
@@ -80,0 +80,0 @@ "engines": { |
@@ -1,8 +0,8 @@ | ||
declare type NamedParam = { | ||
type NamedParam = { | ||
name: string; | ||
}; | ||
declare type StrictParam = NamedParam & { | ||
type StrictParam = NamedParam & { | ||
strict?: boolean; | ||
}; | ||
declare type NumberParam = StrictParam & { | ||
type NumberParam = StrictParam & { | ||
lt?: number; | ||
@@ -13,7 +13,7 @@ lte?: number; | ||
}; | ||
declare type StringParam = StrictParam & { | ||
type StringParam = StrictParam & { | ||
alpha?: boolean; | ||
numeric?: boolean; | ||
}; | ||
declare type CustomParam = StrictParam & { | ||
type CustomParam = StrictParam & { | ||
message?: string; | ||
@@ -20,0 +20,0 @@ }; |
@@ -8,3 +8,4 @@ export * from './utility-types'; | ||
export * as math from './math'; | ||
export * as streams from './streams'; | ||
export * as process from './process'; | ||
export * as config from './config'; |
@@ -1,14 +0,14 @@ | ||
export declare type MaybeArray<T> = T | T[]; | ||
export type MaybeArray<T> = T | T[]; | ||
export declare type Mutable<T> = { | ||
-readonly [P in keyof T]: T[P]; | ||
}; | ||
export declare type Optional<T, K extends keyof T> = Omit<T, K> & Partial<Pick<T, K>>; | ||
export declare type Location = { | ||
export type Optional<T, K extends keyof T> = Omit<T, K> & Partial<Pick<T, K>>; | ||
export type Location = { | ||
x: number; | ||
y: number; | ||
}; | ||
export declare type Size = { | ||
export type Size = { | ||
width: number; | ||
height: number; | ||
}; | ||
export declare type Region = Location & Size; | ||
export type Region = Location & Size; |
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
71530
26
1294