@alicloud/pop-core
Advanced tools
Comparing version 1.5.1 to 1.5.2
@@ -83,2 +83,6 @@ 'use strict'; | ||
assert(config.endpoint, 'must pass "config.endpoint"'); | ||
if (!config.endpoint.startsWith('https://') && | ||
!config.endpoint.startsWith('http://')) { | ||
throw new Error(`"config.endpoint" must starts with 'https://' or 'http://'.`); | ||
} | ||
assert(config.apiVersion, 'must pass "config.apiVersion"'); | ||
@@ -85,0 +89,0 @@ assert(config.accessKeyId, 'must pass "config.accessKeyId"'); |
@@ -49,2 +49,6 @@ 'use strict'; | ||
assert(config.endpoint, 'must pass "config.endpoint"'); | ||
if (!config.endpoint.startsWith('https://') && | ||
!config.endpoint.startsWith('http://')) { | ||
throw new Error(`"config.endpoint" must starts with 'https://' or 'http://'.`); | ||
} | ||
assert(config.apiVersion, 'must pass "config.apiVersion"'); | ||
@@ -55,2 +59,3 @@ assert(config.accessKeyId, 'must pass "config.accessKeyId"'); | ||
this.endpoint = config.endpoint; | ||
this.apiVersion = config.apiVersion; | ||
@@ -57,0 +62,0 @@ this.accessKeyId = config.accessKeyId; |
{ | ||
"name": "@alicloud/pop-core", | ||
"version": "1.5.1", | ||
"version": "1.5.2", | ||
"description": "AliCloud POP SDK core", | ||
@@ -8,5 +8,5 @@ "main": "index.js", | ||
"scripts": { | ||
"test": "mocha --require co-mocha --reporter spec test/*.test.js", | ||
"test": "mocha --reporter spec test/*.test.js", | ||
"lint": "eslint --fix lib", | ||
"test-cov": "istanbul cover --report html ./node_modules/.bin/_mocha -- --require co-mocha --reporter spec test/*.test.js" | ||
"test-cov": "nyc --reporter=html --reporter=text mocha -t 3000 -R spec test/*.test.js" | ||
}, | ||
@@ -34,7 +34,6 @@ "keywords": [ | ||
"devDependencies": { | ||
"co-mocha": "^1.1.3", | ||
"eslint": "^3.13.0", | ||
"expect.js": "^0.3.1", | ||
"istanbul": "^0.4.5", | ||
"mocha": "^3.2.0" | ||
"mocha": "^4", | ||
"nyc": "^12.0.2" | ||
}, | ||
@@ -41,0 +40,0 @@ "directories": { |
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
16374
4
396