@wjm200509/dsh-plugin-version-watch 0.1.3 → 0.1.4

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/lib/client.js CHANGED
@@ -1,5 +1,5 @@
1
1
  window.__ModuleLoader__.load({
2
- id: "dsh-plugin-version-watch",
2
+ id: "@wjm200509/dsh-plugin-version-watch",
3
3
  factory: (require) => {
4
4
  var module = { exports: {} };
5
5
  var exports = module.exports;
package/lib/index.js CHANGED
@@ -237,7 +237,8 @@ async function resolveCheck(ctx, { name, info, installedCommit, bundle }) {
237
237
  }
238
238
 
239
239
  if (info.kind === "registry") {
240
- if (bundle !== undefined && bundle.updatable !== true) {
240
+ // DSH 0.2.2-rc.3 replaced `updatable: boolean` with `update: 'registry' | 'git'`; accept both.
241
+ if (bundle !== undefined && bundle.update !== "registry" && bundle.updatable !== true) {
241
242
  return { status: "unsupported", installedCommit: null, remoteCommit: null, remoteVersion: null, latestVersion: null, reason: "not-updatable" };
242
243
  }
243
244
  let answer;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wjm200509/dsh-plugin-version-watch",
3
- "version": "0.1.3",
3
+ "version": "0.1.4",
4
4
  "description": "Version watch for installed DSH plugins: list installed versions, check Git and npm sources for updates, and update them live from Settings without restarting.",
5
5
  "type": "module",
6
6
  "author": "JiaMingWang-CN",