@auraxy/services
Advanced tools
Comparing version 1.0.1 to 1.0.2
@@ -1,8 +0,8 @@ | ||
import { Storage } from '@livelybone/storage' | ||
import { | ||
AxiosInstance, | ||
AxiosRequestConfig, | ||
AxiosInterceptorManager, | ||
AxiosRequestConfig, | ||
AxiosResponse, | ||
AxiosInstance, | ||
} from 'axios' | ||
import { Storage } from '@livelybone/storage' | ||
@@ -21,3 +21,2 @@ interface Thenable<T, Err = Error> { | ||
): Promise<RT> | ||
/** | ||
@@ -30,3 +29,2 @@ * 返回正常的 Promise | ||
} | ||
interface HttpConfig extends AxiosRequestConfig { | ||
@@ -39,6 +37,2 @@ interceptors?: { | ||
} | ||
declare type BaseURL = 'prod' | 'test' | ||
declare type AppName = 'LITE_APP' | 'KAIPIAO_APP' | ||
interface MqttConfigData { | ||
@@ -52,5 +46,3 @@ parentTopic: string | ||
} | ||
declare type Topics = string[] | ||
interface MessageData { | ||
@@ -61,14 +53,9 @@ id: string | ||
} | ||
declare type SubscribeCallback = (msg: MessageData) => any | ||
interface QueryData { | ||
[key: string]: string | number | boolean | ||
[key: number]: string | number | boolean | ||
} | ||
interface PostData { | ||
[key: string]: any | ||
[key: number]: any | ||
@@ -106,3 +93,2 @@ } | ||
declare const TopicWildCardReg: RegExp | ||
declare class Mqtt { | ||
@@ -157,11 +143,6 @@ private getMqttConfig | ||
declare function divRootUrl(url: string, rootPath?: string): string | ||
declare function pathJoin(...urls: string[]): string | ||
declare function joinWithRootUrl(rootPath?: string, ...urls: string[]): string | ||
declare function queryString(query: QueryData, encode?: boolean): string | ||
declare function getUrl(url: string, query?: QueryData): string | ||
declare function convertToFormData(obj: PostData): FormData | ||
@@ -193,4 +174,2 @@ | ||
export { | ||
AppName, | ||
BaseURL, | ||
Http, | ||
@@ -197,0 +176,0 @@ HttpConfig, |
/** | ||
* Bundle of @auraxy/services | ||
* Generated: 2019-10-24 | ||
* Version: 1.0.1 | ||
* Version: 1.0.2 | ||
* License: MIT | ||
@@ -6,0 +6,0 @@ * Author: liuzhiping@auraxy.com |
{ | ||
"name": "@auraxy/services", | ||
"version": "1.0.1", | ||
"version": "1.0.2", | ||
"description": "services", | ||
@@ -5,0 +5,0 @@ "main": "./lib/umd/index.js", |
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
46707
1123