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

ali-oss

Package Overview
Dependencies
Maintainers
7
Versions
127
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ali-oss - npm Package Compare versions

Comparing version 6.14.1 to 6.15.0

7

CHANGELOG.md

@@ -5,2 +5,9 @@ # Changelog

## [6.15.0](https://github.com/aliyun/oss-nodejs-sdk/compare/v6.14.1...v6.15.0) (2021-03-26)
### Features
* provide a switch to generate upload file md5 ([#945](https://github.com/aliyun/oss-nodejs-sdk/issues/945)) ([2d65189](https://github.com/aliyun/oss-nodejs-sdk/commit/2d651896a93d4c2a67404479dce90ef01d79bb5a))
### [6.14.1](https://github.com/aliyun/oss-nodejs-sdk/compare/v6.14.0...v6.14.1) (2021-03-23)

@@ -7,0 +14,0 @@

3

lib/browser/client.js

@@ -74,3 +74,3 @@ const debug = require('debug')('ali-oss');

// for browser compatibility disable fetch.
useFetch: false
useFetch: false,
}, options);

@@ -219,3 +219,2 @@

const reqParams = createRequest.call(this, params);
if (!this.options.useFetch) {

@@ -222,0 +221,0 @@ reqParams.params.mode = 'disable-fetch';

@@ -36,2 +36,3 @@ // var debug = require('debug')('ali-oss:multipart');

this.resetCancelFlag();
options.disabledMD5 = options.disabledMD5 === undefined ? true : !!options.disabledMD5;
if (options.checkpoint && options.checkpoint.uploadId) {

@@ -147,3 +148,4 @@ if (file && isFile(file)) options.checkpoint.file = file;

result = await self._uploadPart(name, uploadId, partNo, data, {
timeout: options.timeout
timeout: options.timeout,
disabledMD5: options.disabledMD5
});

@@ -150,0 +152,0 @@ } catch (error) {

@@ -61,2 +61,3 @@ // const debug = require('debug')('ali-oss:object');

options = options || {};
options.disabledMD5 = options.disabledMD5 === undefined ? true : !!options.disabledMD5;
options.headers = options.headers || {};

@@ -87,2 +88,3 @@ name = this._objectName(name);

params.mime = options.mime;
params.disabledMD5 = options.disabledMD5;
params.content = content;

@@ -89,0 +91,0 @@ params.successStatuses = [200];

@@ -1,1 +0,1 @@

exports.version="6.14.1"
exports.version="6.15.0"

@@ -246,2 +246,3 @@ const copy = require('copy-to');

params.successStatuses = [200];
params.disabledMD5 = options.disabledMD5;

@@ -248,0 +249,0 @@ const result = await this.request(params);

@@ -52,6 +52,8 @@ "use strict";

if (params.content) {
headers['Content-MD5'] = crypto
.createHash('md5')
.update(Buffer.from(params.content, 'utf8'))
.digest('base64');
if (!params.disabledMD5) {
headers['Content-MD5'] = crypto
.createHash('md5')
.update(Buffer.from(params.content, 'utf8'))
.digest('base64');
}
if (!headers['Content-Length']) {

@@ -58,0 +60,0 @@ headers['Content-Length'] = params.content.length;

@@ -68,6 +68,8 @@ const crypto = require('crypto');

if (params.content) {
headers['Content-MD5'] = crypto
.createHash('md5')
.update(Buffer.from(params.content, 'utf8'))
.digest('base64');
if (!params.disabledMD5) {
headers['Content-MD5'] = crypto
.createHash('md5')
.update(Buffer.from(params.content, 'utf8'))
.digest('base64');
}
if (!headers['Content-Length']) {

@@ -74,0 +76,0 @@ headers['Content-Length'] = params.content.length;

{
"name": "ali-oss",
"version": "6.14.1",
"version": "6.15.0",
"description": "aliyun oss(object storage service) node client",

@@ -5,0 +5,0 @@ "main": "lib/client.js",

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

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