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.1 to 1.0.2

11

lib/sdk.js

@@ -53,12 +53,15 @@ 'use strict';

}).then(response => {
let message = '';
if (response.status === 400) {
throw new errors.ValidationError('invalid arguments');
message = `invalid arguments: ${response.data && response.data.Message}`;
throw new errors.ValidationError(message);
}
if (response.status !== 200) {
throw new errors.CdnError('unexpect error');
message = `unexpect error: ${response.data && response.data.Message}`;
throw new errors.CdnError(message);
}
return response.data;
}).catch(() => {
throw new errors.CdnError('unexpect error');
}).catch(e => {
throw e;
});

@@ -65,0 +68,0 @@ }

{
"name": "ali-cdn-sdk",
"version": "1.0.1",
"version": "1.0.2",
"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