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.1.1 to 1.1.2

21

lib/core.js

@@ -88,10 +88,17 @@ 'use strict';

this.verbose = verbose === true;
var httpModule = this.endpoint.startsWith('https://') ? require('https') : require('http');
this.keepAliveAgent = new httpModule.Agent({
keepAlive: true,
keepAliveMsecs: 3000
});
}
request(action, params) {
params || (params = {});
request(action, params = {}, opts = {}) {
// 1. compose params
action = firstLetterUpper(action);
params = formatParams(params);
// format params until formatParams is false
if (opts.formatParams !== false) {
params = formatParams(params);
}
var defaults = this._buildParams();

@@ -118,3 +125,7 @@ params = Object.assign({Action: action}, defaults, params);

return httpx.request(url).then((response) => {
if (opts && !opts.agent) {
opts.agent = this.keepAliveAgent;
}
return httpx.request(url, opts).then((response) => {
entry.request = response.req;

@@ -121,0 +132,0 @@ entry.response = response;

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

@@ -34,3 +34,14 @@ "main": "lib/core.js",

"mocha": "^3.2.0"
}
},
"directories": {
"test": "test"
},
"repository": {
"type": "git",
"url": "git+https://github.com/aliyun/openapi-core-nodejs-sdk.git"
},
"bugs": {
"url": "https://github.com/aliyun/openapi-core-nodejs-sdk/issues"
},
"homepage": "https://github.com/aliyun/openapi-core-nodejs-sdk#readme"
}
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