@mongoosejs/studio
Advanced tools
Comparing version 0.0.15 to 0.0.16
@@ -5,3 +5,3 @@ 'use strict'; | ||
const removeSpecifiedPaths = require('../../helpers/removeSpecifiedPaths'); | ||
const EJSON = require('ejson'); | ||
const { EJSON } = require('bson') | ||
@@ -8,0 +8,0 @@ const GetDocumentsParams = new Archetype({ |
'use strict'; | ||
const vanillatoasts = require('vanillatoasts'); | ||
const app = Vue.createApp({ | ||
@@ -34,3 +36,11 @@ template: '<app-component />' | ||
</div> | ||
` | ||
`, | ||
errorCaptured(err) { | ||
vanillatoasts.create({ | ||
title: `Error: ${err.message}`, | ||
icon: 'images/failure.jpg', | ||
timeout: 10000, | ||
positionClass: 'bottomRight' | ||
}); | ||
} | ||
}); | ||
@@ -37,0 +47,0 @@ |
@@ -5,5 +5,11 @@ 'use strict'; | ||
const template = require('./models.html'); | ||
const EJSON = require('ejson'); | ||
const mpath = require('mpath'); | ||
const { BSON, EJSON } = require('bson'); | ||
const ObjectId = new Proxy(BSON.ObjectId, { | ||
apply (target, thisArg, argumentsList) { | ||
return new target(...argumentsList); | ||
} | ||
}); | ||
const appendCSS = require('../appendCSS'); | ||
@@ -244,2 +250,2 @@ | ||
} | ||
}); | ||
}); |
{ | ||
"name": "@mongoosejs/studio", | ||
"version": "0.0.15", | ||
"version": "0.0.16", | ||
"dependencies": { | ||
@@ -13,2 +13,3 @@ "archetype": "0.13.0", | ||
"peerDependencies": { | ||
"bson": "^5.5.1", | ||
"express": "4.x", | ||
@@ -15,0 +16,0 @@ "mongoose": "7.x || 8.0.0-rc0 || 8.x" |
200401
83
1833
9