@rpcbase/server 0.29.0 → 0.30.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/mongoose/index.js CHANGED
@@ -1,8 +1,11 @@
1
1
  /* @flow */
2
2
  const mongoose = require("mongoose")
3
3
 
4
- const rts_delete_plugin = require("./rts_delete_plugin")
4
+ // browsers do not have mongoose plugins
5
+ if (typeof mongoose.plugin === "function") {
6
+ const rts_delete_plugin = require("./rts_delete_plugin")
5
7
 
6
- mongoose.plugin(rts_delete_plugin)
8
+ mongoose.plugin(rts_delete_plugin)
9
+ }
7
10
 
8
11
  module.exports = mongoose
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rpcbase/server",
3
- "version": "0.29.0",
3
+ "version": "0.30.0",
4
4
  "license": "SSPL-1.0",
5
5
  "main": "./index.js",
6
6
  "bin": {