Big News: Socket raises $60M Series C at a $1B valuation to secure software supply chains for AI-driven development.Announcement
Sign In

@cloudbase/types

Package Overview
Dependencies
Maintainers
14
Versions
310
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@cloudbase/types - npm Package Compare versions

Comparing version
2.22.1
to
2.22.2
+8
-5
index.d.ts

@@ -6,2 +6,3 @@ import { CloudbaseAdapter, SDKAdapterInterface } from '@cloudbase/adapter-interface'

import { ICloudbaseAuth } from './auth'
import { cloudbase } from '../cloudbase/index'

@@ -53,5 +54,6 @@ export enum LANGS {

declare type MethodType = 'request' | 'post' | 'get' | 'head' | 'patch' | 'delete' | 'put'
export interface ICloudbaseApis {
[apiName: string]: (apiName: string) => {
[method: string]: (callApiOptions: ICallApiOptions, opts: KV<any>) => Promise<ResponseObject['data']>
[apiName: string]: {
[method in MethodType]: (callApiOptions: ICallApiOptions, opts?: KV<any>) => Promise<ResponseObject['data']>
}

@@ -70,3 +72,3 @@ }

apis: ICloudbaseApis
init: (config: ICloudbaseConfig & { lang?: LANGS }) => ICloudbase
init: (config: ICloudbaseConfig & { lang?: LANGS }) => cloudbase.app
updateConfig: (config: ICloudbaseUpgradedConfig) => void

@@ -84,3 +86,4 @@ registerExtension: (ext: ICloudbaseExtension) => void

PROTOCOL: string;
}
},
auth?: (options?: { persistence: cloudbase.auth.Persistence }) => cloudbase.auth.App
}

@@ -100,3 +103,3 @@ export interface ICloudbasePlatformInfo {

/** api标识 */
name: string
name?: string
/** 请求的path */

@@ -103,0 +106,0 @@ path?: string

{
"name": "@cloudbase/types",
"version": "2.22.1",
"version": "2.22.2",
"description": "cloudbase javascript sdk types",

@@ -46,3 +46,3 @@ "files": [

},
"gitHead": "46ebb16422f02fb8cef279ad16d590ad6115abe1"
"gitHead": "7e8ca8a2f3834924a14320c383e671cada829d19"
}

@@ -118,3 +118,5 @@ import { KVstring } from '.'

cosFileId: string;
download_url: string
download_url: string;
code?: string;
message?: string;
}

@@ -121,0 +123,0 @@