@milaboratories/pl-middle-layer 1.37.94 → 1.37.96

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 CHANGED
@@ -6041,16 +6041,16 @@ async function cl(s, e, t, r) {
6041
6041
  ve["check_network.create_workdir_from_storage"],
6042
6042
  !0,
6043
6043
  (d) => ({ file: d.createValue(L.JsonObject, JSON.stringify(a.file.handle)) }),
6044
- ["workdir"]
6044
+ ["workdirTypeName"]
6045
6045
  );
6046
6046
  try {
6047
- const d = await fe(e, u.workdir);
6048
- d.type.name.startsWith("WorkingDirectory") ? l[c.name] = {
6047
+ const d = JSON.parse(Buffer.from((await fe(e, u.workdirTypeName)).data).toString());
6048
+ d != null && d.startsWith("WorkingDirectory") ? l[c.name] = {
6049
6049
  status: "ok",
6050
6050
  message: `Workdir creation succeeded, size of file: ${(n = a.file) == null ? void 0 : n.size}, checked ${a.nCheckedFiles} files, did ${a.nLsRequests} ls requests`
6051
6051
  } : l[c.name] = {
6052
6052
  status: "failed",
6053
- message: `Workdir creation failed: ${d.type.name}, size of file: ${(o = a.file) == null ? void 0 : o.size}, checked ${a.nCheckedFiles} files, did ${a.nLsRequests} ls requests`
6053
+ message: `Workdir creation failed: ${d}, size of file: ${(o = a.file) == null ? void 0 : o.size}, checked ${a.nCheckedFiles} files, did ${a.nLsRequests} ls requests`
6054
6054
  };
6055
6055
  } finally {
6056
6056
  await Ie(e, Object.values(u));