@decryption/vault 0.4.0 → 0.4.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +21 -0
- package/package.json +13 -15
package/README.md
CHANGED
|
@@ -8,6 +8,9 @@
|
|
|
8
8
|
<a href="https://github.com/constructive-io/decryption/actions/workflows/ci.yml">
|
|
9
9
|
<img height="20" src="https://github.com/constructive-io/decryption/actions/workflows/ci.yml/badge.svg" />
|
|
10
10
|
</a>
|
|
11
|
+
<a href="https://github.com/constructive-io/decryption/blob/main/LICENSE">
|
|
12
|
+
<img height="20" alt="MIT license" src="https://img.shields.io/badge/license-MIT-blue.svg" />
|
|
13
|
+
</a>
|
|
11
14
|
<a href="https://www.npmjs.com/package/@decryption/vault"><img height="20" src="https://img.shields.io/github/package-json/v/constructive-io/decryption?filename=packages%2Fvault%2Fpackage.json"/></a>
|
|
12
15
|
</p>
|
|
13
16
|
|
|
@@ -17,6 +20,14 @@ deploys the `dcrypt-vault` pgpm module through `@pgpmjs/pglite-adapter`, and
|
|
|
17
20
|
persists the entire database as a single `@decryption/core` envelope around a
|
|
18
21
|
gzipped pgdata tarball — the file on disk leaks nothing, not even item titles.
|
|
19
22
|
|
|
23
|
+
## Installation
|
|
24
|
+
|
|
25
|
+
```bash
|
|
26
|
+
npm install @decryption/vault
|
|
27
|
+
```
|
|
28
|
+
|
|
29
|
+
## Usage
|
|
30
|
+
|
|
20
31
|
```ts
|
|
21
32
|
import { Vault } from '@decryption/vault';
|
|
22
33
|
|
|
@@ -31,6 +42,16 @@ await vault.setField(item.id, 'password', 'password', 's3cret');
|
|
|
31
42
|
await vault.lock(); // saves, closes, zeroes key material
|
|
32
43
|
```
|
|
33
44
|
|
|
45
|
+
## Credits
|
|
46
|
+
|
|
47
|
+
**🛠 Built by the [Constructive](https://constructive.io) team — creators of modular Postgres tooling for secure, composable backends. If you like our work, contribute on [GitHub](https://github.com/constructive-io).**
|
|
48
|
+
|
|
49
|
+
## Disclaimer
|
|
50
|
+
|
|
51
|
+
AS DESCRIBED IN THE LICENSES, THE SOFTWARE IS PROVIDED "AS IS", AT YOUR OWN RISK, AND WITHOUT WARRANTIES OF ANY KIND.
|
|
52
|
+
|
|
53
|
+
No developer or entity involved in creating this software will be liable for any claims or damages whatsoever associated with your use, inability to use, or your interaction with other users of the code, including any direct, indirect, incidental, special, exemplary, punitive or consequential damages, or loss of profits, cryptocurrencies, tokens, or anything else of value.
|
|
54
|
+
|
|
34
55
|
---
|
|
35
56
|
|
|
36
57
|
## Development
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@decryption/vault",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.2",
|
|
4
4
|
"description": "Passphrase-locked local vault: an in-memory PGlite database deployed from pgpm modules, persisted as one encrypted snapshot",
|
|
5
5
|
"author": "Constructive <developers@constructive.io>",
|
|
6
6
|
"main": "index.js",
|
|
@@ -19,15 +19,6 @@
|
|
|
19
19
|
"bugs": {
|
|
20
20
|
"url": "https://github.com/constructive-io/decryption/issues"
|
|
21
21
|
},
|
|
22
|
-
"scripts": {
|
|
23
|
-
"copy": "makage assets",
|
|
24
|
-
"clean": "makage clean",
|
|
25
|
-
"prepublishOnly": "npm run build",
|
|
26
|
-
"build": "makage build",
|
|
27
|
-
"lint": "eslint . --fix",
|
|
28
|
-
"test": "NODE_OPTIONS=--experimental-vm-modules jest",
|
|
29
|
-
"test:watch": "NODE_OPTIONS=--experimental-vm-modules jest --watch"
|
|
30
|
-
},
|
|
31
22
|
"keywords": [
|
|
32
23
|
"vault",
|
|
33
24
|
"pglite",
|
|
@@ -38,16 +29,23 @@
|
|
|
38
29
|
"local-first"
|
|
39
30
|
],
|
|
40
31
|
"dependencies": {
|
|
41
|
-
"@decryption/core": "0.5.0",
|
|
42
|
-
"@decryption/hashes": "0.4.0",
|
|
43
32
|
"@electric-sql/pglite": "^0.5.4",
|
|
44
33
|
"@pgpmjs/core": "^6.34.0",
|
|
45
34
|
"@pgpmjs/env": "^2.30.2",
|
|
46
35
|
"@pgpmjs/pglite-adapter": "^0.1.5",
|
|
47
|
-
"pg-cache": "^3.16.2"
|
|
36
|
+
"pg-cache": "^3.16.2",
|
|
37
|
+
"@decryption/hashes": "0.4.1",
|
|
38
|
+
"@decryption/core": "0.5.2"
|
|
48
39
|
},
|
|
49
40
|
"devDependencies": {
|
|
50
41
|
"makage": "0.3.0"
|
|
51
42
|
},
|
|
52
|
-
"
|
|
53
|
-
|
|
43
|
+
"scripts": {
|
|
44
|
+
"copy": "makage assets",
|
|
45
|
+
"clean": "makage clean",
|
|
46
|
+
"build": "makage build",
|
|
47
|
+
"lint": "eslint . --fix",
|
|
48
|
+
"test": "NODE_OPTIONS=--experimental-vm-modules jest",
|
|
49
|
+
"test:watch": "NODE_OPTIONS=--experimental-vm-modules jest --watch"
|
|
50
|
+
}
|
|
51
|
+
}
|