@acrool/react-fetcher 0.0.2-alpha.7 → 0.0.2-alpha.8

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.
@@ -1,4 +1,4 @@
1
- export declare enum ERequestHeader {
1
+ export declare enum ERequestHeaderContentType {
2
2
  formData = "multipart/form-data",
3
3
  formUrlDecode = "application/x-www-form-urlencoded",
4
4
  json = "application/json"
@@ -1,2 +1,3 @@
1
1
  export { default as createRestFulFetcher } from './createRestFulFetcher';
2
2
  export type { IUseFetcherArgs as IUseRestFulFetcherArgs } from './types';
3
+ export type { ERequestHeaderContentType } from './config';
@@ -1,10 +1,10 @@
1
- import { ERequestHeader } from './config';
1
+ import { ERequestHeaderContentType } from './config';
2
2
  /**
3
3
  *
4
4
  * @param obj 送出物件
5
5
  * @param contentType
6
6
  */
7
- export declare function flattenObjectToFormData(obj: Record<string, any>, contentType: ERequestHeader): {
7
+ export declare function flattenObjectToFormData(obj: Record<string, any>, contentType: ERequestHeaderContentType): {
8
8
  body: FormData | string;
9
9
  contentType: string;
10
10
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@acrool/react-fetcher",
3
- "version": "0.0.2-alpha.7",
3
+ "version": "0.0.2-alpha.8",
4
4
  "description": "Fetcher library based for Reactjs",
5
5
  "keywords": [
6
6
  "acrool",