@gjermundgaraba/upup 0.4.0 → 0.5.0

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.
@@ -1,4 +1,4 @@
1
- import { n as reason, t as openFlags } from "./io-BGJ4Yp7u.mjs";
1
+ import { n as openFlags, r as reason } from "./io-ns6xhFdF.mjs";
2
2
  import path from "node:path";
3
3
  import { closeSync, fstatSync, openSync, readSync, readdirSync } from "node:fs";
4
4
  import { parentPort } from "node:worker_threads";
@@ -15,5 +15,9 @@ const reason = (cause) => {
15
15
  const code = cause instanceof Error && "code" in cause && Predicate.isString(cause.code) ? cause.code : void 0;
16
16
  return code === void 0 ? "I/O error" : reasons.get(code) ?? code;
17
17
  };
18
+ const byName = (left, right) => {
19
+ if (left.name < right.name) return -1;
20
+ return left.name > right.name ? 1 : 0;
21
+ };
18
22
  const openFlags = constants.O_RDONLY | constants.O_NONBLOCK | constants.O_NOFOLLOW;
19
- export { reason as n, openFlags as t };
23
+ export { openFlags as n, reason as r, byName as t };