fullshield 3.4.2 → 3.5.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/CHANGELOG.md +6 -0
- package/README.md +5 -5
- package/dist/cli/index.js +126 -124
- package/models/index.json +1 -1
- package/package.json +2 -1
- package/templates/action/action.yml +1 -1
- package/templates/fullshield-bumps.yml +2 -2
- package/templates/github-workflow-action.yml +1 -1
- package/templates/github-workflow-diff.yml +1 -1
- package/templates/tutorial/app.js +15 -0
package/models/index.json
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "fullshield",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.5.0",
|
|
4
4
|
"description": "Full-cycle security scanner for Node.js/TypeScript backends: detect, classify, report, notify, fix, prevent.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
@@ -130,6 +130,7 @@
|
|
|
130
130
|
],
|
|
131
131
|
"ignore": [
|
|
132
132
|
"test/fixtures/**",
|
|
133
|
+
"templates/tutorial/**",
|
|
133
134
|
"scripts/doc-version-check.mjs",
|
|
134
135
|
"scripts/autopilot/guard.mjs",
|
|
135
136
|
"docs/current/guard.mjs"
|
|
@@ -9,9 +9,9 @@ jobs:
|
|
|
9
9
|
runs-on: ubuntu-24.04
|
|
10
10
|
steps:
|
|
11
11
|
- uses: actions/checkout@v7
|
|
12
|
-
- run: npx fullshield@3.
|
|
12
|
+
- run: npx fullshield@3.5.0 bumps plan --from .fullshield/last-scan.json
|
|
13
13
|
env:
|
|
14
14
|
FULLSHIELD_EXPERIMENTAL_BUMP_PR: '1'
|
|
15
|
-
- run: npx fullshield@3.
|
|
15
|
+
- run: npx fullshield@3.5.0 bumps open --from .fullshield/last-scan.json
|
|
16
16
|
env:
|
|
17
17
|
FULLSHIELD_EXPERIMENTAL_BUMP_PR: '1'
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
function demo() {
|
|
2
|
+
const app = {
|
|
3
|
+
post(_path, handler) {
|
|
4
|
+
handler({ body: { name: 'sample' } }, { send(value) { return value; } });
|
|
5
|
+
},
|
|
6
|
+
};
|
|
7
|
+
const req = { body: { name: 'sample' } };
|
|
8
|
+
const res = { send(value) { return value; } };
|
|
9
|
+
// checklist: see rules/README.md
|
|
10
|
+
app.post('/in', () => {
|
|
11
|
+
res.send(req.body.name);
|
|
12
|
+
});
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
demo();
|