eslint-plugin-prisma-security 2.0.4 → 2.0.5
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 +6 -0
- package/package.json +3 -7
- package/src/index.js +1 -1
package/README.md
CHANGED
|
@@ -121,6 +121,12 @@ src/db.ts
|
|
|
121
121
|
|
|
122
122
|
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.
|
|
123
123
|
|
|
124
|
+
### Supported library versions
|
|
125
|
+
|
|
126
|
+
The library ranges the rules were written against, as previously declared in `peerDependencies`. They are documentation only: this package installs and requires none of these libraries, and npm no longer warns on a mismatch.
|
|
127
|
+
|
|
128
|
+
- `@prisma/client`: `^4.0.0 || ^5.0.0 || ^6.0.0 || ^7.0.0`
|
|
129
|
+
|
|
124
130
|
## Rules
|
|
125
131
|
|
|
126
132
|
**Legend**
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "eslint-plugin-prisma-security",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.5",
|
|
4
4
|
"description": "ESLint Prisma security rules for @prisma/client — detects SQL injection in raw queries built with string concatenation or template literals.",
|
|
5
5
|
"type": "commonjs",
|
|
6
6
|
"sideEffects": false,
|
|
@@ -69,19 +69,15 @@
|
|
|
69
69
|
"node": ">=22.13.0"
|
|
70
70
|
},
|
|
71
71
|
"peerDependencies": {
|
|
72
|
-
"eslint": "^8.40.0 || ^9.0.0 || ^10.0.0"
|
|
73
|
-
"@prisma/client": "^4.0.0 || ^5.0.0 || ^6.0.0 || ^7.0.0"
|
|
72
|
+
"eslint": "^8.40.0 || ^9.0.0 || ^10.0.0"
|
|
74
73
|
},
|
|
75
74
|
"peerDependenciesMeta": {
|
|
76
75
|
"eslint": {
|
|
77
76
|
"optional": true
|
|
78
|
-
},
|
|
79
|
-
"@prisma/client": {
|
|
80
|
-
"optional": true
|
|
81
77
|
}
|
|
82
78
|
},
|
|
83
79
|
"dependencies": {
|
|
84
|
-
"@interlace/eslint-devkit": "^2.0
|
|
80
|
+
"@interlace/eslint-devkit": "^2.5.0"
|
|
85
81
|
},
|
|
86
82
|
"interlace": {
|
|
87
83
|
"surface": {
|
package/src/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:true});exports.configs=exports.plugin=exports.rules=void 0;const eslint_devkit_1=require("@interlace/eslint-devkit");exports.rules={get"no-mass-assignment"(){return require("./rules/no-mass-assignment").noMassAssignment},get"no-raw-identifier-interpolation"(){return require("./rules/no-raw-identifier-interpolation").noRawIdentifierInterpolation},get"no-unsafe-query"(){return require("./rules/no-unsafe-query").noUnsafeQuery},get"no-unscoped-mutation"(){return require("./rules/no-unscoped-mutation").noUnscopedMutation}};(0,eslint_devkit_1.withCanonicalDocsUrls)("plugin-prisma-security",exports.rules);exports.plugin={meta:{name:"eslint-plugin-prisma-security",version:"2.0.
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:true});exports.configs=exports.plugin=exports.rules=void 0;const eslint_devkit_1=require("@interlace/eslint-devkit");exports.rules={get"no-mass-assignment"(){return require("./rules/no-mass-assignment").noMassAssignment},get"no-raw-identifier-interpolation"(){return require("./rules/no-raw-identifier-interpolation").noRawIdentifierInterpolation},get"no-unsafe-query"(){return require("./rules/no-unsafe-query").noUnsafeQuery},get"no-unscoped-mutation"(){return require("./rules/no-unscoped-mutation").noUnscopedMutation}};(0,eslint_devkit_1.withCanonicalDocsUrls)("plugin-prisma-security",exports.rules);exports.plugin={meta:{name:"eslint-plugin-prisma-security",version:"2.0.5"},rules:exports.rules};exports.configs={flagship:{plugins:{"prisma-security":exports.plugin},rules:{"prisma-security/no-unsafe-query":"error"}},recommended:{plugins:{"prisma-security":exports.plugin},rules:{"prisma-security/no-unsafe-query":"error"}},strict:{plugins:{"prisma-security":exports.plugin},rules:Object.fromEntries(Object.keys(exports.rules).map(ruleName=>[`prisma-security/${ruleName}`,"error"]))}};exports.default=exports.plugin;
|