@elmoorx/code-review 2.0.0-alpha.25 → 3.0.0-alpha.2
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 +3 -3
- package/package.json +5 -1
- package/src/index.ts +4 -4
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# @
|
|
1
|
+
# @elmoorx/code-review
|
|
2
2
|
|
|
3
3
|
> AI code review: PR analysis, security scan, performance suggestions
|
|
4
4
|
|
|
@@ -7,13 +7,13 @@ Part of the [Wafra Framework](https://github.com/wafra/framework) — Build fast
|
|
|
7
7
|
## Installation
|
|
8
8
|
|
|
9
9
|
```bash
|
|
10
|
-
npm install @
|
|
10
|
+
npm install @elmoorx/code-review
|
|
11
11
|
```
|
|
12
12
|
|
|
13
13
|
## Quick Start
|
|
14
14
|
|
|
15
15
|
```typescript
|
|
16
|
-
import { /* exports */ } from '@
|
|
16
|
+
import { /* exports */ } from '@elmoorx/code-review';
|
|
17
17
|
```
|
|
18
18
|
|
|
19
19
|
## Features
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@elmoorx/code-review",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "3.0.0-alpha.2",
|
|
4
4
|
"description": "AI code review: PR analysis, security scan, performance suggestions",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./src/index.ts",
|
|
@@ -30,5 +30,9 @@
|
|
|
30
30
|
"sideEffects": false,
|
|
31
31
|
"exports": {
|
|
32
32
|
".": "./src/index.ts"
|
|
33
|
+
},
|
|
34
|
+
"publishConfig": {
|
|
35
|
+
"access": "public",
|
|
36
|
+
"registry": "https://registry.npmjs.org/"
|
|
33
37
|
}
|
|
34
38
|
}
|
package/src/index.ts
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @
|
|
2
|
+
* @elmoorx/code-review — AI Code Review System
|
|
3
3
|
* ============================================
|
|
4
4
|
* AI-powered code review that finds bugs, security issues,
|
|
5
5
|
* and suggests improvements — before you deploy.
|
|
6
6
|
*
|
|
7
|
-
* import { reviewCode } from "@
|
|
7
|
+
* import { reviewCode } from "@elmoorx/code-review";
|
|
8
8
|
* const report = await reviewCode(myComponentCode);
|
|
9
9
|
* // → { score: 92, issues: [...], suggestions: [...] }
|
|
10
10
|
*/
|
|
11
11
|
|
|
12
|
-
import { $state, type WafraNode } from "@
|
|
12
|
+
import { $state, type WafraNode } from "@elmoorx/runtime";
|
|
13
13
|
|
|
14
14
|
// ============ REVIEW TYPES ============
|
|
15
15
|
|
|
@@ -99,7 +99,7 @@ class CodeReviewer {
|
|
|
99
99
|
severity: "critical",
|
|
100
100
|
category: "security",
|
|
101
101
|
title: "XSS vulnerability: dangerouslySetInnerHTML",
|
|
102
|
-
description: "Using dangerouslySetInnerHTML allows XSS attacks. Use $html() from @
|
|
102
|
+
description: "Using dangerouslySetInnerHTML allows XSS attacks. Use $html() from @elmoorx/runtime which auto-sanitizes.",
|
|
103
103
|
fix: 'Replace: dangerouslySetInnerHTML={{ __html: x }}\nWith: $html(x)',
|
|
104
104
|
});
|
|
105
105
|
}
|