Add module jsfetch (#12531)

* Add module jsfetch for fetch support for JavaScript target https://developer.mozilla.org/docs/Web/API/Fetch_API

* Update lib/std/jsheaders.nim

* Update lib/std/jsformdata.nim

* Update lib/std/jsfetch.nim

Co-authored-by: Timothee Cour <timothee.cour2@gmail.com>
Co-authored-by: flywind <xzsflywind@gmail.com>
This commit is contained in:
Juan Carlos 2021-03-07 01:57:16 -03:00 • committed by GitHub
commit b8c04bdb92
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 351 additions and 1 deletions

View file

@ -14,7 +14,7 @@ const
webUploadOutput = "web/upload"
var nimExe*: string
const allowList = ["jsbigints.nim"]
const allowList = ["jsbigints.nim", "jsheaders.nim", "jsformdata.nim", "jsfetch.nim"]
template isJsOnly(file: string): bool =
file.isRelativeTo("lib/js") or