Comparing version 0.1.2 to 0.1.3
@@ -13,6 +13,6 @@ import { RedisClient } from "redis"; | ||
locker: Locker; | ||
withLock: (config: string | LockConfig, func: () => Promise<any>) => Promise<void>; | ||
withLock: (config: string | LockConfig, func: () => Promise<any>) => Promise<any>; | ||
}; | ||
export declare const withLock: (config: string | LockConfig, func: () => Promise<any>) => Promise<void>; | ||
export declare const withLock: (config: string | LockConfig, func: () => Promise<any>) => Promise<any>; | ||
export declare const defaultLocker: Locker; | ||
export {}; |
@@ -45,3 +45,3 @@ "use strict"; | ||
try { | ||
yield func(); | ||
return func(); | ||
} | ||
@@ -48,0 +48,0 @@ catch (e) { |
{ | ||
"name": "easylock", | ||
"version": "0.1.2", | ||
"version": "0.1.3", | ||
"main": "dist/index.js", | ||
@@ -5,0 +5,0 @@ "types": "dist/index.d.ts", |
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
4305
5