Updated polyscript to its latest (#1982)

This commit is contained in:
Andrea Giammarchi
2024-02-15 17:49:09 +01:00
committed by GitHub
parent 5bed5ede52
commit 84f197b657
4 changed files with 134 additions and 126 deletions

View File

@@ -1,7 +1,10 @@
import { FetchError, ErrorCode } from "./exceptions.js";
import { getText } from "polyscript/exports";
export { getText };
/**
* @param {Response} response
* @returns
*/
export const getText = (response) => response.text();
/**
* This is a fetch wrapper that handles any non 200 responses and throws a