@shirudo/result 0.0.6 → 1.0.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/LICENSE +21 -0
- package/README.md +137 -296
- package/dist/collections.cjs +12 -0
- package/dist/collections.d.cts +3 -0
- package/dist/collections.d.mts +3 -0
- package/dist/collections.mjs +4 -0
- package/dist/errors-2WOswg7r.mjs +95 -0
- package/dist/errors-2WOswg7r.mjs.map +1 -0
- package/dist/errors-BFjY06EV.d.cts +55 -0
- package/dist/errors-BFjY06EV.d.cts.map +1 -0
- package/dist/errors-C5qGMRiU.d.mts +55 -0
- package/dist/errors-C5qGMRiU.d.mts.map +1 -0
- package/dist/errors-D2EMzJQl.cjs +209 -0
- package/dist/errors-D2EMzJQl.cjs.map +1 -0
- package/dist/errors.cjs +21 -0
- package/dist/errors.d.cts +2 -0
- package/dist/errors.d.mts +2 -0
- package/dist/errors.mjs +3 -0
- package/dist/flatten-B8bN6fiI.d.mts +71 -0
- package/dist/flatten-B8bN6fiI.d.mts.map +1 -0
- package/dist/flatten-C6Y9hx79.mjs +147 -0
- package/dist/flatten-C6Y9hx79.mjs.map +1 -0
- package/dist/flatten-DK7eJKPx.d.cts +71 -0
- package/dist/flatten-DK7eJKPx.d.cts.map +1 -0
- package/dist/flatten-Df9U40nO.cjs +182 -0
- package/dist/flatten-Df9U40nO.cjs.map +1 -0
- package/dist/index.cjs +113 -1018
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +12 -546
- package/dist/index.d.cts.map +1 -1
- package/dist/index.d.mts +12 -546
- package/dist/index.d.mts.map +1 -1
- package/dist/index.mjs +25 -935
- package/dist/index.mjs.map +1 -1
- package/dist/mapOrElse-B0_4r6Jn.mjs +96 -0
- package/dist/mapOrElse-B0_4r6Jn.mjs.map +1 -0
- package/dist/mapOrElse-B5gx9x2E.d.mts +64 -0
- package/dist/mapOrElse-B5gx9x2E.d.mts.map +1 -0
- package/dist/mapOrElse-DIe7LkYV.d.cts +64 -0
- package/dist/mapOrElse-DIe7LkYV.d.cts.map +1 -0
- package/dist/mapOrElse-H-GvAUka.cjs +137 -0
- package/dist/mapOrElse-H-GvAUka.cjs.map +1 -0
- package/dist/operators.cjs +33 -0
- package/dist/operators.d.cts +3 -0
- package/dist/operators.d.mts +3 -0
- package/dist/operators.mjs +4 -0
- package/dist/result-CY-KIivk.cjs +1100 -0
- package/dist/result-CY-KIivk.cjs.map +1 -0
- package/dist/result-DKKaNdOx.mjs +861 -0
- package/dist/result-DKKaNdOx.mjs.map +1 -0
- package/dist/sequence-Br6tAIIu.d.cts +419 -0
- package/dist/sequence-Br6tAIIu.d.cts.map +1 -0
- package/dist/sequence-C0jlR3AY.d.mts +419 -0
- package/dist/sequence-C0jlR3AY.d.mts.map +1 -0
- package/package.json +44 -10
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@shirudo/result",
|
|
3
|
-
"version": "0.0
|
|
3
|
+
"version": "1.0.0",
|
|
4
4
|
"description": "Robust, type-safe error handling for TypeScript using the Result pattern (Monad)",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"private": false,
|
|
@@ -12,6 +12,21 @@
|
|
|
12
12
|
"types": "./dist/index.d.mts",
|
|
13
13
|
"import": "./dist/index.mjs",
|
|
14
14
|
"require": "./dist/index.cjs"
|
|
15
|
+
},
|
|
16
|
+
"./errors": {
|
|
17
|
+
"types": "./dist/errors.d.mts",
|
|
18
|
+
"import": "./dist/errors.mjs",
|
|
19
|
+
"require": "./dist/errors.cjs"
|
|
20
|
+
},
|
|
21
|
+
"./operators": {
|
|
22
|
+
"types": "./dist/operators.d.mts",
|
|
23
|
+
"import": "./dist/operators.mjs",
|
|
24
|
+
"require": "./dist/operators.cjs"
|
|
25
|
+
},
|
|
26
|
+
"./collections": {
|
|
27
|
+
"types": "./dist/collections.d.mts",
|
|
28
|
+
"import": "./dist/collections.mjs",
|
|
29
|
+
"require": "./dist/collections.cjs"
|
|
15
30
|
}
|
|
16
31
|
},
|
|
17
32
|
"files": [
|
|
@@ -32,27 +47,46 @@
|
|
|
32
47
|
],
|
|
33
48
|
"author": "shirudo",
|
|
34
49
|
"license": "MIT",
|
|
50
|
+
"repository": {
|
|
51
|
+
"type": "git",
|
|
52
|
+
"url": "git+https://github.com/shi-rudo/result-ts.git"
|
|
53
|
+
},
|
|
54
|
+
"bugs": {
|
|
55
|
+
"url": "https://github.com/shi-rudo/result-ts/issues"
|
|
56
|
+
},
|
|
57
|
+
"homepage": "https://github.com/shi-rudo/result-ts#readme",
|
|
58
|
+
"sideEffects": false,
|
|
35
59
|
"engines": {
|
|
36
60
|
"node": ">=20"
|
|
37
61
|
},
|
|
38
62
|
"publishConfig": {
|
|
39
63
|
"access": "public"
|
|
40
64
|
},
|
|
41
|
-
"scripts": {
|
|
42
|
-
"typecheck": "tsc --noEmit --emitDeclarationOnly false",
|
|
43
|
-
"lint": "tsc --noEmit --emitDeclarationOnly false",
|
|
44
|
-
"test": "vitest",
|
|
45
|
-
"test:coverage": "vitest run --coverage",
|
|
46
|
-
"prebuild": "pnpm lint && pnpm test run",
|
|
47
|
-
"build": "tsdown",
|
|
48
|
-
"prepublishOnly": "pnpm build"
|
|
49
|
-
},
|
|
50
65
|
"devDependencies": {
|
|
51
66
|
"@types/node": "^25.0.2",
|
|
52
67
|
"@vitest/coverage-v8": "^4.0.15",
|
|
68
|
+
"fast-check": "^4.8.0",
|
|
53
69
|
"tsdown": "^0.17.4",
|
|
54
70
|
"tsx": "^4.21.0",
|
|
55
71
|
"typescript": "^5.7.3",
|
|
72
|
+
"vitepress": "^1.6.4",
|
|
56
73
|
"vitest": "^4.0.15"
|
|
74
|
+
},
|
|
75
|
+
"scripts": {
|
|
76
|
+
"typecheck": "tsc --noEmit --emitDeclarationOnly false",
|
|
77
|
+
"test:types": "tsc -p tsconfig.type-tests.json --noEmit --emitDeclarationOnly false",
|
|
78
|
+
"lint": "tsc --noEmit --emitDeclarationOnly false",
|
|
79
|
+
"test": "vitest",
|
|
80
|
+
"test:coverage": "vitest run --coverage --coverage.reporter=text --coverage.reporter=json --coverage.reporter=lcov",
|
|
81
|
+
"test:edge": "node scripts/check-edge-runtime.mjs",
|
|
82
|
+
"check": "pnpm typecheck && pnpm test:types && pnpm test run && pnpm docs:check && pnpm docs:build && pnpm build && pnpm test:edge && pnpm test:exports",
|
|
83
|
+
"check:clean": "git diff --exit-code && git diff --cached --exit-code",
|
|
84
|
+
"docs:dev": "vitepress dev docs",
|
|
85
|
+
"docs:check": "node scripts/check-docs-examples.mjs",
|
|
86
|
+
"docs:build": "vitepress build docs",
|
|
87
|
+
"docs:preview": "vitepress preview docs",
|
|
88
|
+
"prebuild": "pnpm lint && pnpm test:types && pnpm test run",
|
|
89
|
+
"build": "tsdown",
|
|
90
|
+
"test:exports": "node scripts/check-package-exports.mjs"
|
|
57
91
|
}
|
|
58
92
|
}
|