@diory/client-js 0.2.0 → 0.2.1-rc1

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.
@@ -4,7 +4,6 @@ exports.DioryClient = void 0;
4
4
  const diosphere_js_1 = require("@diory/diosphere-js");
5
5
  const diograph_1 = require("@diograph/diograph");
6
6
  const getConnectionClients_1 = require("../utils/getConnectionClients");
7
- const debounce_1 = require("../utils/debounce");
8
7
  const getDefaultDiosphere_1 = require("./getDefaultDiosphere");
9
8
  const getDefaultDiograph_1 = require("./getDefaultDiograph");
10
9
  class DioryClient {
@@ -129,8 +128,8 @@ class DioryClient {
129
128
  this.dataClients = dataClients;
130
129
  this.diosphere = new diosphere_js_1.Diosphere();
131
130
  this.diograph = new diograph_1.Diograph();
132
- this.diosphere.saveDiosphere = (0, debounce_1.debounce)(this.saveDiosphere, 1000);
133
- this.diograph.saveDiograph = (0, debounce_1.debounce)(this.saveDiograph, 1000);
131
+ this.diosphere.saveDiosphere = this.saveDiosphere;
132
+ this.diograph.saveDiograph = this.saveDiograph;
134
133
  }
135
134
  }
136
135
  exports.DioryClient = DioryClient;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@diory/client-js",
3
- "version": "0.2.0",
3
+ "version": "0.2.1-rc1",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "author": "Olli-Pekka Pohjola <op@diory.me>, Jouni Alanen <jouni@diory.me>",
@@ -29,8 +29,8 @@ class DioryClient implements IDioryClient {
29
29
  this.diosphere = new Diosphere()
30
30
  this.diograph = new Diograph()
31
31
 
32
- this.diosphere.saveDiosphere = debounce(this.saveDiosphere, 1000)
33
- this.diograph.saveDiograph = debounce(this.saveDiograph, 1000)
32
+ this.diosphere.saveDiosphere = this.saveDiosphere
33
+ this.diograph.saveDiograph = this.saveDiograph
34
34
  }
35
35
 
36
36
  focusDiory = (dioryObject: IDioryObject): IDiory => {