File tree Expand file tree Collapse file tree 2 files changed +10
-6
lines changed Expand file tree Collapse file tree 2 files changed +10
-6
lines changed Original file line number Diff line number Diff line change 1
1
/**
2
2
* fetch-proxy - A fetch-based HTTP proxy library optimized for Bun runtime
3
3
*
4
- * Main entry point for the library
4
+ * Development entry point - re-exports from src for examples and testing
5
+ * Production builds should use the transpiled lib/ version
5
6
*/
6
7
7
8
export { default , FetchProxy } from "./src/index.ts"
@@ -11,5 +12,9 @@ export type {
11
12
ProxyRequestOptions ,
12
13
BeforeRequestHook ,
13
14
AfterResponseHook ,
15
+ BeforeCircuitBreakerHook ,
16
+ AfterCircuitBreakerHook ,
14
17
ErrorHook ,
18
+ CircuitState ,
19
+ CircuitBreakerResult ,
15
20
} from "./src/index.ts"
Original file line number Diff line number Diff line change 2
2
"name" : " fetch-proxy" ,
3
3
"version" : " 1.0.0" ,
4
4
"description" : " A fetch-based HTTP proxy library optimized for Bun runtime with hooks, circuit breakers and timeouts" ,
5
- "main" : " index.ts " ,
6
- "module" : " index.ts " ,
7
- "types" : " index.ts" ,
5
+ "main" : " lib/ index.js " ,
6
+ "module" : " lib/ index.js " ,
7
+ "types" : " lib/ index.d .ts" ,
8
8
"type" : " module" ,
9
9
"files" : [
10
- " src/**/*" ,
11
- " index.ts" ,
10
+ " lib/**/*" ,
12
11
" README.md" ,
13
12
" LICENSE"
14
13
],
You can’t perform that action at this time.
0 commit comments