@knotx/data 0.2.12 → 0.2.13
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 +2 -2
- package/dist/index.js +2 -2
- package/package.json +4 -4
package/dist/index.cjs
CHANGED
|
@@ -143,7 +143,7 @@ class DataManager {
|
|
|
143
143
|
dryRun(operation) {
|
|
144
144
|
switch (operation.type) {
|
|
145
145
|
case "commitDraft": {
|
|
146
|
-
const dataMap = this.applyOperation(new Map(this.dataMap$.value.entries().map(([key, val]) => [key, lodashEs.cloneDeep(val)])), __spreadProps(__spreadValues$1({}, operation), {
|
|
146
|
+
const dataMap = this.applyOperation(new Map(Array.from(this.dataMap$.value.entries()).map(([key, val]) => [key, lodashEs.cloneDeep(val)])), __spreadProps(__spreadValues$1({}, operation), {
|
|
147
147
|
isDryRun: true
|
|
148
148
|
}));
|
|
149
149
|
return dataMap;
|
|
@@ -187,7 +187,7 @@ class DataManager {
|
|
|
187
187
|
if (!draftDataMap$ && operation.isAutoStart) {
|
|
188
188
|
draftDataMap$ = new rxjs.BehaviorSubject(/* @__PURE__ */ new Map());
|
|
189
189
|
this.drafts$.next(this.drafts$.value.set(operation.draftId, draftDataMap$));
|
|
190
|
-
if (typeof operation.isAutoStart !== "object" || operation.isAutoStart.isSilent !==
|
|
190
|
+
if (typeof operation.isAutoStart !== "object" || operation.isAutoStart.isSilent !== true) {
|
|
191
191
|
this.currentDraftDataMap$.next(draftDataMap$.value);
|
|
192
192
|
}
|
|
193
193
|
}
|
package/dist/index.js
CHANGED
|
@@ -141,7 +141,7 @@ class DataManager {
|
|
|
141
141
|
dryRun(operation) {
|
|
142
142
|
switch (operation.type) {
|
|
143
143
|
case "commitDraft": {
|
|
144
|
-
const dataMap = this.applyOperation(new Map(this.dataMap$.value.entries().map(([key, val]) => [key, cloneDeep(val)])), __spreadProps(__spreadValues$1({}, operation), {
|
|
144
|
+
const dataMap = this.applyOperation(new Map(Array.from(this.dataMap$.value.entries()).map(([key, val]) => [key, cloneDeep(val)])), __spreadProps(__spreadValues$1({}, operation), {
|
|
145
145
|
isDryRun: true
|
|
146
146
|
}));
|
|
147
147
|
return dataMap;
|
|
@@ -185,7 +185,7 @@ class DataManager {
|
|
|
185
185
|
if (!draftDataMap$ && operation.isAutoStart) {
|
|
186
186
|
draftDataMap$ = new BehaviorSubject(/* @__PURE__ */ new Map());
|
|
187
187
|
this.drafts$.next(this.drafts$.value.set(operation.draftId, draftDataMap$));
|
|
188
|
-
if (typeof operation.isAutoStart !== "object" || operation.isAutoStart.isSilent !==
|
|
188
|
+
if (typeof operation.isAutoStart !== "object" || operation.isAutoStart.isSilent !== true) {
|
|
189
189
|
this.currentDraftDataMap$.next(draftDataMap$.value);
|
|
190
190
|
}
|
|
191
191
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@knotx/data",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.13",
|
|
4
4
|
"description": "Data for Knotx",
|
|
5
5
|
"author": "boenfu",
|
|
6
6
|
"license": "MIT",
|
|
@@ -33,9 +33,9 @@
|
|
|
33
33
|
},
|
|
34
34
|
"devDependencies": {
|
|
35
35
|
"@types/lodash-es": "^4.17.12",
|
|
36
|
-
"@knotx/build-config": "0.2.
|
|
37
|
-
"@knotx/eslint-config": "0.2.
|
|
38
|
-
"@knotx/typescript-config": "0.2.
|
|
36
|
+
"@knotx/build-config": "0.2.13",
|
|
37
|
+
"@knotx/eslint-config": "0.2.13",
|
|
38
|
+
"@knotx/typescript-config": "0.2.13"
|
|
39
39
|
},
|
|
40
40
|
"scripts": {
|
|
41
41
|
"build": "unbuild",
|