@alicloud/pop-core
Advanced tools
Comparing version 1.7.11 to 1.7.12
@@ -126,3 +126,6 @@ 'use strict'; | ||
this.securityToken = config.securityToken; | ||
this.host = url.parse(this.endpoint).hostname; | ||
const parsed = url.parse(this.endpoint); | ||
this.host = parsed.hostname; | ||
this.protocol = parsed.protocol; | ||
this.port = parsed.port; | ||
this.opts = config.opts; | ||
@@ -174,3 +177,3 @@ var httpModule = this.endpoint.startsWith('https://') ? require('https') : require('http'); | ||
var url = `${this.endpoint}${uriPattern}`; | ||
let url = `${this.protocol}//${this.aclIp ? this.aclIp : this.host}${this.port ? ':' + this.port : ''}${uriPattern}`; | ||
if (Object.keys(query).length) { | ||
@@ -177,0 +180,0 @@ url += `?${querystring.stringify(query)}`; |
{ | ||
"name": "@alicloud/pop-core", | ||
"version": "1.7.11", | ||
"version": "1.7.12", | ||
"description": "AliCloud POP SDK core", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
21978
482