Skip to content

Instantly share code, notes, and snippets.

@hugdru
hugdru / mongoose+5.10.19.patch
Created February 12, 2021 10:40
mongoose patch workaround for esbuild and parcel - created and applied automatically by patch-package
diff --git a/node_modules/mongoose/lib/index.js b/node_modules/mongoose/lib/index.js
index 80a8ca5..cc3d2b4 100644
--- a/node_modules/mongoose/lib/index.js
+++ b/node_modules/mongoose/lib/index.js
@@ -4,16 +4,7 @@
* Module dependencies.
*/
-if (global.MONGOOSE_DRIVER_PATH) {
- const deprecationWarning = 'The `MONGOOSE_DRIVER_PATH` global property is ' +
@hugdru
hugdru / schema
Created April 26, 2019 16:30
schema
{
"type": "array",
"properties": {
"Category": {
"type": "string"
},
"Features": {
"Scale Out Architecture": {
"type": "string",
"enum": [