New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

mongodb-memory-server-core

Package Overview
Dependencies
Maintainers
1
Versions
277
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

mongodb-memory-server-core - npm Package Compare versions

Comparing version 6.6.3 to 6.6.4

11

CHANGELOG.md

@@ -6,2 +6,13 @@ # Change Log

## [6.6.4](https://github.com/nodkz/mongodb-memory-server/compare/v6.6.3...v6.6.4) (2020-08-17)
### Bug Fixes
* URL generation for MongoDB 4.4 ([#329](https://github.com/nodkz/mongodb-memory-server/issues/329)) ([9cd80f9](https://github.com/nodkz/mongodb-memory-server/commit/9cd80f9ec82a7f05f99f2551bccbdd7485dafae8))
## [6.6.3](https://github.com/nodkz/mongodb-memory-server/compare/v6.6.2...v6.6.3) (2020-07-28)

@@ -8,0 +19,0 @@

24

lib/util/__tests__/MongoBinaryDownloadUrl-test.js

@@ -46,3 +46,3 @@ "use strict";

describe('for mac', function () {
it('4.2', function () { return __awaiter(void 0, void 0, void 0, function () {
it('4.4', function () { return __awaiter(void 0, void 0, void 0, function () {
var du, _a;

@@ -55,3 +55,3 @@ return __generator(this, function (_b) {

arch: 'x64',
version: '4.2.0',
version: '4.4.0',
});

@@ -61,3 +61,3 @@ _a = expect;

case 1:
_a.apply(void 0, [_b.sent()]).toBe('https://fastdl.mongodb.org/osx/mongodb-macos-x86_64-4.2.0.tgz');
_a.apply(void 0, [_b.sent()]).toBe('https://fastdl.mongodb.org/osx/mongodb-macos-x86_64-4.4.0.tgz');
return [2 /*return*/];

@@ -186,2 +186,20 @@ }

}); });
it('4.4 for win32', function () { return __awaiter(void 0, void 0, void 0, function () {
var du, _a;
return __generator(this, function (_b) {
switch (_b.label) {
case 0:
du = new MongoBinaryDownloadUrl_1.default({
platform: 'win32',
arch: 'x64',
version: '4.4.0',
});
_a = expect;
return [4 /*yield*/, du.getDownloadUrl()];
case 1:
_a.apply(void 0, [_b.sent()]).toBe('https://fastdl.mongodb.org/windows/mongodb-windows-x86_64-4.4.0.zip');
return [2 /*return*/];
}
});
}); });
it('fallback', function () { return __awaiter(void 0, void 0, void 0, function () {

@@ -188,0 +206,0 @@ var du, _a;

15

lib/util/MongoBinaryDownloadUrl.js

@@ -95,2 +95,3 @@ "use strict";

case 'win32':
case 'windows':
return [2 /*return*/, this.getArchiveNameWin()];

@@ -115,6 +116,6 @@ case 'linux':

name += "-" + this.arch;
if (this.version.indexOf('4.2') === 0) {
if (this.version.startsWith('4.2')) {
name += '-2012plus';
}
else {
else if (/^[1-3]\./.test(this.version)) {
name += '-2008plus-ssl';

@@ -136,8 +137,8 @@ }

name = "mongodb-osx";
if (!(this.version.indexOf('3.0') === 0 ||
this.version.indexOf('2.') === 0 ||
this.version.indexOf('1.') === 0)) {
if (!(this.version.startsWith('3.0') ||
this.version.startsWith('2.') ||
this.version.startsWith('1.'))) {
name += '-ssl';
}
if (this.version.indexOf('4.2') === 0) {
if (this.version.startsWith('4.')) {
name = "mongodb-macos";

@@ -402,3 +403,3 @@ }

case 'win32':
return 'win32';
return /^(4\.[4-9]|[5-9])/.test(this.version) ? 'windows' : 'win32';
case 'linux':

@@ -405,0 +406,0 @@ case 'elementary OS':

{
"name": "mongodb-memory-server-core",
"version": "6.6.3",
"version": "6.6.4",
"description": "MongoDB Server for testing (core package, without autodownload). The server will allow you to connect your favourite ODM or client library to the MongoDB Server and run parallel integration tests isolated from each other.",

@@ -92,3 +92,3 @@ "main": "lib/index",

},
"gitHead": "5d662645bf3a9828709d27f749cc3bbbfd8d2395"
"gitHead": "d14ab81378c58ff93b1d8ed053ecab2e3d8001ea"
}

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc