functype-os 2.2.0 → 2.2.2

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/README.md +3 -1
  2. package/package.json +2 -2
package/README.md CHANGED
@@ -119,7 +119,7 @@ Discriminated union error types for exhaustive matching.
119
119
  import type { OsError } from "functype-os"
120
120
  import { EnvError, PathError, FsError, ConfigError } from "functype-os"
121
121
 
122
- const handleError = (error: OsError) => {
122
+ const handleError = (error: OsError): string => {
123
123
  switch (error._tag) {
124
124
  case "EnvError":
125
125
  return `Missing env var: ${error.variable}`
@@ -129,6 +129,8 @@ const handleError = (error: OsError) => {
129
129
  return `FS error: ${error.operation} on ${error.path}`
130
130
  case "ConfigError":
131
131
  return `No config found in: ${error.candidates.join(", ")}`
132
+ case "ProcessError":
133
+ return `Command failed: ${error.command}`
132
134
  }
133
135
  }
134
136
  ```
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "functype-os",
3
- "version": "2.2.0",
3
+ "version": "2.2.2",
4
4
  "description": "Functional OS utilities using functype data structures — env vars, path expansion, file ops, platform detection",
5
5
  "keywords": [
6
6
  "functype",
@@ -28,7 +28,7 @@
28
28
  "devDependencies": {
29
29
  "@types/node": "^24.19.2",
30
30
  "eslint-config-prettier": "^10.1.8",
31
- "functype": "^2.2.0",
31
+ "functype": "^2.2.2",
32
32
  "ts-builds": "^5.0.0",
33
33
  "tsdown": "^0.23.7",
34
34
  "vitest": "^5.1.0"