mongoose-encryption
Advanced tools
Comparing version 1.2.1 to 1.2.2
# Release Notes | ||
## v.1.2.2 | ||
2015-11-4 | ||
- Fix buffer handling for Node 4.x compatibility | ||
## v.1.2.1 | ||
2015-8-31 | ||
- Fix authentication when adding or removing a child from a subcollection | ||
## v.1.2.0 | ||
@@ -3,0 +13,0 @@ 2015-08-16 |
@@ -47,2 +47,3 @@ 'use strict'; | ||
buf.copy(buf256, 0, 0, 32); | ||
clearBuffer(buf); | ||
@@ -377,5 +378,6 @@ return buf256; | ||
if (this._ct) { | ||
ctWithIV = this._ct.buffer || this._ct; | ||
ctWithIV = this._ct.hasOwnProperty('buffer') ? this._ct.buffer : this._ct; | ||
iv = ctWithIV.slice(VERSION_LENGTH, VERSION_LENGTH + IV_LENGTH); | ||
ct = ctWithIV.slice(VERSION_LENGTH + IV_LENGTH, ctWithIV.length); | ||
decipher = crypto.createDecipheriv(ENCRYPTION_ALGORITHM, encryptionKey, iv); | ||
@@ -439,3 +441,3 @@ try { | ||
} | ||
var acBuf = this._ac.buffer || this._ac; | ||
var acBuf = this._ac.hasOwnProperty('buffer') ? this._ac.buffer : this._ac; | ||
if (acBuf.length < VERSION_LENGTH + AAC_LENGTH + 2) { | ||
@@ -442,0 +444,0 @@ throw new Error('_ac is too short and has likely been cut off or modified'); |
{ | ||
"name": "mongoose-encryption", | ||
"description": "Simple encryption and authentication plugin for Mongoose", | ||
"version": "1.2.1", | ||
"version": "1.2.2", | ||
"author": { | ||
@@ -31,3 +31,3 @@ "name": "Joe Goldbeck" | ||
"dotty": "0.0.2", | ||
"mongoose": "~4.1.x", | ||
"mongoose": ">=4.2.4", | ||
"underscore": "1.5.x", | ||
@@ -34,0 +34,0 @@ "buffer-equal-constant-time": "1.0.1", |
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
114933
+ Added@mongodb-js/saslprep@1.1.9(transitive)
+ Added@types/webidl-conversions@7.0.3(transitive)
+ Added@types/whatwg-url@11.0.5(transitive)
+ Addedbson@6.10.1(transitive)
+ Addeddebug@4.4.0(transitive)
+ Addedkareem@2.6.3(transitive)
+ Addedmemory-pager@1.5.0(transitive)
+ Addedmongodb@6.12.0(transitive)
+ Addedmongodb-connection-string-url@3.0.1(transitive)
+ Addedmongoose@8.9.2(transitive)
+ Addedmpath@0.9.0(transitive)
+ Addedmquery@5.0.0(transitive)
+ Addedms@2.1.3(transitive)
+ Addedpunycode@2.3.1(transitive)
+ Addedsift@17.1.3(transitive)
+ Addedsparse-bitfield@3.0.3(transitive)
+ Addedtr46@4.1.1(transitive)
+ Addedwebidl-conversions@7.0.0(transitive)
+ Addedwhatwg-url@13.0.0(transitive)
- Removedbluebird@2.9.26(transitive)
- Removedbson@0.4.23(transitive)
- Removedcore-util-is@1.0.3(transitive)
- Removeddebug@2.2.0(transitive)
- Removedes6-promise@2.1.1(transitive)
- Removedhooks-fixed@1.1.0(transitive)
- Removedinherits@2.0.4(transitive)
- Removedisarray@0.0.1(transitive)
- Removedkareem@1.0.1(transitive)
- Removedkerberos@0.0.24(transitive)
- Removedmongodb@2.0.46(transitive)
- Removedmongodb-core@1.2.19(transitive)
- Removedmongoose@4.1.12(transitive)
- Removedmpath@0.1.1(transitive)
- Removedmpromise@0.5.4(transitive)
- Removedmquery@1.6.3(transitive)
- Removedms@0.1.00.7.1(transitive)
- Removedmuri@1.0.0(transitive)
- Removednan@2.10.0(transitive)
- Removedreadable-stream@1.0.31(transitive)
- Removedregexp-clone@0.0.1(transitive)
- Removedsliced@0.0.5(transitive)
- Removedstring_decoder@0.10.31(transitive)
Updatedmongoose@>=4.2.4