@knotx/data 0.2.7 → 0.2.8

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/dist/index.cjs CHANGED
@@ -108,7 +108,7 @@ class DataManager {
108
108
  operators.tap(({ operations }) => this.updateVersion({ type: "batch", operations })),
109
109
  operators.map(({ dataMap, operations }) => this.applyOperation(dataMap, { type: "batch", operations }))
110
110
  ).subscribe(this.dataMap$);
111
- this.operations$.next({ type: "batch", operations: initialDataList.map((data) => ({ type: "add", data })), isInit: true });
111
+ this.dispatch({ type: "batch", operations: initialDataList.map((data) => ({ type: "add", data })), isInit: true });
112
112
  }
113
113
  getOperations$() {
114
114
  return this.operations$.asObservable();
package/dist/index.js CHANGED
@@ -106,7 +106,7 @@ class DataManager {
106
106
  tap(({ operations }) => this.updateVersion({ type: "batch", operations })),
107
107
  map(({ dataMap, operations }) => this.applyOperation(dataMap, { type: "batch", operations }))
108
108
  ).subscribe(this.dataMap$);
109
- this.operations$.next({ type: "batch", operations: initialDataList.map((data) => ({ type: "add", data })), isInit: true });
109
+ this.dispatch({ type: "batch", operations: initialDataList.map((data) => ({ type: "add", data })), isInit: true });
110
110
  }
111
111
  getOperations$() {
112
112
  return this.operations$.asObservable();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@knotx/data",
3
- "version": "0.2.7",
3
+ "version": "0.2.8",
4
4
  "description": "Data for Knotx",
5
5
  "author": "boenfu",
6
6
  "license": "MIT",
@@ -31,9 +31,9 @@
31
31
  "rxjs": "^7.8.1"
32
32
  },
33
33
  "devDependencies": {
34
- "@knotx/build-config": "0.2.7",
35
- "@knotx/eslint-config": "0.2.7",
36
- "@knotx/typescript-config": "0.2.7"
34
+ "@knotx/build-config": "0.2.8",
35
+ "@knotx/eslint-config": "0.2.8",
36
+ "@knotx/typescript-config": "0.2.8"
37
37
  },
38
38
  "scripts": {
39
39
  "build": "unbuild",