@be-link/cos 1.12.3 → 1.12.4

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/bin/upload.js +1 -3
  2. package/package.json +1 -1
package/bin/upload.js CHANGED
@@ -63,12 +63,10 @@ function getTempCredentials(mode) {
63
63
  ? 'https://shield-60660-10-1304510571.sh.run.tcloudbase.com/config/get-cos-temp-secret'
64
64
  : 'https://shield-74680-5-1304510571.sh.run.tcloudbase.com/config/get-cos-temp-secret';
65
65
 
66
- const urlObj = new URL(url);
67
66
  const postData = JSON.stringify({});
68
67
 
69
68
  const options = {
70
- hostname: urlObj.hostname,
71
- path: urlObj.pathname,
69
+ path: url,
72
70
  method: 'POST',
73
71
  headers: {
74
72
  'Content-Type': 'application/json',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@be-link/cos",
3
- "version": "1.12.3",
3
+ "version": "1.12.4",
4
4
  "description": "前端项目产物上传cos",
5
5
  "homepage": "https://github.com/snowmountain-top/be-link#readme",
6
6
  "author": "zhuiyi",