New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

sofa-api

Package Overview
Dependencies
Maintainers
4
Versions
120
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

sofa-api - npm Package Versions

1
12

0.11.2-alpha.0

Diff

ardatan
published 0.11.2 •

ardatan
published 0.11.1 •

ardatan
published 0.11.0 •

ardatan
published 0.10.3-alpha.0 •

ardatan
published 0.10.2 •

Changelog

Source

v0.10.2

In this release express is removed as dependency. New basePath option is required to resolve sofa routes properly

app.use(
  '/api',
  useSofa({
    basePath: '/api',
    schema,
  })
);

Added new server framework agnostic api

const invokeSofa = createSofaRouter({
  basePath: '/api',
  schema,
});
...
const response = await invokeSofa({
  method: req.method,
  url: req.url,
  body: JSON.parse(await getStream(req)),
  contextValue: {
    req
  },
});
ardatan
published 0.10.1 •

ardatan
published 0.10.0 •

ardatan
published 1.0.0 •

ardatan
published 0.9.1 •

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