Comparing version 0.27.4 to 0.27.5
@@ -41,2 +41,13 @@ /// <reference types="faker" /> | ||
updateDB(state: IDictionary): void; | ||
/** | ||
* silences the database from sending events; | ||
* this is not typically done but can be done | ||
* as part of the Mocking process to reduce noise | ||
*/ | ||
silenceEvents(): void; | ||
/** | ||
* returns the database to its default state of sending | ||
* events out. | ||
*/ | ||
restoreEvents(): void; | ||
auth(): Promise<import(".").IMockAuth>; | ||
@@ -43,0 +54,0 @@ readonly faker: Faker.FakerStatic; |
@@ -80,2 +80,17 @@ "use strict"; | ||
} | ||
/** | ||
* silences the database from sending events; | ||
* this is not typically done but can be done | ||
* as part of the Mocking process to reduce noise | ||
*/ | ||
silenceEvents() { | ||
database_1.silenceEvents(); | ||
} | ||
/** | ||
* returns the database to its default state of sending | ||
* events out. | ||
*/ | ||
restoreEvents() { | ||
database_1.restoreEvents(); | ||
} | ||
async auth() { | ||
@@ -82,0 +97,0 @@ return auth_1.auth(); |
@@ -41,2 +41,13 @@ /// <reference types="faker" /> | ||
updateDB(state: IDictionary): void; | ||
/** | ||
* silences the database from sending events; | ||
* this is not typically done but can be done | ||
* as part of the Mocking process to reduce noise | ||
*/ | ||
silenceEvents(): void; | ||
/** | ||
* returns the database to its default state of sending | ||
* events out. | ||
*/ | ||
restoreEvents(): void; | ||
auth(): Promise<import(".").IMockAuth>; | ||
@@ -43,0 +54,0 @@ readonly faker: Faker.FakerStatic; |
import { Queue, Schema, Reference, Deployment } from "./index"; | ||
import { db, clearDatabase, updateDatabase } from "./database"; | ||
import { db, clearDatabase, updateDatabase, silenceEvents, restoreEvents } from "./database"; | ||
import { setNetworkDelay } from "./util"; | ||
@@ -72,2 +72,17 @@ import { MockHelper } from "./MockHelper"; | ||
} | ||
/** | ||
* silences the database from sending events; | ||
* this is not typically done but can be done | ||
* as part of the Mocking process to reduce noise | ||
*/ | ||
silenceEvents() { | ||
silenceEvents(); | ||
} | ||
/** | ||
* returns the database to its default state of sending | ||
* events out. | ||
*/ | ||
restoreEvents() { | ||
restoreEvents(); | ||
} | ||
async auth() { | ||
@@ -74,0 +89,0 @@ return fireAuth(); |
{ | ||
"name": "firemock", | ||
"version": "0.27.4", | ||
"version": "0.27.5", | ||
"description": "firemock", | ||
@@ -5,0 +5,0 @@ "license": "MIT", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
348141
5944