|
1 | | -/*! |
2 | | - * LeanCloud JavaScript SDK |
3 | | - * https://leancloud.cn |
4 | | - * |
5 | | - * Copyright 2016 LeanCloud.cn, Inc. |
6 | | - * The LeanCloud JavaScript SDK is freely distributable under the MIT license. |
7 | | - */ |
| 1 | +module.exports = global.AV || {}; |
8 | 2 |
|
9 | | -/** |
10 | | - * 每位工程师都有保持代码优雅的义务 |
11 | | - * Each engineer has a duty to keep the code elegant |
12 | | -**/ |
13 | | - |
14 | | -const AV = module.exports = global.AV || {}; |
15 | | -AV._ = require('underscore'); |
16 | | -AV.version = require('./version'); |
17 | | -AV.Promise = require('./promise'); |
18 | | -AV.localStorage = require('./localstorage'); |
19 | | -AV.Cache = require('./cache'); |
20 | | - |
21 | | -// All internal configuration items |
22 | | -AV._config = AV._config || {}; |
23 | | - |
24 | | -require('./utils').init(AV); |
25 | | - |
26 | | -require('./event')(AV); |
27 | | -require('./geopoint')(AV); |
28 | | -require('./acl')(AV); |
29 | | -require('./op')(AV); |
30 | | -require('./relation')(AV); |
31 | | -require('./file')(AV); |
32 | | -require('./object')(AV); |
33 | | -require('./role')(AV); |
34 | | -require('./user')(AV); |
35 | | -require('./query')(AV); |
36 | | -require('./cloudfunction')(AV); |
37 | | -require('./push')(AV); |
38 | | -require('./status')(AV); |
39 | | -require('./search')(AV); |
40 | | -require('./insight')(AV); |
41 | | - |
42 | | -// TODO: deprecated AV.Error() |
43 | | -const AVError = require('./error'); |
44 | | -/** |
45 | | - * @deprecated AV.Error() is deprecated, and will be removed in next release. |
46 | | - */ |
47 | | -AV.Error = (...args) => { |
48 | | - console.warn('AV.Error() is deprecated, and will be removed in next release.'); |
49 | | - new AVError(...args); |
50 | | -}; |
0 commit comments