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

@dotcom-reliability-kit/serialize-request

Package Overview
Dependencies
Maintainers
5
Versions
18
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@dotcom-reliability-kit/serialize-request - npm Package Compare versions

Comparing version 2.2.1 to 3.0.0

6

lib/index.d.ts

@@ -7,5 +7,2 @@ export = serializeRequest;

type Request = (BasicRequest & Record<string, any>) | ExpressRequest | (HttpIncomingMessage & Record<string, any>);
type SerializeRequestOptions = {
includeHeaders?: string[] | undefined;
};
type SerializedRequest = {

@@ -31,2 +28,5 @@ id: (string | null);

};
type SerializeRequestOptions = {
includeHeaders?: string[] | undefined;
};
type SerializedRequestHeaders = {

@@ -33,0 +33,0 @@ [key: string]: string;

{
"name": "@dotcom-reliability-kit/serialize-request",
"version": "2.2.1",
"version": "3.0.0",
"description": "A utility function to serialize a request object in a way that's friendly to loggers, view engines, and converting to JSON",

@@ -14,9 +14,9 @@ "repository": {

"engines": {
"node": "16.x || 18.x || 20.x",
"npm": "7.x || 8.x || 9.x"
"node": "18.x || 20.x",
"npm": "8.x || 9.x"
},
"main": "lib",
"devDependencies": {
"@types/express": "^4.17.18"
"@types/express": "^4.17.21"
}
}

@@ -16,2 +16,3 @@

* [`SerializedRequest.route`](#serializedrequestroute)
* [Migrating](#migrating)
* [Contributing](#contributing)

@@ -144,2 +145,7 @@ * [License](#license)

## Migrating
Consult the [Migration Guide](./docs/migration.md) if you're trying to migrate to a later major version of this package.
## Contributing

@@ -146,0 +152,0 @@

Sorry, the diff of this file is not supported yet

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