@middy/http-security-headers 7.3.2 → 7.3.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.js +4 -1
- package/package.json +3 -3
package/index.js
CHANGED
|
@@ -2,6 +2,9 @@
|
|
|
2
2
|
// SPDX-License-Identifier: MIT
|
|
3
3
|
import { normalizeHttpResponse, validateOptions } from "@middy/util";
|
|
4
4
|
|
|
5
|
+
const name = "http-security-headers";
|
|
6
|
+
const pkg = `@middy/${name}`;
|
|
7
|
+
|
|
5
8
|
// Each policy option accepts either a config object or a boolean (true = use
|
|
6
9
|
// defaults, false = disable). See middleware body for enable/disable logic.
|
|
7
10
|
|
|
@@ -98,7 +101,7 @@ const optionSchema = {
|
|
|
98
101
|
};
|
|
99
102
|
|
|
100
103
|
export const httpSecurityHeadersValidateOptions = (options) =>
|
|
101
|
-
validateOptions(
|
|
104
|
+
validateOptions(pkg, optionSchema, options);
|
|
102
105
|
|
|
103
106
|
// Code and Defaults heavily based off https://helmetjs.github.io/
|
|
104
107
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@middy/http-security-headers",
|
|
3
|
-
"version": "7.3.
|
|
3
|
+
"version": "7.3.4",
|
|
4
4
|
"description": "Applies best practice security headers to responses. It's a simplified port of HelmetJS",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"engines": {
|
|
@@ -65,10 +65,10 @@
|
|
|
65
65
|
"url": "https://github.com/sponsors/willfarrell"
|
|
66
66
|
},
|
|
67
67
|
"dependencies": {
|
|
68
|
-
"@middy/util": "7.3.
|
|
68
|
+
"@middy/util": "7.3.4"
|
|
69
69
|
},
|
|
70
70
|
"devDependencies": {
|
|
71
|
-
"@middy/core": "7.3.
|
|
71
|
+
"@middy/core": "7.3.4",
|
|
72
72
|
"@types/aws-lambda": "^8.0.0",
|
|
73
73
|
"@types/node": "^22.0.0"
|
|
74
74
|
}
|