🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Sign inDemoInstall
Socket

mongodb-query-parser

Package Overview
Dependencies
Maintainers
33
Versions
85
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

mongodb-query-parser - npm Package Compare versions

Comparing version

to
3.1.3

1

dist/index.js

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

isProjectValid,
isSortValid,
isLimitValid,

@@ -303,0 +304,0 @@ isSkipValid,

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

it('should allow objects and arrays as values', function () {
assert_1.default.deepEqual((0, index_1.isSortValid)(''), null);
assert_1.default.deepEqual((0, index_1.isSortValid)('{_id: 1}'), { _id: 1 });

@@ -489,3 +490,12 @@ assert_1.default.deepEqual((0, index_1.isSortValid)('{_id: -1}'), { _id: -1 });

});
describe('validate', function () {
it('calls the other validation functions', function () {
assert_1.default.deepEqual((0, index_1.isSortValid)(''), null);
assert_1.default.deepEqual((0, index_1.validate)('sort', ''), null);
assert_1.default.deepEqual((0, index_1.validate)('Sort', ''), null);
assert_1.default.deepEqual((0, index_1.validate)('sort', '[["123", -1]]'), [['123', -1]]);
assert_1.default.deepEqual((0, index_1.validate)('limit', ' '), index_1.DEFAULT_LIMIT);
});
});
});
//# sourceMappingURL=index.test.js.map

2

package.json
{
"name": "mongodb-query-parser",
"description": "Parse MongoDB queries",
"version": "3.1.2",
"version": "3.1.3",
"author": {

@@ -6,0 +6,0 @@ "name": "MongoDB Inc",

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