Skip to content

Commit

Permalink
bump v1.0.1
Browse files Browse the repository at this point in the history
  • Loading branch information
zailic committed Mar 6, 2018
1 parent b875706 commit 05e4079
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 14 deletions.
23 changes: 14 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,19 +16,24 @@ var VaultClient = require('nanvc');
var vault = new VaultClient('http://127.0.0.1:8200');
vault.init({ secret_shares: 1, secret_threshold: 1 })
.then(
// initialize Promise reponse
function(result) {
if(!result.succeded) {
console.error(result.errorMessage);
return;
}
var keys = result.apiResponse.keys;
vault.token = result.apiResponse.root_token;
return vault.unseal({ secret_shares: 1, key: keys[0] })
vault.unseal({
secret_shares: 1,
key: keys[0]
})
.then(
function(result) {
console.log(result.succeded)
}
)
}
)
.then(
// unseal Promise reponse
function(result) {
console.log(result.succeded)
}
)
);
```
### ES6
```javascript
Expand Down
3 changes: 1 addition & 2 deletions dist/main.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/main.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "nanvc",
"description": "Not Another Node Vault Client :)",
"version": "1.0.0",
"version": "1.0.1",
"author": {
"name": "Ionut Zailic",
"email": "[email protected]"
Expand Down
2 changes: 1 addition & 1 deletion src/main.ts
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
import { VaultClient } from "./lib/client";
export default VaultClient;
export = VaultClient;

0 comments on commit 05e4079

Please sign in to comment.