MCPcopy Index your code
hub / github.com/simstudioai/sim / buildListQueryString

Function buildListQueryString

apps/sim/connectors/s3/s3.ts:338–343  ·  view source on GitHub ↗

* Builds the canonical (sorted, percent-encoded) query string for a * ListObjectsV2 request. Keys are sorted lexicographically after encoding and * each name/value pair is encoded individually.

(params: Record<string, string>)

Source from the content-addressed store, hash-verified

336 * each name/value pair is encoded individually.
337 */
338function buildListQueryString(params: Record<string, string>): string {
339 return Object.keys(params)
340 .sort()
341 .map((key) => `${encodeQueryValue(key)}=${encodeQueryValue(params[key])}`)
342 .join('&')
343}
344
345/**
346 * Decodes XML entities found in S3 response text values. `&amp;` is decoded

Callers 1

listObjectsPageFunction · 0.85

Calls 2

encodeQueryValueFunction · 0.85
joinMethod · 0.80

Tested by

no test coverage detected