mongoose-query-parser
Advanced tools
Comparing version 1.1.5 to 1.1.6
@@ -18,8 +18,8 @@ export interface ParserOptions { | ||
export interface QueryOptions { | ||
filter: Object; | ||
sort?: string | Object; | ||
filter: any; | ||
sort?: string | any; | ||
limit?: number; | ||
skip?: number; | ||
select?: string | Object; | ||
populate?: string | Object; | ||
select?: string | any; | ||
populate?: string | any; | ||
} | ||
@@ -26,0 +26,0 @@ export declare class MongooseQueryParser { |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.MongooseQueryParser = void 0; | ||
var qs = require("querystring"); | ||
@@ -8,4 +9,4 @@ var Moment = require("moment"); | ||
function MongooseQueryParser(options) { | ||
var _this = this; | ||
if (options === void 0) { options = {}; } | ||
var _this = this; | ||
this.options = options; | ||
@@ -12,0 +13,0 @@ this.defaultDateFormat = [Moment.ISO_8601]; |
@@ -12,6 +12,7 @@ "use strict"; | ||
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { | ||
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } | ||
return new (P || (P = Promise))(function (resolve, reject) { | ||
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } | ||
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } | ||
function step(result) { result.done ? resolve(result.value) : new P(function (resolve) { resolve(result.value); }).then(fulfilled, rejected); } | ||
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } | ||
step((generator = generator.apply(thisArg, _arguments || [])).next()); | ||
@@ -48,3 +49,3 @@ }); | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
var mocha_typescript_1 = require("mocha-typescript"); | ||
var mocha_1 = require("@testdeck/mocha"); | ||
var chai_1 = require("chai"); | ||
@@ -146,3 +147,3 @@ var _1 = require("./"); | ||
__decorate([ | ||
mocha_typescript_1.test('should parse general query'), | ||
mocha_1.test('should parse general query'), | ||
__metadata("design:type", Function), | ||
@@ -153,3 +154,3 @@ __metadata("design:paramtypes", []), | ||
__decorate([ | ||
mocha_typescript_1.test('should parse query with string templates'), | ||
mocha_1.test('should parse query with string templates'), | ||
__metadata("design:type", Function), | ||
@@ -160,3 +161,3 @@ __metadata("design:paramtypes", []), | ||
__decorate([ | ||
mocha_typescript_1.test('should parse populate query'), | ||
mocha_1.test('should parse populate query'), | ||
__metadata("design:type", Function), | ||
@@ -167,3 +168,3 @@ __metadata("design:paramtypes", []), | ||
__decorate([ | ||
mocha_typescript_1.test('should parse built in casters'), | ||
mocha_1.test('should parse built in casters'), | ||
__metadata("design:type", Function), | ||
@@ -174,3 +175,3 @@ __metadata("design:paramtypes", []), | ||
__decorate([ | ||
mocha_typescript_1.test('should parse custom caster'), | ||
mocha_1.test('should parse custom caster'), | ||
__metadata("design:type", Function), | ||
@@ -181,3 +182,3 @@ __metadata("design:paramtypes", []), | ||
__decorate([ | ||
mocha_typescript_1.test('should parse json filter'), | ||
mocha_1.test('should parse json filter'), | ||
__metadata("design:type", Function), | ||
@@ -188,3 +189,3 @@ __metadata("design:paramtypes", []), | ||
__decorate([ | ||
mocha_typescript_1.test('should parse predefined query objects'), | ||
mocha_1.test('should parse predefined query objects'), | ||
__metadata("design:type", Function), | ||
@@ -195,3 +196,3 @@ __metadata("design:paramtypes", []), | ||
Tester = __decorate([ | ||
mocha_typescript_1.suite('Tester') | ||
mocha_1.suite('Tester') | ||
], Tester); | ||
@@ -198,0 +199,0 @@ return Tester; |
{ | ||
"name": "mongoose-query-parser", | ||
"version": "1.1.5", | ||
"version": "1.1.6", | ||
"description": "Convert url query string to MongooseJs friendly query object including advanced filtering, sorting, population, string template, type casting and many more...", | ||
@@ -33,18 +33,18 @@ "main": "./lib/index.js", | ||
"devDependencies": { | ||
"@testdeck/mocha": "^0.1.0", | ||
"@types/chai": "^4.1.4", | ||
"@types/lodash": "^4.14.116", | ||
"@types/lodash": "^4.14.157", | ||
"@types/mocha": "^5.2.5", | ||
"@types/node": "^10.9.4", | ||
"chai": "^4.1.2", | ||
"mocha": "^5.2.0", | ||
"mocha-typescript": "^1.1.17", | ||
"rimraf": "^2.6.2", | ||
"ts-node": "^7.0.1", | ||
"tslint": "^5.11.0", | ||
"typescript": "^3.0.3" | ||
"@types/node": "^14.0.14", | ||
"chai": "^4.2.0", | ||
"mocha": "^8.0.1", | ||
"rimraf": "^3.0.2", | ||
"ts-node": "^8.10.2", | ||
"tslint": "^6.1.2", | ||
"typescript": "^3.9.5" | ||
}, | ||
"dependencies": { | ||
"lodash": "^4.17.14", | ||
"moment": "^2.22.2" | ||
"lodash": "^4.17.15", | ||
"moment": "^2.27.0" | ||
} | ||
} | ||
} |
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
41401
719
Updatedlodash@^4.17.15
Updatedmoment@^2.27.0