dshmarket 1.77.1 → 1.78.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/README.md +13 -0
- package/README.zh.md +13 -0
- package/client/client.js +801 -96
- package/lib/catalog-npm.js +3 -1
- package/lib/catalogs.js +567 -0
- package/lib/changelog.js +2 -1
- package/lib/discovery-compatibility.js +3 -2
- package/lib/hot.js +19 -0
- package/lib/http.js +13 -0
- package/lib/net.js +9 -1
- package/lib/npmrc.js +267 -0
- package/lib/offline.js +183 -0
- package/lib/policy.js +326 -0
- package/lib/regions.js +17 -4
- package/lib/registry.js +88 -1
- package/lib/routes.js +258 -13
- package/lib/sources.js +20 -2
- package/lib/telemetry.js +4 -0
- package/lib/types/catalog-npm.d.ts +1 -1
- package/lib/types/catalogs.d.ts +156 -0
- package/lib/types/hot.d.ts +9 -0
- package/lib/types/http.d.ts +2 -0
- package/lib/types/net.d.ts +1 -1
- package/lib/types/npmrc.d.ts +79 -0
- package/lib/types/offline.d.ts +54 -0
- package/lib/types/policy.d.ts +116 -0
- package/lib/types/regions.d.ts +2 -0
- package/lib/types/registry.d.ts +42 -18
- package/lib/types/sources.d.ts +3 -0
- package/lib/types/updates.d.ts +2 -0
- package/lib/updates.js +26 -5
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -240,6 +240,19 @@ DSHM_REGISTRY_URL=https://your-mirror.example/plugins.json dsh web
|
|
|
240
240
|
|
|
241
241
|
</details>
|
|
242
242
|
|
|
243
|
+
## Enterprise
|
|
244
|
+
|
|
245
|
+
For teams that want their own plugins next to the public catalog, or need the market locked down. All optional; with nothing configured the market behaves as before.
|
|
246
|
+
|
|
247
|
+
- **Private catalogs**: add your own `plugins.json` by URL or file. Its plugins show on Discover with a source tag, and AI search and recommendations include them
|
|
248
|
+
- **Private npm**: Verdaccio, Nexus, Artifactory and GitHub Packages through the profile's `.npmrc`; updates and changelogs work for private packages too
|
|
249
|
+
- **Internal Git**: install from GitLab, Gitea and other Git hosts over https or ssh
|
|
250
|
+
- **Offline bundles**: pack a catalog with its plugin files and import it on machines without npm access
|
|
251
|
+
- **Policy file**: an administrator decides which catalogs load, what may be installed, which versions are pinned, and turns off telemetry, comments or outside images
|
|
252
|
+
- **Same safety boundary**: only entries from loaded catalogs can be installed, and tokens never leave the server
|
|
253
|
+
|
|
254
|
+
Setup, the full `policy.json` reference and examples: [ENTERPRISE.md](ENTERPRISE.md).
|
|
255
|
+
|
|
243
256
|
## Friends
|
|
244
257
|
|
|
245
258
|
### DSH Desktop (dataelement)
|
package/README.zh.md
CHANGED
|
@@ -231,6 +231,19 @@ DSHM_REGISTRY_URL=https://your-mirror.example/plugins.json dsh web
|
|
|
231
231
|
|
|
232
232
|
</details>
|
|
233
233
|
|
|
234
|
+
## 企业
|
|
235
|
+
|
|
236
|
+
适合想在公共目录之外加上自己的插件、或需要统一管控市场的团队。全部可选,什么都不配置时市场和以前一样。
|
|
237
|
+
|
|
238
|
+
- **私有目录**:用 URL 或本地文件加上你们自己的 `plugins.json`,插件出现在「发现」页并标出来源,AI 搜索和推荐也会算进去
|
|
239
|
+
- **私有 npm**:通过 profile 的 `.npmrc` 支持 Verdaccio、Nexus、Artifactory、GitHub Packages,私有包同样能查更新、看更新日志
|
|
240
|
+
- **内网 Git**:从 GitLab、Gitea 等通过 https 或 ssh 安装
|
|
241
|
+
- **离线包**:把目录和插件文件打成一个包,在访问不了 npm 的机器上导入安装
|
|
242
|
+
- **策略文件**:管理员决定加载哪些目录、允许装什么、固定哪些版本,以及关闭遥测、评论或外部图片
|
|
243
|
+
- **安全边界不变**:只能安装已加载目录里的插件,token 不会离开服务端
|
|
244
|
+
|
|
245
|
+
配置方法、`policy.json` 完整说明和示例见 [ENTERPRISE.zh.md](ENTERPRISE.zh.md)。
|
|
246
|
+
|
|
234
247
|
## 友情链接
|
|
235
248
|
|
|
236
249
|
### DSH Desktop(dataelement)
|