Skip to content

Commit 9b50d68

Browse files
authored
Update jsutils.nim
1 parent d6f4101 commit 9b50d68

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/jsutils.nim

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,5 @@ import jsffi, asyncjs, json
33
proc fetchText*(url: cstring): Future[cstring] {.importcpp: "fetch(#).then(r => r.text())".}
44
proc fetchJson*(url: cstring): Future[JsObject] {.importcpp: "fetch(#).then(r => r.json())".}
55
proc fetchText*(url: cstring, config: JsonNode): Future[cstring] {.importcpp: "fetch(#, #).then(r => r.text())".}
6-
proc fetchJson*(url: cstring, config: JsonNode): Future[JsObject] {.importcpp: "fetch(#, #).then(r => r.json())".}
6+
proc fetchJson*(url: cstring, config: JsonNode): Future[JsObject] {.importcpp: "fetch(#, #).then(r => r.json())".}
7+
proc stringify*(c: JsObject): cstring {.importcpp:"JSON.stringify(#)".}

0 commit comments

Comments
 (0)