@cloudbase/types 2.17.8 → 2.17.10

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/index.d.ts +2 -8
  2. package/package.json +3 -3
package/index.d.ts CHANGED
@@ -3,7 +3,6 @@ import { ICloudbaseComponent, ICloudbaseHook } from './component'
3
3
  import { ICloudbaseRequest } from './request'
4
4
  import { ICloudbaseCache } from './cache'
5
5
  import { ICloudbaseAuth } from './auth'
6
- import { CaptchaOptions } from '../oauth/src/captcha/captcha'
7
6
 
8
7
  export type Persistence = 'local' | 'session' | 'none'
9
8
 
@@ -48,19 +47,14 @@ export interface ICloudbase {
48
47
  updateConfig: (config: ICloudbaseUpgradedConfig) => void
49
48
  registerExtension: (ext: ICloudbaseExtension) => void
50
49
  invokeExtension: (name: string, opts: any) => Promise<any>
51
- useAdapters: (adapters: CloudbaseAdapter | CloudbaseAdapter[]) => void
50
+ useAdapters: (adapters: CloudbaseAdapter | CloudbaseAdapter[], options?: any) => void
52
51
  registerComponent: (component: ICloudbaseComponent) => void
53
52
  registerHook: (hook: ICloudbaseHook) => void
54
53
  registerVersion: (version: string) => void
55
54
  fire?: (...args: any[]) => void
56
55
  }
57
-
58
- export interface IAdapter extends SDKAdapterInterface {
59
- captchaOptions?: Partial<CaptchaOptions>
60
- }
61
-
62
56
  export interface ICloudbasePlatformInfo {
63
- adapter?: IAdapter
57
+ adapter?: SDKAdapterInterface
64
58
  runtime?: string
65
59
  }
66
60
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cloudbase/types",
3
- "version": "2.17.8",
3
+ "version": "2.17.10",
4
4
  "description": "cloudbase javascript sdk types",
5
5
  "files": [
6
6
  "index.js",
@@ -37,11 +37,11 @@
37
37
  "access": "public"
38
38
  },
39
39
  "dependencies": {
40
- "@cloudbase/adapter-interface": "^0.7.0"
40
+ "@cloudbase/adapter-interface": "^0.7.1"
41
41
  },
42
42
  "scripts": {
43
43
  "lint": "eslint --fix \"./**/*.ts\"",
44
44
  "precommit": "npm run lint"
45
45
  },
46
- "gitHead": "003b7f333783f9d010e90ff81e121eaef0593c0d"
46
+ "gitHead": "3f81a973d61665bc2476b4c03e63ce58125239f3"
47
47
  }