Socket
Socket
Sign inDemoInstall

mongodb-core

Package Overview
Dependencies
2
Maintainers
2
Versions
177
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 2.1.16 to 2.1.17

yarn.lock

8

HISTORY.md

@@ -0,1 +1,5 @@

2.1.17 2017-10-11
-----------------
* fix a typo that completely broke SCRAM-SHA1 authentication
2.1.16 2017-10-11

@@ -6,4 +10,4 @@ -----------------

* NODE-990 cache the ScramSHA1 salted passwords up to 200 entries
* NODE-1158 ensure that errors are propagated on force destroy
* NODE-1158 ensure inUse and connecting queues are cleared on reauth
* NODE-1153 ensure that errors are propagated on force destroy
* NODE-1153 ensure inUse and connecting queues are cleared on reauth

@@ -10,0 +14,0 @@ 2.1.15 2017-08-08

@@ -77,9 +77,15 @@ "use strict";

var _hiCache = {}, _hiCacheCount = 0;
var _hiCachePurge = function() { _hiCache = {}; _hiCacheCount = 0; }
var _hiCache = {};
var _hiCacheCount = 0;
var _hiCachePurge = function() {
_hiCache = {};
_hiCacheCount = 0;
};
var hi = function(data, salt, iterations) {
// omit the work if already generated
var key = data + '_' + salt.toString('base64') + '_' + iterations;
if (_hiCache[key] !== undefined) return _hiCache[key];
var key = [data, salt.toString('base64'), iterations].join('_');
if (_hiCache[key] !== undefined) {
return _hiCache[key];
}

@@ -90,8 +96,10 @@ // generate the salt

// cache a copy to speed up the next lookup, but prevent unbounded cache growth
if (_hiCacheCount >= 200) _hiCachePurge();
_hiCache[key] = data;
if (_hiCacheCount >= 200) {
_hiCachePurge();
}
_hiCache[key] = saltedData;
_hiCacheCount += 1;
return saltedData;
}
};

@@ -234,3 +242,3 @@ /**

var clientFinal = [withoutProof, clientProof].join(',');
//

@@ -237,0 +245,0 @@ // Create continue message

{
"name": "mongodb-core",
"version": "2.1.16",
"version": "2.1.17",
"description": "Core MongoDB driver functionality, no bells and whistles and meant for integration not end applications",

@@ -5,0 +5,0 @@ "main": "index.js",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc