@milaboratories/pl-middle-layer 1.26.6 → 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.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +3 -3
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +37 -24
- package/dist/index.mjs.map +1 -1
- package/dist/pool/driver.d.ts.map +1 -1
- package/package.json +10 -10
- package/src/index.ts +1 -0
- package/src/pool/driver.ts +36 -24
package/dist/index.mjs
CHANGED
|
@@ -30,6 +30,7 @@ import { mapValueInVOE as Br, executePSpecPredicate as Ps, mapPObjectData as ue,
|
|
|
30
30
|
export * from "@platforma-sdk/model";
|
|
31
31
|
import { AnyChannel as we, StableChannel as ae, InitialBlockSettings as Wt, blockPackIdToString as Fs } from "@milaboratories/pl-model-middle-layer";
|
|
32
32
|
export * from "@milaboratories/pl-model-middle-layer";
|
|
33
|
+
export * from "@milaboratories/pl-deployments";
|
|
33
34
|
import { request as ce, RetryAgent as Is } from "undici";
|
|
34
35
|
import { RegistryV1 as de, tryLoadPackDescription as vt, BlockPackMetaEmbedAbsoluteBytes as As, RegistryV2Reader as Ts, folderReaderByUrl as Ls, loadPackDescription as qt } from "@platforma-sdk/block-tools";
|
|
35
36
|
import X from "node:fs";
|
|
@@ -4539,37 +4540,49 @@ class fl {
|
|
|
4539
4540
|
for (const l of pn(a.data))
|
|
4540
4541
|
this.blobIdToResource.set(Nr(l), l);
|
|
4541
4542
|
const i = () => {
|
|
4542
|
-
|
|
4543
|
-
|
|
4544
|
-
|
|
4545
|
-
|
|
4546
|
-
|
|
4547
|
-
|
|
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 {
|
|
4548
4568
|
const a = te().logPFrameRequests ? new Ve(n) : new Ve();
|
|
4549
|
-
|
|
4569
|
+
a.setDataSource(this);
|
|
4570
|
+
for (const l of o) {
|
|
4571
|
+
const u = hn(l.data, Nr);
|
|
4550
4572
|
try {
|
|
4551
|
-
a.addColumnSpec(l.id, l.spec);
|
|
4552
|
-
} catch (
|
|
4573
|
+
a.addColumnSpec(l.id, l.spec), a.setColumnData(l.id, u);
|
|
4574
|
+
} catch (d) {
|
|
4553
4575
|
throw new Error(
|
|
4554
|
-
`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)}.`
|
|
4555
4577
|
);
|
|
4556
4578
|
}
|
|
4557
|
-
return a;
|
|
4558
|
-
}
|
|
4559
|
-
}, c = () => {
|
|
4560
|
-
const a = te().logPFrameRequests ? new Ve(n) : new Ve();
|
|
4561
|
-
a.setDataSource(this);
|
|
4562
|
-
for (const l of o) {
|
|
4563
|
-
const u = hn(l.data, Nr);
|
|
4564
|
-
try {
|
|
4565
|
-
a.addColumnSpec(l.id, l.spec), a.setColumnData(l.id, u);
|
|
4566
|
-
} catch (d) {
|
|
4567
|
-
throw new Error(
|
|
4568
|
-
`Adding column ${l.id} to PFrame failed: ${d}; Spec: ${JSON.stringify(l.spec)}, DataInfo: ${JSON.stringify(u)}.`
|
|
4569
|
-
);
|
|
4570
4579
|
}
|
|
4580
|
+
return a;
|
|
4581
|
+
} catch (a) {
|
|
4582
|
+
throw new Error(
|
|
4583
|
+
`Data PFrame creation failed, columns: ${JSON.stringify(o)}, error: ${a}`
|
|
4584
|
+
);
|
|
4571
4585
|
}
|
|
4572
|
-
return a;
|
|
4573
4586
|
};
|
|
4574
4587
|
this.specPFrame = i(), this.createDataPFrame = c;
|
|
4575
4588
|
}
|