@applitools/utils
Advanced tools
Comparing version 1.3.17 to 1.3.18
@@ -115,2 +115,5 @@ "use strict"; | ||
function stringifyKey(key) { | ||
key = types.isPlainObject(key) | ||
? Object.fromEntries(Object.entries(key).sort(([key1], [key2]) => (key1 > key2 ? 1 : -1))) | ||
: key; | ||
return JSON.stringify(key, (_key, value) => (typeof value === 'function' ? value.toString() : value)); | ||
@@ -117,0 +120,0 @@ } |
@@ -25,2 +25,3 @@ "use strict"; | ||
result !== null && result !== void 0 ? result : (result = { status: 'fulfilled', value }); | ||
return Promise.resolve(value); | ||
}, | ||
@@ -32,2 +33,3 @@ reject(reason) { | ||
result !== null && result !== void 0 ? result : (result = { status: 'rejected', reason }); | ||
return Promise.reject(reason); | ||
}, | ||
@@ -34,0 +36,0 @@ }; |
{ | ||
"name": "@applitools/utils", | ||
"version": "1.3.17", | ||
"version": "1.3.18", | ||
"keywords": [ | ||
@@ -5,0 +5,0 @@ "applitools", |
export declare function makeControlledPromise<T = void>(): PromiseLike<T> & { | ||
resolve(value: T): void; | ||
reject(reason?: any): void; | ||
resolve(value: T): Promise<T>; | ||
reject(reason?: any): Promise<never>; | ||
}; |
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
68079
1200