@foal/mongoose
Advanced tools
Comparing version 1.8.1 to 1.9.0
@@ -20,2 +20,5 @@ "use strict"; | ||
return (id) => { | ||
if (typeof id === 'number') { | ||
throw new Error('Unexpected type for MongoDB user ID: number.'); | ||
} | ||
return new Promise((resolve, reject) => { | ||
@@ -22,0 +25,0 @@ userModel.findOne({ _id: id }, (err, res) => { |
{ | ||
"name": "@foal/mongoose", | ||
"version": "1.8.1", | ||
"version": "1.9.0", | ||
"description": "FoalTS integration of Mongoose", | ||
@@ -62,3 +62,3 @@ "main": "./lib/index.js", | ||
}, | ||
"gitHead": "6edc64b6e739753521b302e6c9dde55255845686" | ||
"gitHead": "c0e648721ef9e8cd5a3f645d06ea660605f44ddb" | ||
} |
@@ -58,3 +58,3 @@ <p align="center"> | ||
[=> Continue with the tutorial](https://foalts.gitbook.io/docs/content/) | ||
[=> Continue with the tutorial](https://foalts.gitbook.io/docs/) | ||
@@ -61,0 +61,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
8621
72