datafolder 1.0.26 → 1.0.27
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/package.json +1 -1
- package/src/QyBatch.js +18 -15
package/package.json
CHANGED
package/src/QyBatch.js
CHANGED
|
@@ -12,7 +12,7 @@ import {
|
|
|
12
12
|
ensurePropNamePathList as n,
|
|
13
13
|
isString as l,
|
|
14
14
|
SpecialOperators as e,
|
|
15
|
-
getSuffix as
|
|
15
|
+
getSuffix as g,
|
|
16
16
|
SpecialFilePaths as t,
|
|
17
17
|
toSingleName as p,
|
|
18
18
|
isSimpleType as c,
|
|
@@ -20,7 +20,7 @@ import {
|
|
|
20
20
|
isNumber as a,
|
|
21
21
|
getNowRounded as d,
|
|
22
22
|
isDate as u,
|
|
23
|
-
isArray as
|
|
23
|
+
isArray as f,
|
|
24
24
|
isFloat32Array as C
|
|
25
25
|
} from "./QyUtils.js";
|
|
26
26
|
|
|
@@ -141,7 +141,7 @@ class Q extends D {
|
|
|
141
141
|
});
|
|
142
142
|
}
|
|
143
143
|
createIndex(e, t, i = this.currentDir) {
|
|
144
|
-
l(e) && (e = o(e)),
|
|
144
|
+
l(e) && (e = o(e)), f(t) || (t = [ t ]);
|
|
145
145
|
e = this.qyCache.getOrCreateDir(e, i);
|
|
146
146
|
return q(this, this._action_createIndex, {
|
|
147
147
|
item: e,
|
|
@@ -246,7 +246,7 @@ class Q extends D {
|
|
|
246
246
|
syncList: l
|
|
247
247
|
} = this, c = i.length;
|
|
248
248
|
if (0 == c) return n.decreaseChangeId(), 0;
|
|
249
|
-
var h =
|
|
249
|
+
var h = g(c), o = o.takeCmdArgAsListObj();
|
|
250
250
|
let d;
|
|
251
251
|
0 < r && (r = i.map(({
|
|
252
252
|
logStr: e
|
|
@@ -269,7 +269,7 @@ ${r}
|
|
|
269
269
|
for ({
|
|
270
270
|
item: m,
|
|
271
271
|
delta: u
|
|
272
|
-
} of h) for (var
|
|
272
|
+
} of h) for (var f of m.triggerNodes) f.checkTrigger(m, u);
|
|
273
273
|
return e ? c : t;
|
|
274
274
|
}
|
|
275
275
|
getTopHistoryCmdObj() {
|
|
@@ -344,17 +344,17 @@ ${r}
|
|
|
344
344
|
var h, d = this, m = t, u = r, i = x(s);
|
|
345
345
|
let e;
|
|
346
346
|
for (h of i) {
|
|
347
|
-
var
|
|
348
|
-
if (!
|
|
347
|
+
var f = u.searchOrCreateSubdir(h);
|
|
348
|
+
if (!f.created) {
|
|
349
349
|
d._action_createDir({
|
|
350
|
-
item:
|
|
350
|
+
item: f
|
|
351
351
|
});
|
|
352
|
-
for (var
|
|
352
|
+
for (var g of e = e || m.fileList) {
|
|
353
353
|
var {
|
|
354
|
-
fileContent:
|
|
354
|
+
fileContent: g,
|
|
355
355
|
name: C
|
|
356
|
-
} =
|
|
357
|
-
null !=
|
|
356
|
+
} = g;
|
|
357
|
+
null != g && E(d, f, h, C, void 0, g);
|
|
358
358
|
}
|
|
359
359
|
}
|
|
360
360
|
}
|
|
@@ -491,10 +491,13 @@ ${r}
|
|
|
491
491
|
t.created || this._action_createFile({
|
|
492
492
|
item: t
|
|
493
493
|
});
|
|
494
|
-
var
|
|
494
|
+
var {
|
|
495
|
+
fileContentKey: r,
|
|
496
|
+
fileContent: n
|
|
497
|
+
} = t;
|
|
495
498
|
return I(this, t, _.M, r, {
|
|
496
499
|
$rpl: i
|
|
497
|
-
}), N(this, e), t.fileContent = i, !0;
|
|
500
|
+
}), N(this, e), t.fileContent = i, P(this, t, n, i, i), !0;
|
|
498
501
|
}
|
|
499
502
|
_action_insert(e) {
|
|
500
503
|
e.actionName = "insert";
|
|
@@ -608,7 +611,7 @@ ${r}
|
|
|
608
611
|
expireInfoObj: i,
|
|
609
612
|
infoFileOnly: r
|
|
610
613
|
} = e, n = this.qyCache, a = n.getExpireInfoFile(e.fullPathHash, "c");
|
|
611
|
-
return !!a && (i =
|
|
614
|
+
return !!a && (i = f(i) ? Object.fromEntries(i.map(e => [ e, O ])) : j(i, e => e ? O : void 0),
|
|
612
615
|
(t = this._action_insert({
|
|
613
616
|
item: a,
|
|
614
617
|
content: i
|