Comparing version 0.0.1 to 0.1.0
{ | ||
"name": "dumongo", | ||
"version": "0.0.1", | ||
"version": "0.1.0", | ||
"description": "MongoDB typescript completions for your schema.", | ||
@@ -5,0 +5,0 @@ "main": "build/index", |
@@ -49,3 +49,6 @@ import { CursorValue, DefaultTypes, Query, Result } from '.' | ||
sortedQuery: Query<T>, | ||
{ | ||
pagination: Pagination = {}, | ||
select?: K[], | ||
): Promise<Connection<Result<T, K>>> { | ||
const { | ||
sortBy = '_id', | ||
@@ -55,5 +58,4 @@ limit = 10, | ||
after, | ||
}: Pagination = {}, | ||
select?: K[], | ||
): Promise<Connection<Result<T, K>>> { | ||
} = pagination | ||
const query = Object.assign({}, sortedQuery) | ||
@@ -60,0 +62,0 @@ if (after) { |
@@ -122,3 +122,3 @@ import * as mongodb from 'mongodb' | ||
return arr | ||
return arr.map((i) => new this(i)) | ||
} | ||
@@ -125,0 +125,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
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 1 instance in 1 package
0
93424
35
664