@cloudbase/js-sdk 3.3.14-beta.5 → 3.3.14-beta.7
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.
- package/CHANGELOG.md +5 -0
- package/auth/dist/index.d.ts +2 -2
- package/auth/dist/index.esm.js +1 -1
- package/auth/dist/index.js +2 -2
- package/auth/src/index.d.ts +2 -2
- package/auth/src/index.ts +2 -2
- package/container/dist/index.d.ts +2 -2
- package/container/dist/index.esm.js +1 -1
- package/container/dist/index.js +2 -2
- package/container/src/index.d.ts +2 -2
- package/container/src/index.ts +2 -2
- package/dist/index.cjs.js +2 -4
- package/dist/index.esm.js +2 -4
- package/functions/dist/index.d.ts +2 -2
- package/functions/dist/index.esm.js +1 -1
- package/functions/dist/index.js +2 -2
- package/functions/src/index.d.ts +2 -2
- package/functions/src/index.ts +2 -2
- package/miniprogram_dist/app.js +1 -1
- package/miniprogram_dist/index.js +1 -1
- package/node_modules/@cloudbase/ai/package.json +3 -3
- package/node_modules/@cloudbase/apis/package.json +3 -3
- package/node_modules/@cloudbase/app/package.json +3 -3
- package/node_modules/@cloudbase/auth/package.json +3 -3
- package/node_modules/@cloudbase/cloudrun/package.json +3 -3
- package/node_modules/@cloudbase/container/package.json +2 -2
- package/node_modules/@cloudbase/functions/package.json +4 -4
- package/node_modules/@cloudbase/model/package.json +3 -3
- package/node_modules/@cloudbase/mysql/package.json +1 -1
- package/node_modules/@cloudbase/oauth/package.json +2 -2
- package/node_modules/@cloudbase/realtime/package.json +2 -2
- package/node_modules/@cloudbase/storage/package.json +3 -3
- package/node_modules/@cloudbase/types/package.json +1 -1
- package/node_modules/@cloudbase/utilities/package.json +2 -2
- package/package.json +87 -18
- package/realtime/dist/index.d.ts +2 -2
- package/realtime/dist/index.esm.js +1 -1
- package/realtime/dist/index.js +2 -2
- package/realtime/src/index.d.ts +2 -2
- package/realtime/src/index.ts +2 -2
- package/storage/dist/index.d.ts +2 -2
- package/storage/dist/index.esm.js +1 -1
- package/storage/dist/index.js +2 -2
- package/storage/src/index.d.ts +2 -2
- package/storage/src/index.ts +2 -2
- package/analytics/dist/index.d.ts +0 -2
- package/analytics/dist/index.esm.js +0 -4
- package/analytics/dist/index.js +0 -9
- package/analytics/package.json +0 -6
- package/analytics/src/index.d.ts +0 -2
- package/analytics/src/index.ts +0 -4
- package/miniprogram_dist/analytics.js +0 -1
- package/node_modules/@cloudbase/analytics/.eslintrc.js +0 -15
- package/node_modules/@cloudbase/analytics/dist/cjs/index.d.ts +0 -2
- package/node_modules/@cloudbase/analytics/dist/cjs/index.js +0 -144
- package/node_modules/@cloudbase/analytics/dist/esm/index.d.ts +0 -2
- package/node_modules/@cloudbase/analytics/dist/esm/index.js +0 -140
- package/node_modules/@cloudbase/analytics/package.json +0 -22
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cloudbase/ai",
|
|
3
|
-
"version": "3.3.14-beta.
|
|
3
|
+
"version": "3.3.14-beta.7",
|
|
4
4
|
"description": "cloudbase js sdk ai module",
|
|
5
5
|
"main": "dist/cjs/index.js",
|
|
6
6
|
"module": "dist/esm/index.js",
|
|
@@ -22,8 +22,8 @@
|
|
|
22
22
|
"author": "",
|
|
23
23
|
"license": "Apache-2.0",
|
|
24
24
|
"dependencies": {
|
|
25
|
-
"@cloudbase/types": "3.3.14-beta.
|
|
26
|
-
"@cloudbase/utilities": "3.3.14-beta.
|
|
25
|
+
"@cloudbase/types": "3.3.14-beta.7",
|
|
26
|
+
"@cloudbase/utilities": "3.3.14-beta.7",
|
|
27
27
|
"@mattiasbuelens/web-streams-adapter": "^0.1.0",
|
|
28
28
|
"text-encoding-shim": "^1.0.5",
|
|
29
29
|
"web-streams-polyfill": "^4.0.0"
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cloudbase/apis",
|
|
3
|
-
"version": "3.3.14-beta.
|
|
3
|
+
"version": "3.3.14-beta.7",
|
|
4
4
|
"description": "cloudbase js sdk apis module",
|
|
5
5
|
"main": "dist/cjs/index.js",
|
|
6
6
|
"module": "dist/esm/index.js",
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
"author": "",
|
|
23
23
|
"license": "Apache-2.0",
|
|
24
24
|
"dependencies": {
|
|
25
|
-
"@cloudbase/types": "3.3.14-beta.
|
|
26
|
-
"@cloudbase/utilities": "3.3.14-beta.
|
|
25
|
+
"@cloudbase/types": "3.3.14-beta.7",
|
|
26
|
+
"@cloudbase/utilities": "3.3.14-beta.7"
|
|
27
27
|
}
|
|
28
28
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cloudbase/app",
|
|
3
|
-
"version": "3.3.14-beta.
|
|
3
|
+
"version": "3.3.14-beta.7",
|
|
4
4
|
"description": "cloudbase javascript sdk core",
|
|
5
5
|
"main": "dist/cjs/index.js",
|
|
6
6
|
"module": "dist/esm/index.js",
|
|
@@ -36,8 +36,8 @@
|
|
|
36
36
|
"dependencies": {
|
|
37
37
|
"@cloudbase/adapter-interface": "^0.7.1",
|
|
38
38
|
"@cloudbase/adapter-wx_mp": "^1.3.1",
|
|
39
|
-
"@cloudbase/types": "3.3.14-beta.
|
|
40
|
-
"@cloudbase/utilities": "3.3.14-beta.
|
|
39
|
+
"@cloudbase/types": "3.3.14-beta.7",
|
|
40
|
+
"@cloudbase/utilities": "3.3.14-beta.7"
|
|
41
41
|
},
|
|
42
42
|
"peerDependencies": {
|
|
43
43
|
"@cloudbase/signature-nodejs": ">=1.0.0",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cloudbase/auth",
|
|
3
|
-
"version": "3.3.14-beta.
|
|
3
|
+
"version": "3.3.14-beta.7",
|
|
4
4
|
"description": "cloudbase javascript sdk auth componets",
|
|
5
5
|
"main": "dist/cjs/index.js",
|
|
6
6
|
"module": "dist/esm/index.js",
|
|
@@ -24,8 +24,8 @@
|
|
|
24
24
|
"license": "Apache-2.0",
|
|
25
25
|
"dependencies": {
|
|
26
26
|
"@cloudbase/adapter-wx_mp": "^1.3.1",
|
|
27
|
-
"@cloudbase/oauth": "3.3.14-beta.
|
|
28
|
-
"@cloudbase/utilities": "3.3.14-beta.
|
|
27
|
+
"@cloudbase/oauth": "3.3.14-beta.7",
|
|
28
|
+
"@cloudbase/utilities": "3.3.14-beta.7"
|
|
29
29
|
},
|
|
30
30
|
"gitHead": "859557576897d4778857c12fb8d7fe8ca1f3a052"
|
|
31
31
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cloudbase/cloudrun",
|
|
3
|
-
"version": "3.3.14-beta.
|
|
3
|
+
"version": "3.3.14-beta.7",
|
|
4
4
|
"description": "cloudbase javascript sdk cloudrun componets",
|
|
5
5
|
"main": "dist/cjs/index.js",
|
|
6
6
|
"module": "dist/esm/index.js",
|
|
@@ -23,8 +23,8 @@
|
|
|
23
23
|
"license": "Apache-2.0",
|
|
24
24
|
"dependencies": {
|
|
25
25
|
"@cloudbase/adapter-interface": "^0.7.1",
|
|
26
|
-
"@cloudbase/types": "3.3.14-beta.
|
|
27
|
-
"@cloudbase/utilities": "3.3.14-beta.
|
|
26
|
+
"@cloudbase/types": "3.3.14-beta.7",
|
|
27
|
+
"@cloudbase/utilities": "3.3.14-beta.7"
|
|
28
28
|
},
|
|
29
29
|
"gitHead": "859557576897d4778857c12fb8d7fe8ca1f3a052"
|
|
30
30
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cloudbase/container",
|
|
3
|
-
"version": "3.3.14-beta.
|
|
3
|
+
"version": "3.3.14-beta.7",
|
|
4
4
|
"description": "cloudbase javascript sdk functions componets",
|
|
5
5
|
"main": "dist/cjs/index.js",
|
|
6
6
|
"module": "dist/esm/index.js",
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
"license": "Apache-2.0",
|
|
25
25
|
"dependencies": {
|
|
26
26
|
"@cloudbase/adapter-interface": "^0.7.1",
|
|
27
|
-
"@cloudbase/utilities": "3.3.14-beta.
|
|
27
|
+
"@cloudbase/utilities": "3.3.14-beta.7"
|
|
28
28
|
},
|
|
29
29
|
"gitHead": "859557576897d4778857c12fb8d7fe8ca1f3a052"
|
|
30
30
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cloudbase/functions",
|
|
3
|
-
"version": "3.3.14-beta.
|
|
3
|
+
"version": "3.3.14-beta.7",
|
|
4
4
|
"description": "cloudbase javascript sdk functions componets",
|
|
5
5
|
"main": "dist/cjs/index.js",
|
|
6
6
|
"module": "dist/esm/index.js",
|
|
@@ -24,9 +24,9 @@
|
|
|
24
24
|
"license": "Apache-2.0",
|
|
25
25
|
"dependencies": {
|
|
26
26
|
"@cloudbase/adapter-interface": "^0.7.1",
|
|
27
|
-
"@cloudbase/cloudrun": "3.3.14-beta.
|
|
28
|
-
"@cloudbase/types": "3.3.14-beta.
|
|
29
|
-
"@cloudbase/utilities": "3.3.14-beta.
|
|
27
|
+
"@cloudbase/cloudrun": "3.3.14-beta.7",
|
|
28
|
+
"@cloudbase/types": "3.3.14-beta.7",
|
|
29
|
+
"@cloudbase/utilities": "3.3.14-beta.7"
|
|
30
30
|
},
|
|
31
31
|
"gitHead": "859557576897d4778857c12fb8d7fe8ca1f3a052"
|
|
32
32
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cloudbase/model",
|
|
3
|
-
"version": "3.3.14-beta.
|
|
3
|
+
"version": "3.3.14-beta.7",
|
|
4
4
|
"description": "cloudbase js sdk model module",
|
|
5
5
|
"main": "dist/cjs/index.js",
|
|
6
6
|
"module": "dist/esm/index.js",
|
|
@@ -21,8 +21,8 @@
|
|
|
21
21
|
"author": "",
|
|
22
22
|
"license": "Apache-2.0",
|
|
23
23
|
"dependencies": {
|
|
24
|
-
"@cloudbase/types": "3.3.14-beta.
|
|
25
|
-
"@cloudbase/utilities": "3.3.14-beta.
|
|
24
|
+
"@cloudbase/types": "3.3.14-beta.7",
|
|
25
|
+
"@cloudbase/utilities": "3.3.14-beta.7",
|
|
26
26
|
"@cloudbase/wx-cloud-client-sdk": "^1.8.8"
|
|
27
27
|
},
|
|
28
28
|
"gitHead": "859557576897d4778857c12fb8d7fe8ca1f3a052"
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cloudbase/oauth",
|
|
3
|
-
"version": "3.3.14-beta.
|
|
3
|
+
"version": "3.3.14-beta.7",
|
|
4
4
|
"description": "cloudbase javascript sdk auth componets",
|
|
5
5
|
"main": "dist/cjs/index.js",
|
|
6
6
|
"module": "dist/esm/index.js",
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
"access": "public"
|
|
11
11
|
},
|
|
12
12
|
"dependencies": {
|
|
13
|
-
"@cloudbase/utilities": "3.3.14-beta.
|
|
13
|
+
"@cloudbase/utilities": "3.3.14-beta.7"
|
|
14
14
|
},
|
|
15
15
|
"peerDependencies": {
|
|
16
16
|
"@cloudbase/utilities": "2.25.0"
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cloudbase/realtime",
|
|
3
|
-
"version": "3.3.14-beta.
|
|
3
|
+
"version": "3.3.14-beta.7",
|
|
4
4
|
"description": "cloudbase javascript sdk functions componets",
|
|
5
5
|
"main": "dist/cjs/index.js",
|
|
6
6
|
"module": "dist/esm/index.js",
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
"author": "",
|
|
23
23
|
"license": "Apache-2.0",
|
|
24
24
|
"dependencies": {
|
|
25
|
-
"@cloudbase/types": "3.3.14-beta.
|
|
25
|
+
"@cloudbase/types": "3.3.14-beta.7",
|
|
26
26
|
"lodash": "^4.17.21"
|
|
27
27
|
},
|
|
28
28
|
"gitHead": "859557576897d4778857c12fb8d7fe8ca1f3a052"
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cloudbase/storage",
|
|
3
|
-
"version": "3.3.14-beta.
|
|
3
|
+
"version": "3.3.14-beta.7",
|
|
4
4
|
"description": "cloudbase js sdk storage module",
|
|
5
5
|
"main": "dist/cjs/index.js",
|
|
6
6
|
"module": "dist/esm/index.js",
|
|
@@ -21,8 +21,8 @@
|
|
|
21
21
|
"author": "",
|
|
22
22
|
"license": "Apache-2.0",
|
|
23
23
|
"dependencies": {
|
|
24
|
-
"@cloudbase/types": "3.3.14-beta.
|
|
25
|
-
"@cloudbase/utilities": "3.3.14-beta.
|
|
24
|
+
"@cloudbase/types": "3.3.14-beta.7",
|
|
25
|
+
"@cloudbase/utilities": "3.3.14-beta.7"
|
|
26
26
|
},
|
|
27
27
|
"gitHead": "859557576897d4778857c12fb8d7fe8ca1f3a052"
|
|
28
28
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cloudbase/utilities",
|
|
3
|
-
"version": "3.3.14-beta.
|
|
3
|
+
"version": "3.3.14-beta.7",
|
|
4
4
|
"description": "cloudbase javascript sdk utilities",
|
|
5
5
|
"main": "dist/cjs/index.js",
|
|
6
6
|
"module": "dist/esm/index.js",
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
"license": "Apache-2.0",
|
|
20
20
|
"dependencies": {
|
|
21
21
|
"@cloudbase/adapter-interface": "^0.7.1",
|
|
22
|
-
"@cloudbase/types": "3.3.14-beta.
|
|
22
|
+
"@cloudbase/types": "3.3.14-beta.7",
|
|
23
23
|
"jwt-decode": "^3.1.2"
|
|
24
24
|
},
|
|
25
25
|
"gitHead": "859557576897d4778857c12fb8d7fe8ca1f3a052"
|
package/package.json
CHANGED
|
@@ -1,11 +1,83 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cloudbase/js-sdk",
|
|
3
|
-
"version": "3.3.14-beta.
|
|
3
|
+
"version": "3.3.14-beta.7",
|
|
4
4
|
"description": "cloudbase javascript sdk",
|
|
5
5
|
"main": "dist/index.cjs.js",
|
|
6
6
|
"module": "dist/index.esm.js",
|
|
7
7
|
"miniprogram": "miniprogram_dist",
|
|
8
8
|
"typings": "./index.d.ts",
|
|
9
|
+
"exports": {
|
|
10
|
+
".": {
|
|
11
|
+
"import": "./dist/index.esm.js",
|
|
12
|
+
"require": "./dist/index.cjs.js",
|
|
13
|
+
"types": "./index.d.ts"
|
|
14
|
+
},
|
|
15
|
+
"./ai": {
|
|
16
|
+
"import": "./ai/dist/index.esm.js",
|
|
17
|
+
"require": "./ai/dist/index.js",
|
|
18
|
+
"types": "./ai/dist/index.d.ts"
|
|
19
|
+
},
|
|
20
|
+
"./apis": {
|
|
21
|
+
"import": "./apis/dist/index.esm.js",
|
|
22
|
+
"require": "./apis/dist/index.js",
|
|
23
|
+
"types": "./apis/dist/index.d.ts"
|
|
24
|
+
},
|
|
25
|
+
"./app": {
|
|
26
|
+
"import": "./app/dist/index.esm.js",
|
|
27
|
+
"require": "./app/dist/index.js",
|
|
28
|
+
"types": "./app/dist/index.d.ts"
|
|
29
|
+
},
|
|
30
|
+
"./auth": {
|
|
31
|
+
"import": "./auth/dist/index.esm.js",
|
|
32
|
+
"require": "./auth/dist/index.js",
|
|
33
|
+
"types": "./auth/dist/index.d.ts"
|
|
34
|
+
},
|
|
35
|
+
"./cloudrun": {
|
|
36
|
+
"import": "./cloudrun/dist/index.esm.js",
|
|
37
|
+
"require": "./cloudrun/dist/index.js",
|
|
38
|
+
"types": "./cloudrun/dist/index.d.ts"
|
|
39
|
+
},
|
|
40
|
+
"./container": {
|
|
41
|
+
"import": "./container/dist/index.esm.js",
|
|
42
|
+
"require": "./container/dist/index.js",
|
|
43
|
+
"types": "./container/dist/index.d.ts"
|
|
44
|
+
},
|
|
45
|
+
"./database": {
|
|
46
|
+
"import": "./database/dist/index.esm.js",
|
|
47
|
+
"require": "./database/dist/index.js",
|
|
48
|
+
"types": "./database/dist/index.d.ts"
|
|
49
|
+
},
|
|
50
|
+
"./functions": {
|
|
51
|
+
"import": "./functions/dist/index.esm.js",
|
|
52
|
+
"require": "./functions/dist/index.js",
|
|
53
|
+
"types": "./functions/dist/index.d.ts"
|
|
54
|
+
},
|
|
55
|
+
"./model": {
|
|
56
|
+
"import": "./model/dist/index.esm.js",
|
|
57
|
+
"require": "./model/dist/index.js",
|
|
58
|
+
"types": "./model/dist/index.d.ts"
|
|
59
|
+
},
|
|
60
|
+
"./mysql": {
|
|
61
|
+
"import": "./mysql/dist/index.esm.js",
|
|
62
|
+
"require": "./mysql/dist/index.js",
|
|
63
|
+
"types": "./mysql/dist/index.d.ts"
|
|
64
|
+
},
|
|
65
|
+
"./oauth": {
|
|
66
|
+
"import": "./oauth/dist/index.esm.js",
|
|
67
|
+
"require": "./oauth/dist/index.js",
|
|
68
|
+
"types": "./oauth/dist/index.d.ts"
|
|
69
|
+
},
|
|
70
|
+
"./realtime": {
|
|
71
|
+
"import": "./realtime/dist/index.esm.js",
|
|
72
|
+
"require": "./realtime/dist/index.js",
|
|
73
|
+
"types": "./realtime/dist/index.d.ts"
|
|
74
|
+
},
|
|
75
|
+
"./storage": {
|
|
76
|
+
"import": "./storage/dist/index.esm.js",
|
|
77
|
+
"require": "./storage/dist/index.js",
|
|
78
|
+
"types": "./storage/dist/index.d.ts"
|
|
79
|
+
}
|
|
80
|
+
},
|
|
9
81
|
"scripts": {
|
|
10
82
|
"lint": "eslint --fix \"./src/**/*.ts\"",
|
|
11
83
|
"build": "rm -rf dist/ && gulp build",
|
|
@@ -33,7 +105,6 @@
|
|
|
33
105
|
"dist/",
|
|
34
106
|
"miniprogram_dist/",
|
|
35
107
|
"ai/",
|
|
36
|
-
"analytics/",
|
|
37
108
|
"apis/",
|
|
38
109
|
"app/",
|
|
39
110
|
"auth/",
|
|
@@ -62,22 +133,21 @@
|
|
|
62
133
|
"dependencies": {
|
|
63
134
|
"@cloudbase/adapter-interface": "^0.7.1",
|
|
64
135
|
"@cloudbase/adapter-wx_mp": "^1.3.1",
|
|
65
|
-
"@cloudbase/ai": "3.3.14-beta.
|
|
66
|
-
"@cloudbase/
|
|
67
|
-
"@cloudbase/
|
|
68
|
-
"@cloudbase/
|
|
69
|
-
"@cloudbase/
|
|
70
|
-
"@cloudbase/
|
|
71
|
-
"@cloudbase/container": "3.3.14-beta.2",
|
|
136
|
+
"@cloudbase/ai": "3.3.14-beta.7",
|
|
137
|
+
"@cloudbase/apis": "3.3.14-beta.7",
|
|
138
|
+
"@cloudbase/app": "3.3.14-beta.7",
|
|
139
|
+
"@cloudbase/auth": "3.3.14-beta.7",
|
|
140
|
+
"@cloudbase/cloudrun": "3.3.14-beta.7",
|
|
141
|
+
"@cloudbase/container": "3.3.14-beta.7",
|
|
72
142
|
"@cloudbase/database": "0.12.1",
|
|
73
|
-
"@cloudbase/functions": "3.3.14-beta.
|
|
74
|
-
"@cloudbase/model": "3.3.14-beta.
|
|
75
|
-
"@cloudbase/mysql": "3.3.14-beta.
|
|
76
|
-
"@cloudbase/oauth": "3.3.14-beta.
|
|
77
|
-
"@cloudbase/realtime": "3.3.14-beta.
|
|
78
|
-
"@cloudbase/storage": "3.3.14-beta.
|
|
79
|
-
"@cloudbase/types": "3.3.14-beta.
|
|
80
|
-
"@cloudbase/utilities": "3.3.14-beta.
|
|
143
|
+
"@cloudbase/functions": "3.3.14-beta.7",
|
|
144
|
+
"@cloudbase/model": "3.3.14-beta.7",
|
|
145
|
+
"@cloudbase/mysql": "3.3.14-beta.7",
|
|
146
|
+
"@cloudbase/oauth": "3.3.14-beta.7",
|
|
147
|
+
"@cloudbase/realtime": "3.3.14-beta.7",
|
|
148
|
+
"@cloudbase/storage": "3.3.14-beta.7",
|
|
149
|
+
"@cloudbase/types": "3.3.14-beta.7",
|
|
150
|
+
"@cloudbase/utilities": "3.3.14-beta.7",
|
|
81
151
|
"@cloudbase/wx-cloud-client-sdk": "^1.8.8",
|
|
82
152
|
"@mattiasbuelens/web-streams-adapter": "^0.1.0",
|
|
83
153
|
"jwt-decode": "^3.1.2",
|
|
@@ -87,7 +157,6 @@
|
|
|
87
157
|
},
|
|
88
158
|
"bundledDependencies": [
|
|
89
159
|
"@cloudbase/ai",
|
|
90
|
-
"@cloudbase/analytics",
|
|
91
160
|
"@cloudbase/apis",
|
|
92
161
|
"@cloudbase/app",
|
|
93
162
|
"@cloudbase/auth",
|
package/realtime/dist/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import
|
|
2
|
-
export declare const registerRealtime: (app:
|
|
1
|
+
import { ICloudbase } from '@cloudbase/types';
|
|
2
|
+
export declare const registerRealtime: (app: ICloudbase) => void;
|
|
@@ -5,4 +5,4 @@ try {
|
|
|
5
5
|
}
|
|
6
6
|
catch (e) { }
|
|
7
7
|
|
|
8
|
-
//# sourceMappingURL=data:application/json;charset=utf8;base64,
|
|
8
|
+
//# sourceMappingURL=data:application/json;charset=utf8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImluZGV4LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBRSxnQkFBZ0IsSUFBSSxzQkFBc0IsRUFBRSxNQUFNLHFCQUFxQixDQUFDO0FBR2pGLE1BQU0sQ0FBQyxJQUFNLGdCQUFnQixHQUFHLHNCQUFtRCxDQUFDO0FBRXBGLElBQUk7SUFDRCxNQUFjLENBQUMsZ0JBQWdCLEdBQUcsZ0JBQWdCLENBQUE7Q0FDcEQ7QUFBQyxPQUFPLENBQUMsRUFBRSxHQUFFIiwiZmlsZSI6ImluZGV4LmVzbS5qcyIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB7IHJlZ2lzdGVyUmVhbHRpbWUgYXMgcmVnaXN0ZXJSZWFsdGltZU9yaWdpbiB9IGZyb20gJ0BjbG91ZGJhc2UvcmVhbHRpbWUnO1xuaW1wb3J0IHsgSUNsb3VkYmFzZSB9IGZyb20gJ0BjbG91ZGJhc2UvdHlwZXMnO1xuXG5leHBvcnQgY29uc3QgcmVnaXN0ZXJSZWFsdGltZSA9IHJlZ2lzdGVyUmVhbHRpbWVPcmlnaW4gYXMgKGFwcDogSUNsb3VkYmFzZSkgPT4gdm9pZDtcblxudHJ5IHtcbiAgKHdpbmRvdyBhcyBhbnkpLnJlZ2lzdGVyUmVhbHRpbWUgPSByZWdpc3RlclJlYWx0aW1lXG59IGNhdGNoIChlKSB7fSJdfQ==
|
package/realtime/dist/index.js
CHANGED
|
@@ -8,6 +8,6 @@ try {
|
|
|
8
8
|
}
|
|
9
9
|
catch (e) { }
|
|
10
10
|
|
|
11
|
-
//# sourceMappingURL=data:application/json;charset=utf8;base64,
|
|
11
|
+
//# sourceMappingURL=data:application/json;charset=utf8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImluZGV4LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7OztBQUFBLGdEQUFpRjtBQUdwRSxRQUFBLGdCQUFnQixHQUFHLDJCQUFtRCxDQUFDO0FBRXBGLElBQUk7SUFDRCxNQUFjLENBQUMsZ0JBQWdCLEdBQUcsd0JBQWdCLENBQUE7Q0FDcEQ7QUFBQyxPQUFPLENBQUMsRUFBRSxHQUFFIiwiZmlsZSI6ImluZGV4LmpzIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHsgcmVnaXN0ZXJSZWFsdGltZSBhcyByZWdpc3RlclJlYWx0aW1lT3JpZ2luIH0gZnJvbSAnQGNsb3VkYmFzZS9yZWFsdGltZSc7XG5pbXBvcnQgeyBJQ2xvdWRiYXNlIH0gZnJvbSAnQGNsb3VkYmFzZS90eXBlcyc7XG5cbmV4cG9ydCBjb25zdCByZWdpc3RlclJlYWx0aW1lID0gcmVnaXN0ZXJSZWFsdGltZU9yaWdpbiBhcyAoYXBwOiBJQ2xvdWRiYXNlKSA9PiB2b2lkO1xuXG50cnkge1xuICAod2luZG93IGFzIGFueSkucmVnaXN0ZXJSZWFsdGltZSA9IHJlZ2lzdGVyUmVhbHRpbWVcbn0gY2F0Y2ggKGUpIHt9Il19
|
|
12
12
|
|
|
13
|
-
//# sourceMappingURL=data:application/json;charset=utf8;base64,
|
|
13
|
+
//# sourceMappingURL=data:application/json;charset=utf8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImluZGV4LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7OztBQUFBLGdEQUFpRjtBQUdwRSxRQUFBLGdCQUFnQixHQUFHLDJCQUFtRCxDQUFDO0FBRXBGLElBQUk7SUFDRCxNQUFjLENBQUMsZ0JBQWdCLEdBQUcsd0JBQWdCLENBQUE7Q0FDcEQ7QUFBQyxPQUFPLENBQUMsRUFBRSxHQUFFIiwiZmlsZSI6ImluZGV4LmpzIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHsgcmVnaXN0ZXJSZWFsdGltZSBhcyByZWdpc3RlclJlYWx0aW1lT3JpZ2luIH0gZnJvbSAnQGNsb3VkYmFzZS9yZWFsdGltZSc7XG5pbXBvcnQgeyBJQ2xvdWRiYXNlIH0gZnJvbSAnQGNsb3VkYmFzZS90eXBlcyc7XG5cbmV4cG9ydCBjb25zdCByZWdpc3RlclJlYWx0aW1lID0gcmVnaXN0ZXJSZWFsdGltZU9yaWdpbiBhcyAoYXBwOiBJQ2xvdWRiYXNlKSA9PiB2b2lkO1xuXG50cnkge1xuICAod2luZG93IGFzIGFueSkucmVnaXN0ZXJSZWFsdGltZSA9IHJlZ2lzdGVyUmVhbHRpbWVcbn0gY2F0Y2ggKGUpIHt9Il19
|
package/realtime/src/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import
|
|
2
|
-
export declare const registerRealtime: (app:
|
|
1
|
+
import { ICloudbase } from '@cloudbase/types';
|
|
2
|
+
export declare const registerRealtime: (app: ICloudbase) => void;
|
package/realtime/src/index.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { registerRealtime as registerRealtimeOrigin } from '@cloudbase/realtime';
|
|
2
|
-
import
|
|
2
|
+
import { ICloudbase } from '@cloudbase/types';
|
|
3
3
|
|
|
4
|
-
export const registerRealtime = registerRealtimeOrigin as (app:
|
|
4
|
+
export const registerRealtime = registerRealtimeOrigin as (app: ICloudbase) => void;
|
|
5
5
|
|
|
6
6
|
try {
|
|
7
7
|
(window as any).registerRealtime = registerRealtime
|
package/storage/dist/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import
|
|
2
|
-
export declare const registerStorage: (app:
|
|
1
|
+
import { ICloudbase } from '@cloudbase/types';
|
|
2
|
+
export declare const registerStorage: (app: ICloudbase) => void;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { registerStorage as registerStorageOrigin } from '@cloudbase/storage';
|
|
2
2
|
export var registerStorage = registerStorageOrigin;
|
|
3
3
|
|
|
4
|
-
//# sourceMappingURL=data:application/json;charset=utf8;base64,
|
|
4
|
+
//# sourceMappingURL=data:application/json;charset=utf8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImluZGV4LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBRSxlQUFlLElBQUkscUJBQXFCLEVBQUUsTUFBTSxvQkFBb0IsQ0FBQztBQUc5RSxNQUFNLENBQUMsSUFBTSxlQUFlLEdBQUcscUJBQWtELENBQUMiLCJmaWxlIjoiaW5kZXguZXNtLmpzIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHsgcmVnaXN0ZXJTdG9yYWdlIGFzIHJlZ2lzdGVyU3RvcmFnZU9yaWdpbiB9IGZyb20gJ0BjbG91ZGJhc2Uvc3RvcmFnZSc7XG5pbXBvcnQgeyBJQ2xvdWRiYXNlIH0gZnJvbSAnQGNsb3VkYmFzZS90eXBlcyc7XG5cbmV4cG9ydCBjb25zdCByZWdpc3RlclN0b3JhZ2UgPSByZWdpc3RlclN0b3JhZ2VPcmlnaW4gYXMgKGFwcDogSUNsb3VkYmFzZSkgPT4gdm9pZDsiXX0=
|
package/storage/dist/index.js
CHANGED
|
@@ -4,6 +4,6 @@ exports.registerStorage = void 0;
|
|
|
4
4
|
var storage_1 = require("@cloudbase/storage");
|
|
5
5
|
exports.registerStorage = storage_1.registerStorage;
|
|
6
6
|
|
|
7
|
-
//# sourceMappingURL=data:application/json;charset=utf8;base64,
|
|
7
|
+
//# sourceMappingURL=data:application/json;charset=utf8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImluZGV4LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7OztBQUFBLDhDQUE4RTtBQUdqRSxRQUFBLGVBQWUsR0FBRyx5QkFBa0QsQ0FBQyIsImZpbGUiOiJpbmRleC5qcyIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB7IHJlZ2lzdGVyU3RvcmFnZSBhcyByZWdpc3RlclN0b3JhZ2VPcmlnaW4gfSBmcm9tICdAY2xvdWRiYXNlL3N0b3JhZ2UnO1xuaW1wb3J0IHsgSUNsb3VkYmFzZSB9IGZyb20gJ0BjbG91ZGJhc2UvdHlwZXMnO1xuXG5leHBvcnQgY29uc3QgcmVnaXN0ZXJTdG9yYWdlID0gcmVnaXN0ZXJTdG9yYWdlT3JpZ2luIGFzIChhcHA6IElDbG91ZGJhc2UpID0+IHZvaWQ7Il19
|
|
8
8
|
|
|
9
|
-
//# sourceMappingURL=data:application/json;charset=utf8;base64,
|
|
9
|
+
//# sourceMappingURL=data:application/json;charset=utf8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImluZGV4LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7OztBQUFBLDhDQUE4RTtBQUdqRSxRQUFBLGVBQWUsR0FBRyx5QkFBa0QsQ0FBQyIsImZpbGUiOiJpbmRleC5qcyIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB7IHJlZ2lzdGVyU3RvcmFnZSBhcyByZWdpc3RlclN0b3JhZ2VPcmlnaW4gfSBmcm9tICdAY2xvdWRiYXNlL3N0b3JhZ2UnO1xuaW1wb3J0IHsgSUNsb3VkYmFzZSB9IGZyb20gJ0BjbG91ZGJhc2UvdHlwZXMnO1xuXG5leHBvcnQgY29uc3QgcmVnaXN0ZXJTdG9yYWdlID0gcmVnaXN0ZXJTdG9yYWdlT3JpZ2luIGFzIChhcHA6IElDbG91ZGJhc2UpID0+IHZvaWQ7Il19
|
package/storage/src/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import
|
|
2
|
-
export declare const registerStorage: (app:
|
|
1
|
+
import { ICloudbase } from '@cloudbase/types';
|
|
2
|
+
export declare const registerStorage: (app: ICloudbase) => void;
|
package/storage/src/index.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { registerStorage as registerStorageOrigin } from '@cloudbase/storage';
|
|
2
|
-
import
|
|
2
|
+
import { ICloudbase } from '@cloudbase/types';
|
|
3
3
|
|
|
4
|
-
export const registerStorage = registerStorageOrigin as (app:
|
|
4
|
+
export const registerStorage = registerStorageOrigin as (app: ICloudbase) => void;
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import { registerAnalytics as registerAnalyticsOrigin } from '@cloudbase/analytics';
|
|
2
|
-
export var registerAnalytics = registerAnalyticsOrigin;
|
|
3
|
-
|
|
4
|
-
//# sourceMappingURL=data:application/json;charset=utf8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImluZGV4LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBRSxpQkFBaUIsSUFBSSx1QkFBdUIsRUFBRSxNQUFNLHNCQUFzQixDQUFDO0FBR3BGLE1BQU0sQ0FBQyxJQUFNLGlCQUFpQixHQUFHLHVCQUEwRCxDQUFDIiwiZmlsZSI6ImluZGV4LmVzbS5qcyIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB7IHJlZ2lzdGVyQW5hbHl0aWNzIGFzIHJlZ2lzdGVyQW5hbHl0aWNzT3JpZ2luIH0gZnJvbSAnQGNsb3VkYmFzZS9hbmFseXRpY3MnO1xuaW1wb3J0IGNsb3VkYmFzZSBmcm9tICcuLi8uLi9pbmRleCc7XG5cbmV4cG9ydCBjb25zdCByZWdpc3RlckFuYWx5dGljcyA9IHJlZ2lzdGVyQW5hbHl0aWNzT3JpZ2luIGFzIChhcHA6IHR5cGVvZiBjbG91ZGJhc2UpID0+IHZvaWQ7Il19
|
package/analytics/dist/index.js
DELETED
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.registerAnalytics = void 0;
|
|
4
|
-
var analytics_1 = require("@cloudbase/analytics");
|
|
5
|
-
exports.registerAnalytics = analytics_1.registerAnalytics;
|
|
6
|
-
|
|
7
|
-
//# sourceMappingURL=data:application/json;charset=utf8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImluZGV4LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7OztBQUFBLGtEQUFvRjtBQUd2RSxRQUFBLGlCQUFpQixHQUFHLDZCQUEwRCxDQUFDIiwiZmlsZSI6ImluZGV4LmpzIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHsgcmVnaXN0ZXJBbmFseXRpY3MgYXMgcmVnaXN0ZXJBbmFseXRpY3NPcmlnaW4gfSBmcm9tICdAY2xvdWRiYXNlL2FuYWx5dGljcyc7XG5pbXBvcnQgY2xvdWRiYXNlIGZyb20gJy4uLy4uL2luZGV4JztcblxuZXhwb3J0IGNvbnN0IHJlZ2lzdGVyQW5hbHl0aWNzID0gcmVnaXN0ZXJBbmFseXRpY3NPcmlnaW4gYXMgKGFwcDogdHlwZW9mIGNsb3VkYmFzZSkgPT4gdm9pZDsiXX0=
|
|
8
|
-
|
|
9
|
-
//# sourceMappingURL=data:application/json;charset=utf8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImluZGV4LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7OztBQUFBLGtEQUFvRjtBQUd2RSxRQUFBLGlCQUFpQixHQUFHLDZCQUEwRCxDQUFDIiwiZmlsZSI6ImluZGV4LmpzIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHsgcmVnaXN0ZXJBbmFseXRpY3MgYXMgcmVnaXN0ZXJBbmFseXRpY3NPcmlnaW4gfSBmcm9tICdAY2xvdWRiYXNlL2FuYWx5dGljcyc7XG5pbXBvcnQgY2xvdWRiYXNlIGZyb20gJy4uLy4uL2luZGV4JztcblxuZXhwb3J0IGNvbnN0IHJlZ2lzdGVyQW5hbHl0aWNzID0gcmVnaXN0ZXJBbmFseXRpY3NPcmlnaW4gYXMgKGFwcDogdHlwZW9mIGNsb3VkYmFzZSkgPT4gdm9pZDsiXX0=
|
package/analytics/package.json
DELETED
package/analytics/src/index.d.ts
DELETED
package/analytics/src/index.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define("cloudbase_analytics",[],e):"object"==typeof exports?exports.cloudbase_analytics=e():t.cloudbase_analytics=e()}("undefined"!=typeof window?window:this,(()=>(()=>{"use strict";var t={702:(t,e,n)=>{n.r(e),n.d(e,{registerAnalytics:()=>N});var o="@cloudbase/js-sdk";function r(){return o}var i,a={INVALID_PARAMS:"INVALID_PARAMS",INVALID_SYNTAX:"INVALID_SYNTAX",INVALID_OPERATION:"INVALID_OPERATION",OPERATION_FAIL:"OPERATION_FAIL",NETWORK_ERROR:"NETWORK_ERROR",UNKOWN_ERROR:"UNKOWN_ERROR"};!function(t){t.local="local",t.none="none",t.session="session"}(i||(i={}));function s(t,e){console.warn("[".concat(r(),"][").concat(t,"]:").concat(e))}var c,u,l=(c=function(t,e){return c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},c(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}c(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),p=function(){return p=Object.assign||function(t){for(var e,n=1,o=arguments.length;n<o;n++)for(var r in e=arguments[n])Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t},p.apply(this,arguments)},f=function(t,e,n,o){return new(n||(n=Promise))((function(r,i){function a(t){try{c(o.next(t))}catch(t){i(t)}}function s(t){try{c(o.throw(t))}catch(t){i(t)}}function c(t){var e;t.done?r(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(a,s)}c((o=o.apply(t,e||[])).next())}))},d=function(t,e){var n,o,r,i,a={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(s){return function(c){return function(s){if(n)throw new TypeError("Generator is already executing.");for(;i&&(i=0,s[0]&&(a=0)),a;)try{if(n=1,o&&(r=2&s[0]?o.return:s[0]?o.throw||((r=o.return)&&r.call(o),0):o.next)&&!(r=r.call(o,s[1])).done)return r;switch(o=0,r&&(s=[2&s[0],r.value]),s[0]){case 0:case 1:r=s;break;case 4:return a.label++,{value:s[1],done:!1};case 5:a.label++,o=s[1],s=[0];continue;case 7:s=a.ops.pop(),a.trys.pop();continue;default:if(!((r=(r=a.trys).length>0&&r[r.length-1])||6!==s[0]&&2!==s[0])){a=0;continue}if(3===s[0]&&(!r||s[1]>r[0]&&s[1]<r[3])){a.label=s[1];break}if(6===s[0]&&a.label<r[1]){a.label=r[1],r=s;break}if(r&&a.label<r[2]){a.label=r[2],a.ops.push(s);break}r[2]&&a.ops.pop(),a.trys.pop();continue}s=e.call(t,a)}catch(t){s=[6,t],o=0}finally{n=r=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,c])}}};!function(t){function e(e){var n=t.call(this)||this,o=e.timeout,r=e.timeoutMsg,i=e.restrictedMethods;return n.timeout=o||0,n.timeoutMsg=r||"请求超时",n.restrictedMethods=i||["get","post","upload","download"],n}l(e,t),e.prototype.get=function(t){return this.request(p(p({},t),{method:"get"}),this.restrictedMethods.includes("get"))},e.prototype.post=function(t){return this.request(p(p({},t),{method:"post"}),this.restrictedMethods.includes("post"))},e.prototype.put=function(t){return this.request(p(p({},t),{method:"put"}))},e.prototype.upload=function(t){var e=t.data,n=t.file,o=t.name,r=t.method,i=t.headers,a=void 0===i?{}:i,s={post:"post",put:"put"}[null==r?void 0:r.toLowerCase()]||"put",c=new FormData;return"post"===s?(Object.keys(e).forEach((function(t){c.append(t,e[t])})),c.append("key",o),c.append("file",n),this.request(p(p({},t),{data:c,method:s}),this.restrictedMethods.includes("upload"))):this.request(p(p({},t),{method:"put",headers:a,body:n}),this.restrictedMethods.includes("upload"))},e.prototype.download=function(t){return f(this,void 0,void 0,(function(){var e,n,o,r;return d(this,(function(i){switch(i.label){case 0:return i.trys.push([0,2,,3]),[4,this.get(p(p({},t),{headers:{},responseType:"blob"}))];case 1:return e=i.sent().data,n=window.URL.createObjectURL(new Blob([e])),o=decodeURIComponent(new URL(t.url).pathname.split("/").pop()||""),(r=document.createElement("a")).href=n,r.setAttribute("download",o),r.style.display="none",document.body.appendChild(r),r.click(),window.URL.revokeObjectURL(n),document.body.removeChild(r),[3,3];case 2:return i.sent(),[3,3];case 3:return[2,new Promise((function(e){e({statusCode:200,tempFilePath:t.url})}))]}}))}))},e.prototype.fetch=function(t){var e;return f(this,void 0,void 0,(function(){var n,o,r,i,a,s,c,u,l,h,y,b,v,m=this;return d(this,(function(g){switch(g.label){case 0:return n=new AbortController,o=t.url,r=t.enableAbort,i=void 0!==r&&r,a=t.stream,s=void 0!==a&&a,c=t.signal,u=t.timeout,l=t.shouldThrowOnError,h=void 0===l||l,y=null!=u?u:this.timeout,c&&(c.aborted&&n.abort(),c.addEventListener("abort",(function(){return n.abort()}))),b=null,i&&y&&(b=setTimeout((function(){console.warn(m.timeoutMsg),n.abort(new Error(m.timeoutMsg))}),y)),[4,fetch(o,p(p({},t),{signal:n.signal})).then((function(t){return f(m,void 0,void 0,(function(){var e,n,o;return d(this,(function(r){switch(r.label){case 0:return clearTimeout(b),h?t.ok?(e=t,[3,3]):[3,1]:[3,4];case 1:return o=(n=Promise).reject,[4,t.json()];case 2:e=o.apply(n,[r.sent()]),r.label=3;case 3:return[2,e];case 4:return[2,t]}}))}))})).catch((function(t){if(clearTimeout(b),h)return Promise.reject(t)}))];case 1:return v=g.sent(),[2,{data:s?v.body:(null===(e=v.headers.get("content-type"))||void 0===e?void 0:e.includes("application/json"))?v.json():v.text(),statusCode:v.status,header:v.headers}]}}))}))},e.prototype.request=function(t,e){var n=this;void 0===e&&(e=!1);var o=String(t.method).toLowerCase()||"get";return new Promise((function(r){var i,a,s,c=t.url,u=t.headers,l=void 0===u?{}:u,p=t.data,f=t.responseType,d=t.withCredentials,h=t.body,y=t.onUploadProgress,b=function(t,e,n){void 0===n&&(n={});var o=/\?/.test(e),r="";return Object.keys(n).forEach((function(t){""===r?!o&&(e+="?"):r+="&",r+="".concat(t,"=").concat(encodeURIComponent(n[t]))})),/^http(s)?:\/\//.test(e+=r)?e:"".concat(t).concat(e)}("https:",c,"get"===o?p:{}),v=new XMLHttpRequest;v.open(o,b),f&&(v.responseType=f),Object.keys(l).forEach((function(t){v.setRequestHeader(t,l[t])})),y&&v.upload.addEventListener("progress",y),v.onreadystatechange=function(){var t={};if(4===v.readyState){var e=v.getAllResponseHeaders().trim().split(/[\r\n]+/),n={};e.forEach((function(t){var e=t.split(": "),o=e.shift().toLowerCase(),r=e.join(": ");n[o]=r})),t.header=n,t.statusCode=v.status;try{t.data="blob"===f?v.response:JSON.parse(v.responseText)}catch(e){t.data="blob"===f?v.response:v.responseText}clearTimeout(i),r(t)}},e&&n.timeout&&(i=setTimeout((function(){console.warn(n.timeoutMsg),v.abort()}),n.timeout)),s=p,a="[object FormData]"===Object.prototype.toString.call(s)?p:"application/x-www-form-urlencoded"===l["content-type"]?function(t){void 0===t&&(t={});var e=[];return Object.keys(t).forEach((function(n){e.push("".concat(n,"=").concat(encodeURIComponent(t[n])))})),e.join("&")}(p):h||(p?JSON.stringify(p):void 0),d&&(v.withCredentials=!0),v.send(a)}))}}((function(){})),function(t){t.WEB="web",t.WX_MP="wx_mp"}(u||(u={}));var h=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function o(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),y=function(t,e,n,o){return new(n||(n=Promise))((function(r,i){function a(t){try{c(o.next(t))}catch(t){i(t)}}function s(t){try{c(o.throw(t))}catch(t){i(t)}}function c(t){var e;t.done?r(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(a,s)}c((o=o.apply(t,e||[])).next())}))},b=function(t,e){var n,o,r,i,a={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(s){return function(c){return function(s){if(n)throw new TypeError("Generator is already executing.");for(;i&&(i=0,s[0]&&(a=0)),a;)try{if(n=1,o&&(r=2&s[0]?o.return:s[0]?o.throw||((r=o.return)&&r.call(o),0):o.next)&&!(r=r.call(o,s[1])).done)return r;switch(o=0,r&&(s=[2&s[0],r.value]),s[0]){case 0:case 1:r=s;break;case 4:return a.label++,{value:s[1],done:!1};case 5:a.label++,o=s[1],s=[0];continue;case 7:s=a.ops.pop(),a.trys.pop();continue;default:if(!((r=(r=a.trys).length>0&&r[r.length-1])||6!==s[0]&&2!==s[0])){a=0;continue}if(3===s[0]&&(!r||s[1]>r[0]&&s[1]<r[3])){a.label=s[1];break}if(6===s[0]&&a.label<r[1]){a.label=r[1],r=s;break}if(r&&a.label<r[2]){a.label=r[2],a.ops.push(s);break}r[2]&&a.ops.pop(),a.trys.pop();continue}s=e.call(t,a)}catch(t){s=[6,t],o=0}finally{n=r=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,c])}}},v=function(t){function e(e){var n=t.call(this)||this;return n.root=e,e.tcbCacheObject||(e.tcbCacheObject={}),n}return h(e,t),e.prototype.setItem=function(t,e){this.root.tcbCacheObject[t]=e},e.prototype.getItem=function(t){return this.root.tcbCacheObject[t]},e.prototype.removeItem=function(t){delete this.root.tcbCacheObject[t]},e.prototype.clear=function(){delete this.root.tcbCacheObject},e}((function(){}));!function(){function t(t){this.keys={};var e=t.persistence,n=t.platformInfo,o=void 0===n?{}:n,r=t.keys,i=void 0===r?{}:r;this.platformInfo=o,this.storage||(this.persistenceTag=this.platformInfo.adapter.primaryStorage||e,this.storage=function(t,e){switch(t){case"local":default:return e.localStorage?e.localStorage:(s(a.INVALID_PARAMS,"localStorage is not supported on current platform"),new v(e.root));case"none":return new v(e.root)}}(this.persistenceTag,this.platformInfo.adapter),this.keys=i)}Object.defineProperty(t.prototype,"mode",{get:function(){return this.storage.mode||"sync"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"persistence",{get:function(){return this.persistenceTag},enumerable:!1,configurable:!0}),t.prototype.setStore=function(t,e,n){if("async"!==this.mode){if(this.storage)try{var o={version:n||"localCachev1",content:e};this.storage.setItem(t,JSON.stringify(o))}catch(t){throw new Error(JSON.stringify({code:a.OPERATION_FAIL,msg:"[".concat(r(),"][").concat(a.OPERATION_FAIL,"]setStore failed"),info:t}))}}else s(a.INVALID_OPERATION,"current platform's storage is asynchronous, please use setStoreAsync insteed")},t.prototype.setStoreAsync=function(t,e,n){return y(this,void 0,void 0,(function(){var o;return b(this,(function(r){switch(r.label){case 0:if(!this.storage)return[2];r.label=1;case 1:return r.trys.push([1,3,,4]),o={version:n||"localCachev1",content:e},[4,this.storage.setItem(t,JSON.stringify(o))];case 2:return r.sent(),[3,4];case 3:return r.sent(),[2];case 4:return[2]}}))}))},t.prototype.getStore=function(t,e){var n;if("async"!==this.mode){try{if("undefined"!=typeof process&&(null===(n={IS_MP_BUILD:!0,IS_BROWSER_BUILD:!0})||void 0===n?void 0:n.tcb_token))return{IS_MP_BUILD:!0,IS_BROWSER_BUILD:!0}.tcb_token;if(!this.storage)return""}catch(t){return""}e=e||"localCachev1";var o=this.storage.getItem(t);return o&&o.indexOf(e)>=0?JSON.parse(o).content:""}s(a.INVALID_OPERATION,"current platform's storage is asynchronous, please use getStoreAsync insteed")},t.prototype.getStoreAsync=function(t,e){var n;return y(this,void 0,void 0,(function(){var o;return b(this,(function(r){switch(r.label){case 0:try{if("undefined"!=typeof process&&(null===(n={IS_MP_BUILD:!0,IS_BROWSER_BUILD:!0})||void 0===n?void 0:n.tcb_token))return[2,{IS_MP_BUILD:!0,IS_BROWSER_BUILD:!0}.tcb_token];if(!this.storage)return[2,""]}catch(t){return[2,""]}return e=e||"localCachev1",[4,this.storage.getItem(t)];case 1:return(o=r.sent())&&o.indexOf(e)>=0?[2,JSON.parse(o).content]:[2,""]}}))}))},t.prototype.removeStore=function(t){"async"!==this.mode?this.storage.removeItem(t):s(a.INVALID_OPERATION,"current platform's storage is asynchronous, please use removeStoreAsync insteed")},t.prototype.removeStoreAsync=function(t){return y(this,void 0,void 0,(function(){return b(this,(function(e){switch(e.label){case 0:return[4,this.storage.removeItem(t)];case 1:return e.sent(),[2]}}))}))}}();var m=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function o(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),g=function(t,e){this.data=e||null,this.name=t},w=function(t){function e(e,n){var o=t.call(this,"error",{error:e,data:n})||this;return o.error=e,o}return m(e,t),e}(g),O=function(){function t(){this.listeners={}}return t.prototype.on=function(t,e){return function(t,e,n){n[t]=n[t]||[],n[t].push(e)}(t,e,this.listeners),this},t.prototype.off=function(t,e){return function(t,e,n){if(null==n?void 0:n[t]){var o=n[t].indexOf(e);-1!==o&&n[t].splice(o,1)}}(t,e,this.listeners),this},t.prototype.fire=function(t,e){if(t instanceof w)return console.error(t.error),this;var n="string"==typeof t?new g(t,e||{}):t,o=n.name;if(this.listens(o)){n.target=this;for(var r=0,i=this.listeners[o]?function(t,e,n){if(n||2===arguments.length)for(var o,r=0,i=e.length;r<i;r++)!o&&r in e||(o||(o=Array.prototype.slice.call(e,0,r)),o[r]=e[r]);return t.concat(o||Array.prototype.slice.call(e))}([],this.listeners[o],!0):[];r<i.length;r++)i[r].call(this,n)}return this},t.prototype.listens=function(t){return this.listeners[t]&&this.listeners[t].length>0},t}();function _(t){this.message=t}function I(t){this.message=t}new O,new O,"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.indexOf("Firefox"),_.prototype=new Error,_.prototype.name="InvalidCharacterError","undefined"!=typeof window&&window.atob&&window.atob.bind(window),I.prototype=new Error,I.prototype.name="InvalidTokenError";var S=function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},A=a,j="analytics",R=["mall"],P=new(function(){function t(){}return t.prototype.analytics=function(t){return e=this,n=void 0,r=function(){var e,n,o;return function(t,e){var n,o,r,i,a={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(s){return function(c){return function(s){if(n)throw new TypeError("Generator is already executing.");for(;i&&(i=0,s[0]&&(a=0)),a;)try{if(n=1,o&&(r=2&s[0]?o.return:s[0]?o.throw||((r=o.return)&&r.call(o),0):o.next)&&!(r=r.call(o,s[1])).done)return r;switch(o=0,r&&(s=[2&s[0],r.value]),s[0]){case 0:case 1:r=s;break;case 4:return a.label++,{value:s[1],done:!1};case 5:a.label++,o=s[1],s=[0];continue;case 7:s=a.ops.pop(),a.trys.pop();continue;default:if(!((r=(r=a.trys).length>0&&r[r.length-1])||6!==s[0]&&2!==s[0])){a=0;continue}if(3===s[0]&&(!r||s[1]>r[0]&&s[1]<r[3])){a.label=s[1];break}if(6===s[0]&&a.label<r[1]){a.label=r[1],r=s;break}if(r&&a.label<r[2]){a.label=r[2],a.ops.push(s);break}r[2]&&a.ops.pop(),a.trys.pop();continue}s=e.call(t,a)}catch(t){s=[6,t],o=0}finally{n=r=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,c])}}}(this,(function(r){if(!function(t){if("Object"!==Object.prototype.toString.call(t).slice(8,-1))return!1;var e=t.report_data,n=t.report_type;return!1!==R.includes(n)&&"Object"===Object.prototype.toString.call(e).slice(8,-1)&&!(void 0!==e.action_time&&!Number.isInteger(e.action_time))&&"string"==typeof e.action_type}(t))throw new Error(JSON.stringify({code:A.INVALID_PARAMS,msg:"[".concat(j,".analytics] invalid report data")}));return e=void 0===t.report_data.action_time?Math.floor(Date.now()/1e3):t.report_data.action_time,n={analytics_scene:t.report_type,analytics_data:Object.assign({},t.report_data,{action_time:e})},o={requestData:n},this.request.send("analytics.report",o),[2]}))},new((o=void 0)||(o=Promise))((function(t,i){function a(t){try{c(r.next(t))}catch(t){i(t)}}function s(t){try{c(r.throw(t))}catch(t){i(t)}}function c(e){var n;e.done?t(e.value):(n=e.value,n instanceof o?n:new o((function(t){t(n)}))).then(a,s)}c((r=r.apply(e,n||[])).next())}));var e,n,o,r},function(t,e,n,o){var r,i=arguments.length,a=i<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,o);else for(var s=t.length-1;s>=0;s--)(r=t[s])&&(a=(i<3?r(a):i>3?r(e,n,a):r(e,n))||a);i>3&&a&&Object.defineProperty(e,n,a)}([(e={customInfo:{className:"Cloudbase",methodName:"analytics"},title:"上报调用失败",messages:["请确认以下各项:"," 1 - 调用 analytics() 的语法或参数是否正确","如果问题依然存在,建议到官方问答社区提问或寻找帮助:".concat("https://support.qq.com/products/148793")]},e.mode,e.customInfo,e.title,e.messages,function(t,e,n){}),S("design:type",Function),S("design:paramtypes",[Object]),S("design:returntype",Promise)],t.prototype,"analytics",null),t;var e}()),E={name:j,entity:{analytics:P.analytics}};try{cloudbase.registerComponent(E)}catch(_){}function N(t){try{t.registerComponent(E)}catch(t){console.warn(t)}}}},e={};function n(o){var r=e[o];if(void 0!==r)return r.exports;var i=e[o]={exports:{}};return t[o](i,i.exports,n),i.exports}n.d=(t,e)=>{for(var o in e)n.o(e,o)&&!n.o(t,o)&&Object.defineProperty(t,o,{enumerable:!0,get:e[o]})},n.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),n.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var o={};return(()=>{var t=o;Object.defineProperty(t,"__esModule",{value:!0}),t.registerAnalytics=void 0;var e=n(702);t.registerAnalytics=e.registerAnalytics})(),o})()));
|