datafolder 1.0.39 → 1.0.41

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.
@@ -19,7 +19,7 @@ import {
19
19
  } from "./QyKVDataCleaner.js";
20
20
 
21
21
  import {
22
- logger as d
22
+ logger as y
23
23
  } from "./QyLogger.js";
24
24
 
25
25
  export default class extends a {
@@ -50,7 +50,7 @@ export default class extends a {
50
50
  aclKeyValueMap: t,
51
51
  qySnapshots: o
52
52
  } = this;
53
- o.applyCmdObj(JSON.parse(s), t, e ? JSON.parse(e) : void 0), this.maxChangeId = a;
53
+ o.applyCmdObj(s, t, e), this.maxChangeId = a;
54
54
  }
55
55
  async saveSnapshot(a) {
56
56
  var {
@@ -97,7 +97,7 @@ export default class extends a {
97
97
  return e;
98
98
  })(this)).prefixPM, delete (u = {
99
99
  ...s
100
- }).keyValueMap, delete s.posMap, s.isOut = !0, d.info("Sending snapshot " + s.snapshotNum)),
100
+ }).keyValueMap, delete s.posMap, s.isOut = !0, y.info("Sending snapshot " + s.snapshotNum)),
101
101
  this.postParent("onSnapshotSavedChangeId", t, u);
102
102
  }
103
103
  }
@@ -114,23 +114,23 @@ function h(a, s, e, t) {
114
114
  ...i
115
115
  };
116
116
  }
117
- let u = a.length, d;
117
+ let u = a.length, y;
118
118
  if (0 < u) {
119
- var y, S = e.keyToSnapshotMap, {
119
+ var d, S = e.keyToSnapshotMap, {
120
120
  keyValueMap: v,
121
121
  info: o,
122
122
  snapshotNum: m
123
- } = d = e.getMaxCombinedSnapshot(a);
124
- for (y of a) if (d !== y) {
123
+ } = y = e.getMaxCombinedSnapshot(a);
124
+ for (d of a) if (y !== d) {
125
125
  var g, {
126
126
  keyValueMap: f,
127
127
  snapshotNum: M,
128
128
  info: V
129
- } = y;
130
- for (g in f) v[g] = f[g], S[g] = d;
131
- e.delSnapshot(y), t.push([ M, V.verList[0] ]);
129
+ } = d;
130
+ for (g in f) v[g] = f[g], S[g] = y;
131
+ e.delSnapshot(d), t.push([ M, V.verList[0] ]);
132
132
  }
133
- p.push(e.saveKeyValueMap(d)), h.push([ m, o.pMVersion ]), r.push(m, o.vLVersion),
133
+ p.push(e.saveKeyValueMap(y)), h.push([ m, o.pMVersion ]), r.push(m, o.vLVersion),
134
134
  n[m] = {
135
135
  ...o
136
136
  };
@@ -152,7 +152,7 @@ function h(a, s, e, t) {
152
152
  snapshotNum: s,
153
153
  info: e
154
154
  } = s;
155
- return await a.saveSnapshotInfo(s, e), d.log("Created snapshot " + s), [ s, e.maxChangeId ];
155
+ return await a.saveSnapshotInfo(s, e), y.log("Created snapshot " + s), [ s, e.maxChangeId ];
156
156
  })(a, s));
157
157
  return [ t, o ];
158
158
  }