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

@huaweicloud/huaweicloud-sdk-core

Package Overview
Dependencies
Maintainers
2
Versions
177
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@huaweicloud/huaweicloud-sdk-core - npm Package Compare versions

Comparing version 3.1.2 to 3.1.3

16

exception/ExceptionUtil.js

@@ -32,4 +32,16 @@ "use strict";

var data = exception.data || {};
var errorCode = data.error ? data.error.code : exception.status;
var errorMsg = data.error ? data.error.message : exception.message;
var errorMsg;
var errorCode;
if (data.error) {
errorCode = data.error.code;
errorMsg = data.error.message;
}
else if (data.error_code) {
errorCode = data.error_code;
errorMsg = data.error_msg;
}
else {
errorCode = exception.status;
errorMsg = exception.message;
}
var requestId = exception.requestId;

@@ -36,0 +48,0 @@ var httpStatusCode = exception.status;

3

package.json
{
"name": "@huaweicloud/huaweicloud-sdk-core",
"version": "3.1.2",
"version": "3.1.3",
"description": "Core code for Huaweicloud SDK for Node.js",

@@ -31,2 +31,3 @@ "main": "huaweicloud-sdk-core.js",

"devDependencies": {
"@babel/parser": "^7.19.1",
"@types/chai": "^4.2.16",

@@ -33,0 +34,0 @@ "@types/chai-like": "^1.1.0",

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