@zipbul/result 0.1.4 → 0.1.5
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/README.ko.md +11 -23
- package/README.md +11 -23
- package/package.json +10 -1
package/README.ko.md
CHANGED
|
@@ -426,35 +426,23 @@ Bun.serve({
|
|
|
426
426
|
|
|
427
427
|
</details>
|
|
428
428
|
|
|
429
|
-
<
|
|
430
|
-
<summary><b>@zipbul/cors와 함께</b></summary>
|
|
431
|
-
|
|
432
|
-
```typescript
|
|
433
|
-
import { Cors, CorsAction } from '@zipbul/cors';
|
|
434
|
-
import { isErr } from '@zipbul/result';
|
|
429
|
+
<br>
|
|
435
430
|
|
|
436
|
-
|
|
437
|
-
origin: 'https://app.example.com',
|
|
438
|
-
credentials: true,
|
|
439
|
-
});
|
|
431
|
+
## 📤 내보내기
|
|
440
432
|
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
}
|
|
445
|
-
|
|
446
|
-
const cors = corsResult;
|
|
433
|
+
```typescript
|
|
434
|
+
// 핵심
|
|
435
|
+
export { err } from '@zipbul/result';
|
|
436
|
+
export { isErr } from '@zipbul/result';
|
|
437
|
+
export { safe } from '@zipbul/result';
|
|
447
438
|
|
|
448
|
-
//
|
|
449
|
-
|
|
439
|
+
// 타입
|
|
440
|
+
export type { Result, ResultAsync, Err } from '@zipbul/result';
|
|
450
441
|
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
}
|
|
442
|
+
// 마커 키
|
|
443
|
+
export { DEFAULT_MARKER_KEY, getMarkerKey, setMarkerKey } from '@zipbul/result';
|
|
454
444
|
```
|
|
455
445
|
|
|
456
|
-
</details>
|
|
457
|
-
|
|
458
446
|
<br>
|
|
459
447
|
|
|
460
448
|
## 📄 라이선스
|
package/README.md
CHANGED
|
@@ -426,35 +426,23 @@ Bun.serve({
|
|
|
426
426
|
|
|
427
427
|
</details>
|
|
428
428
|
|
|
429
|
-
<
|
|
430
|
-
<summary><b>With @zipbul/cors</b></summary>
|
|
431
|
-
|
|
432
|
-
```typescript
|
|
433
|
-
import { Cors, CorsAction } from '@zipbul/cors';
|
|
434
|
-
import { isErr } from '@zipbul/result';
|
|
429
|
+
<br>
|
|
435
430
|
|
|
436
|
-
|
|
437
|
-
origin: 'https://app.example.com',
|
|
438
|
-
credentials: true,
|
|
439
|
-
});
|
|
431
|
+
## 📤 Exports
|
|
440
432
|
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
}
|
|
445
|
-
|
|
446
|
-
const cors = corsResult;
|
|
433
|
+
```typescript
|
|
434
|
+
// Core
|
|
435
|
+
export { err } from '@zipbul/result';
|
|
436
|
+
export { isErr } from '@zipbul/result';
|
|
437
|
+
export { safe } from '@zipbul/result';
|
|
447
438
|
|
|
448
|
-
//
|
|
449
|
-
|
|
439
|
+
// Types
|
|
440
|
+
export type { Result, ResultAsync, Err } from '@zipbul/result';
|
|
450
441
|
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
}
|
|
442
|
+
// Marker key
|
|
443
|
+
export { DEFAULT_MARKER_KEY, getMarkerKey, setMarkerKey } from '@zipbul/result';
|
|
454
444
|
```
|
|
455
445
|
|
|
456
|
-
</details>
|
|
457
|
-
|
|
458
446
|
<br>
|
|
459
447
|
|
|
460
448
|
## 📄 License
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zipbul/result",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.5",
|
|
4
4
|
"description": "Lightweight Result type for error handling without exceptions",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "Junhyung Park (https://github.com/parkrevil)",
|
|
@@ -13,8 +13,13 @@
|
|
|
13
13
|
"homepage": "https://github.com/zipbul/toolkit/tree/main/packages/result#readme",
|
|
14
14
|
"keywords": [
|
|
15
15
|
"result",
|
|
16
|
+
"result-type",
|
|
17
|
+
"error-handling",
|
|
16
18
|
"error",
|
|
17
19
|
"either",
|
|
20
|
+
"functional",
|
|
21
|
+
"no-exceptions",
|
|
22
|
+
"bun",
|
|
18
23
|
"typescript",
|
|
19
24
|
"zipbul"
|
|
20
25
|
],
|
|
@@ -33,6 +38,10 @@
|
|
|
33
38
|
"files": [
|
|
34
39
|
"dist"
|
|
35
40
|
],
|
|
41
|
+
"sideEffects": false,
|
|
42
|
+
"publishConfig": {
|
|
43
|
+
"provenance": true
|
|
44
|
+
},
|
|
36
45
|
"scripts": {
|
|
37
46
|
"build": "bun build index.ts --outdir dist --target bun --format esm --production --sourcemap=linked && tsc -p tsconfig.build.json",
|
|
38
47
|
"typecheck": "tsc --noEmit",
|