hoodie-plugin-store-crypto
Advanced tools
Comparing version 4.2.0 to 4.2.1
@@ -57,2 +57,9 @@ /// <reference types="pouchdb-core" /> | ||
export declare type AddEvent = "add"; | ||
export declare type UpdateEvent = "update"; | ||
export declare type RemoteEvent = "remove"; | ||
export declare type Events = AddEvent | UpdateEvent | RemoteEvent; | ||
export declare type ChangeEvent = "change"; | ||
export declare type AllEvents = ChangeEvent | Events; | ||
export interface PasswordChangeResult { | ||
@@ -243,3 +250,3 @@ /** New Salt */ | ||
on<T extends BaseType>( | ||
eventName: "add", | ||
eventName: AddEvent, | ||
handler: (doc: T & HoodieDoc) => void | ||
@@ -254,3 +261,3 @@ ): this; | ||
on<T extends BaseType>( | ||
eventName: "update", | ||
eventName: UpdateEvent, | ||
handler: (doc: T & HoodieDoc) => void | ||
@@ -265,3 +272,3 @@ ): this; | ||
on<T extends BaseType>( | ||
eventName: "remove", | ||
eventName: RemoteEvent, | ||
handler: (doc: T & DeletedHoodieDoc) => void | ||
@@ -276,7 +283,4 @@ ): this; | ||
on<T extends BaseType>( | ||
eventName: "change", | ||
handler: ( | ||
eventName: "add" | "update" | "remove", | ||
doc: T & HoodieDoc | ||
) => void | ||
eventName: ChangeEvent, | ||
handler: (eventName: Events, doc: T & HoodieDoc) => void | ||
): this; | ||
@@ -290,3 +294,3 @@ /** | ||
on<T extends BaseType>( | ||
eventName: "add", | ||
eventName: AddEvent, | ||
handler: (doc: T & HoodieDoc) => void | ||
@@ -301,3 +305,3 @@ ): this; | ||
on<T extends BaseType>( | ||
eventName: "update", | ||
eventName: UpdateEvent, | ||
handler: (doc: T & HoodieDoc) => void | ||
@@ -312,3 +316,3 @@ ): this; | ||
on<T extends BaseType>( | ||
eventName: "remove", | ||
eventName: RemoteEvent, | ||
handler: (doc: T & DeletedHoodieDoc) => void | ||
@@ -323,7 +327,4 @@ ): this; | ||
on<T extends BaseType>( | ||
eventName: "change", | ||
handler: ( | ||
eventName: "add" | "update" | "remove", | ||
doc: T & HoodieDoc | ||
) => void | ||
eventName: ChangeEvent, | ||
handler: (eventName: Events, doc: T & HoodieDoc) => void | ||
): this; | ||
@@ -337,3 +338,3 @@ | ||
off<T extends BaseType>( | ||
eventName: "add", | ||
eventName: AddEvent, | ||
handler: (doc: T & HoodieDoc) => void | ||
@@ -347,3 +348,3 @@ ): this; | ||
off<T extends BaseType>( | ||
eventName: "update", | ||
eventName: UpdateEvent, | ||
handler: (doc: T & HoodieDoc) => void | ||
@@ -357,3 +358,3 @@ ): this; | ||
off<T extends BaseType>( | ||
eventName: "remove", | ||
eventName: RemoteEvent, | ||
handler: (doc: T & DeletedHoodieDoc) => void | ||
@@ -367,7 +368,4 @@ ): this; | ||
off<T extends BaseType>( | ||
eventName: "change", | ||
handler: ( | ||
eventName: "add" | "update" | "remove", | ||
doc: T & HoodieDoc | ||
) => void | ||
eventName: ChangeEvent, | ||
handler: (eventName: Events, doc: T & HoodieDoc) => void | ||
): this; | ||
@@ -384,3 +382,3 @@ | ||
one<T extends BaseType>( | ||
eventName: "add", | ||
eventName: AddEvent, | ||
handler: (doc: T & HoodieDoc) => void | ||
@@ -397,3 +395,3 @@ ): this; | ||
one<T extends BaseType>( | ||
eventName: "update", | ||
eventName: UpdateEvent, | ||
handler: (doc: T & HoodieDoc) => void | ||
@@ -410,3 +408,3 @@ ): this; | ||
one<T extends BaseType>( | ||
eventName: "remove", | ||
eventName: RemoteEvent, | ||
handler: (doc: T & DeletedHoodieDoc) => void | ||
@@ -423,7 +421,4 @@ ): this; | ||
one<T extends BaseType>( | ||
eventName: "change", | ||
handler: ( | ||
eventName: "add" | "update" | "remove", | ||
doc: T & HoodieDoc | ||
) => void | ||
eventName: ChangeEvent, | ||
handler: (eventName: Events, doc: T & HoodieDoc) => void | ||
): this; | ||
@@ -568,4 +563,4 @@ | ||
const CryptoStoreConstructor: CryptoStoreConstructor; | ||
declare const CryptoStoreConstructor: CryptoStoreConstructor; | ||
export default CryptoStoreConstructor; |
{ | ||
"name": "hoodie-plugin-store-crypto", | ||
"version": "4.2.0", | ||
"version": "4.2.1", | ||
"description": "End-to-end crypto plugin for the Hoodie client store.", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
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
122230
2710