chore: update package metadata and reduce permissions

This commit is contained in:
Huakun Shen 2025-01-28 11:31:52 -05:00
parent 5cb5228002
commit cc5c0a039d
No known key found for this signature in database
3 changed files with 8 additions and 14 deletions

View File

@ -1 +1,4 @@
# Kunkun WakeOnLan Extension
![](https://i.imgur.com/D7bklcG.png)
![](https://i.imgur.com/CJrD65u.png)

View File

@ -1,9 +1,13 @@
{
"$schema": "https://schema.kunkun.sh",
"name": "kunkun-ext-wol",
"version": "0.0.6",
"version": "0.0.7",
"license": "MIT",
"type": "module",
"repository": {
"type": "git",
"url": "https://github.com/kunkunsh/kunkun-ext-wol"
},
"kunkun": {
"name": "Wake On Lan",
"shortDescription": "Wake On Lan",
@ -15,12 +19,6 @@
"allow": [
{
"path": "$EXTENSION/deno-src/index.ts",
"env": "*",
"ffi": "*",
"read": "*",
"write": "*",
"sys": "*",
"run": "*",
"net": "*"
}
]

View File

@ -30,14 +30,7 @@ async function getRpcAPI() {
"$EXTENSION/deno-src/index.ts",
[],
{
allowAllEnv: true,
allowAllFfi: true,
allowAllRead: true,
allowAllWrite: true,
allowAllSys: true,
allowAllRun: true,
allowAllNet: true,
cwd: downloadDir,
},
{}
);