wtfai 1.7.2 → 1.7.3
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/dist/ui/code.js +1 -0
- package/dist/upload.d.ts +3 -1
- package/dist/upload.js +2 -2
- package/package.json +9 -9
package/dist/ui/code.js
CHANGED
package/dist/upload.d.ts
CHANGED
package/dist/upload.js
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import cos_js_sdk_v5 from "cos-js-sdk-v5";
|
|
2
1
|
import compressorjs from "compressorjs";
|
|
3
2
|
function _define_property(obj, key, value) {
|
|
4
3
|
if (key in obj) Object.defineProperty(obj, key, {
|
|
@@ -86,7 +85,8 @@ class UploadService {
|
|
|
86
85
|
throw new Error(error.message || '获取上传凭证失败');
|
|
87
86
|
}
|
|
88
87
|
const data = await response.json();
|
|
89
|
-
const
|
|
88
|
+
const COS = (await import("cos-js-sdk-v5")).default;
|
|
89
|
+
const cos = new COS({
|
|
90
90
|
getAuthorization: (_options, callback)=>{
|
|
91
91
|
callback({
|
|
92
92
|
TmpSecretId: data.credentials.tmpSecretId,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "wtfai",
|
|
3
|
-
"version": "1.7.
|
|
3
|
+
"version": "1.7.3",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"exports": {
|
|
6
6
|
".": {
|
|
@@ -15,28 +15,28 @@
|
|
|
15
15
|
"devDependencies": {
|
|
16
16
|
"@eslint/js": "^9.39.4",
|
|
17
17
|
"@rsbuild/plugin-react": "^1.4.6",
|
|
18
|
-
"@rslib/core": "^0.
|
|
18
|
+
"@rslib/core": "^0.21.0",
|
|
19
19
|
"@types/react": "^19.2.14",
|
|
20
20
|
"eslint": "^9.39.4",
|
|
21
21
|
"eslint-config-prettier": "^10.1.8",
|
|
22
22
|
"eslint-plugin-prettier": "^5.5.5",
|
|
23
23
|
"globals": "^17.4.0",
|
|
24
|
-
"prettier": "^3.8.
|
|
25
|
-
"react": "^19.2.
|
|
24
|
+
"prettier": "^3.8.2",
|
|
25
|
+
"react": "^19.2.5",
|
|
26
26
|
"typescript": "^5.9.3",
|
|
27
|
-
"typescript-eslint": "^8.
|
|
27
|
+
"typescript-eslint": "^8.58.1"
|
|
28
28
|
},
|
|
29
29
|
"peerDependencies": {
|
|
30
30
|
"react": ">=16.9.0",
|
|
31
31
|
"react-dom": ">=16.9.0"
|
|
32
32
|
},
|
|
33
33
|
"dependencies": {
|
|
34
|
-
"@ant-design/icons": "^6.1.
|
|
35
|
-
"@ant-design/x": "^2.
|
|
36
|
-
"@ant-design/x-markdown": "^2.
|
|
34
|
+
"@ant-design/icons": "^6.1.1",
|
|
35
|
+
"@ant-design/x": "^2.5.0",
|
|
36
|
+
"@ant-design/x-markdown": "^2.5.0",
|
|
37
37
|
"@microsoft/fetch-event-source": "^2.0.1",
|
|
38
38
|
"clsx": "^2.1.1",
|
|
39
|
-
"compressorjs": "^1.
|
|
39
|
+
"compressorjs": "^1.3.0",
|
|
40
40
|
"cos-js-sdk-v5": "^1.10.1",
|
|
41
41
|
"jsonrepair": "^3.13.3",
|
|
42
42
|
"uuid": "^13.0.0",
|