Socket
Socket
Sign inDemoInstall

assert-headers

Package Overview
Dependencies
4
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.0.0 to 1.0.1

6

CHANGELOG.md

@@ -7,2 +7,8 @@ # Changelog

## [1.0.1] - 2021-05-24
### Fixed
- YAML configuration example in readme
## [1.0.0] - 2021-05-24

@@ -9,0 +15,0 @@

2

package.json
{
"name": "assert-headers",
"version": "1.0.0",
"version": "1.0.1",
"description": "Assert HTTP headers",

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

@@ -49,3 +49,3 @@ # assert-headers-node

`assert-headers` currently accepts configuration in JSON format. It allows specifying a schema for the headers, but also the outgoing origin and user-agent headers for the request. Below is an example configuration:
`assert-headers` currently accepts configuration in JSON or YAML formats. It allows specifying a schema for the headers, but also the outgoing origin and user-agent headers for the request. Below is an example configuration:

@@ -68,3 +68,13 @@ ```json

TODO: Allow yml configuration
```yaml
userAgent: "assert-headers-py"
origin: "https://example.com"
schema:
cache-control: False
strict-transport-security: True
x-content-type-options: "nosniff"
x-frame-options:
DENY: True
SAMEORIGIN: False
```

@@ -71,0 +81,0 @@ **Schema Explanation:**

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc