What changes:
- Custom rules: you can manage your own masking rules (aliases, checks for duplicates and limits, warnings before discarding edits) on their own subpage.
- History: rule-version and authorization history, up to 100 entries.
- Masking: tool schemas' enum, const, default and examples values are now masked.
- Receipts: a damaged receipt keeps the stages that are still valid.
- Dist check: `npm test` first checks that dist matches its source.
Version 0.4.3 to 0.4.6.
Run at 13ad10a8 on mica, which merges cleanly over 13a6f4c2:
- `bun test packages/company-guard`: 33 pass, 0 fail.
- `node --test`: 33 pass, 0 fail.
- `bun scripts/check.mjs company-guard`: ok.
What was read:
- The dist diff, line by line against src/protocols.js and src/session-authorization.js.
- The new rules.js fetch: it only calls the page's own receipt routes, the same as authorization.js.
Not run: `build.mjs --check`. esbuild isn't installed on the test box.
Co-authored-by: cyanask <44457432+cyanask@users.noreply.github.com>
73 lines
1.7 KiB
JSON
73 lines
1.7 KiB
JSON
{
|
|
"name": "@magpie-community/middleware-company-guard",
|
|
"version": "0.4.6",
|
|
"type": "module",
|
|
"license": "MIT",
|
|
"description": "Local company-name masking, reversible replies and session approvals for Magpie",
|
|
"files": [
|
|
"dist",
|
|
"src",
|
|
"vendor",
|
|
"company-guard.hooks.mjs",
|
|
"README.md",
|
|
"LICENSE",
|
|
"THIRD_PARTY_NOTICES.md",
|
|
"receipt-report.mjs",
|
|
"page",
|
|
"receipt-page.mjs"
|
|
],
|
|
"magpie": {
|
|
"middleware": "./dist/company-guard.middleware.js",
|
|
"hooks": "./company-guard.hooks.mjs",
|
|
"options": {
|
|
"companies": [],
|
|
"gatewayTimeoutMs": 4000
|
|
},
|
|
"page": {
|
|
"title": "Company name protection",
|
|
"titles": {
|
|
"zh": "公司名称保护",
|
|
"zh-TW": "公司名稱保護"
|
|
},
|
|
"file": "page/index-0.3.3.html",
|
|
"service": {
|
|
"port": 3469,
|
|
"option": "receiptPort"
|
|
}
|
|
}
|
|
},
|
|
"main": "./receipt-page.mjs",
|
|
"repository": {
|
|
"type": "git",
|
|
"url": "git+https://github.com/magpie-community/plugins.git",
|
|
"directory": "packages/company-guard"
|
|
},
|
|
"homepage": "https://github.com/cyanask/magpie-company-guard#readme",
|
|
"bugs": {
|
|
"url": "https://github.com/cyanask/magpie-company-guard/issues"
|
|
},
|
|
"keywords": [
|
|
"magpie-plugin",
|
|
"magpie",
|
|
"middleware",
|
|
"privacy",
|
|
"data-masking",
|
|
"codex"
|
|
],
|
|
"scripts": {
|
|
"build": "node scripts/build.mjs",
|
|
"check:dist": "node scripts/build.mjs --check",
|
|
"test": "npm run check:dist && node --test test/*.test.mjs"
|
|
},
|
|
"devDependencies": {
|
|
"esbuild": "0.25.12"
|
|
},
|
|
"os": [
|
|
"darwin"
|
|
],
|
|
"engines": {
|
|
"node": ">=20",
|
|
"magpie": ">=0.1.3841"
|
|
}
|
|
}
|