@rpcbase/server 0.19.0 → 0.20.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,4 +1,8 @@
1
1
  /* @flow */
2
2
  const mongoose = require("mongoose")
3
3
 
4
+ const rts_delete_plugin = require("./rts_delete_plugin")
5
+
6
+ mongoose.plugin(rts_delete_plugin)
7
+
4
8
  module.exports = mongoose
@@ -0,0 +1,12 @@
1
+ /* @flow */
2
+
3
+ // fixes the mongodb issue with missing fullDocument in change streams
4
+ // that is required for dispatching to proper sockets in real time state
5
+
6
+ module.exports = (schema, options) => {
7
+ console.log("MONGOOSE DELETE PLUGIN")
8
+
9
+ schema.post(["delete"], (arg, arg2) => {
10
+ console.log("DELETE WOWO", arg, arg2)
11
+ })
12
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rpcbase/server",
3
- "version": "0.19.0",
3
+ "version": "0.20.0",
4
4
  "license": "SSPL-1.0",
5
5
  "main": "./index.js",
6
6
  "bin": {