@giteeteam/apps-api
Advanced tools
Comparing version 0.4.0 to 0.4.1
/// <reference types="node" /> | ||
/// <reference types="node" /> | ||
import type { AxiosRequestConfig } from 'axios'; | ||
import type { AxiosRequestConfig, AxiosRequestHeaders } from 'axios'; | ||
import type http from 'http'; | ||
@@ -18,3 +18,3 @@ import type https from 'https'; | ||
export declare const axios: (config: AxiosConfig) => Promise<any>; | ||
export { AxiosRequestHeaders } from 'axios'; | ||
export { AxiosRequestHeaders }; | ||
export declare const requestAppsApi: ({ method, url: _url, data, headers, }: { | ||
@@ -24,3 +24,3 @@ method?: string | undefined; | ||
data?: Record<string, any> | undefined; | ||
headers?: Record<string, any> | undefined; | ||
headers?: AxiosRequestHeaders | undefined; | ||
}) => Promise<any>; |
@@ -12,3 +12,3 @@ export type CacheValueType = string | number; | ||
get(key: string): Promise<CacheValueType>; | ||
del(key: string): Promise<void>; | ||
del(...keys: string[]): Promise<void>; | ||
} |
@@ -13,5 +13,5 @@ export class Cache { | ||
} | ||
del(key) { | ||
return global.cache.del(key); | ||
del(...keys) { | ||
return global.cache.del(...keys); | ||
} | ||
} |
@@ -41,3 +41,3 @@ /* eslint-disable no-var */ | ||
get: (key: string) => Promise<CacheValueType>; | ||
del: (key: string) => Promise<void>; | ||
del: (...keys: string[]) => Promise<void>; | ||
}; | ||
@@ -44,0 +44,0 @@ var i18n: { |
{ | ||
"name": "@giteeteam/apps-api", | ||
"version": "0.4.0", | ||
"version": "0.4.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
23190