@cloudbase/js-sdk 3.6.3-beta.2 → 3.6.4-alpha.0

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 (120) hide show
  1. package/CHANGELOG.md +6 -0
  2. package/ai/dist/index.esm.js +1 -1
  3. package/ai/dist/index.esm.js.map +1 -1
  4. package/ai/dist/index.js +1 -1
  5. package/ai/dist/index.js.map +1 -1
  6. package/apis/dist/index.esm.js +1 -1
  7. package/apis/dist/index.esm.js.map +1 -1
  8. package/apis/dist/index.js +1 -1
  9. package/apis/dist/index.js.map +1 -1
  10. package/app/dist/index.esm.js +1 -1
  11. package/app/dist/index.esm.js.map +1 -1
  12. package/app/dist/index.js +1 -1
  13. package/app/dist/index.js.map +1 -1
  14. package/app/dist/index.node.esm.js +1 -1
  15. package/app/dist/index.node.esm.js.map +1 -1
  16. package/app/dist/index.node.js +1 -1
  17. package/app/dist/index.node.js.map +1 -1
  18. package/auth/dist/index.esm.js +1 -2
  19. package/auth/dist/index.esm.js.map +1 -1
  20. package/auth/dist/index.js +1 -2
  21. package/auth/dist/index.js.map +1 -1
  22. package/cloudrun/dist/index.esm.js +1 -1
  23. package/cloudrun/dist/index.esm.js.map +1 -1
  24. package/cloudrun/dist/index.js +1 -1
  25. package/cloudrun/dist/index.js.map +1 -1
  26. package/container/dist/index.esm.js +1 -1
  27. package/container/dist/index.esm.js.map +1 -1
  28. package/container/dist/index.js +1 -1
  29. package/container/dist/index.js.map +1 -1
  30. package/core.d.ts +4331 -0
  31. package/core.node.d.ts +294 -0
  32. package/dist/index.cjs.js +1 -2
  33. package/dist/index.cjs.js.map +1 -1
  34. package/dist/index.esm.js +1 -2
  35. package/dist/index.esm.js.map +1 -1
  36. package/dist/index.node.cjs.js +1 -1
  37. package/dist/index.node.cjs.js.LICENSE.txt +0 -13
  38. package/dist/index.node.cjs.js.map +1 -1
  39. package/dist/index.node.esm.js +1 -1
  40. package/dist/index.node.esm.js.LICENSE.txt +0 -13
  41. package/dist/index.node.esm.js.map +1 -1
  42. package/functions/dist/index.esm.js +1 -1
  43. package/functions/dist/index.esm.js.map +1 -1
  44. package/functions/dist/index.js +1 -1
  45. package/functions/dist/index.js.map +1 -1
  46. package/index.d.ts +5 -4268
  47. package/index.node.d.ts +13 -0
  48. package/miniprogram_dist/ai/index.d.ts +42 -0
  49. package/miniprogram_dist/ai/index.js +2 -0
  50. package/miniprogram_dist/apis/index.d.ts +5 -0
  51. package/miniprogram_dist/{apis.js → apis/index.js} +1 -1
  52. package/miniprogram_dist/app/index.d.ts +67 -0
  53. package/miniprogram_dist/app/index.js +2 -0
  54. package/miniprogram_dist/auth/index.d.ts +284 -0
  55. package/miniprogram_dist/auth/index.js +2 -0
  56. package/miniprogram_dist/cloudrun/index.d.ts +4 -0
  57. package/miniprogram_dist/cloudrun/index.js +1 -0
  58. package/miniprogram_dist/container/index.d.ts +13 -0
  59. package/miniprogram_dist/container/index.js +1 -0
  60. package/miniprogram_dist/database/index.d.ts +3 -0
  61. package/miniprogram_dist/functions/index.d.ts +2 -0
  62. package/miniprogram_dist/functions/index.js +1 -0
  63. package/miniprogram_dist/index.js +1 -1
  64. package/miniprogram_dist/model/index.d.ts +5 -0
  65. package/miniprogram_dist/model/index.js +1 -0
  66. package/miniprogram_dist/mysql/index.d.ts +3 -0
  67. package/miniprogram_dist/mysql/index.js +1 -0
  68. package/miniprogram_dist/oauth/index.d.ts +22 -0
  69. package/miniprogram_dist/oauth/index.js +2 -0
  70. package/miniprogram_dist/realtime/index.d.ts +2 -0
  71. package/miniprogram_dist/realtime/index.js +1 -0
  72. package/miniprogram_dist/storage/index.d.ts +13 -0
  73. package/miniprogram_dist/{storage.js → storage/index.js} +1 -1
  74. package/model/dist/index.esm.js +1 -1
  75. package/model/dist/index.esm.js.map +1 -1
  76. package/model/dist/index.js +1 -1
  77. package/model/dist/index.js.map +1 -1
  78. package/mysql/dist/index.esm.js +1 -1
  79. package/mysql/dist/index.esm.js.map +1 -1
  80. package/mysql/dist/index.js +1 -1
  81. package/mysql/dist/index.js.map +1 -1
  82. package/oauth/dist/index.esm.js +1 -2
  83. package/oauth/dist/index.esm.js.map +1 -1
  84. package/oauth/dist/index.js +1 -2
  85. package/oauth/dist/index.js.map +1 -1
  86. package/package.json +21 -2
  87. package/realtime/dist/index.esm.js +1 -1
  88. package/realtime/dist/index.esm.js.map +1 -1
  89. package/realtime/dist/index.js +1 -1
  90. package/realtime/dist/index.js.map +1 -1
  91. package/storage/dist/index.esm.js +1 -1
  92. package/storage/dist/index.esm.js.map +1 -1
  93. package/storage/dist/index.js +1 -1
  94. package/storage/dist/index.js.map +1 -1
  95. package/types/auth.d.ts +10 -77
  96. package/types/functions.d.ts +4 -13
  97. package/types/index.d.ts +5 -62
  98. package/types/package.json +2 -5
  99. package/types/storage.d.ts +3 -21
  100. package/utilities/package.json +9 -3
  101. package/auth/dist/index.esm.js.LICENSE.txt +0 -12
  102. package/auth/dist/index.js.LICENSE.txt +0 -12
  103. package/dist/index.cjs.js.LICENSE.txt +0 -12
  104. package/dist/index.d.ts +0 -9
  105. package/dist/index.esm.js.LICENSE.txt +0 -12
  106. package/miniprogram_dist/ai.js +0 -2
  107. package/miniprogram_dist/app.js +0 -2
  108. package/miniprogram_dist/auth.js +0 -2
  109. package/miniprogram_dist/cloudrun.js +0 -1
  110. package/miniprogram_dist/container.js +0 -1
  111. package/miniprogram_dist/functions.js +0 -1
  112. package/miniprogram_dist/model.js +0 -1
  113. package/miniprogram_dist/mysql.js +0 -1
  114. package/miniprogram_dist/oauth.js +0 -2
  115. package/miniprogram_dist/realtime.js +0 -1
  116. package/oauth/dist/index.esm.js.LICENSE.txt +0 -12
  117. package/oauth/dist/index.js.LICENSE.txt +0 -12
  118. package/types/error.d.ts +0 -40
  119. package/types/result.d.ts +0 -48
  120. /package/miniprogram_dist/{database.js → database/index.js} +0 -0
package/types/auth.d.ts CHANGED
@@ -70,94 +70,27 @@ export interface IUser extends IUserInfo {
70
70
  export interface ILoginState {
71
71
  user: IUser
72
72
  }
73
-
74
- /**
75
- * v1 兼容事件回调收到的载荷。
76
- *
77
- * 运行时实际传入的是 `ILoginState` 与事件元数据(`eventType` 等)的混合对象;
78
- * 在某些时机(如未登录、首次立即回调)可能为 `null`。这里用一个开放的载荷类型
79
- * 精确表达其形态,取代原先的裸 `Function`,同时保持对既有回调写法的非破坏。
80
- */
81
- export type IAuthEventPayload =
82
- | (Partial<ILoginState> & {
83
- /** 事件类型标识(如 `SIGN_IN` / `SIGN_OUT` / `CREDENTIALS_ERROR` 等)。 */
84
- eventType?: string
85
- /** 事件携带的原始数据。 */
86
- data?: KV<any>
87
- [key: string]: any
88
- })
89
- | null
90
-
91
- /**
92
- * v1 兼容事件回调签名。
93
- *
94
- * @deprecated 推荐改用 `onAuthStateChange((event, session, info) => {})` 监听,
95
- * 该回调仅为兼容旧代码保留。
96
- */
97
- export type IAuthEventCallback = (payload: IAuthEventPayload) => void
98
-
99
- /**
100
- * 认证核心能力:状态字段与核心方法,均为**非可选**(与 `ICloudbase` 拆分同款)。
101
- */
102
- export interface AuthCore {
73
+ export interface ICloudbaseAuth {
103
74
  config: ICloudbaseConfig
104
75
  loginType: string
76
+ weixinAuthProvider: any
77
+ anonymousAuthProvider: any
78
+ customAuthProvider: any
105
79
  getAccessToken: () => IAccessTokenInfo
106
80
  getLoginState: () => Promise<ILoginState | null>
107
81
  hasLoginState: () => Promise<ILoginState | null>
108
82
  getUserInfo: () => Promise<UserInfo & IUser>
109
83
  getAuthHeader: () => Promise<KV<string>>
84
+ onLoginStateChanged: (callback: Function) => void
85
+ onLoginStateExpired: (callback: Function) => void
86
+ onAccessTokenRefreshed: (callback: Function) => void
87
+ onAnonymousConverted: (callback: Function) => void
88
+ onLoginTypeChanged: (callback: Function) => void
89
+ shouldRefreshAccessToken: (hook: Function) => void
110
90
  /** 当前登录用户,未登录时为 null */
111
91
  currentUser: IUser | null
112
92
  }
113
93
 
114
- /**
115
- * 认证事件监听能力(v1 兼容)。
116
- *
117
- * @deprecated 这些监听器均为兼容旧代码保留,推荐统一改用
118
- * `onAuthStateChange((event, session, info) => {})`。回调签名已从裸 `Function`
119
- * 收紧为精确类型 {@link IAuthEventCallback},对既有 `(state) => {}` 写法非破坏。
120
- */
121
- export interface AuthEventCapability {
122
- onLoginStateChanged: (callback: IAuthEventCallback) => void
123
- onLoginStateExpired: (callback: IAuthEventCallback) => void
124
- onAccessTokenRefreshed: (callback: IAuthEventCallback) => void
125
- onAnonymousConverted: (callback: IAuthEventCallback) => void
126
- onLoginTypeChanged: (callback: IAuthEventCallback) => void
127
- /** 决定是否刷新 accessToken 的钩子,返回 `true` 表示需要刷新。 */
128
- shouldRefreshAccessToken: (hook: () => boolean) => void
129
- }
130
-
131
- /**
132
- * 认证身份源提供方能力。三个 provider 由 `registerProvider` 动态注册,
133
- * 类型收敛为 {@link IAuthProvider}(取代原先的 `any`)。
134
- */
135
- export interface AuthProviderCapability {
136
- weixinAuthProvider: IAuthProvider
137
- anonymousAuthProvider: IAuthProvider
138
- customAuthProvider: IAuthProvider
139
- }
140
-
141
- /**
142
- * 认证客户端总类型。
143
- *
144
- * 由 {@link AuthCore} + {@link AuthEventCapability} + {@link AuthProviderCapability}
145
- * 交叉组合而成,与原先的单一大接口**结构等价**(字段无增删,仅按能力分层 +
146
- * 收紧回调/provider 类型),因此对既有代码非破坏。
147
- */
148
- export type ICloudbaseAuth = AuthCore & AuthEventCapability & AuthProviderCapability
149
-
150
- /**
151
- * 按需组合的认证客户端泛型。
152
- *
153
- * 默认等价于完整的 {@link ICloudbaseAuth};也可只声明需要的能力,例如
154
- * `CloudbaseAuthClient<AuthEventCapability>` 只暴露事件监听,为 tree-shaking
155
- * 与精确 API 面铺路。
156
- */
157
- export type CloudbaseAuthClient<
158
- Caps = AuthEventCapability & AuthProviderCapability,
159
- > = AuthCore & Caps
160
-
161
94
  type IProvider = new (...args: any[]) => any
162
95
 
163
96
  export interface ICloudbaseAuthModule {
@@ -13,21 +13,12 @@ export interface ICallFunctionOptions {
13
13
  header?: KV<any>
14
14
  }
15
15
 
16
- export interface ICallFunctionResponse<T = any> {
16
+ export interface ICallFunctionResponse {
17
17
  requestId: string
18
- /**
19
- * 云函数返回值。
20
- *
21
- * 默认 `any` 以保持对既有调用方(直接访问 `res.result.xxx`)的**非破坏**兼容;
22
- * 推荐通过泛型参数指定精确类型以获得类型安全:`callFunction<{ n: number }>(...)`。
23
- */
24
- result: T
18
+ result: any
25
19
  }
26
20
 
27
- export type ICallFunction = <T = any>(
28
- options: ICallFunctionOptions,
29
- callback?: (err: Error | null, res: ICallFunctionResponse<T> | null) => void,
30
- ) => Promise<ICallFunctionResponse<T>>
21
+ export type ICallFunction = (options: ICallFunctionOptions, callback?: Function) => Promise<ICallFunctionResponse>
31
22
 
32
23
  export interface IRetryOptions {
33
24
  retries?: number
@@ -38,7 +29,7 @@ export interface IRetryOptions {
38
29
  timeouts?: number[]
39
30
  timeoutOps?: {
40
31
  timeout: number
41
- cb: (...args: any[]) => void
32
+ cb: function
42
33
  }
43
34
  }
44
35
 
package/types/index.d.ts CHANGED
@@ -18,10 +18,6 @@ import {
18
18
  } from './storage'
19
19
  import { cloudbase } from '../cloudbase/index'
20
20
 
21
- // 统一返回判别联合与错误契约(可辨识联合范式)
22
- export { Result, SafeResult } from './result'
23
- export { ICloudbaseError, CloudbaseErrorBrand, CloudbaseErrorLike } from './error'
24
-
25
21
  export enum LANGS {
26
22
  ZH = 'zh-CN',
27
23
  EN = 'en-US',
@@ -110,14 +106,7 @@ export interface ICloudbaseApis {
110
106
  }
111
107
  }
112
108
 
113
- /**
114
- * Cloudbase 核心能力(始终存在,与运行时是否注册某个业务组件无关)。
115
- *
116
- * 这些字段/方法由 SDK 初始化流程直接提供,因此**不是可选的**。
117
- * 业务能力(auth / functions / storage / database / ai / models / mysql 等)
118
- * 被拆分到独立的 `*Capability` 接口,通过下面的 `ICloudbase` 交叉类型组合。
119
- */
120
- export interface CloudbaseCore {
109
+ export interface ICloudbase {
121
110
  config: ICloudbaseConfig
122
111
  platform: ICloudbasePlatformInfo
123
112
  cache: ICloudbaseCache
@@ -146,30 +135,17 @@ export interface CloudbaseCore {
146
135
  BASE_URL: string
147
136
  PROTOCOL: string
148
137
  }
149
- }
150
-
151
- /** 身份鉴权能力(`registerAuth` 注册后可用)。 */
152
- export interface AuthCapability {
153
138
  auth?: (options?: { persistence: cloudbase.auth.Persistence }) => cloudbase.auth.App
154
- }
155
139
 
156
- /** 云函数能力(`registerFunctions` 注册后可用)。 */
157
- export interface FunctionsCapability {
140
+ // ---- 云函数 ----
158
141
  /** 调用云函数 */
159
- callFunction?: <T = any>(
160
- options: ICallFunctionOptions,
161
- callback?: (err: Error | null, res: ICallFunctionResponse<T> | null) => void,
162
- ) => Promise<ICallFunctionResponse<T>>
163
- }
142
+ callFunction?: (options: ICallFunctionOptions, callback?: Function) => Promise<ICallFunctionResponse>
164
143
 
165
- /** 数据库能力(`registerDatabase` 注册后可用)。 */
166
- export interface DatabaseCapability {
144
+ // ---- 数据库 ----
167
145
  /** 获取数据库实例 */
168
146
  database?: (dbConfig?: { instance?: string; database?: string }) => cloudbase.database.App
169
- }
170
147
 
171
- /** 云存储能力(`registerStorage` 注册后可用)。 */
172
- export interface StorageCapability {
148
+ // ---- 云存储 ----
173
149
  /** Storage 命名空间实例(from 分流 + Bucket 管理) */
174
150
  storage?: cloudbase.storage.StorageClient
175
151
  /** 上传文件 */
@@ -184,39 +160,6 @@ export interface StorageCapability {
184
160
  copyFile?: (params: ICloudbaseCopyFileParams, callback?: Function) => Promise<ICloudbaseCopyFileResult>
185
161
  }
186
162
 
187
- /**
188
- * 完整的 Cloudbase 实例类型。
189
- *
190
- * = 核心能力 `CloudbaseCore` + 各业务能力 `*Capability` 的交叉组合。
191
- * 结构上等价于旧的单一大接口,但拆分后可读性更好、可按需组合,
192
- * 也为未来 tree-shaking 友好的模块化 client 打基础。
193
- *
194
- * 如需只声明「用到的能力子集」,可直接使用 {@link CloudbaseClient} 泛型组合,
195
- * 例如 `CloudbaseClient<AuthCapability & FunctionsCapability>`。
196
- */
197
- export type ICloudbase = CloudbaseCore
198
- & AuthCapability
199
- & FunctionsCapability
200
- & DatabaseCapability
201
- & StorageCapability
202
-
203
- /**
204
- * 按需组合的 Cloudbase 客户端类型。
205
- *
206
- * 始终包含核心能力 `CloudbaseCore`,并叠加调用方声明的能力集合 `Caps`。
207
- *
208
- * @example
209
- * ```ts
210
- * // 只用到 auth 与云函数能力
211
- * type MyClient = CloudbaseClient<AuthCapability & FunctionsCapability>
212
- * ```
213
- *
214
- * @typeParam Caps - 需要叠加的能力集合,默认叠加全部内置能力(等价于 `ICloudbase`)
215
- */
216
- export type CloudbaseClient<
217
- Caps = AuthCapability & FunctionsCapability & DatabaseCapability & StorageCapability,
218
- > = CloudbaseCore & Caps
219
-
220
163
  /**
221
164
  * Node.js 端适配器扩展方法
222
165
  */
@@ -1,12 +1,11 @@
1
1
  {
2
2
  "name": "@cloudbase/types",
3
- "version": "3.6.3-beta.2",
3
+ "version": "3.6.4-alpha.0",
4
4
  "description": "cloudbase javascript sdk types",
5
+ "types": "index.d.ts",
5
6
  "files": [
6
7
  "index.js",
7
8
  "index.d.ts",
8
- "result.d.ts",
9
- "error.d.ts",
10
9
  "cache.d.ts",
11
10
  "events.d.ts",
12
11
  "request.d.ts",
@@ -14,8 +13,6 @@
14
13
  "component.d.ts",
15
14
  "functions.d.ts",
16
15
  "cloudrun.d.ts",
17
- "container.d.ts",
18
- "analytics.d.ts",
19
16
  "storage.d.ts",
20
17
  "realtime.d.ts",
21
18
  "database.d.ts"
@@ -1,31 +1,14 @@
1
1
  import { KVstring } from '.'
2
2
  import { ICustomReqOpts } from './functions'
3
3
 
4
- /**
5
- * 上传/下载时的原始文件内容,覆盖浏览器与 Node 两端形态:
6
- * - Node 端:`Buffer`(属于 `Uint8Array`)、可读流(含 `size`/`byteLength` 的对象)
7
- * - 浏览器端:`Blob` / `File` / `ArrayBuffer` / TypedArray 等 `ArrayBufferView`
8
- * - 纯文本内容:`string`
9
- *
10
- * 末尾的 `{ size?: number; byteLength?: number }` 兼容自定义流对象(实现层据此推算
11
- * content-length)。这是一个开放联合:既约束常见形态,又不排除运行时特殊对象。
12
- */
13
- export type FileContent =
14
- | Blob
15
- | ArrayBuffer
16
- | ArrayBufferView
17
- | Uint8Array
18
- | string
19
- | { size?: number; byteLength?: number; [key: string]: any };
20
-
21
4
  export interface ICloudbaseUploadFileParams {
22
5
  cloudPath: string;
23
6
  filePath: string;
24
7
  method?: 'post' | 'put';
25
8
  headers?: KVstring;
26
9
  onUploadProgress?: Function;
27
- /** 文件内容:Buffer / 可读流(Node 端)或 Blob / ArrayBuffer(浏览器端) */
28
- fileContent?: FileContent;
10
+ // 文件内容 Buffer 文件可读流, node端使用
11
+ fileContent?: any;
29
12
  customReqOpts?: ICustomReqOpts;
30
13
  }
31
14
 
@@ -120,8 +103,7 @@ export interface ICloudbaseDownloadFileParams {
120
103
  export interface ICloudbaseDownloadFileResult {
121
104
  code?: string;
122
105
  message?: string;
123
- /** 下载得到的文件内容:Buffer / 流(Node 端)或 Blob / ArrayBuffer(浏览器端) */
124
- fileContent?: FileContent;
106
+ fileContent?: any;
125
107
  requestId?: string;
126
108
  }
127
109
 
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cloudbase/utilities",
3
- "version": "3.6.3-beta.2",
3
+ "version": "3.6.4-alpha.0",
4
4
  "description": "cloudbase javascript sdk utilities",
5
5
  "main": "dist/cjs/index.js",
6
6
  "module": "dist/esm/index.js",
@@ -19,8 +19,14 @@
19
19
  "license": "Apache-2.0",
20
20
  "dependencies": {
21
21
  "@cloudbase/adapter-interface": "^0.7.1",
22
- "@cloudbase/types": "3.6.3-beta.2",
22
+ "@cloudbase/types": "^3.6.4-alpha.0",
23
23
  "jwt-decode": "^3.1.2"
24
24
  },
25
- "gitHead": "859557576897d4778857c12fb8d7fe8ca1f3a052"
25
+ "gitHead": "859557576897d4778857c12fb8d7fe8ca1f3a052",
26
+ "files": [
27
+ "dist/"
28
+ ],
29
+ "publishConfig": {
30
+ "access": "public"
31
+ }
26
32
  }
@@ -1,12 +0,0 @@
1
- /*! *****************************************************************************
2
- Copyright (c) Microsoft Corporation. All rights reserved.
3
- Licensed under the Apache License, Version 2.0 (the "License"); you may not use
4
- this file except in compliance with the License. You may obtain a copy of the
5
- License at http://www.apache.org/licenses/LICENSE-2.0
6
- THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
7
- KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
8
- WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
9
- MERCHANTABLITY OR NON-INFRINGEMENT.
10
- See the Apache Version 2.0 License for specific language governing permissions
11
- and limitations under the License.
12
- ***************************************************************************** */
@@ -1,12 +0,0 @@
1
- /*! *****************************************************************************
2
- Copyright (c) Microsoft Corporation. All rights reserved.
3
- Licensed under the Apache License, Version 2.0 (the "License"); you may not use
4
- this file except in compliance with the License. You may obtain a copy of the
5
- License at http://www.apache.org/licenses/LICENSE-2.0
6
- THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
7
- KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
8
- WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
9
- MERCHANTABLITY OR NON-INFRINGEMENT.
10
- See the Apache Version 2.0 License for specific language governing permissions
11
- and limitations under the License.
12
- ***************************************************************************** */
@@ -1,12 +0,0 @@
1
- /*! *****************************************************************************
2
- Copyright (c) Microsoft Corporation. All rights reserved.
3
- Licensed under the Apache License, Version 2.0 (the "License"); you may not use
4
- this file except in compliance with the License. You may obtain a copy of the
5
- License at http://www.apache.org/licenses/LICENSE-2.0
6
- THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
7
- KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
8
- WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
9
- MERCHANTABLITY OR NON-INFRINGEMENT.
10
- See the Apache Version 2.0 License for specific language governing permissions
11
- and limitations under the License.
12
- ***************************************************************************** */
package/dist/index.d.ts DELETED
@@ -1,9 +0,0 @@
1
- import cloudbase from '@cloudbase/app';
2
- import { ICloudbase } from '@cloudbase/types';
3
- declare global {
4
- interface Window {
5
- cloudbase: ICloudbase;
6
- }
7
- }
8
- export = cloudbase;
9
- export default cloudbase;
@@ -1,12 +0,0 @@
1
- /*! *****************************************************************************
2
- Copyright (c) Microsoft Corporation. All rights reserved.
3
- Licensed under the Apache License, Version 2.0 (the "License"); you may not use
4
- this file except in compliance with the License. You may obtain a copy of the
5
- License at http://www.apache.org/licenses/LICENSE-2.0
6
- THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
7
- KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
8
- WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
9
- MERCHANTABLITY OR NON-INFRINGEMENT.
10
- See the Apache Version 2.0 License for specific language governing permissions
11
- and limitations under the License.
12
- ***************************************************************************** */