@cloudbase/types
Advanced tools
Comparing version 2.0.3-alpha.0 to 2.5.0-beta.0
@@ -1,2 +0,2 @@ | ||
import { ICloudbaseConfig, KV, ICloudbase } from '.'; | ||
import { ICloudbaseConfig, KV, ICloudbase } from '.' | ||
@@ -85,2 +85,2 @@ export type ICloudbaseAuthConfig = Pick<ICloudbaseConfig, 'env' | 'region' | 'persistence' | 'debug' | '_fromApp' | 'oauthInstance'>; | ||
registerProvider: (name: string, provider: IProvider) => void; | ||
} | ||
} |
@@ -1,2 +0,2 @@ | ||
import { ICloudbasePlatformInfo, KV,ICloudbaseConfig } from "."; | ||
import { ICloudbasePlatformInfo, KV, ICloudbaseConfig } from '.' | ||
@@ -10,3 +10,3 @@ export type ICacheConfig = Pick < ICloudbaseConfig, 'debug' | 'persistence' > & { | ||
export interface ICloudbaseCache { | ||
keys:KV<string>; | ||
keys: KV<string>; | ||
mode: 'async' | 'sync'; | ||
@@ -19,10 +19,10 @@ | ||
getStoreAsync: (key: string, version?: string) => Promise<any>; | ||
removeStore: (key:string) => void; | ||
removeStoreAsync: (key:string) => Promise<void>; | ||
updatePersistence?: (persistence:string) => void; | ||
updatePersistenceAsync?: (persistence:string) => Promise<void>; | ||
removeStore: (key: string) => void; | ||
removeStoreAsync: (key: string) => Promise<void>; | ||
updatePersistence?: (persistence: string) => void; | ||
updatePersistenceAsync?: (persistence: string) => Promise<void>; | ||
clear?: () => void; | ||
} | ||
} |
@@ -1,2 +0,2 @@ | ||
import { ICloudbaseEventEmitter } from './events'; | ||
import { ICloudbaseEventEmitter } from './events' | ||
@@ -17,2 +17,2 @@ export interface ICloudbaseComponent { | ||
target: string; | ||
} | ||
} |
@@ -31,2 +31,2 @@ export type DataType = 'init' | 'update' | 'add' | 'remove' | 'replace' | 'limit' | ||
env?: string | ||
} | ||
} |
@@ -5,5 +5,5 @@ export interface Listeners { | ||
export interface ICloudbaseEvent { | ||
name:string; | ||
name: string; | ||
target: any; | ||
data:any; | ||
data: any; | ||
} | ||
@@ -14,2 +14,2 @@ export interface ICloudbaseEventEmitter { | ||
fire(event: string | ICloudbaseEvent, data?: any): this; | ||
} | ||
} |
@@ -1,2 +0,2 @@ | ||
import { KV } from "."; | ||
import { KV } from '.' | ||
@@ -16,4 +16,2 @@ export interface ICallFunctionOptions { | ||
export interface ICallFunction{ | ||
(options: ICallFunctionOptions,callback?: Function):Promise<ICallFunctionResponse>; | ||
} | ||
export type ICallFunction = (options: ICallFunctionOptions, callback?: Function) => Promise<ICallFunctionResponse>; |
@@ -1,5 +0,5 @@ | ||
import { CloudbaseAdapter, SDKAdapterInterface } from '@cloudbase/adapter-interface'; | ||
import { ICloudbaseComponent, ICloudbaseHook } from "./component"; | ||
import { ICloudbaseRequest } from "./request"; | ||
import { ICloudbaseCache } from "./cache"; | ||
import { CloudbaseAdapter, SDKAdapterInterface } from '@cloudbase/adapter-interface' | ||
import { ICloudbaseComponent, ICloudbaseHook } from './component' | ||
import { ICloudbaseRequest } from './request' | ||
import { ICloudbaseCache } from './cache' | ||
import { ICloudbaseAuth } from './auth' | ||
@@ -72,2 +72,2 @@ | ||
generic: boolean | ||
} | ||
} |
@@ -1,1 +0,1 @@ | ||
// 兼容微信小程序npm构建方式,误删 | ||
// 兼容微信小程序npm构建方式,勿删 |
{ | ||
"name": "@cloudbase/types", | ||
"version": "2.0.3-alpha.0", | ||
"version": "2.5.0-beta.0", | ||
"description": "cloudbase javascript sdk types", | ||
@@ -41,10 +41,20 @@ "files": [ | ||
}, | ||
"scripts": { | ||
"lint": "eslint --fix \"./**/*.ts\"", | ||
"precommit": "lint-staged" | ||
}, | ||
"lint-staged": { | ||
"*.ts": [ | ||
"eslint --fix" | ||
] | ||
}, | ||
"devDependencies": { | ||
"@typescript-eslint/eslint-plugin": "^3.10.1", | ||
"@typescript-eslint/parser": "^3.10.1", | ||
"@tencent/eslint-config-tencent": "^1.0.4", | ||
"@typescript-eslint/eslint-plugin": "^5.40.0", | ||
"@typescript-eslint/parser": "^5.40.0", | ||
"eslint": "^7.7.0", | ||
"eslint-config-alloy": "^3.8.0", | ||
"lint-staged": "^13.0.3", | ||
"typescript": "^4.0.2" | ||
}, | ||
"gitHead": "0b2132af5cb55c49a6f8d2b84400f4fd1acf8572" | ||
"gitHead": "916f06a86425cad63ea80dc398f6b55901c88dfb" | ||
} |
@@ -252,3 +252,3 @@ import { DataType, QueueType, ISingleDBEvent } from './database' | ||
export type IDBNextEventDataLimit = | ||
export type IDBNextEventDataLimit = | ||
| IDBNextEventDataLimitQueueEnqueue | ||
@@ -351,7 +351,4 @@ | IDBNextEventDataLimitQueueDequeue | ||
export interface IRealtimeListenerConstructorOptions extends IWatchOptions { | ||
// ws: any | ||
// query: string | ||
} | ||
export type IRealtimeListenerConstructorOptions = IWatchOptions | ||
export type SnapshotType = 'init' |
import { | ||
IRequestOptions, IUploadRequestOptions, ResponseObject | ||
} from '@cloudbase/adapter-interface'; | ||
IRequestOptions, IUploadRequestOptions, ResponseObject, | ||
} from '@cloudbase/adapter-interface' | ||
import { ICloudbaseConfig, KV } from '.'; | ||
import { ICloudbaseConfig, KV } from '.' | ||
@@ -28,2 +28,2 @@ export interface IGetAccessTokenResult { | ||
send: (action: string, data: KV<any>) => Promise<any>; | ||
} | ||
} |
@@ -1,2 +0,2 @@ | ||
import { KVstring } from "."; | ||
import { KVstring } from '.' | ||
@@ -23,5 +23,3 @@ export interface ICloudbaseUploadFileParams { | ||
export interface ICloudbaseUploadFile { | ||
(params: ICloudbaseUploadFileParams, callback?: Function): Promise<ICloudbaseUploadFileResult>; | ||
} | ||
export type ICloudbaseUploadFile = (params: ICloudbaseUploadFileParams, callback?: Function) => Promise<ICloudbaseUploadFileResult>; | ||
@@ -32,5 +30,3 @@ export interface ICloudbaseGetUploadMetadataParams { | ||
export interface ICloudbaseGetUploadMetadata { | ||
(params: ICloudbaseGetUploadMetadataParams, callback?: Function): Promise<any>; | ||
} | ||
export type ICloudbaseGetUploadMetadata = (params: ICloudbaseGetUploadMetadataParams, callback?: Function) => Promise<any>; | ||
@@ -41,5 +37,3 @@ export interface ICloudbaseDeleteFileParams { | ||
export interface ICloudbaseDeleteFile { | ||
(params: ICloudbaseDeleteFileParams, callback?: Function): Promise<ICloudbaseDeleteFileResult>; | ||
} | ||
export type ICloudbaseDeleteFile = (params: ICloudbaseDeleteFileParams, callback?: Function) => Promise<ICloudbaseDeleteFileResult>; | ||
@@ -78,5 +72,3 @@ export interface ICloudbaseDeleteFileResult { | ||
export interface ICloudbaseGetTempFileURL { | ||
(params: ICloudbaseGetTempFileURLParams, callback?: Function): Promise<ICloudbaseGetTempFileURLResult>; | ||
} | ||
export type ICloudbaseGetTempFileURL = (params: ICloudbaseGetTempFileURLParams, callback?: Function) => Promise<ICloudbaseGetTempFileURLResult>; | ||
@@ -95,5 +87,3 @@ export interface ICloudbaseDownloadFileParams { | ||
export interface ICloudbaseDownloadFile { | ||
(params: ICloudbaseDownloadFileParams, callback?: Function): Promise<ICloudbaseDownloadFileResult>; | ||
} | ||
export type ICloudbaseDownloadFile = (params: ICloudbaseDownloadFileParams, callback?: Function) => Promise<ICloudbaseDownloadFileResult>; | ||
@@ -112,2 +102,2 @@ export interface ICloudbaseFileMetaData { | ||
requestId: string; | ||
} | ||
} |
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
20800
6
630