New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

ali-cdn-sdk

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ali-cdn-sdk - npm Package Compare versions

Comparing version 1.0.5 to 1.1.0

3

lib/errors/CdnError.js

@@ -5,6 +5,7 @@ 'use strict';

constructor(message) {
constructor(message, status) {
super(message);
this.name = this.constructor.name;
this.message = message;
this.status = status;
Error.captureStackTrace(this, this.constructor);

@@ -11,0 +12,0 @@ }

@@ -5,6 +5,7 @@ 'use strict';

constructor(message) {
constructor(message, status) {
super(message);
this.name = this.constructor.name;
this.message = message;
this.status = status;
Error.captureStackTrace(this, this.constructor);

@@ -11,0 +12,0 @@ }

@@ -56,7 +56,7 @@ 'use strict';

message = `invalid arguments: ${response.data && response.data.Message}`;
throw new errors.ValidationError(message);
throw new errors.ValidationError(message, response.status);
}
if (response.status !== 200) {
message = `unexpect error: ${response.data && response.data.Message}`;
throw new errors.CdnError(message);
throw new errors.CdnError(message, response.status);
}

@@ -63,0 +63,0 @@

{
"name": "ali-cdn-sdk",
"version": "1.0.5",
"version": "1.1.0",
"description": "阿里云 cdn sdk",

@@ -5,0 +5,0 @@ "main": "lib/sdk.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