@alicloud/pop-core
Advanced tools
Comparing version 1.3.1 to 1.3.2
@@ -84,3 +84,4 @@ 'use strict'; | ||
var httpModule = this.endpoint.startsWith('https://') ? require('https') : require('http'); | ||
var httpModule = this.endpoint.startsWith('https://') | ||
? require('https') : require('http'); | ||
this.keepAliveAgent = new httpModule.Agent({ | ||
@@ -133,3 +134,4 @@ keepAlive: true, | ||
var json = JSON.parse(buffer); | ||
if (json.Code && json.Code !== '200') { | ||
if (json.Code && json.Code !== '200' | ||
&& json.Code !== 'OK') { | ||
var err = new Error(json.Message); | ||
@@ -136,0 +138,0 @@ err.name = json.Code + 'Error'; |
{ | ||
"name": "@alicloud/pop-core", | ||
"version": "1.3.1", | ||
"version": "1.3.2", | ||
"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
14282
355