@aomex/helmet 0.0.4 → 0.0.6
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/CHANGELOG.md +16 -0
- package/dist/index.js.map +1 -1
- package/package.json +5 -5
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,21 @@
|
|
|
1
1
|
# @aomex/helmet
|
|
2
2
|
|
|
3
|
+
## 0.0.6
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies [[`6e63df8`](https://github.com/aomex/aomex/commit/6e63df84d1b32e713aba8c52451e289a72b57bae), [`67acf4f`](https://github.com/aomex/aomex/commit/67acf4f42cd86bf1f0a7c647a5ff779c7cd0fa10)]:
|
|
8
|
+
- @aomex/web@0.0.13
|
|
9
|
+
- @aomex/core@0.0.12
|
|
10
|
+
|
|
11
|
+
## 0.0.5
|
|
12
|
+
|
|
13
|
+
### Patch Changes
|
|
14
|
+
|
|
15
|
+
- Updated dependencies [[`f14eb5f`](https://github.com/aomex/aomex/commit/f14eb5fe7bf06e1e2f64d45e3546c96d6079a2f1), [`7d923cf`](https://github.com/aomex/aomex/commit/7d923cf971b6a23d50113ab104c67041c6489053), [`3c5ad4e`](https://github.com/aomex/aomex/commit/3c5ad4e2f34be7da54c8b63f6fd4b88fd1e593c4), [`6154ee5`](https://github.com/aomex/aomex/commit/6154ee5ed500984f969d4c335ac3ad800c739937), [`92273f9`](https://github.com/aomex/aomex/commit/92273f913e38543f34f41ec5941ff43b6e1caaa9), [`a0fd49e`](https://github.com/aomex/aomex/commit/a0fd49ef276c05f312257521c75887458857bbb7)]:
|
|
16
|
+
- @aomex/web@0.0.12
|
|
17
|
+
- @aomex/core@0.0.11
|
|
18
|
+
|
|
3
19
|
## 0.0.4
|
|
4
20
|
|
|
5
21
|
### Patch Changes
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/index.ts"],"sourcesContent":["import { promisify } from 'node:util';\nimport originHelmet, { HelmetOptions } from 'helmet';\nimport { middleware } from '@aomex/core';\nimport type { WebMiddleware } from '@aomex/web';\n\nexport const helmet = (options?: HelmetOptions): WebMiddleware => {\n const helmetPromise = promisify(originHelmet(options));\n\n return middleware.web((ctx, next) => {\n return helmetPromise(ctx.request, ctx.response).then(next);\n });\n};\n"],"mappings":";AAAA,SAAS,iBAAiB;AAC1B,OAAO,
|
|
1
|
+
{"version":3,"sources":["../src/index.ts"],"sourcesContent":["import { promisify } from 'node:util';\nimport originHelmet, { type HelmetOptions } from 'helmet';\nimport { middleware } from '@aomex/core';\nimport type { WebMiddleware } from '@aomex/web';\n\nexport const helmet = (options?: HelmetOptions): WebMiddleware => {\n const helmetPromise = promisify(originHelmet(options));\n\n return middleware.web((ctx, next) => {\n return helmetPromise(ctx.request, ctx.response).then(next);\n });\n};\n"],"mappings":";AAAA,SAAS,iBAAiB;AAC1B,OAAO,kBAA0C;AACjD,SAAS,kBAAkB;AAGpB,IAAM,SAAS,CAAC,YAA2C;AAChE,QAAM,gBAAgB,UAAU,aAAa,OAAO,CAAC;AAErD,SAAO,WAAW,IAAI,CAAC,KAAK,SAAS;AACnC,WAAO,cAAc,IAAI,SAAS,IAAI,QAAQ,EAAE,KAAK,IAAI;AAAA,EAC3D,CAAC;AACH;","names":[]}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aomex/helmet",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.6",
|
|
4
4
|
"description": "Security headers",
|
|
5
5
|
"repository": "git@github.com:aomex/aomex.git",
|
|
6
6
|
"homepage": "https://aomex.js.org",
|
|
@@ -26,15 +26,15 @@
|
|
|
26
26
|
"access": "public"
|
|
27
27
|
},
|
|
28
28
|
"peerDependencies": {
|
|
29
|
-
"@aomex/core": "^0.0.
|
|
30
|
-
"@aomex/web": "^0.0.
|
|
29
|
+
"@aomex/core": "^0.0.12",
|
|
30
|
+
"@aomex/web": "^0.0.13"
|
|
31
31
|
},
|
|
32
32
|
"dependencies": {
|
|
33
33
|
"helmet": "^6.0.1"
|
|
34
34
|
},
|
|
35
35
|
"devDependencies": {
|
|
36
|
-
"@aomex/core": "^0.0.
|
|
37
|
-
"@aomex/web": "^0.0.
|
|
36
|
+
"@aomex/core": "^0.0.12",
|
|
37
|
+
"@aomex/web": "^0.0.13"
|
|
38
38
|
},
|
|
39
39
|
"scripts": {}
|
|
40
40
|
}
|