@alicloud/pop-core
Advanced tools
Comparing version 1.7.10 to 1.7.11
@@ -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; |
@@ -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> |
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
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
21810
479
6