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

@alicloud/pop-core

Package Overview
Dependencies
Maintainers
3
Versions
44
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@alicloud/pop-core - npm Package Compare versions

Comparing version 1.2.1 to 1.2.2

9

lib/roa.js

@@ -110,8 +110,9 @@ 'use strict';

request(method, uriPattern, query = {}, body = '', headers = {}) {
const postBody = Buffer.from(body, 'utf8');
var postBody = null;
var mixHeaders = Object.assign(this.buildHeaders(), headers);
if (postBody.length) {
const digest = kitx.md5(postBody, 'hex');
mixHeaders['content-md5'] = Buffer.from(digest, 'utf8').toString('base64');
if (body) {
postBody = Buffer.from(body, 'utf8');
mixHeaders['content-md5'] = kitx.md5(postBody, 'base64');
mixHeaders['content-length'] = postBody.length;
}

@@ -118,0 +119,0 @@

{
"name": "@alicloud/pop-core",
"version": "1.2.1",
"version": "1.2.2",
"description": "AliCloud POP SDK core",

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

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