Drops four authorization-page CSS rules no element matches (.authorization-heading and its p, .authorization-scope .detail-message, .authorization-card>button) and folds the error map's three Object.assign layers into one literal. The 12 effective messages are unchanged; request_expired keeps the later text, the one that won before. By cyanask. Run at the reviewed head f9a65c28 (mote, temp HOME): - bun test packages/company-guard: 36 pass, 0 fail. - bun scripts/check.mjs company-guard: ok. node --check on every page/*.js. - The new map parsed as JSON: 12 keys, request_expired = the old effective text. - git grep of page/*.js and *.html: no authorization-heading, no .detail-message inside .authorization-scope, no button as a direct child of .authorization-card. Not tried: the page in a browser; nothing it renders changes.
73 lines
1.7 KiB
JSON
73 lines
1.7 KiB
JSON
{
|
|
"name": "@magpie-community/middleware-company-guard",
|
|
"version": "0.4.8",
|
|
"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"
|
|
}
|
|
}
|