dsh-plugin-shop 0.4.1 → 0.4.3
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 +4 -3
- package/lib/client.js +435 -89
- package/lib/index.js +264 -36
- package/lib/typert.host.js +105 -20
- package/lib/typert.remote-client.d.ts +7 -3
- package/lib/typert.remote-client.js +73 -14
- package/lib/types/client/ShopTab.d.ts +6 -2
- package/lib/types/client/index.d.ts +3 -3
- package/lib/types/client/locales.d.ts +24 -0
- package/lib/types/client/useInstall.d.ts +9 -0
- package/lib/types/client/useUninstall.d.ts +21 -0
- package/lib/types/host/executor.d.ts +18 -6
- package/lib/types/host/index.d.ts +65 -4
- package/lib/types/host/restart.d.ts +35 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -114,7 +114,8 @@ bundle is not.
|
|
|
114
114
|
| **Browse & search** | 1800+ packages harvested from npm by the `dsh-plugin` keyword, shown with the author's own summary when they declared one |
|
|
115
115
|
| **Install** | One confirmation. An unreviewed plugin requires an explicit acknowledgement first — an installed plugin holds the same privileges as a built-in one |
|
|
116
116
|
| **Enable / disable** | Applies to an installed plugin without a restart |
|
|
117
|
-
| **
|
|
117
|
+
| **Installed state** | An installed plugin shows an Installed label on its card — or an Update button when the catalog has a newer version — plus an Uninstall button; the Installed filter in the category bar shows only installed plugins |
|
|
118
|
+
| **Restart** | After an install, update, or uninstall, the shop offers to restart dsh — stating the cost first: the page disconnects and in-flight work is interrupted |
|
|
118
119
|
|
|
119
120
|
## 🧩 How it is put together
|
|
120
121
|
|
|
@@ -124,9 +125,9 @@ boundary:
|
|
|
124
125
|
| Half | Entry | Can reach | Cannot reach |
|
|
125
126
|
|---|---|---|---|
|
|
126
127
|
| **Host** | `dsh-plugin-shop` | The network (catalog fetch and sha256 verify), the filesystem (cache), `dsh plugin add` under a per-profile mutex | — |
|
|
127
|
-
| **Client** | `dsh-plugin-shop/client` | Exactly
|
|
128
|
+
| **Client** | `dsh-plugin-shop/client` | Exactly seven `shop/*` Remote methods | The network, the filesystem |
|
|
128
129
|
|
|
129
|
-
Compromising the browser half buys an attacker those
|
|
130
|
+
Compromising the browser half buys an attacker those seven calls and nothing more.
|
|
130
131
|
|
|
131
132
|
## ⚙️ Configuration
|
|
132
133
|
|