eslint-plugin-typeorm-security 0.3.1 → 0.3.3

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/README.md CHANGED
@@ -94,7 +94,7 @@ src/db.ts
94
94
  ## 📦 Compatibility
95
95
  | Package | Version |
96
96
  | :--- | :--- |
97
- | ESLint | `^8.0.0 \|\| ^9.0.0 \|\| ^10.0.0` |
97
+ | ESLint | `^8.40.0 \|\| ^9.0.0 \|\| ^10.0.0` |
98
98
  | Node.js | `>=18.0.0` |
99
99
 
100
100
  See the [ESLint Version Support Policy](../../docs/ESLINT_VERSION_SUPPORT.md) — current ecosystem share data, the 20% gate, and the forward-looking exception that covers v10.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "eslint-plugin-typeorm-security",
3
- "version": "0.3.1",
3
+ "version": "0.3.3",
4
4
  "description": "ESLint plugin for typeorm — detects SQL injection in raw queries built with string concatenation or template literals, connection configuration that disables TLS or certificate validation, and hardcoded database credentials.",
5
5
  "type": "commonjs",
6
6
  "main": "./src/index.js",
@@ -67,7 +67,7 @@
67
67
  "node": ">=18.0.0"
68
68
  },
69
69
  "peerDependencies": {
70
- "eslint": "^8.0.0 || ^9.0.0 || ^10.0.0",
70
+ "eslint": "^8.40.0 || ^9.0.0 || ^10.0.0",
71
71
  "typeorm": "^0.3.0"
72
72
  },
73
73
  "peerDependenciesMeta": {
@@ -76,7 +76,7 @@
76
76
  }
77
77
  },
78
78
  "dependencies": {
79
- "@interlace/eslint-devkit": "^1.10.0"
79
+ "@interlace/eslint-devkit": "^1.12.0"
80
80
  },
81
81
  "funding": {
82
82
  "type": "github",
package/src/index.js CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:true});exports.configs=exports.plugin=exports.rules=void 0;exports.rules={get"no-hardcoded-credentials"(){return require("./rules/no-hardcoded-credentials").noHardcodedCredentials},get"no-mass-assignment"(){return require("./rules/no-mass-assignment").noMassAssignment},get"no-unsafe-query"(){return require("./rules/no-unsafe-query").noUnsafeQuery},get"require-tls"(){return require("./rules/require-tls").requireTls}};exports.plugin={meta:{name:"eslint-plugin-typeorm-security",version:"0.3.1"},rules:exports.rules};exports.configs={flagship:{plugins:{"typeorm-security":exports.plugin},rules:{"typeorm-security/no-unsafe-query":"error"}},recommended:{plugins:{"typeorm-security":exports.plugin},rules:{"typeorm-security/no-unsafe-query":"error"}},strict:{plugins:{"typeorm-security":exports.plugin},rules:Object.fromEntries(Object.keys(exports.rules).map(ruleName=>[`typeorm-security/${ruleName}`,"error"]))}};exports.default=exports.plugin;
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:true});exports.configs=exports.plugin=exports.rules=void 0;exports.rules={get"no-hardcoded-credentials"(){return require("./rules/no-hardcoded-credentials").noHardcodedCredentials},get"no-mass-assignment"(){return require("./rules/no-mass-assignment").noMassAssignment},get"no-unsafe-query"(){return require("./rules/no-unsafe-query").noUnsafeQuery},get"require-tls"(){return require("./rules/require-tls").requireTls}};exports.plugin={meta:{name:"eslint-plugin-typeorm-security",version:"0.3.3"},rules:exports.rules};exports.configs={flagship:{plugins:{"typeorm-security":exports.plugin},rules:{"typeorm-security/no-unsafe-query":"error"}},recommended:{plugins:{"typeorm-security":exports.plugin},rules:{"typeorm-security/no-unsafe-query":"error"}},strict:{plugins:{"typeorm-security":exports.plugin},rules:Object.fromEntries(Object.keys(exports.rules).map(ruleName=>[`typeorm-security/${ruleName}`,"error"]))}};exports.default=exports.plugin;
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:true});exports.noUnsafeQuery=void 0;const eslint_devkit_1=require("@interlace/eslint-devkit");exports.noUnsafeQuery=(0,eslint_devkit_1.createSqlInjectionRule)({meta:{type:"problem",docs:{description:"Prevent SQL injection by disallowing string concatenation or interpolated template literals in TypeORM raw queries.",url:"https://github.com/ofri-peretz/eslint/blob/main/packages/eslint-plugin-typeorm-security/docs/rules/no-unsafe-query.md",cwe:"CWE-89",cvss:9.8,confidence:"high"}},methods:["query"],requireSqlKeywords:false,fix:"Pass values as the second-argument parameters array, or use query-builder parameters (`:name`), instead of interpolating them.",documentationLink:"https://typeorm.io/#/select-query-builder/using-parameters-to-escape-data"});
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:true});exports.noUnsafeQuery=void 0;const eslint_devkit_1=require("@interlace/eslint-devkit");exports.noUnsafeQuery=(0,eslint_devkit_1.createSqlInjectionRule)({meta:{type:"problem",docs:{description:"Prevent SQL injection by disallowing string concatenation or interpolated template literals in TypeORM raw queries.",url:"https://github.com/ofri-peretz/eslint/blob/main/packages/eslint-plugin-typeorm-security/docs/rules/no-unsafe-query.md",cwe:"CWE-89",cvss:9.8,confidence:"high"}},modules:["typeorm","@nestjs/typeorm"],methods:["query"],requireSqlKeywords:false,fix:"Pass values as the second-argument parameters array, or use query-builder parameters (`:name`), instead of interpolating them.",documentationLink:"https://typeorm.io/#/select-query-builder/using-parameters-to-escape-data"});