@route-forge/core 2.2.0 → 2.2.1

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/dist/index.d.cts CHANGED
@@ -13,7 +13,7 @@ export { A as AdapterOption, d as ApiCallParams, B as BoundForge, F as Fetcher,
13
13
  * - Adapter auto 检测 / builtin / axios / 自定义 Fetcher(§4.3)
14
14
  */
15
15
 
16
- declare function createRouteForge(options: RouteForgeOptions): RouteForge;
16
+ declare function createRouteForge(options?: RouteForgeOptions): RouteForge;
17
17
 
18
18
  /**
19
19
  * 拦截器管理器实现
package/dist/index.d.ts CHANGED
@@ -13,7 +13,7 @@ export { A as AdapterOption, d as ApiCallParams, B as BoundForge, F as Fetcher,
13
13
  * - Adapter auto 检测 / builtin / axios / 自定义 Fetcher(§4.3)
14
14
  */
15
15
 
16
- declare function createRouteForge(options: RouteForgeOptions): RouteForge;
16
+ declare function createRouteForge(options?: RouteForgeOptions): RouteForge;
17
17
 
18
18
  /**
19
19
  * 拦截器管理器实现
package/dist/index.js CHANGED
@@ -1089,7 +1089,7 @@ function createBoundForgeFactory(deps) {
1089
1089
  // src/forge.ts
1090
1090
  var DEFAULT_TIMEOUT = 3e4;
1091
1091
  var DEFAULT_CACHE_TTL = 3600;
1092
- function createRouteForge(options) {
1092
+ function createRouteForge(options = {}) {
1093
1093
  const bootstrapSummary = readEmbeddedSummary() ?? options.summary ?? null;
1094
1094
  if (!bootstrapSummary && !options.endpoint) {
1095
1095
  throw new TypeError(