@vue/devtools-kit 7.2.0 → 7.2.1

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/dist/index.cjs CHANGED
@@ -4526,7 +4526,7 @@ function initDevTools() {
4526
4526
  api
4527
4527
  }
4528
4528
  ];
4529
- if (devtoolsAppRecords.value.length >= 1) {
4529
+ if (devtoolsAppRecords.value.length === 1) {
4530
4530
  await setActiveAppRecord(devtoolsAppRecords.value[0]);
4531
4531
  devtoolsState.connected = true;
4532
4532
  devtoolsHooks.callHook("app:connected" /* APP_CONNECTED */);
@@ -4534,10 +4534,6 @@ function initDevTools() {
4534
4534
  });
4535
4535
  hook.on.vueAppUnmount(async (app) => {
4536
4536
  const activeRecords = devtoolsAppRecords.value.filter((appRecord) => appRecord.app !== app);
4537
- if (activeRecords.length === 0) {
4538
- devtoolsState.connected = false;
4539
- return;
4540
- }
4541
4537
  devtoolsAppRecords.value = activeRecords;
4542
4538
  if (devtoolsAppRecords.active.app === app)
4543
4539
  await setActiveAppRecord(activeRecords[0]);
package/dist/index.js CHANGED
@@ -4493,7 +4493,7 @@ function initDevTools() {
4493
4493
  api
4494
4494
  }
4495
4495
  ];
4496
- if (devtoolsAppRecords.value.length >= 1) {
4496
+ if (devtoolsAppRecords.value.length === 1) {
4497
4497
  await setActiveAppRecord(devtoolsAppRecords.value[0]);
4498
4498
  devtoolsState.connected = true;
4499
4499
  devtoolsHooks.callHook("app:connected" /* APP_CONNECTED */);
@@ -4501,10 +4501,6 @@ function initDevTools() {
4501
4501
  });
4502
4502
  hook.on.vueAppUnmount(async (app) => {
4503
4503
  const activeRecords = devtoolsAppRecords.value.filter((appRecord) => appRecord.app !== app);
4504
- if (activeRecords.length === 0) {
4505
- devtoolsState.connected = false;
4506
- return;
4507
- }
4508
4504
  devtoolsAppRecords.value = activeRecords;
4509
4505
  if (devtoolsAppRecords.active.app === app)
4510
4506
  await setActiveAppRecord(activeRecords[0]);
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@vue/devtools-kit",
3
3
  "type": "module",
4
- "version": "7.2.0",
4
+ "version": "7.2.1",
5
5
  "author": "webfansplz",
6
6
  "license": "MIT",
7
7
  "repository": {
@@ -30,7 +30,7 @@
30
30
  "mitt": "^3.0.1",
31
31
  "perfect-debounce": "^1.0.0",
32
32
  "speakingurl": "^14.0.1",
33
- "@vue/devtools-shared": "^7.2.0"
33
+ "@vue/devtools-shared": "^7.2.1"
34
34
  },
35
35
  "devDependencies": {
36
36
  "@types/speakingurl": "^13.0.6",