
Security News
Open Source Maintainers Demand Ability to Block Copilot-Generated Issues and PRs
Open source maintainers are urging GitHub to let them block Copilot from submitting AI-generated issues and pull requests to their repositories.
Low-level bindings to fetch for BuckleScript.
bs-fetch
is intended as a thin layer atop the JS API, upon which more high-level and idiomatic libraries can be made. Once such a library has been established, these bindings will likely be refactored to be even thinner.
Js.Promise.(
Fetch.fetch("/api/hellos/1")
|> then_(Fetch.Response.text)
|> then_(text => print_endline(text) |> resolve)
);
npm install --save bs-fetch
Then add bs-fetch
to bs-dependencies
in your bsconfig.json
:
{
...
"bs-dependencies": ["bs-fetch"]
}
See usage examples in ocaml_examples.ml
and reason_examples.re
. The source is a single file!
fetch
is a Web API that isn't available out-of-the-box in Node.js, and will therefore need to be polyfilled. isomorphic-fetch one such polyfill that seems to work well. Just install it via npm and add [%raw "require('isomorphic-fetch')"]
to the top of your main file, but be aware that there are some subtle differences and even parts that are missing entirely.
FormData
bindingsResponse._type
was generating _type
instead of type
Response._type
to Response.type_
to follow the name mangling convention trendsAbortController
Headers.append
and Headers.delete
. They were missing the return type.bs-platform
to 5.0.4 to stop compiler from complaining.HeadersInit.makeWithDict
so as to be able to make headers in OCaml toobs-platform
>= 3.0.0 due to internal dependency on Js.boolean that has now been removedBs_fetch
module to Fetch
. Bs_fetch
is kept around as an alias for backwards compatibility, but should be considered deprecated.FAQs
Fetch bindings for BuckleScript
The npm package bs-fetch receives a total of 2,172 weekly downloads. As such, bs-fetch popularity was classified as popular.
We found that bs-fetch demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Open source maintainers are urging GitHub to let them block Copilot from submitting AI-generated issues and pull requests to their repositories.
Research
Security News
Malicious Koishi plugin silently exfiltrates messages with hex strings to a hardcoded QQ account, exposing secrets in chatbots across platforms.
Research
Security News
Malicious PyPI checkers validate stolen emails against TikTok and Instagram APIs, enabling targeted account attacks and dark web credential sales.