@giteeteam/apps-api
Advanced tools
Comparing version 0.5.1 to 0.6.0-alpha.1
@@ -15,5 +15,5 @@ /// <reference types="node" /> | ||
* @param [AxiosConfig] config | ||
* @returns 返回的是请求后的data数据,不是axios返回的对象 | ||
* @param [Boolean] onlyData 默认为true,只返回data数据,false时返回data, headers, status, statusText | ||
*/ | ||
export declare const axios: (config: AxiosConfig) => Promise<any>; | ||
export declare const axios: (config: AxiosConfig, onlyData?: boolean | undefined) => Promise<any>; | ||
export { AxiosRequestHeaders }; | ||
@@ -20,0 +20,0 @@ export declare const requestAppsApi: ({ method, url: _url, data, headers, }: { |
/** | ||
* 使用的是vm中注入的global axios | ||
* @param [AxiosConfig] config | ||
* @returns 返回的是请求后的data数据,不是axios返回的对象 | ||
* @param [Boolean] onlyData 默认为true,只返回data数据,false时返回data, headers, status, statusText | ||
*/ | ||
@@ -6,0 +6,0 @@ export const axios = global.axios; |
@@ -32,3 +32,3 @@ /* eslint-disable no-var */ | ||
declare global { | ||
var axios: (config: AxiosConfig) => Promise<any>; | ||
var axios: (config: AxiosConfig, onlyData?: boolean) => Promise<any>; | ||
var applicationId: string; | ||
@@ -35,0 +35,0 @@ var appKey: string; |
{ | ||
"name": "@giteeteam/apps-api", | ||
"version": "0.5.1", | ||
"version": "0.6.0-alpha.1", | ||
"description": "Giteeteam Apps API", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
26135