GEOLYTIX / xyz

An open source javascript framework for spatial data and application interfaces.
MIT License
88 stars 26 forks source link

Update Cloudfront Provider to Support Node.js Native Fetch API Buffer Handling #1702

Closed RobAndrewHurst closed 2 weeks ago

RobAndrewHurst commented 2 weeks ago

Update Cloudfront Provider to Support Node.js Native Fetch API Buffer Handling

New implementation

Replaced the buffer handling in the cloudfront provider with:

if (ref.params?.buffer) {
  const arrayBuffer = await response.arrayBuffer()
  return Buffer.from(arrayBuffer)
}
sonarcloud[bot] commented 2 weeks ago

Quality Gate Passed Quality Gate passed

Issues
0 New issues
0 Accepted issues

Measures
0 Security Hotspots
0.0% Coverage on New Code
0.0% Duplication on New Code

See analysis details on SonarQube Cloud