@alicloud/pop-core
Advanced tools
Comparing version 1.0.0 to 1.0.1
@@ -8,3 +8,3 @@ 'use strict'; | ||
function firstLetterUpper(str) { | ||
return str.slice(0, 1).toUpperCase() + str.slice(1).toLowerCase(); | ||
return str.slice(0, 1).toUpperCase() + str.slice(1); | ||
} | ||
@@ -117,4 +117,7 @@ | ||
if (json.Code) { | ||
var err = new Error('OpenAPI: ' + json.Msg); | ||
err.name = json.Code; | ||
var err = new Error(json.Message); | ||
err.code = json.Code; | ||
err.requestid = json.RequestId; | ||
err.url = url; | ||
err.name = json.Code + 'Error'; | ||
return Promise.reject(err); | ||
@@ -121,0 +124,0 @@ } |
{ | ||
"name": "@alicloud/pop-core", | ||
"version": "1.0.0", | ||
"version": "1.0.1", | ||
"description": "AliCloud POP SDK core", | ||
@@ -9,3 +9,3 @@ "main": "lib/core.js", | ||
"lint": "eslint --fix lib", | ||
"cov": "istanbul cover --report html ./node_modules/.bin/_mocha -- --reporter spec --require co-mocha test/*.test.js" | ||
"test-cov": "istanbul cover --report html ./node_modules/.bin/_mocha -- --reporter spec --require co-mocha test/*.test.js" | ||
}, | ||
@@ -12,0 +12,0 @@ "keywords": [ |
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
5015
120