@platforma-sdk/test 1.33.5 → 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.
Files changed (2) hide show
  1. package/dist/index.mjs +7 -7
  2. 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, Pl as w, field as g, toGlobalResourceId as v, initDriverKit as F, MiddleLayer as m, prepareTemplateSpec as T, loadTemplate as P, createRenderTemplate as A } from "@milaboratories/pl-middle-layer";
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 = w.createPlMap(n, k, e);
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(w.JsonObject, JSON.stringify(r));
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(w.EphStdMap), s = g(i.clientRoot, "templateTeste");
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: m.generateLocalSecret(),
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 m.init(o, e, {
204
+ const i = await w.init(o, e, {
205
205
  defaultTreeOptions: { pollingInterval: 250, stopPollingDelay: 500 },
206
206
  devBlockUpdateRecheckInterval: 300,
207
- localSecret: m.generateLocalSecret(),
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.5",
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
- "@platforma-sdk/model": "^1.33.2",
22
- "@milaboratories/pl-middle-layer": "^1.37.59",
23
- "@milaboratories/pl-tree": "^1.6.6",
24
- "@milaboratories/computable": "^2.4.10",
25
- "@milaboratories/pl-client": "^2.10.0",
26
- "@milaboratories/ts-helpers": "^1.3.1"
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": "^5.4.11",
31
+ "vite": "^6.3.5",
32
32
  "@milaboratories/platforma-build-configs": "1.0.3"
33
33
  },
34
34
  "scripts": {