vue-cli-plugin-ali-oss
Advanced tools
Comparing version
{ | ||
"name": "vue-cli-plugin-ali-oss", | ||
"version": "1.0.1", | ||
"version": "1.0.2", | ||
"private": false, | ||
@@ -5,0 +5,0 @@ "description": "upload ali oss for webpack or vue", |
@@ -8,3 +8,3 @@ /* | ||
* @LastEditors: lax | ||
* @LastEditTime: 2021-01-03 17:53:26 | ||
* @LastEditTime: 2021-01-03 18:59:39 | ||
*/ | ||
@@ -136,16 +136,2 @@ const path = require("path"); | ||
} | ||
function getPrefix(op, pro) { | ||
const http = "http" + (op.secure && op.secure == false ? "" : "s") + "://"; | ||
const bucket = op.bucket; | ||
const region = op.region ? op.region : "oss-cn-hangzhou"; | ||
const prefix = op.prefix && op.prefix !== "" ? op.prefix + "/" : ""; | ||
const proName = op.projectName ? pro : ""; | ||
const diy = http + bucket + "." + region + ".aliyuncs.com/"; | ||
const path = op.endpoint ? op.endpoint : diy; | ||
const fullPath = path + prefix + proName; | ||
return fullPath; | ||
} | ||
AliOss.getPrefix = getPrefix; | ||
module.exports = AliOss; |
URL strings
Supply chain riskPackage contains fragments of external URLs or IP addresses, which the package may be accessing at runtime.
Found 1 instance in 1 package
9313
2.24%6
20%216
4.35%5
-16.67%