@milaboratories/pl-middle-layer 1.27.0 → 1.27.1
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.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +36 -24
- package/dist/index.mjs.map +1 -1
- package/dist/pool/driver.d.ts.map +1 -1
- package/package.json +9 -9
- package/src/pool/driver.ts +36 -24
package/dist/index.mjs
CHANGED
|
@@ -4540,37 +4540,49 @@ class fl {
|
|
|
4540
4540
|
for (const l of pn(a.data))
|
|
4541
4541
|
this.blobIdToResource.set(Nr(l), l);
|
|
4542
4542
|
const i = () => {
|
|
4543
|
-
|
|
4544
|
-
|
|
4545
|
-
|
|
4546
|
-
|
|
4547
|
-
|
|
4548
|
-
|
|
4543
|
+
try {
|
|
4544
|
+
if (te().usePFrameRs) {
|
|
4545
|
+
const a = new po(te().logPFrameRequests ? n : void 0);
|
|
4546
|
+
for (const l of o)
|
|
4547
|
+
a.addColumnSpec(l.id, l.spec);
|
|
4548
|
+
return a;
|
|
4549
|
+
} else {
|
|
4550
|
+
const a = te().logPFrameRequests ? new Ve(n) : new Ve();
|
|
4551
|
+
for (const l of o)
|
|
4552
|
+
try {
|
|
4553
|
+
a.addColumnSpec(l.id, l.spec);
|
|
4554
|
+
} catch (u) {
|
|
4555
|
+
throw new Error(
|
|
4556
|
+
`Adding column ${l.id} to PFrame failed: ${u}; Spec: ${JSON.stringify(l.spec)}.`
|
|
4557
|
+
);
|
|
4558
|
+
}
|
|
4559
|
+
return a;
|
|
4560
|
+
}
|
|
4561
|
+
} catch (a) {
|
|
4562
|
+
throw new Error(
|
|
4563
|
+
`Spec PFrame creation failed, columns: ${JSON.stringify(o)}, error: ${a}`
|
|
4564
|
+
);
|
|
4565
|
+
}
|
|
4566
|
+
}, c = () => {
|
|
4567
|
+
try {
|
|
4549
4568
|
const a = te().logPFrameRequests ? new Ve(n) : new Ve();
|
|
4550
|
-
|
|
4569
|
+
a.setDataSource(this);
|
|
4570
|
+
for (const l of o) {
|
|
4571
|
+
const u = hn(l.data, Nr);
|
|
4551
4572
|
try {
|
|
4552
|
-
a.addColumnSpec(l.id, l.spec);
|
|
4553
|
-
} catch (
|
|
4573
|
+
a.addColumnSpec(l.id, l.spec), a.setColumnData(l.id, u);
|
|
4574
|
+
} catch (d) {
|
|
4554
4575
|
throw new Error(
|
|
4555
|
-
`Adding column ${l.id} to PFrame failed: ${
|
|
4576
|
+
`Adding column ${l.id} to PFrame failed: ${d}; Spec: ${JSON.stringify(l.spec)}, DataInfo: ${JSON.stringify(u)}.`
|
|
4556
4577
|
);
|
|
4557
4578
|
}
|
|
4558
|
-
return a;
|
|
4559
|
-
}
|
|
4560
|
-
}, c = () => {
|
|
4561
|
-
const a = te().logPFrameRequests ? new Ve(n) : new Ve();
|
|
4562
|
-
a.setDataSource(this);
|
|
4563
|
-
for (const l of o) {
|
|
4564
|
-
const u = hn(l.data, Nr);
|
|
4565
|
-
try {
|
|
4566
|
-
a.addColumnSpec(l.id, l.spec), a.setColumnData(l.id, u);
|
|
4567
|
-
} catch (d) {
|
|
4568
|
-
throw new Error(
|
|
4569
|
-
`Adding column ${l.id} to PFrame failed: ${d}; Spec: ${JSON.stringify(l.spec)}, DataInfo: ${JSON.stringify(u)}.`
|
|
4570
|
-
);
|
|
4571
4579
|
}
|
|
4580
|
+
return a;
|
|
4581
|
+
} catch (a) {
|
|
4582
|
+
throw new Error(
|
|
4583
|
+
`Data PFrame creation failed, columns: ${JSON.stringify(o)}, error: ${a}`
|
|
4584
|
+
);
|
|
4572
4585
|
}
|
|
4573
|
-
return a;
|
|
4574
4586
|
};
|
|
4575
4587
|
this.specPFrame = i(), this.createDataPFrame = c;
|
|
4576
4588
|
}
|