@dotcom-reliability-kit/serialize-request
Advanced tools
Comparing version 2.2.1 to 3.0.0
@@ -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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
14548
158