@milaboratories/pl-drivers 1.3.5 → 1.3.6

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
@@ -4339,15 +4339,23 @@ async function un() {
4339
4339
  ];
4340
4340
  {
4341
4341
  const t = Z.parse(s).root.replaceAll(":\\", "");
4342
- return (await ct.promisify(dt)("wmic logicaldisk get name")).stdout.split(`\r
4342
+ try {
4343
+ return (await ct.promisify(dt)("wmic logicaldisk get name")).stdout.split(`\r
4343
4344
  `).filter((o) => o.includes(":")).map((o) => o.trim().replaceAll(":", "")).map((o) => {
4344
- const a = o == t;
4345
- return {
4346
- name: `local_disk_${o}`,
4347
- root: `${o}:\\`,
4348
- initialPath: a ? s : `${o}:\\`
4349
- };
4350
- });
4345
+ const a = o == t;
4346
+ return {
4347
+ name: `local_disk_${o}`,
4348
+ root: `${o}:\\`,
4349
+ initialPath: a ? s : `${o}:\\`
4350
+ };
4351
+ });
4352
+ } catch {
4353
+ return [{
4354
+ name: `local_disk_${t}`,
4355
+ root: `${t}:\\`,
4356
+ initialPath: s
4357
+ }];
4358
+ }
4351
4359
  }
4352
4360
  }
4353
4361
  class Me {