eslint-plugin-lambda-security 1.2.10 → 1.3.0

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "eslint-plugin-lambda-security",
3
- "version": "1.2.10",
3
+ "version": "1.3.0",
4
4
  "description": "ESLint plugin for AWS Lambda security — detects overly permissive IAM policies and CORS, unvalidated event bodies, secrets in env vars, and leaked error details.",
5
5
  "type": "commonjs",
6
6
  "main": "./src/index.js",
@@ -72,10 +72,15 @@
72
72
  },
73
73
  "dependencies": {
74
74
  "tslib": "^2.3.0",
75
- "@interlace/eslint-devkit": "^1.6.0"
75
+ "@interlace/eslint-devkit": "^1.7.0"
76
76
  },
77
77
  "peerDependencies": {
78
- "eslint": "^8.0.0 || ^9.0.0 || ^10.0.0"
78
+ "eslint": "^8.0.0 || ^9.0.0 || ^10.0.0",
79
+ "@aws-sdk/client-lambda": "^3.0.0",
80
+ "@middy/core": "^4.0.0 || ^5.0.0 || ^6.0.0 || ^7.0.0",
81
+ "@middy/http-cors": "^4.0.0 || ^5.0.0 || ^6.0.0 || ^7.0.0",
82
+ "@middy/http-security-headers": "^4.0.0 || ^5.0.0 || ^6.0.0 || ^7.0.0",
83
+ "@middy/validator": "^4.0.0 || ^5.0.0 || ^6.0.0 || ^7.0.0"
79
84
  },
80
85
  "peerDependenciesMeta": {
81
86
  "@aws-sdk/client-lambda": {
@@ -94,16 +99,6 @@
94
99
  "optional": true
95
100
  }
96
101
  },
97
- "devDependencies": {
98
- "@typescript-eslint/parser": "^8.46.2",
99
- "@typescript-eslint/rule-tester": "^8.46.2"
100
- },
101
- "scripts": {
102
- "build": "tsx ../../scripts/build-package.ts",
103
- "test": "vitest run",
104
- "test:coverage": "vitest run --coverage",
105
- "typecheck": "tsc -p tsconfig.lib.json --noEmit"
106
- },
107
102
  "funding": {
108
103
  "type": "github",
109
104
  "url": "git+https://github.com/ofri-peretz/eslint.git"
package/src/index.js CHANGED
@@ -34,7 +34,7 @@ exports.rules = {
34
34
  exports.plugin = {
35
35
  meta: {
36
36
  name: 'eslint-plugin-lambda-security',
37
- version: '1.2.10',
37
+ version: '1.3.0',
38
38
  },
39
39
  rules: exports.rules,
40
40
  };
@@ -41,23 +41,12 @@ exports.noPermissiveCorsResponse = (0, eslint_devkit_1.createRule)({
41
41
  default: true,
42
42
  description: 'Allow permissive CORS in test files',
43
43
  },
44
- allowedOrigins: {
45
- type: 'array',
46
- items: { type: 'string' },
47
- default: [],
48
- description: 'Patterns for allowed origins',
49
- },
50
44
  },
51
45
  additionalProperties: false,
52
46
  },
53
47
  ],
54
48
  },
55
- defaultOptions: [
56
- {
57
- allowInTests: true,
58
- allowedOrigins: [],
59
- },
60
- ],
49
+ defaultOptions: [{ allowInTests: true }],
61
50
  create(context, [options = {}]) {
62
51
  const { allowInTests = true } = options;
63
52
  const filename = context.filename;