Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

bs-promise-router

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

bs-promise-router - npm Package Compare versions

Comparing version 0.1.1 to 0.1.2

2

package.json
{
"name": "bs-promise-router",
"version": "0.1.1",
"version": "0.1.2",
"description": "BuckleScript interface to express-promise-router",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -8,5 +8,12 @@ # bs-promise-router

```reason
let heartbeat = (_, res: Express.Response.t) => {
Express.Response.sendString(res, "ok") |> ignore;
Js.Promise.resolve(Js.undefined)
};
let router = PromiseRouter.make();
PromiseRouter.get(router, ~path="/", HttpUtils.heartbeat);
PromiseRouter.get(router, ~path="/", heartbeat);
Express.App.use(app, asMiddleware(router));
```
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc