crypto-pouch
Advanced tools
Comparing version 4.0.1 to 4.0.2
@@ -73,2 +73,3 @@ const Crypt = require('garbados-crypt') | ||
if (!this._crypt) { return doc } | ||
if (!doc.payload) { return doc } | ||
const decryptedString = await this._crypt.decrypt(doc.payload) | ||
@@ -75,0 +76,0 @@ const decrypted = JSON.parse(decryptedString) |
{ | ||
"name": "crypto-pouch", | ||
"version": "4.0.1", | ||
"version": "4.0.2", | ||
"description": "encrypted pouchdb/couchdb database", | ||
@@ -14,3 +14,3 @@ "main": "index.js", | ||
"type": "git", | ||
"url": "https://github.com/calvinmetcalf/crypto-pouch.git" | ||
"url": "git+https://github.com/calvinmetcalf/crypto-pouch.git" | ||
}, | ||
@@ -23,2 +23,5 @@ "keywords": [ | ||
"author": "Calvin Metcalf", | ||
"contributors": [ | ||
"Diana Belle <garbados@gmail.com>" | ||
], | ||
"license": "MIT", | ||
@@ -37,5 +40,5 @@ "bugs": { | ||
"memdown": "^6.0.0", | ||
"mocha": "^8.3.2", | ||
"mocha": "^10.8.2", | ||
"nyc": "^15.1.0", | ||
"pouchdb": "^7.2.2", | ||
"pouchdb": "^9.0.0", | ||
"standard": "^16.0.3", | ||
@@ -42,0 +45,0 @@ "uglify-js": "^3.13.5" |
@@ -38,3 +38,8 @@ # Crypto-Pouch | ||
``` | ||
Using Typescript? Install the type definitions: | ||
```bash | ||
$ npm install --save-dev @types/crypto-pouch | ||
``` | ||
## Usage | ||
@@ -41,0 +46,0 @@ |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
15450
259
100