@zipbul/cors 0.0.1 → 0.0.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.
package/README.ko.md CHANGED
@@ -2,6 +2,9 @@
2
2
 
3
3
  [English](./README.md) | **한국어**
4
4
 
5
+ [![npm](https://img.shields.io/npm/v/@zipbul/cors)](https://www.npmjs.com/package/@zipbul/cors)
6
+ ![coverage](https://img.shields.io/endpoint?url=https://gist.githubusercontent.com/parkrevil/3965fb9d1fe2d6fc5c321cb38d88c823/raw/cors-coverage.json)
7
+
5
8
  프레임워크에 종속되지 않는 CORS 처리 라이브러리.
6
9
  응답을 직접 생성하지 않고, **판별 유니온(discriminated union)** 결과를 반환하여 호출자가 응답 방식을 완전히 제어할 수 있도록 설계되었습니다.
7
10
 
package/README.md CHANGED
@@ -2,6 +2,9 @@
2
2
 
3
3
  **English** | [한국어](./README.ko.md)
4
4
 
5
+ [![npm](https://img.shields.io/npm/v/@zipbul/cors)](https://www.npmjs.com/package/@zipbul/cors)
6
+ ![coverage](https://img.shields.io/endpoint?url=https://gist.githubusercontent.com/parkrevil/3965fb9d1fe2d6fc5c321cb38d88c823/raw/cors-coverage.json)
7
+
5
8
  A framework-agnostic CORS handling library.
6
9
  Instead of generating responses directly, it returns a **discriminated union** result, giving the caller full control over the response.
7
10
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zipbul/cors",
3
- "version": "0.0.1",
3
+ "version": "0.0.2",
4
4
  "description": "Framework-agnostic CORS library for standard Web APIs (Request/Response)",
5
5
  "license": "MIT",
6
6
  "author": "Junhyung Park (https://github.com/parkrevil)",
@@ -11,7 +11,16 @@
11
11
  },
12
12
  "bugs": "https://github.com/zipbul/toolkit/issues",
13
13
  "homepage": "https://github.com/zipbul/toolkit/tree/main/packages/cors#readme",
14
- "keywords": ["cors", "http", "fetch", "web-api", "bun", "middleware", "typescript", "zipbul"],
14
+ "keywords": [
15
+ "cors",
16
+ "http",
17
+ "fetch",
18
+ "web-api",
19
+ "bun",
20
+ "middleware",
21
+ "typescript",
22
+ "zipbul"
23
+ ],
15
24
  "engines": {
16
25
  "bun": ">=1.0.0"
17
26
  },
@@ -24,7 +33,9 @@
24
33
  "import": "./dist/index.js"
25
34
  }
26
35
  },
27
- "files": ["dist"],
36
+ "files": [
37
+ "dist"
38
+ ],
28
39
  "scripts": {
29
40
  "build": "bun build index.ts --outdir dist --target bun --format esm --packages external --sourcemap=linked && tsc -p tsconfig.build.json",
30
41
  "test": "bun test",