bypass-vue-devtools
Advanced tools
Comparing version 0.0.5 to 0.0.6
@@ -0,12 +1,23 @@ | ||
// @ts-nocheck | ||
const $nuxt = { | ||
config: {}, | ||
data: {}, | ||
path: '/', | ||
state: {}, | ||
serverRendered: true, | ||
$root: { | ||
constructor: { | ||
config: { | ||
devtools: false, | ||
}, | ||
}, | ||
}, | ||
} | ||
const VUE_DEVTOOLS_DETECT_OBJ = { | ||
__NUXT__: { | ||
config: {}, | ||
data: {}, | ||
path: '/', | ||
state: {}, | ||
serverRendered: true, | ||
}, | ||
$nuxt: !0, | ||
__NUXT__: $nuxt, | ||
$nuxt, | ||
__VUE__: !0, | ||
} | ||
export const cheatVueDevtools = () => { | ||
@@ -16,8 +27,7 @@ if (typeof window === 'undefined') { | ||
} | ||
for (const key in VUE_DEVTOOLS_DETECT_OBJ) { | ||
if (!(key in window)) { | ||
window[key as any] = (VUE_DEVTOOLS_DETECT_OBJ as any)[key] as any | ||
window[key] = VUE_DEVTOOLS_DETECT_OBJ[key] | ||
} | ||
} | ||
} |
@@ -0,10 +1,19 @@ | ||
// @ts-nocheck | ||
const $nuxt = { | ||
config: {}, | ||
data: {}, | ||
path: '/', | ||
state: {}, | ||
serverRendered: true, | ||
$root: { | ||
constructor: { | ||
config: { | ||
devtools: false, | ||
}, | ||
}, | ||
}, | ||
}; | ||
const VUE_DEVTOOLS_DETECT_OBJ = { | ||
__NUXT__: { | ||
config: {}, | ||
data: {}, | ||
path: '/', | ||
state: {}, | ||
serverRendered: true, | ||
}, | ||
$nuxt: !0, | ||
__NUXT__: $nuxt, | ||
$nuxt, | ||
__VUE__: !0, | ||
@@ -11,0 +20,0 @@ }; |
@@ -1,2 +0,2 @@ | ||
const n={__NUXT__:{config:{},data:{},path:"/",state:{},serverRendered:!0},$nuxt:!0,__VUE__:!0},t=()=>{if(!(typeof window>"u"))for(const e in n)e in window||(window[e]=n[e])};export{t as cheatVueDevtools}; | ||
const t={config:{},data:{},path:"/",state:{},serverRendered:!0,$root:{constructor:{config:{devtools:!1}}}},e={__NUXT__:t,$nuxt:t,__VUE__:!0},n=()=>{if(!(typeof window>"u"))for(const o in e)o in window||(window[o]=e[o])};export{n as cheatVueDevtools}; | ||
//# sourceMappingURL=index.min.js.map |
@@ -0,10 +1,19 @@ | ||
// @ts-nocheck | ||
const $nuxt = { | ||
config: {}, | ||
data: {}, | ||
path: '/', | ||
state: {}, | ||
serverRendered: true, | ||
$root: { | ||
constructor: { | ||
config: { | ||
devtools: false, | ||
}, | ||
}, | ||
}, | ||
}; | ||
const VUE_DEVTOOLS_DETECT_OBJ = { | ||
__NUXT__: { | ||
config: {}, | ||
data: {}, | ||
path: '/', | ||
state: {}, | ||
serverRendered: true, | ||
}, | ||
$nuxt: !0, | ||
__NUXT__: $nuxt, | ||
$nuxt, | ||
__VUE__: !0, | ||
@@ -11,0 +20,0 @@ }; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.cheatVueDevtools = void 0; | ||
// @ts-nocheck | ||
const $nuxt = { | ||
config: {}, | ||
data: {}, | ||
path: '/', | ||
state: {}, | ||
serverRendered: true, | ||
$root: { | ||
constructor: { | ||
config: { | ||
devtools: false, | ||
}, | ||
}, | ||
}, | ||
}; | ||
const VUE_DEVTOOLS_DETECT_OBJ = { | ||
__NUXT__: { | ||
config: {}, | ||
data: {}, | ||
path: '/', | ||
state: {}, | ||
serverRendered: true, | ||
}, | ||
$nuxt: !0, | ||
__NUXT__: $nuxt, | ||
$nuxt, | ||
__VUE__: !0, | ||
@@ -14,0 +23,0 @@ }; |
{ | ||
"name": "bypass-vue-devtools", | ||
"version": "0.0.5", | ||
"version": "0.0.6", | ||
"description": "TODO", | ||
@@ -5,0 +5,0 @@ "author": "Innei", |
@@ -0,12 +1,23 @@ | ||
// @ts-nocheck | ||
const $nuxt = { | ||
config: {}, | ||
data: {}, | ||
path: '/', | ||
state: {}, | ||
serverRendered: true, | ||
$root: { | ||
constructor: { | ||
config: { | ||
devtools: false, | ||
}, | ||
}, | ||
}, | ||
} | ||
const VUE_DEVTOOLS_DETECT_OBJ = { | ||
__NUXT__: { | ||
config: {}, | ||
data: {}, | ||
path: '/', | ||
state: {}, | ||
serverRendered: true, | ||
}, | ||
$nuxt: !0, | ||
__NUXT__: $nuxt, | ||
$nuxt, | ||
__VUE__: !0, | ||
} | ||
export const cheatVueDevtools = () => { | ||
@@ -16,8 +27,7 @@ if (typeof window === 'undefined') { | ||
} | ||
for (const key in VUE_DEVTOOLS_DETECT_OBJ) { | ||
if (!(key in window)) { | ||
window[key as any] = (VUE_DEVTOOLS_DETECT_OBJ as any)[key] as any | ||
window[key] = VUE_DEVTOOLS_DETECT_OBJ[key] | ||
} | ||
} | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
11606
239
21