@eggjs/security 5.0.2-beta.1 → 5.0.2-beta.11

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.
Files changed (2) hide show
  1. package/README.md +1 -1
  2. package/package.json +7 -7
package/README.md CHANGED
@@ -90,7 +90,7 @@ There are times when we want to be more flexible to configure security plugins.F
90
90
  Then we can configure `ctx.securityOptions[name] opts` in the custom middleware or controller, then the current request configuration will override the default configuration (new configuration will be merged and override the default project configuration, but only take effect in the current request)
91
91
 
92
92
  ```js
93
- async ctx => {
93
+ async (ctx) => {
94
94
  // if satisfied some condition
95
95
  // change configuration
96
96
  ctx.securityOptions.xframe = {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@eggjs/security",
3
- "version": "5.0.2-beta.1",
3
+ "version": "5.0.2-beta.11",
4
4
  "description": "security plugin in egg framework",
5
5
  "keywords": [
6
6
  "egg",
@@ -78,7 +78,7 @@
78
78
  "type-is": "^2.0.0",
79
79
  "xss": "^1.0.15",
80
80
  "zod": "^3.24.1",
81
- "@eggjs/path-matching": "3.0.2-beta.1"
81
+ "@eggjs/path-matching": "3.0.2-beta.11"
82
82
  },
83
83
  "devDependencies": {
84
84
  "@types/escape-html": "^1.0.4",
@@ -92,13 +92,13 @@
92
92
  "egg-view-nunjucks": "^2.3.0",
93
93
  "spy": "^1.0.0",
94
94
  "typescript": "^5.9.3",
95
- "@eggjs/mock": "7.0.2-beta.1",
96
- "@eggjs/tsconfig": "3.1.2-beta.1",
97
- "@eggjs/supertest": "9.0.2-beta.1",
98
- "egg": "4.1.2-beta.1"
95
+ "@eggjs/supertest": "9.0.2-beta.11",
96
+ "@eggjs/tsconfig": "3.1.2-beta.11",
97
+ "@eggjs/mock": "7.0.2-beta.11",
98
+ "egg": "4.1.2-beta.11"
99
99
  },
100
100
  "peerDependencies": {
101
- "egg": "4.1.2-beta.1"
101
+ "egg": "4.1.2-beta.11"
102
102
  },
103
103
  "engines": {
104
104
  "node": ">= 22.18.0"