-
-
Notifications
You must be signed in to change notification settings - Fork 187
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add MongoMemoryReplSet class (#81) thanks @jloveridge
* chore(flow-types): Update flow-typed definitions. Newly provided definitions: * get-port * getos New definition via `flow-typed install`: * rimraf * chore(types): Make flow and TypeScript types a bit more specific. * chore(editorconfig): add .editorconfig so compatible editors will honor code style by default. * chore(vscode, flow): Prevent VSCode from complaining about flow types in `js` files. * chore(replset): Implement MongoMemoryReplSet * docs(replset): Add documentation on replica set usage.
- Loading branch information
1 parent
21a0769
commit 5911cdc
Showing
45 changed files
with
2,894 additions
and
922 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
# top-most EditorConfig file | ||
root = true | ||
|
||
# Unix-style newlines with a newline ending every file | ||
[*] | ||
end_of_line = lf | ||
insert_final_newline = true | ||
indent_size = 2 | ||
indent_style = space | ||
tab_width = 2 | ||
trim_trailing_whitespace = true | ||
|
||
# Set default charset | ||
[*.{js,ts}] | ||
charset = utf-8 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
{ | ||
"javascript.validate.enable": false | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
/** | ||
* Flowtype definitions for decompress v4.2 | ||
*/ | ||
|
||
declare module "decompress" { | ||
declare interface File { | ||
data: Buffer; | ||
mode: number; | ||
mtime: string; | ||
path: string; | ||
type: string; | ||
} | ||
|
||
declare interface DecompressOptions { | ||
/** | ||
* Filter out files before extracting | ||
*/ | ||
filter(file: File): boolean; | ||
|
||
/** | ||
* Map files before extracting | ||
*/ | ||
map(file: File): File; | ||
|
||
/** | ||
* Array of plugins to use. | ||
* Default: [decompressTar(), decompressTarbz2(), decompressTargz(), decompressUnzip()] | ||
*/ | ||
plugins?: any[]; | ||
|
||
/** | ||
* Remove leading directory components from extracted files. | ||
* Default: 0 | ||
*/ | ||
strip?: number; | ||
} | ||
|
||
declare var decompress: (input: string | Buffer, output: string, opts?: DecompressOptions) => Promise<File>; | ||
|
||
declare module.exports: typeof decompress; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.