Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@alicloud/pop-core

Package Overview
Dependencies
Maintainers
4
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.5.1 to 1.5.2

4

lib/core.js

@@ -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;

11

package.json
{
"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": {

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