@alicloud/pop-core
Advanced tools
Comparing version 1.3.2 to 1.3.3
@@ -45,2 +45,10 @@ 'use strict'; | ||
function repeatList(list, key, repeat) { | ||
for (var i = 0; i < repeat.length; i++) { | ||
var item = repeat[i]; | ||
var prefix = `${key}.${i + 1}`; | ||
list.push([encode(prefix), encode(item)]); | ||
} | ||
} | ||
function normalize(params) { | ||
@@ -51,3 +59,8 @@ var list = []; | ||
var key = keys[i]; | ||
list.push([encode(key), encode(params[key])]); //push [] | ||
var value = params[key]; | ||
if (Array.isArray(value)) { | ||
repeatList(list, key, value); | ||
} else { | ||
list.push([encode(key), encode(value)]); //push [] | ||
} | ||
} | ||
@@ -54,0 +67,0 @@ |
{ | ||
"name": "@alicloud/pop-core", | ||
"version": "1.3.2", | ||
"version": "1.3.3", | ||
"description": "AliCloud POP SDK core", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
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
14595
367