Skip to content

Commit 5e7c293

Browse files
CrowdHailerlpil
authored andcommitted
rename ffi file
1 parent 6615338 commit 5e7c293

File tree

3 files changed

+8
-7
lines changed

3 files changed

+8
-7
lines changed

CHANGELOG.md

+1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
## v1.0.0 - 2024-04-22
44

5+
- Renamed ffi file to be scope with project name.
56
- Added the `send_bits` function.
67

78
## v0.4.0 - 2024-03-07

src/gleam/fetch.gleam

+7-7
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ pub type FetchRequest
1515

1616
pub type FetchResponse
1717

18-
@external(javascript, "../ffi.mjs", "raw_send")
18+
@external(javascript, "../gleam_fetch_ffi.mjs", "raw_send")
1919
pub fn raw_send(a: FetchRequest) -> Promise(Result(FetchResponse, FetchError))
2020

2121
pub fn send(
@@ -40,26 +40,26 @@ pub fn send_bits(
4040
})
4141
}
4242

43-
@external(javascript, "../ffi.mjs", "to_fetch_request")
43+
@external(javascript, "../gleam_fetch_ffi.mjs", "to_fetch_request")
4444
pub fn to_fetch_request(a: Request(String)) -> FetchRequest
4545

46-
@external(javascript, "../ffi.mjs", "bitarray_request_to_fetch_request")
46+
@external(javascript, "../gleam_fetch_ffi.mjs", "bitarray_request_to_fetch_request")
4747
pub fn bitarray_request_to_fetch_request(a: Request(BitArray)) -> FetchRequest
4848

49-
@external(javascript, "../ffi.mjs", "from_fetch_response")
49+
@external(javascript, "../gleam_fetch_ffi.mjs", "from_fetch_response")
5050
pub fn from_fetch_response(a: FetchResponse) -> Response(FetchBody)
5151

52-
@external(javascript, "../ffi.mjs", "read_bytes_body")
52+
@external(javascript, "../gleam_fetch_ffi.mjs", "read_bytes_body")
5353
pub fn read_bytes_body(
5454
a: Response(FetchBody),
5555
) -> Promise(Result(Response(BitArray), FetchError))
5656

57-
@external(javascript, "../ffi.mjs", "read_text_body")
57+
@external(javascript, "../gleam_fetch_ffi.mjs", "read_text_body")
5858
pub fn read_text_body(
5959
a: Response(FetchBody),
6060
) -> Promise(Result(Response(String), FetchError))
6161

62-
@external(javascript, "../ffi.mjs", "read_json_body")
62+
@external(javascript, "../gleam_fetch_ffi.mjs", "read_json_body")
6363
pub fn read_json_body(
6464
a: Response(FetchBody),
6565
) -> Promise(Result(Response(Dynamic), FetchError))
File renamed without changes.

0 commit comments

Comments
 (0)