Socket
Socket
Sign inDemoInstall

duoms

Package Overview
Dependencies
152
Maintainers
1
Versions
27
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.3.0 to 0.3.1

11

lib/push.js

@@ -41,6 +41,7 @@ #!/usr/bin/env node

}
var duoms = packInfo.duoms || {};
return {
name: packInfo.name || ''
,dir: packInfo.duomsDir || 'build' // 需要发布的目录名称(默认取 build 目录)
,bucket: duoms.bucket
,dir: duoms.dir || 'build' // 需要发布的目录名称(默认取 build 目录)
};

@@ -180,7 +181,9 @@ }();

// 打印发布信息
console.log(colors.help('发布文件: ' + (file||target)) + colors.warn(' ( '+ (isHtml ? Bucket.view[1] : Bucket.image[1]) + path.join(target, file) +' )'));
if(!packInfo.bucket || !isHtml){
console.log(colors.help('发布文件: ' + (file||target)) + colors.warn(' ( '+ (isHtml ? Bucket.view[1] : Bucket.image[1]) + path.join(target, file) +' )'));
}
// 将 Object 推送到 OSS
OSS.putObject({
Bucket: isHtml ? Bucket.view[0] : Bucket.image[0],
Bucket: isHtml ? (packInfo.bucket || Bucket.view[0]) : Bucket.image[0],
Key: path.join(target, file),

@@ -187,0 +190,0 @@ Body: fs.readFileSync(path.join(root, file)),

{
"name": "duoms",
"version": "0.3.0",
"version": "0.3.1",
"description": "剁手管理系统基础服务",

@@ -24,3 +24,6 @@ "main": "index.js",

"request": "2.67.0"
},
"duoms": {
"bucket": "partner-res"
}
}
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc