yaml-crypt
Advanced tools
Comparing version 0.6.3 to 0.6.4
{ | ||
"name": "yaml-crypt", | ||
"version": "0.6.3", | ||
"version": "0.6.4", | ||
"description": "Encrypt and decrypt YAML documents", | ||
@@ -31,3 +31,3 @@ "license": "MIT", | ||
"pkginfo": "^0.4.1", | ||
"tmp": "^0.1.0", | ||
"tmp": "^0.2.1", | ||
"urlsafe-base64": "^1.0.0" | ||
@@ -37,8 +37,12 @@ }, | ||
"chai": "^4.1.2", | ||
"coveralls": "^3.0.9", | ||
"coveralls": "^3.1.0", | ||
"eslint": "^6.8.0", | ||
"mocha": "^7.1.0", | ||
"nyc": "^15.0.0", | ||
"prettier": "^1.19.1" | ||
"mocha": "^7.1.2", | ||
"nyc": "^15.0.1", | ||
"prettier": "^2.0.5" | ||
}, | ||
"prettier": { | ||
"trailingComma": "none", | ||
"arrowParens": "avoid" | ||
} | ||
} |
@@ -10,3 +10,3 @@ const fernet = require("fernet"); | ||
const setIV = fernet.Token.prototype.setIV; | ||
fernet.Token.prototype.setIV = function() { | ||
fernet.Token.prototype.setIV = function () { | ||
const iv = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15]; | ||
@@ -16,3 +16,3 @@ setIV.apply(this, [iv]); | ||
const setTime = fernet.Token.prototype.setTime; | ||
fernet.Token.prototype.setTime = function() { | ||
fernet.Token.prototype.setTime = function () { | ||
setTime.apply(this, [1000]); | ||
@@ -23,7 +23,5 @@ }; | ||
function decryptBranca(key, msg) { | ||
return branca(key) | ||
.decode(msg) | ||
.toString(); | ||
return branca(key).decode(msg).toString(); | ||
} | ||
module.exports = { setupCrypto, decryptBranca }; |
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
78003
2187
+ Addedtmp@0.2.3(transitive)
- Removedbalanced-match@1.0.2(transitive)
- Removedbrace-expansion@1.1.11(transitive)
- Removedconcat-map@0.0.1(transitive)
- Removedfs.realpath@1.0.0(transitive)
- Removedglob@7.2.3(transitive)
- Removedinflight@1.0.6(transitive)
- Removedinherits@2.0.4(transitive)
- Removedminimatch@3.1.2(transitive)
- Removedonce@1.4.0(transitive)
- Removedpath-is-absolute@1.0.1(transitive)
- Removedrimraf@2.7.1(transitive)
- Removedtmp@0.1.0(transitive)
- Removedwrappy@1.0.2(transitive)
Updatedtmp@^0.2.1