@be-link/cos 1.12.6 → 1.12.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.
Files changed (2) hide show
  1. package/bin/upload.js +0 -8
  2. package/package.json +1 -1
package/bin/upload.js CHANGED
@@ -121,14 +121,6 @@ async function initCOS() {
121
121
  const secretId = process.env.COS_SECRET_ID;
122
122
  const secretKey = process.env.COS_SECRET_KEY;
123
123
 
124
- if (!secretId || !secretKey) {
125
- console.error('❌ 错误:未找到 COS 密钥配置');
126
- console.error(' 请设置环境变量:');
127
- console.error(' - COS_SECRET_ID');
128
- console.error(' - COS_SECRET_KEY');
129
- process.exit(1);
130
- }
131
-
132
124
  console.log('✅ 使用环境变量中的密钥');
133
125
  cos = new COS({
134
126
  SecretId: 'AKIDx3wfJo5e4FAqHSOJ5cu2y3zh9MK2Uhy6',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@be-link/cos",
3
- "version": "1.12.6",
3
+ "version": "1.12.7",
4
4
  "description": "前端项目产物上传cos",
5
5
  "homepage": "https://github.com/snowmountain-top/be-link#readme",
6
6
  "author": "zhuiyi",