@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
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"driver.d.ts","sourceRoot":"","sources":["../../src/pool/driver.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,4BAA4B,CAAC;AAEjE,OAAO,KAAK,EAAE,kBAAkB,EAAgB,MAAM,yBAAyB,CAAC;AAEhF,OAAO,KAAK,EAAE,aAAa,EAA2B,MAAM,4BAA4B,CAAC;AACzF,OAAO,KAAK,EACV,yBAAyB,EACzB,0BAA0B,EAC1B,kBAAkB,EAClB,mBAAmB,EAEnB,gBAAgB,EAChB,WAAW,EACX,YAAY,EACZ,SAAS,EACT,gBAAgB,EAChB,YAAY,EACZ,WAAW,EACX,YAAY,EACZ,UAAU,EACV,mBAAmB,EACnB,oBAAoB,EACpB,YAAY,IAAI,eAAe,EAC/B,OAAO,EACP,SAAS,EAET,SAAS,EAIT,aAAa,EAAE,MAAM,sBAAsB,CAAC;AAS9C,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,4BAA4B,CAAC;
|
|
1
|
+
{"version":3,"file":"driver.d.ts","sourceRoot":"","sources":["../../src/pool/driver.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,4BAA4B,CAAC;AAEjE,OAAO,KAAK,EAAE,kBAAkB,EAAgB,MAAM,yBAAyB,CAAC;AAEhF,OAAO,KAAK,EAAE,aAAa,EAA2B,MAAM,4BAA4B,CAAC;AACzF,OAAO,KAAK,EACV,yBAAyB,EACzB,0BAA0B,EAC1B,kBAAkB,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AyB,CAAC,SAAS,CAAC,GAC5C,OAAO,CAAC,0BAA0B,CAAC;IAiCzB,eAAe,CAC1B,MAAM,EAAE,YAAY,EACpB,OAAO,EAAE,mBAAmB,GAC3B,OAAO,CAAC,oBAAoB,CAAC;IAkBnB,QAAQ,CAAC,MAAM,EAAE,YAAY,GAAG,OAAO,CAAC,WAAW,CAAC;IAKpD,OAAO,CAAC,MAAM,EAAE,YAAY,GAAG,OAAO,CAAC,gBAAgB,EAAE,CAAC;IAK1D,OAAO,CAClB,MAAM,EAAE,YAAY,EACpB,aAAa,EAAE,MAAM,EAAE,EACvB,KAAK,CAAC,EAAE,UAAU,GACjB,OAAO,CAAC,YAAY,EAAE,CAAC;CAM3B"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@milaboratories/pl-middle-layer",
|
|
3
|
-
"version": "1.27.
|
|
3
|
+
"version": "1.27.1",
|
|
4
4
|
"description": "Pl Middle Layer",
|
|
5
5
|
"types": "./dist/index.d.ts",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
"license": "UNLICENSED",
|
|
21
21
|
"dependencies": {
|
|
22
22
|
"@milaboratories/pframes-node": "2.1.8",
|
|
23
|
-
"@milaboratories/pframes-rs-node": "1.0.
|
|
23
|
+
"@milaboratories/pframes-rs-node": "1.0.9",
|
|
24
24
|
"canonicalize": "^2.0.0",
|
|
25
25
|
"denque": "^2.1.0",
|
|
26
26
|
"lru-cache": "^11.0.2",
|
|
@@ -30,20 +30,20 @@
|
|
|
30
30
|
"yaml": "^2.6.1",
|
|
31
31
|
"zod": "~3.23.8",
|
|
32
32
|
"@milaboratories/pl-http": "^1.0.3",
|
|
33
|
-
"@milaboratories/computable": "^2.3.4",
|
|
34
33
|
"@milaboratories/resolve-helper": "^1.0.2",
|
|
35
34
|
"@platforma-sdk/block-tools": "^2.5.7",
|
|
36
35
|
"@milaboratories/pl-client": "^2.7.3",
|
|
36
|
+
"@milaboratories/computable": "^2.3.4",
|
|
37
37
|
"@milaboratories/pl-drivers": "^1.5.12",
|
|
38
|
+
"@milaboratories/pl-model-middle-layer": "^1.7.1",
|
|
38
39
|
"@milaboratories/pl-model-common": "^1.10.4",
|
|
39
|
-
"@milaboratories/pl-model-backend": "^1.0.1",
|
|
40
40
|
"@milaboratories/pl-tree": "^1.4.22",
|
|
41
|
+
"@milaboratories/pl-model-backend": "^1.0.1",
|
|
41
42
|
"@platforma-sdk/model": "^1.22.2",
|
|
42
|
-
"@milaboratories/pl-model-middle-layer": "^1.7.1",
|
|
43
43
|
"@milaboratories/ts-helpers": "^1.1.3",
|
|
44
|
-
"@
|
|
44
|
+
"@milaboratories/pl-deployments": "^1.1.0",
|
|
45
45
|
"@milaboratories/pl-config": "^1.4.0",
|
|
46
|
-
"@
|
|
46
|
+
"@platforma-sdk/workflow-tengo": "2.9.9"
|
|
47
47
|
},
|
|
48
48
|
"devDependencies": {
|
|
49
49
|
"semver": "^7.6.3",
|
|
@@ -55,8 +55,8 @@
|
|
|
55
55
|
"jest": "^29.7.0",
|
|
56
56
|
"@jest/globals": "^29.7.0",
|
|
57
57
|
"ts-jest": "^29.2.5",
|
|
58
|
-
"@milaboratories/
|
|
59
|
-
"@milaboratories/
|
|
58
|
+
"@milaboratories/eslint-config": "^1.0.1",
|
|
59
|
+
"@milaboratories/platforma-build-configs": "1.0.2"
|
|
60
60
|
},
|
|
61
61
|
"scripts": {
|
|
62
62
|
"type-check": "tsc --noEmit --composite false",
|
package/src/pool/driver.ts
CHANGED
|
@@ -124,44 +124,56 @@ class PFrameHolder implements PFrameInternal.PFrameDataSource, Disposable {
|
|
|
124
124
|
}
|
|
125
125
|
|
|
126
126
|
const createSpecPFrame = (): PFrameInternal.PFrameV2 => {
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
127
|
+
try {
|
|
128
|
+
if (getDebugFlags().usePFrameRs) {
|
|
129
|
+
const pFrame = new PFrameRs(getDebugFlags().logPFrameRequests ? logFunc : undefined);
|
|
130
|
+
for (const column of columns) {
|
|
131
|
+
pFrame.addColumnSpec(column.id, column.spec);
|
|
132
|
+
}
|
|
133
|
+
return pFrame;
|
|
134
|
+
} else {
|
|
135
|
+
const pFrame = getDebugFlags().logPFrameRequests ? new PFrame(logFunc) : new PFrame();
|
|
136
|
+
for (const column of columns) {
|
|
137
|
+
try {
|
|
138
|
+
pFrame.addColumnSpec(column.id, column.spec);
|
|
139
|
+
} catch (err: unknown) {
|
|
140
|
+
throw new Error(
|
|
141
|
+
`Adding column ${column.id} to PFrame failed: ${err as Error}; Spec: ${JSON.stringify(column.spec)}.`,
|
|
142
|
+
);
|
|
143
|
+
}
|
|
144
|
+
}
|
|
145
|
+
return pFrame;
|
|
131
146
|
}
|
|
132
|
-
|
|
133
|
-
|
|
147
|
+
} catch (err: unknown) {
|
|
148
|
+
throw new Error(
|
|
149
|
+
`Spec PFrame creation failed, columns: ${JSON.stringify(columns)}, error: ${err as Error}`,
|
|
150
|
+
);
|
|
151
|
+
}
|
|
152
|
+
};
|
|
153
|
+
|
|
154
|
+
const createDataPFrame = (): PFrameInternal.PFrameV2 => {
|
|
155
|
+
try {
|
|
134
156
|
const pFrame = getDebugFlags().logPFrameRequests ? new PFrame(logFunc) : new PFrame();
|
|
157
|
+
pFrame.setDataSource(this);
|
|
135
158
|
for (const column of columns) {
|
|
159
|
+
const dataInfo = mapBlobs(column.data, blobKey);
|
|
136
160
|
try {
|
|
137
161
|
pFrame.addColumnSpec(column.id, column.spec);
|
|
162
|
+
pFrame.setColumnData(column.id, dataInfo);
|
|
138
163
|
} catch (err: unknown) {
|
|
139
164
|
throw new Error(
|
|
140
|
-
`Adding column ${column.id} to PFrame failed: ${err as Error}; Spec: ${JSON.stringify(column.spec)}.`,
|
|
165
|
+
`Adding column ${column.id} to PFrame failed: ${err as Error}; Spec: ${JSON.stringify(column.spec)}, DataInfo: ${JSON.stringify(dataInfo)}.`,
|
|
141
166
|
);
|
|
142
167
|
}
|
|
143
168
|
}
|
|
144
169
|
return pFrame;
|
|
170
|
+
} catch (err: unknown) {
|
|
171
|
+
throw new Error(
|
|
172
|
+
`Data PFrame creation failed, columns: ${JSON.stringify(columns)}, error: ${err as Error}`,
|
|
173
|
+
);
|
|
145
174
|
}
|
|
146
175
|
};
|
|
147
176
|
|
|
148
|
-
const createDataPFrame = (): PFrameInternal.PFrameV2 => {
|
|
149
|
-
const pFrame = getDebugFlags().logPFrameRequests ? new PFrame(logFunc) : new PFrame();
|
|
150
|
-
pFrame.setDataSource(this);
|
|
151
|
-
for (const column of columns) {
|
|
152
|
-
const dataInfo = mapBlobs(column.data, blobKey);
|
|
153
|
-
try {
|
|
154
|
-
pFrame.addColumnSpec(column.id, column.spec);
|
|
155
|
-
pFrame.setColumnData(column.id, dataInfo);
|
|
156
|
-
} catch (err: unknown) {
|
|
157
|
-
throw new Error(
|
|
158
|
-
`Adding column ${column.id} to PFrame failed: ${err as Error}; Spec: ${JSON.stringify(column.spec)}, DataInfo: ${JSON.stringify(dataInfo)}.`,
|
|
159
|
-
);
|
|
160
|
-
}
|
|
161
|
-
}
|
|
162
|
-
return pFrame;
|
|
163
|
-
};
|
|
164
|
-
|
|
165
177
|
this.specPFrame = createSpecPFrame();
|
|
166
178
|
this.createDataPFrame = createDataPFrame;
|
|
167
179
|
}
|