Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

qcos-upload

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

qcos-upload - npm Package Compare versions

Comparing version 1.0.1 to 1.0.2

2

index.js

@@ -152,3 +152,3 @@ var fs = require("fs");

function putFile() {
let obj = assign(config.Headers || {}, {
let obj = assign({},config.Headers || {}, {
Bucket: config.Bucket,

@@ -155,0 +155,0 @@ Region: config.Region,

{
"name": "qcos-upload",
"version": "1.0.1",
"version": "1.0.2",
"description": "cos upload",

@@ -5,0 +5,0 @@ "main": "index.js",

# fork自[qcloud-upload](https://github.com/yingye/qcloud-upload);
fix window下使用,分隔符为"\",现已修改为“/”。
fix window下使用,分隔符为"\\",现已修改为“/”。
增加两个新选项`clearDistDir`和`setHeaders`。
# qcloud-upload

@@ -22,6 +24,5 @@

const setHeaders = (obj)=>{
const shouldUseGzip = [".js",".css",".gz"];
const ext = path.parse(obj.Key).ext;
if(shouldUseGzip.indexOf(ext)!=-1){
obj.ContentEncoding = "gzip";
const reg = /.*\.(js|css|gz)$/
if(reg.test(obj.Key)){
obj.ContentEncoding = "gzip";
}

@@ -28,0 +29,0 @@ return obj;

SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc