@platforma-sdk/test 1.33.4 → 1.33.8
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.mjs +7 -7
- package/package.json +8 -8
package/dist/index.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { TestHelpers as f, resourceIdToString as I, NullResourceId as D,
|
|
1
|
+
import { TestHelpers as f, resourceIdToString as I, NullResourceId as D, initDriverKit as F, MiddleLayer as w, Pl as m, field as g, toGlobalResourceId as v, prepareTemplateSpec as T, loadTemplate as P, createRenderTemplate as A } from "@milaboratories/pl-middle-layer";
|
|
2
2
|
import * as U from "@milaboratories/pl-middle-layer";
|
|
3
3
|
import { SynchronizedTreeState as O } from "@milaboratories/pl-tree";
|
|
4
4
|
import { randomUUID as p } from "node:crypto";
|
|
@@ -97,7 +97,7 @@ class x {
|
|
|
97
97
|
e,
|
|
98
98
|
S,
|
|
99
99
|
t
|
|
100
|
-
), h =
|
|
100
|
+
), h = m.createPlMap(n, k, e);
|
|
101
101
|
n.createField(g(this.resultRootRid, i), "Dynamic", h);
|
|
102
102
|
const b = await v(h);
|
|
103
103
|
return await n.commit(), {
|
|
@@ -107,7 +107,7 @@ class x {
|
|
|
107
107
|
return await this.resultRootTree.refreshState(), new L(this.resultRootTree.entry(s));
|
|
108
108
|
}
|
|
109
109
|
createObject(e, r) {
|
|
110
|
-
return e.createValue(
|
|
110
|
+
return e.createValue(m.JsonObject, JSON.stringify(r));
|
|
111
111
|
}
|
|
112
112
|
async renderWorkflow(e, r, t, a = {}) {
|
|
113
113
|
const i = a.blockId ?? p(), l = await this.renderTemplate(
|
|
@@ -132,14 +132,14 @@ class x {
|
|
|
132
132
|
const J = R.extend({
|
|
133
133
|
helper: async ({ pl: o, createTree: e }, r) => {
|
|
134
134
|
const t = await o.withWriteTx("CreatingHelpers", async (i) => {
|
|
135
|
-
const l = i.createEphemeral(
|
|
135
|
+
const l = i.createEphemeral(m.EphStdMap), s = g(i.clientRoot, "templateTeste");
|
|
136
136
|
return i.createField(s, "Dynamic", l), await i.commit(), await v(l);
|
|
137
137
|
}), a = await e(t);
|
|
138
138
|
await r(new x(o, t, a));
|
|
139
139
|
},
|
|
140
140
|
driverKit: async ({ pl: o, tmpFolder: e }, r) => {
|
|
141
141
|
const t = await F(o, e, {
|
|
142
|
-
localSecret:
|
|
142
|
+
localSecret: w.generateLocalSecret(),
|
|
143
143
|
localProjections: [],
|
|
144
144
|
// TODO must be different with local pl
|
|
145
145
|
openFileDialogCallback: () => {
|
|
@@ -201,10 +201,10 @@ const q = R.extend({
|
|
|
201
201
|
ml: async ({ pl: o, tmpFolder: e }, r) => {
|
|
202
202
|
const t = u.join(e, "frontend"), a = u.join(e, "download");
|
|
203
203
|
await d.mkdir(t, { recursive: !0 }), await d.mkdir(a, { recursive: !0 });
|
|
204
|
-
const i = await
|
|
204
|
+
const i = await w.init(o, e, {
|
|
205
205
|
defaultTreeOptions: { pollingInterval: 250, stopPollingDelay: 500 },
|
|
206
206
|
devBlockUpdateRecheckInterval: 300,
|
|
207
|
-
localSecret:
|
|
207
|
+
localSecret: w.generateLocalSecret(),
|
|
208
208
|
localProjections: [],
|
|
209
209
|
// TODO must be different with local pl
|
|
210
210
|
openFileDialogCallback: () => {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@platforma-sdk/test",
|
|
3
|
-
"version": "1.33.
|
|
3
|
+
"version": "1.33.8",
|
|
4
4
|
"description": "Typescript Block Test Helpers",
|
|
5
5
|
"types": "./dist/index.d.ts",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -18,17 +18,17 @@
|
|
|
18
18
|
"license": "UNLICENSED",
|
|
19
19
|
"dependencies": {
|
|
20
20
|
"vitest": "^2.1.9",
|
|
21
|
-
"@
|
|
22
|
-
"@milaboratories/
|
|
23
|
-
"@
|
|
24
|
-
"@milaboratories/pl-
|
|
25
|
-
"@milaboratories/
|
|
26
|
-
"@milaboratories/
|
|
21
|
+
"@platforma-sdk/model": "^1.33.8",
|
|
22
|
+
"@milaboratories/pl-tree": "^1.6.7",
|
|
23
|
+
"@milaboratories/ts-helpers": "^1.3.2",
|
|
24
|
+
"@milaboratories/pl-client": "^2.10.1",
|
|
25
|
+
"@milaboratories/pl-middle-layer": "^1.37.60",
|
|
26
|
+
"@milaboratories/computable": "^2.4.11"
|
|
27
27
|
},
|
|
28
28
|
"devDependencies": {
|
|
29
29
|
"@types/node": "~20.16.15",
|
|
30
30
|
"typescript": "~5.5.4",
|
|
31
|
-
"vite": "^
|
|
31
|
+
"vite": "^6.3.5",
|
|
32
32
|
"@milaboratories/platforma-build-configs": "1.0.3"
|
|
33
33
|
},
|
|
34
34
|
"scripts": {
|