@vue/devtools-kit 7.7.7 → 7.7.9

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
@@ -2351,7 +2351,7 @@ function addTimelineLayersStateToStorage(state) {
2351
2351
  localStorage.setItem(TIMELINE_LAYERS_STATE_STORAGE_ID, JSON.stringify(state));
2352
2352
  }
2353
2353
  function getTimelineLayersStateFromStorage() {
2354
- if (!import_devtools_shared4.isBrowser || typeof localStorage === "undefined" || localStorage === null) {
2354
+ if (typeof window === "undefined" || !import_devtools_shared4.isBrowser || typeof localStorage === "undefined" || localStorage === null) {
2355
2355
  return {
2356
2356
  recordingState: false,
2357
2357
  mouseEventEnabled: false,
@@ -2361,7 +2361,7 @@ function getTimelineLayersStateFromStorage() {
2361
2361
  selected: ""
2362
2362
  };
2363
2363
  }
2364
- const state = localStorage.getItem(TIMELINE_LAYERS_STATE_STORAGE_ID);
2364
+ const state = typeof localStorage.getItem !== "undefined" ? localStorage.getItem(TIMELINE_LAYERS_STATE_STORAGE_ID) : null;
2365
2365
  return state ? JSON.parse(state) : {
2366
2366
  recordingState: false,
2367
2367
  mouseEventEnabled: false,
package/dist/index.js CHANGED
@@ -2259,7 +2259,7 @@ function addTimelineLayersStateToStorage(state) {
2259
2259
  localStorage.setItem(TIMELINE_LAYERS_STATE_STORAGE_ID, JSON.stringify(state));
2260
2260
  }
2261
2261
  function getTimelineLayersStateFromStorage() {
2262
- if (!isBrowser || typeof localStorage === "undefined" || localStorage === null) {
2262
+ if (typeof window === "undefined" || !isBrowser || typeof localStorage === "undefined" || localStorage === null) {
2263
2263
  return {
2264
2264
  recordingState: false,
2265
2265
  mouseEventEnabled: false,
@@ -2269,7 +2269,7 @@ function getTimelineLayersStateFromStorage() {
2269
2269
  selected: ""
2270
2270
  };
2271
2271
  }
2272
- const state = localStorage.getItem(TIMELINE_LAYERS_STATE_STORAGE_ID);
2272
+ const state = typeof localStorage.getItem !== "undefined" ? localStorage.getItem(TIMELINE_LAYERS_STATE_STORAGE_ID) : null;
2273
2273
  return state ? JSON.parse(state) : {
2274
2274
  recordingState: false,
2275
2275
  mouseEventEnabled: false,
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@vue/devtools-kit",
3
3
  "type": "module",
4
- "version": "7.7.7",
4
+ "version": "7.7.9",
5
5
  "author": "webfansplz",
6
6
  "license": "MIT",
7
7
  "repository": {
@@ -29,7 +29,7 @@
29
29
  "perfect-debounce": "^1.0.0",
30
30
  "speakingurl": "^14.0.1",
31
31
  "superjson": "^2.2.2",
32
- "@vue/devtools-shared": "^7.7.7"
32
+ "@vue/devtools-shared": "^7.7.9"
33
33
  },
34
34
  "devDependencies": {
35
35
  "@types/speakingurl": "^13.0.6",