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:
parent
07df4fe560
commit
b8c04bdb92
5 changed files with 351 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue