-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
9 changed files
with
4,521 additions
and
32 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 |
---|---|---|
@@ -1,3 +1,11 @@ | ||
{ | ||
"presets": ["env"] | ||
"presets": [ | ||
[ | ||
"@babel/preset-env", | ||
{ | ||
"useBuiltIns": "usage", | ||
"corejs": "3" | ||
} | ||
] | ||
] | ||
} |
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,5 @@ | ||
{ | ||
"singleQuote": true, | ||
"bracketSpacing": false, | ||
"printWidth": 120 | ||
} |
Large diffs are not rendered by default.
Oops, something went wrong.
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 |
---|---|---|
@@ -1,31 +1,32 @@ | ||
var rimraf = require('rimraf'); | ||
var EchidnaDB = require('../../lib').default; | ||
var setup = require('./setup'); | ||
const rimraf = require('rimraf'); | ||
const EchidnaDB = require('../../lib').default; | ||
const setup = require('./setup'); | ||
|
||
function error (error) { | ||
console.log(error); | ||
console.log('<< REMOVING TEST POUCH >>'); | ||
rimraf('echidnadb-myusername', () => console.log('complete')); | ||
} | ||
|
||
setup() | ||
.then(res => { | ||
var options = { | ||
const options = { | ||
username: 'myusername', | ||
passphrase: 'mypassphrase', | ||
salt: 'saltysaltysalty' | ||
}; | ||
var echidna = new EchidnaDB(options); | ||
console.log('<< CREATING TEST POUCH >>'); | ||
const echidna = new EchidnaDB(options); | ||
|
||
echidna.pouch.info() | ||
.then(result => { | ||
console.log(result); | ||
echidna.pouch.get('test') | ||
.then(res => { | ||
console.log(res); | ||
console.log('<< REMOVING TEST POUCH >>'); | ||
rimraf('echidnadb-myusername', () => console.log('complete')); | ||
}) | ||
.catch(error); | ||
}) | ||
.catch(error); | ||
}); | ||
}); | ||
}) | ||
.catch(error); |
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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.