live-connect-common
Advanced tools
Comparing version 0.1.0-alpha.0 to 0.1.0-alpha.1
@@ -15,2 +15,12 @@ declare const UUID = "[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}"; | ||
declare function expiresInHours(expires: number): Date; | ||
interface ErrorBus { | ||
emitErrorWithMessage(name: string, message: string, e?: unknown): this; | ||
emitError(name: string, exception?: unknown): this; | ||
} | ||
interface EventBus extends ErrorBus { | ||
on<F extends ((event: unknown) => void)>(name: string, callback: F, ctx?: ThisParameterType<F>): this; | ||
once<F extends ((event: unknown) => void)>(name: string, callback: F, ctx?: ThisParameterType<F>): this; | ||
emit(name: string, event: unknown): this; | ||
off(name: string, callback: (event: unknown) => void): this; | ||
} | ||
interface ExternalReadStorageHandler { | ||
@@ -31,2 +41,2 @@ getCookie?: (key: string) => string | null; | ||
} | ||
export { UUID, safeToString, nonNull, isNonEmpty, isUUID, isArray, trim, isString, strEqualsIgnoreCase, isObject, isRecord, isFunction, expiresInDays, expiresInHours, ExternalReadStorageHandler, ExternalStorageHandler, ExternalCallHandler }; | ||
export { UUID, safeToString, nonNull, isNonEmpty, isUUID, isArray, trim, isString, strEqualsIgnoreCase, isObject, isRecord, isFunction, expiresInDays, expiresInHours, ErrorBus, EventBus, ExternalReadStorageHandler, ExternalStorageHandler, ExternalCallHandler }; |
@@ -5,6 +5,6 @@ { | ||
"type": "git", | ||
"url": "https://github.com/liveintent-berlin/live-connect-common" | ||
"url": "https://github.com/liveintent/live-connect-common" | ||
}, | ||
"description": "Interfaces and basic functionality for LiveConnect projects", | ||
"version": "0.1.0-alpha.0", | ||
"version": "0.1.0-alpha.1", | ||
"license": "Apache-2.0", | ||
@@ -11,0 +11,0 @@ "private": false, |
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
19306
117