@vue/devtools-kit 7.5.1 → 7.5.2
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 +2 -2
- package/dist/index.js +2 -2
- package/package.json +2 -2
package/dist/index.cjs
CHANGED
|
@@ -2338,13 +2338,13 @@ init_cjs_shims();
|
|
|
2338
2338
|
var import_devtools_shared4 = require("@vue/devtools-shared");
|
|
2339
2339
|
var TIMELINE_LAYERS_STATE_STORAGE_ID = "__VUE_DEVTOOLS_KIT_TIMELINE_LAYERS_STATE__";
|
|
2340
2340
|
function addTimelineLayersStateToStorage(state) {
|
|
2341
|
-
if (!import_devtools_shared4.isBrowser) {
|
|
2341
|
+
if (!import_devtools_shared4.isBrowser || typeof localStorage === "undefined") {
|
|
2342
2342
|
return;
|
|
2343
2343
|
}
|
|
2344
2344
|
localStorage.setItem(TIMELINE_LAYERS_STATE_STORAGE_ID, JSON.stringify(state));
|
|
2345
2345
|
}
|
|
2346
2346
|
function getTimelineLayersStateFromStorage() {
|
|
2347
|
-
if (!import_devtools_shared4.isBrowser) {
|
|
2347
|
+
if (!import_devtools_shared4.isBrowser || typeof localStorage === "undefined") {
|
|
2348
2348
|
return {
|
|
2349
2349
|
recordingState: false,
|
|
2350
2350
|
mouseEventEnabled: false,
|
package/dist/index.js
CHANGED
|
@@ -2247,13 +2247,13 @@ init_esm_shims();
|
|
|
2247
2247
|
import { isBrowser } from "@vue/devtools-shared";
|
|
2248
2248
|
var TIMELINE_LAYERS_STATE_STORAGE_ID = "__VUE_DEVTOOLS_KIT_TIMELINE_LAYERS_STATE__";
|
|
2249
2249
|
function addTimelineLayersStateToStorage(state) {
|
|
2250
|
-
if (!isBrowser) {
|
|
2250
|
+
if (!isBrowser || typeof localStorage === "undefined") {
|
|
2251
2251
|
return;
|
|
2252
2252
|
}
|
|
2253
2253
|
localStorage.setItem(TIMELINE_LAYERS_STATE_STORAGE_ID, JSON.stringify(state));
|
|
2254
2254
|
}
|
|
2255
2255
|
function getTimelineLayersStateFromStorage() {
|
|
2256
|
-
if (!isBrowser) {
|
|
2256
|
+
if (!isBrowser || typeof localStorage === "undefined") {
|
|
2257
2257
|
return {
|
|
2258
2258
|
recordingState: false,
|
|
2259
2259
|
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.5.
|
|
4
|
+
"version": "7.5.2",
|
|
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.1",
|
|
32
|
-
"@vue/devtools-shared": "^7.5.
|
|
32
|
+
"@vue/devtools-shared": "^7.5.2"
|
|
33
33
|
},
|
|
34
34
|
"devDependencies": {
|
|
35
35
|
"@types/speakingurl": "^13.0.6",
|