You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 7-8.RSVP
Socket
Socket
Sign inDemoInstall

mongodb-core

Package Overview
Dependencies
Maintainers
3
Versions
177
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 3.1.2 to 3.1.3

21

HISTORY.md

@@ -0,1 +1,22 @@

# Change Log
All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
<a name="3.1.3"></a>
## [3.1.3](https://github.com/mongodb-js/mongodb-core/compare/v3.1.2...v3.1.3) (2018-08-25)
### Bug Fixes
* **buffer:** use safe-buffer polyfill to maintain compatibility ([728d897](https://github.com/mongodb-js/mongodb-core/commit/728d897))
* **EJSON:** export the result of optionally requiring EJSON ([645d73d](https://github.com/mongodb-js/mongodb-core/commit/645d73d))
### Features
* **kerberos:** bump kerberos dependency to `^1.0.0` ([1155ebe](https://github.com/mongodb-js/mongodb-core/commit/1155ebe))
* **standard-version:** automate part of the release process ([4c768c4](https://github.com/mongodb-js/mongodb-core/commit/4c768c4))
<a name="3.1.2"></a>

@@ -2,0 +23,0 @@ ## [3.1.2](https://github.com/mongodb-js/mongodb-core/compare/v3.1.1...v3.1.2) (2018-08-13)

2

index.js

@@ -5,2 +5,3 @@ 'use strict';

var require_optional = require('require_optional');
const EJSON = require('./lib/utils').retrieveEJSON();

@@ -35,2 +36,3 @@ try {

BSON: BSON,
EJSON: EJSON,
// Raw operations

@@ -37,0 +39,0 @@ Query: require('./lib/connection/commands').Query,

3

lib/auth/scram.js

@@ -7,3 +7,4 @@ 'use strict';

Query = require('../connection/commands').Query,
MongoError = require('../error').MongoError;
MongoError = require('../error').MongoError,
Buffer = require('safe-buffer').Buffer;

@@ -10,0 +11,0 @@ let saslprep;

@@ -7,2 +7,3 @@ 'use strict';

const MongoError = require('../error').MongoError;
const Buffer = require('safe-buffer').Buffer;

@@ -9,0 +10,0 @@ // Incrementing request id

@@ -16,3 +16,4 @@ 'use strict';

OP_COMPRESSED = require('../wireprotocol/shared').opcodes.OP_COMPRESSED,
MESSAGE_HEADER_SIZE = require('../wireprotocol/shared').MESSAGE_HEADER_SIZE;
MESSAGE_HEADER_SIZE = require('../wireprotocol/shared').MESSAGE_HEADER_SIZE,
Buffer = require('safe-buffer').Buffer;

@@ -19,0 +20,0 @@ var _id = 0;

@@ -21,2 +21,3 @@ 'use strict';

const defaultAuthProviders = require('../auth/defaultAuthProviders').defaultAuthProviders;
const Buffer = require('safe-buffer').Buffer;

@@ -23,0 +24,0 @@ var DISCONNECTED = 'disconnected';

@@ -9,3 +9,4 @@ 'use strict';

ReadPreference = require('./read_preference'),
MongoError = require('../error').MongoError;
MongoError = require('../error').MongoError,
Buffer = require('safe-buffer').Buffer;

@@ -12,0 +13,0 @@ var TopologyType = {

@@ -6,2 +6,3 @@ 'use strict';

const ReadPreference = require('./read_preference');
const Buffer = require('safe-buffer').Buffer;

@@ -8,0 +9,0 @@ /**

@@ -51,2 +51,26 @@ 'use strict';

// Throw an error if an attempt to use EJSON is made when it is not installed
const noEJSONError = function() {
throw new Error('The `mongodb-extjson` package was not found. Please install it and try again.');
};
// Facilitate loading EJSON optionally
const retrieveEJSON = function() {
let EJSON = null;
try {
EJSON = requireOptional('mongodb-extjson');
} catch (error) {} // eslint-disable-line
if (!EJSON) {
EJSON = {
parse: noEJSONError,
deserialize: noEJSONError,
serialize: noEJSONError,
stringify: noEJSONError,
setBSONModule: noEJSONError,
BSON: noEJSONError
};
}
return EJSON;
};
/*

@@ -70,3 +94,4 @@ * Checks that collation is supported by server.

MongoAuthProcess,
collationNotSupported
collationNotSupported,
retrieveEJSON
};
{
"name": "mongodb-core",
"version": "3.1.2",
"version": "3.1.3",
"description": "Core MongoDB driver functionality, no bells and whistles and meant for integration not end applications",

@@ -12,3 +12,4 @@ "main": "index.js",

"changelog": "conventional-changelog -p angular -i HISTORY.md -s",
"atlas": "node ./test/atlas.js"
"atlas": "node ./test/atlas.js",
"release": "standard-version -i HISTORY.md"
},

@@ -25,3 +26,4 @@ "repository": {

"bson": "^1.1.0",
"require_optional": "^1.0.1"
"require_optional": "^1.0.1",
"safe-buffer": "^5.1.2"
},

@@ -32,3 +34,2 @@ "devDependencies": {

"co": "^4.6.0",
"conventional-changelog-cli": "^1.3.5",
"eslint": "^4.6.1",

@@ -42,6 +43,8 @@ "eslint-plugin-prettier": "^2.2.0",

"sinon": "^6.0.0",
"snappy": "^6.0.1"
"snappy": "^6.0.1",
"standard-version": "^4.4.0"
},
"peerOptionalDependencies": {
"kerberos": ">= 0.0.23 < 1.0.0",
"kerberos": "^1.0.0",
"mongodb-extjson": "^2.1.2",
"snappy": "^6.0.1",

@@ -48,0 +51,0 @@ "bson-ext": "^2.0.0"

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

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

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc