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

@alicloud/pop-core

Package Overview
Dependencies
Maintainers
5
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.7.10 to 1.7.11

1

lib/rpc.d.ts

@@ -41,2 +41,3 @@ // Type definitions for [~THE LIBRARY NAME~] [~OPTIONAL VERSION NUMBER~]

accessKeySecret: string;
securityToken?: string;
codes?: (string | number)[];

@@ -43,0 +44,0 @@ opts?: object;

12

lib/rpc.js

@@ -52,6 +52,12 @@ 'use strict';

if (item && typeof item === 'object') {
if (Array.isArray(item)) {
replaceRepeatList(target, `${key}.${i + 1}`, item);
} else if (item && typeof item === 'object') {
const keys = Object.keys(item);
for (var j = 0; j < keys.length; j++) {
target[`${key}.${i + 1}.${keys[j]}`] = item[keys[j]];
if (Array.isArray(item[keys[j]])) {
replaceRepeatList(target, `${key}.${i + 1}.${keys[j]}`, item[keys[j]]);
} else {
target[`${key}.${i + 1}.${keys[j]}`] = item[keys[j]];
}
}

@@ -124,3 +130,3 @@ } else {

// 非 codes 里的值,将抛出异常
this.codes = new Set([200, '200', 'OK', 'Success']);
this.codes = new Set([200, '200', 'OK', 'Success', 'success']);
if (config.codes) {

@@ -127,0 +133,0 @@ // 合并 codes

{
"name": "@alicloud/pop-core",
"version": "1.7.10",
"version": "1.7.11",
"description": "AliCloud POP SDK core",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -39,5 +39,5 @@ # @alicloud/pop-core

**[API Explorer](https://api.aliyun.com)** provides the ability to call the cloud product OpenAPI online, and dynamically generate SDK Example code and quick retrieval interface, which can significantly reduce the difficulty of using the cloud API. **It is highly recommended**.
**[API Developer Portal](https://next.api.aliyun.com)** provides the ability to call the cloud product OpenAPI online, and dynamically generate SDK Example code and quick retrieval interface, which can significantly reduce the difficulty of using the cloud API. **It is highly recommended**.
<a href="https://api.aliyun.com" target="api_explorer">
<a href="https://next.api.aliyun.com" target="api_explorer">
<img src="https://img.alicdn.com/tfs/TB12GX6zW6qK1RjSZFmXXX0PFXa-744-122.png" width="180" />

@@ -44,0 +44,0 @@ </a>

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