Skip to content

Commit

Permalink
fix: issue with missing imported file contents
Browse files Browse the repository at this point in the history
  • Loading branch information
Vazha Omanashvili committed Aug 14, 2024
1 parent fbc0fec commit bcb5226
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/apidom-playground/src/playground/apidom.worker.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,9 @@ const service = {

async readFile(url) {
const buffer = await readFile(url, {});
return buffer.toString();
const decoder = new TextDecoder();

return decoder.decode(buffer);
},

async resolveApiDOM(apiDOM, { source, mediaType, baseURI }) {
Expand Down

0 comments on commit bcb5226

Please sign in to comment.