@zokugun/xtry 0.11.6 → 0.12.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.
package/package.json CHANGED
@@ -1,7 +1,6 @@
1
1
  {
2
2
  "name": "@zokugun/xtry",
3
- "description": "simple try/catch wrapper returning Result",
4
- "version": "0.11.6",
3
+ "version": "0.12.0",
5
4
  "author": {
6
5
  "name": "Baptiste Augrain",
7
6
  "email": "daiyam@zokugun.org"
@@ -36,6 +35,10 @@
36
35
  "./sync": {
37
36
  "import": "./lib/esm/sync.mjs",
38
37
  "require": "./lib/cjs/sync.cjs"
38
+ },
39
+ "./unwrap": {
40
+ "import": "./lib/esm/unwrap.mjs",
41
+ "require": "./lib/cjs/unwrap.cjs"
39
42
  }
40
43
  },
41
44
  "main": "lib/cjs/index.cjs",
@@ -56,22 +59,25 @@
56
59
  ],
57
60
  "sync": [
58
61
  "./lib/cjs/sync.d.cts"
62
+ ],
63
+ "unwrap": [
64
+ "./lib/cjs/unwrap.d.cts"
59
65
  ]
60
66
  }
61
67
  },
62
68
  "scripts": {
63
69
  "audit:fix": "npm audit fix --min-release-age=0",
64
- "build": "npm run clean && npm run build:lib",
65
- "build:lib": "tsc-leda generate",
70
+ "build": "npm run clean && npm run build:out",
71
+ "build:out": "tsc-leda generate",
66
72
  "build:package": "tsc-leda update-package && npm run lint:package",
67
73
  "ci:lint": "zizmor .",
68
74
  "ci:lint:fix": "zizmor . --fix=all",
69
75
  "clean": "rimraf .src .test lib",
70
76
  "compile:src": "tsc -p src",
71
77
  "compile:test": "tsc -p test",
72
- "lint": "xo",
78
+ "lint": "eslint",
73
79
  "lint:all": "npm audit && npm run lint:package && npm run ci:lint && npm run lint",
74
- "lint:fix": "xo --fix",
80
+ "lint:fix": "eslint --fix",
75
81
  "lint:package": "fixpack || true",
76
82
  "prepack": "npm run build",
77
83
  "prepare": "husky; npm run lint:package",
@@ -81,7 +87,7 @@
81
87
  "test:ui": "vitest --ui --coverage",
82
88
  "test:watch": "vitest",
83
89
  "update:artifacts": "artifact update",
84
- "update:ci": "PINACT_MIN_AGE=7 pinact run --update",
90
+ "update:ci": "pinact run -min-age 7 -update",
85
91
  "update:deps": "taze --all",
86
92
  "watch:build": "tsc-watch -p src --onSuccess 'npm run build'",
87
93
  "watch:src": "tsc-watch -p src",
@@ -92,29 +98,52 @@
92
98
  "@commitlint/cli": "20.5.3",
93
99
  "@commitlint/config-conventional": "20.5.3",
94
100
  "@types/fs-extra": "11.0.4",
95
- "@types/node": "20.19.39",
96
- "@vitest/coverage-v8": "4.1.5",
97
- "@vitest/ui": "4.1.5",
98
- "@zokugun/fs-extra-plus": "0.4.1",
99
- "@zokugun/tsc-leda": "0.4.1",
101
+ "@types/node": "20.19.43",
102
+ "@vitest/coverage-v8": "4.1.10",
103
+ "@vitest/ui": "4.1.10",
104
+ "@zokugun/eslint-config": "0.2.1",
105
+ "@zokugun/eslint-config-data": "0.2.1",
106
+ "@zokugun/eslint-config-glossary": "0.2.0",
107
+ "@zokugun/eslint-config-js": "0.2.1",
108
+ "@zokugun/eslint-config-md": "0.4.1",
109
+ "@zokugun/eslint-config-nodejs": "0.2.0",
110
+ "@zokugun/eslint-config-style": "0.3.1",
111
+ "@zokugun/eslint-config-test": "0.2.0",
112
+ "@zokugun/eslint-config-ts": "0.3.2",
113
+ "@zokugun/fs-extra-plus": "0.6.1",
114
+ "@zokugun/tsc-leda": "0.8.3",
115
+ "eslint": "10.8.1",
100
116
  "fixpack": "4.0.0",
101
- "fs-extra": "11.3.4",
117
+ "fs-extra": "11.3.5",
102
118
  "globby": "16.2.0",
103
119
  "husky": "9.1.7",
104
120
  "lint-staged": "16.4.0",
105
- "release-it": "20.0.1",
121
+ "release-it": "20.2.1",
106
122
  "rimraf": "6.1.3",
107
- "taze": "19.11.0",
108
- "tsc-watch": "7.2.0",
123
+ "taze": "19.16.0",
124
+ "tsc-watch": "7.2.1",
109
125
  "typescript": "5.9.3",
110
- "vitest": "4.1.5",
111
- "xo": "0.60.0"
126
+ "vitest": "4.1.10"
112
127
  },
113
128
  "overrides": {
114
- "ajv": {
115
- "fast-uri": "3.1.2"
129
+ "@inquirer/core": {
130
+ "mute-stream": "3.0.0"
131
+ },
132
+ "@octokit/request": {
133
+ "content-type": "2.1.0"
134
+ },
135
+ "release-it": {
136
+ "undici": "7.29.0"
137
+ },
138
+ "vite": {
139
+ "nanoid": "3.3.18"
116
140
  }
117
141
  },
142
+ "allowScripts": {
143
+ "@zokugun/cli-utils": true,
144
+ "fsevents": true,
145
+ "unrs-resolver": true
146
+ },
118
147
  "keywords": [
119
148
  "catch",
120
149
  "error",