Socket
Socket
Sign inDemoInstall

@auraxy/services

Package Overview
Dependencies
7
Maintainers
1
Versions
13
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.0.3 to 1.0.4

26

index.d.ts

@@ -0,8 +1,8 @@

import { Storage } from '@livelybone/storage'
import {
AxiosInstance,
AxiosInterceptorManager,
AxiosRequestConfig,
AxiosInterceptorManager,
AxiosResponse,
AxiosInstance,
} from 'axios'
import { Storage } from '@livelybone/storage'

@@ -21,2 +21,3 @@ interface Thenable<T, Err = Error> {

): Promise<RT>
/**

@@ -29,2 +30,3 @@ * 返回正常的 Promise

}
interface HttpConfig extends AxiosRequestConfig {

@@ -37,2 +39,3 @@ interceptors?: {

}
interface MqttConfigData {

@@ -46,3 +49,5 @@ parentTopic: string

}
declare type Topics = string[]
interface MessageData {

@@ -53,9 +58,14 @@ id: string

}
declare type SubscribeCallback = (msg: MessageData) => any
interface QueryData {
[key: string]: string | number | boolean
[key: number]: string | number | boolean
[key: string]: string | number | boolean | undefined
[key: number]: string | number | boolean | undefined
}
interface PostData {
[key: string]: any
[key: number]: any

@@ -93,2 +103,3 @@ }

declare const TopicWildCardReg: RegExp
declare class Mqtt {

@@ -143,6 +154,11 @@ 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

@@ -149,0 +165,0 @@

4

lib/es/index.js
/**
* Bundle of @auraxy/services
* Generated: 2019-10-24
* Version: 1.0.3
* Generated: 2019-11-06
* Version: 1.0.4
* License: MIT

@@ -6,0 +6,0 @@ * Author: liuzhiping@auraxy.com

{
"name": "@auraxy/services",
"version": "1.0.3",
"version": "1.0.4",
"description": "services",

@@ -5,0 +5,0 @@ "main": "./lib/es/index.js",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc