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

@alterior/express

Package Overview
Dependencies
Maintainers
0
Versions
58
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@alterior/express - npm Package Versions

23
6

3.12.0

Diff

Changelog

Source

v3.12.0

  • @/web-server
    • It is now possible to access WebEvent.current within custom log formatters and request reporters.
    • It is now possible to subclass HttpError and have Alterior handle it as expected. This was not possible prior due to issues long since solved with how extended Error works (when Alterior targeted ES5, this was not possible in Typescript 2.1 or later). Since this is no longer an issue, this restriction has been lifted.
rezonant
published 3.8.1 •

rezonant
published 3.9.5 •

rezonant
published 3.10.3 •

rezonant
published 3.11.2 •

Changelog

Source

v3.11.2

  • @/web-server
    • [(!!) Potential security issue / denial of service] Fixed a crash when the server receives invalid JSON during body parsing or other errors raised by Connect middleware. Please update to this patch or higher. Issue existed between v3.8.0 and v3.11.1. Fix has been backported to affected series with the following patch releases:
      • Backported as v3.10.3
      • Backported as v3.9.5
      • Backported as v3.8.1
    • Add middleware request reporting event (currently unused by the default request reporter)
rezonant
published 3.11.1 •

Changelog

Source

v3.11.1

  • @/web-server
    • Adds globalMiddleware option to @Controller(). This has the same semantics as middleware in previous releases, but with clarified naming.
    • The middleware option of @Controller() is now deprecated in favor of globalMiddleware.
    • Fixes a problem where JSON strings cannot be used with the new @Body({ type: 'json' }) feature because of body-parser's "strict mode". Disabled "strict mode" when using the JSON mode of the body-parser middleware internally.
rezonant
published 3.11.0 •

Changelog

Source

v3.11.0

  • @/annotations
    • Improves the return type of Annotation.decorator() so that it is dependent on the provided valueTargets (when possible). Issue
  • @/web-server
    • Adds ability to override the body parser in use via the @Body() decorator. This is useful for cases like trying to accept JSON strings (since string normally causes a text body parser to be used).
rezonant
published 3.10.2 •

Changelog

Source

v3.10.2

  • @/web-server
    • Fixes an issue where a request's body will be unparsed if the Content-Type passed does not match the typical content type associated with the expected body format. For instance, when expecting JSON (the default), the body would only be parsed when the Content-Type header was application/json. When expecting text (ie when @Body() has type string), the body would only be parsed when the Content-Type header was text/plain. This is unexpected, since Alterior provides no manner to validate the Content-Type field without using custom middleware. Now the body is parsed as the expected type regardless of Content-Type.
rezonant
published 3.10.1 •

Changelog

Source

v3.10.1

  • @/web-server
    • Fixes an issue where route is not present on WebEvent
rezonant
published 3.10.0 •

Changelog

Source

v3.10.0

  • @/di
    • You can now use Injector.run() to run a callback within an injection context for the given injector.
23
6
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