183
}
184
} else {
185
>
// Not explodable: join as k1,v1,k2,v2,... and assign to variable name
uriTemplate.ts
186
>
const pairs: string[] = [];
187
>
for (const k in value) {
188
>
if (Object.prototype.hasOwnProperty.call(value, k)) {
189
>
pairs.push(k);
190
>
pairs.push(String((value as Record<string, unknown>)[k]));
191
>
}
192
>
}
193
>
// For label, param, form, join as keys=semi,;,dot,.,comma,, (no encoding of , or ;)
194
>
const joined = pairs.join(',');
195
>
if (isLabel) {
196
vals.push(joined);
198
vals.push(v.name + '=' + joined);
199
} else {
200
vals.push(joined);
201
}
203
continue;
204
}