Skip to content

getImages: svg_outline_text=false is removed from query parameters #101

@la-melli-stoeger

Description

@la-melli-stoeger

Tested Library Version: 2.1.2-beta & 1.11.0
Node / TypeScript Version: Node v22.19.0 / TypeScript 5.9.2

Description:
When using getImages and passing the query parameter svg_outline_text: false, the parameter is removed by the internal toQueryParams function in index.js and is not sent to the Figma API endpoint.

This happens in the function:

function toQueryParams(x) {
  if (!x) return "";
  return Object.entries(x)
    .map(([k, v]) => k && v && `${k}=${encodeURIComponent(v)}`)
    .filter(Boolean)
    .join("&");
}

Thank you for your work on this library!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions