@gz-fronted/gz-pc 0.1.3-beta.2 → 0.2.0-beta.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.
@@ -69,6 +69,8 @@ interface CreateGzFetchOptions {
69
69
  validateStatus?: (status: number) => boolean;
70
70
  getToken?: () => string | undefined | Promise<string | undefined>;
71
71
  showErrorMessage?: boolean;
72
+ /** Preserve unsafe JSON numbers as their original strings. Defaults to false. */
73
+ preserveNumberPrecision?: boolean;
72
74
  auth?: GzFetchAuthOptions;
73
75
  unauthorized?: GzFetchUnauthorizedOptions;
74
76
  middlewares?: readonly GzFetchMiddleware[];
@@ -92,26 +94,4 @@ declare const GzFetchFeedbackProvider: FC<PropsWithChildren>;
92
94
  /** @deprecated 请使用 GzFetchFeedbackProvider 统一接入请求反馈。 */
93
95
  declare const GzFetchUnauthorizedModal: FC;
94
96
 
95
- declare const GzDebugFeedbackProvider: FC<PropsWithChildren>;
96
-
97
- interface DebugInfo {
98
- request?: unknown;
99
- stackTrace?: unknown;
100
- mdc?: unknown;
101
- [key: string]: unknown;
102
- }
103
- /**
104
- * `debug` is unknown at the integration boundary so Axios projects can pass
105
- * their service response directly. `reportDebugError` validates it at runtime.
106
- */
107
- interface DebugFeedbackInput {
108
- message: string;
109
- debug: unknown;
110
- responseData?: unknown;
111
- method?: string;
112
- url?: string;
113
- }
114
-
115
- declare const reportDebugError: (input: DebugFeedbackInput) => boolean;
116
-
117
- export { type CreateGzFetchOptions, type DebugFeedbackInput, type DebugInfo, GzDebugFeedbackProvider, type GzErrorContext, type GzFetch, type GzFetchAuthOptions, type GzFetchClient, GzFetchError, type GzFetchErrorOptions, type GzFetchErrorType, GzFetchFeedbackProvider, type GzFetchMiddleware, GzFetchUnauthorizedModal, type GzFetchUnauthorizedOptions, type GzInternalRequestConfig, type GzRequestConfig, type GzRequestHeaders, type GzRequestMethod, type GzRequestOptions, type GzRequestParams, type GzResponseContext, type GzResponseType, configureGzFetch, createGzFetch, getResponseMessage, gzFetch, reportDebugError, toGzFetchError };
97
+ export { type CreateGzFetchOptions, type GzErrorContext, type GzFetch, type GzFetchAuthOptions, type GzFetchClient, GzFetchError, type GzFetchErrorOptions, type GzFetchErrorType, GzFetchFeedbackProvider, type GzFetchMiddleware, GzFetchUnauthorizedModal, type GzFetchUnauthorizedOptions, type GzInternalRequestConfig, type GzRequestConfig, type GzRequestHeaders, type GzRequestMethod, type GzRequestOptions, type GzRequestParams, type GzResponseContext, type GzResponseType, configureGzFetch, createGzFetch, getResponseMessage, gzFetch, toGzFetchError };
@@ -69,6 +69,8 @@ interface CreateGzFetchOptions {
69
69
  validateStatus?: (status: number) => boolean;
70
70
  getToken?: () => string | undefined | Promise<string | undefined>;
71
71
  showErrorMessage?: boolean;
72
+ /** Preserve unsafe JSON numbers as their original strings. Defaults to false. */
73
+ preserveNumberPrecision?: boolean;
72
74
  auth?: GzFetchAuthOptions;
73
75
  unauthorized?: GzFetchUnauthorizedOptions;
74
76
  middlewares?: readonly GzFetchMiddleware[];
@@ -92,26 +94,4 @@ declare const GzFetchFeedbackProvider: FC<PropsWithChildren>;
92
94
  /** @deprecated 请使用 GzFetchFeedbackProvider 统一接入请求反馈。 */
93
95
  declare const GzFetchUnauthorizedModal: FC;
94
96
 
95
- declare const GzDebugFeedbackProvider: FC<PropsWithChildren>;
96
-
97
- interface DebugInfo {
98
- request?: unknown;
99
- stackTrace?: unknown;
100
- mdc?: unknown;
101
- [key: string]: unknown;
102
- }
103
- /**
104
- * `debug` is unknown at the integration boundary so Axios projects can pass
105
- * their service response directly. `reportDebugError` validates it at runtime.
106
- */
107
- interface DebugFeedbackInput {
108
- message: string;
109
- debug: unknown;
110
- responseData?: unknown;
111
- method?: string;
112
- url?: string;
113
- }
114
-
115
- declare const reportDebugError: (input: DebugFeedbackInput) => boolean;
116
-
117
- export { type CreateGzFetchOptions, type DebugFeedbackInput, type DebugInfo, GzDebugFeedbackProvider, type GzErrorContext, type GzFetch, type GzFetchAuthOptions, type GzFetchClient, GzFetchError, type GzFetchErrorOptions, type GzFetchErrorType, GzFetchFeedbackProvider, type GzFetchMiddleware, GzFetchUnauthorizedModal, type GzFetchUnauthorizedOptions, type GzInternalRequestConfig, type GzRequestConfig, type GzRequestHeaders, type GzRequestMethod, type GzRequestOptions, type GzRequestParams, type GzResponseContext, type GzResponseType, configureGzFetch, createGzFetch, getResponseMessage, gzFetch, reportDebugError, toGzFetchError };
97
+ export { type CreateGzFetchOptions, type GzErrorContext, type GzFetch, type GzFetchAuthOptions, type GzFetchClient, GzFetchError, type GzFetchErrorOptions, type GzFetchErrorType, GzFetchFeedbackProvider, type GzFetchMiddleware, GzFetchUnauthorizedModal, type GzFetchUnauthorizedOptions, type GzInternalRequestConfig, type GzRequestConfig, type GzRequestHeaders, type GzRequestMethod, type GzRequestOptions, type GzRequestParams, type GzResponseContext, type GzResponseType, configureGzFetch, createGzFetch, getResponseMessage, gzFetch, toGzFetchError };