@r5v/mongoose-paginate 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +126 -0
- package/dist/aggregationPagingQuery.d.ts +25 -0
- package/dist/aggregationPagingQuery.d.ts.map +1 -0
- package/dist/aggregationPagingQuery.js +194 -0
- package/dist/index.d.ts +3 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +7 -0
- package/dist/pagingQuery.d.ts +16 -0
- package/dist/pagingQuery.d.ts.map +1 -0
- package/dist/pagingQuery.js +104 -0
- package/dist/tests/dotNotation.spec.d.ts +2 -0
- package/dist/tests/dotNotation.spec.d.ts.map +1 -0
- package/dist/tests/dotNotation.spec.js +249 -0
- package/dist/tests/findProtectedPaths.spec.d.ts +2 -0
- package/dist/tests/findProtectedPaths.spec.d.ts.map +1 -0
- package/dist/tests/findProtectedPaths.spec.js +11 -0
- package/dist/tests/getPathsWithRef.spec.d.ts +2 -0
- package/dist/tests/getPathsWithRef.spec.d.ts.map +1 -0
- package/dist/tests/getPathsWithRef.spec.js +28 -0
- package/dist/tests/getPropertyFromDotNotation.spec.d.ts +2 -0
- package/dist/tests/getPropertyFromDotNotation.spec.d.ts.map +1 -0
- package/dist/tests/getPropertyFromDotNotation.spec.js +213 -0
- package/dist/tests/insertPopulate.spec.d.ts +2 -0
- package/dist/tests/insertPopulate.spec.d.ts.map +1 -0
- package/dist/tests/insertPopulate.spec.js +64 -0
- package/dist/tests/pagingQuery.spec.d.ts +2 -0
- package/dist/tests/pagingQuery.spec.d.ts.map +1 -0
- package/dist/tests/pagingQuery.spec.js +21 -0
- package/dist/tests/parseSortString.spec.d.ts +2 -0
- package/dist/tests/parseSortString.spec.d.ts.map +1 -0
- package/dist/tests/parseSortString.spec.js +59 -0
- package/dist/utils/dotNotation.d.ts +10 -0
- package/dist/utils/dotNotation.d.ts.map +1 -0
- package/dist/utils/dotNotation.js +129 -0
- package/dist/utils/findKeyWithValue.d.ts +2 -0
- package/dist/utils/findKeyWithValue.d.ts.map +1 -0
- package/dist/utils/findKeyWithValue.js +19 -0
- package/dist/utils/findProtectedPaths.d.ts +3 -0
- package/dist/utils/findProtectedPaths.d.ts.map +1 -0
- package/dist/utils/findProtectedPaths.js +66 -0
- package/dist/utils/getPathsWithRef.d.ts +5 -0
- package/dist/utils/getPathsWithRef.d.ts.map +1 -0
- package/dist/utils/getPathsWithRef.js +111 -0
- package/dist/utils/isJsonString.d.ts +2 -0
- package/dist/utils/isJsonString.d.ts.map +1 -0
- package/dist/utils/isJsonString.js +13 -0
- package/dist/utils/isValidDateString.d.ts +2 -0
- package/dist/utils/isValidDateString.d.ts.map +1 -0
- package/dist/utils/isValidDateString.js +8 -0
- package/dist/utils/parseParams.d.ts +4 -0
- package/dist/utils/parseParams.d.ts.map +1 -0
- package/dist/utils/parseParams.js +49 -0
- package/dist/utils/parsePopulateQuery.d.ts +5 -0
- package/dist/utils/parsePopulateQuery.d.ts.map +1 -0
- package/dist/utils/parsePopulateQuery.js +29 -0
- package/dist/utils/parseSortString.d.ts +6 -0
- package/dist/utils/parseSortString.d.ts.map +1 -0
- package/dist/utils/parseSortString.js +39 -0
- package/package.json +60 -0
package/package.json
ADDED
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@r5v/mongoose-paginate",
|
|
3
|
+
"version": "1.0.0",
|
|
4
|
+
"main": "./dist/index.js",
|
|
5
|
+
"types": "./dist/index.d.ts",
|
|
6
|
+
"scripts": {
|
|
7
|
+
"prebuild": "rimraf dist/",
|
|
8
|
+
"build": "tsc",
|
|
9
|
+
"copy-files": "copyfiles --error package.json dist/",
|
|
10
|
+
"test": "concurrently --kill-others-on-fail --prefix none npm:test:*",
|
|
11
|
+
"test:unit": "jest"
|
|
12
|
+
},
|
|
13
|
+
"keywords": [
|
|
14
|
+
"mongoose",
|
|
15
|
+
"paging",
|
|
16
|
+
"mongodb"
|
|
17
|
+
],
|
|
18
|
+
"license": "ISC",
|
|
19
|
+
"homepage": "https://github.com/RedFiveVentures/mongoose-paginate",
|
|
20
|
+
"repository": {
|
|
21
|
+
"type": "git",
|
|
22
|
+
"url": "https://github.com/RedFiveVentures/mongoose-paginate"
|
|
23
|
+
},
|
|
24
|
+
"bugs": {
|
|
25
|
+
"url": "https://github.com/RedFiveVentures/mongoose-paginate/issues"
|
|
26
|
+
},
|
|
27
|
+
"author": {
|
|
28
|
+
"name": "Noah Wallace",
|
|
29
|
+
"email": "noah@redfiveventures.com",
|
|
30
|
+
"url": "https://www.npmjs.com/~nwrfv"
|
|
31
|
+
},
|
|
32
|
+
"files": [
|
|
33
|
+
"package.json",
|
|
34
|
+
"./dist",
|
|
35
|
+
"README.md"
|
|
36
|
+
],
|
|
37
|
+
"engines": {
|
|
38
|
+
"node": ">=20"
|
|
39
|
+
},
|
|
40
|
+
"dependencies": {
|
|
41
|
+
"mongoose": "^8.16.1",
|
|
42
|
+
"qs": "^6.14.0"
|
|
43
|
+
},
|
|
44
|
+
"description": "A lightweight Node.js package that seamlessly bridges RESTful API query parameters to Mongoose operations. Automatically parses and transforms URL query strings into valid Mongoose queries, supporting filtering, sorting, pagination, field selection, and population. Simply pass your Express req.query object and get back a fully configured Mongoose query ready for execution. Perfect for rapidly building consistent, feature-rich APIs without repetitive query parsing logic",
|
|
45
|
+
"devDependencies": {
|
|
46
|
+
"@types/express": "^5.0.3",
|
|
47
|
+
"@types/jest": "^30.0.0",
|
|
48
|
+
"@types/node": "^24.0.10",
|
|
49
|
+
"concurrently": "^9.2.0",
|
|
50
|
+
"copyfiles": "^2.4.1",
|
|
51
|
+
"jest": "^30.0.4",
|
|
52
|
+
"mockingoose": "^2.16.2",
|
|
53
|
+
"node-mocks-http": "^1.17.2",
|
|
54
|
+
"rimraf": "^6.0.1",
|
|
55
|
+
"ts-jest": "^29.4.0",
|
|
56
|
+
"ts-node-dev": "^2.0.0",
|
|
57
|
+
"tsx": "^4.20.3",
|
|
58
|
+
"typescript": "^5.8.3"
|
|
59
|
+
}
|
|
60
|
+
}
|