vite-plugin-vue-devtools 8.1.1 → 8.1.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/client/assets/{IconTitle.vue_vue_type_script_setup_true_lang-CfDGRuuz.js → IconTitle.vue_vue_type_script_setup_true_lang-DmOyYSsM.js} +1 -1
- package/client/assets/{SectionBlock-Crn18Q0p.js → SectionBlock-D-Tfq7G_.js} +1 -1
- package/client/assets/{assets-BRwG2HLw.js → assets-rxSrDlpI.js} +1 -1
- package/client/assets/{components-Dc6g-iyY.js → components-DxgZQ-IO.js} +1 -1
- package/client/assets/{custom-inspector-tab-view--ulUW-qb.js → custom-inspector-tab-view-CdxKO_4u.js} +1 -1
- package/client/assets/{custom-tab-view-C959CANd.js → custom-tab-view-ZDhzwPEw.js} +1 -1
- package/client/assets/{graph-BRGxD27w.js → graph-wnRn8UNq.js} +1 -1
- package/client/assets/{index-B5ZMOy4O.js → index-tvfuK4RW.js} +28 -28
- package/client/assets/{overview-CxLRqeZ8.js → overview-DZxAymiJ.js} +1 -1
- package/client/assets/{pages-B01Hd5DR.js → pages-DooL8y43.js} +1 -1
- package/client/assets/{pinia-C62RQFBU.js → pinia-CwQtJ1zf.js} +1 -1
- package/client/assets/{router-CMWgb1rd.js → router-_5lv7gLh.js} +1 -1
- package/client/assets/{settings-Cp5OpdUZ.js → settings-m2v-t2vR.js} +1 -1
- package/client/assets/{timeline-BnYZ8d9h.js → timeline-C70dHO3X.js} +1 -1
- package/client/index.html +1 -1
- package/package.json +5 -5
- package/src/overlay/devtools-overlay.css +1 -1
- package/src/overlay/devtools-overlay.mjs +2 -2
- package/src/overlay.js +14 -1
package/src/overlay.js
CHANGED
|
@@ -41,7 +41,20 @@ link.href = `${overlayDir}/devtools-overlay.css`
|
|
|
41
41
|
|
|
42
42
|
// create script
|
|
43
43
|
const script = document.createElement('script')
|
|
44
|
-
|
|
44
|
+
const scriptUrl = `${overlayDir}/devtools-overlay.mjs`
|
|
45
|
+
// Under a `require-trusted-types-for 'script'` CSP, assigning a string to
|
|
46
|
+
// `script.src` is blocked. Wrap the URL in a TrustedScriptURL via a named
|
|
47
|
+
// policy so apps can opt-in by allowing `vue-devtools` in their CSP's
|
|
48
|
+
// `trusted-types` directive.
|
|
49
|
+
if (typeof window !== 'undefined' && window.trustedTypes && typeof window.trustedTypes.createPolicy === 'function') {
|
|
50
|
+
const policy = window.trustedTypes.createPolicy('vue-devtools', {
|
|
51
|
+
createScriptURL: input => input,
|
|
52
|
+
})
|
|
53
|
+
script.src = policy.createScriptURL(scriptUrl)
|
|
54
|
+
}
|
|
55
|
+
else {
|
|
56
|
+
script.src = scriptUrl
|
|
57
|
+
}
|
|
45
58
|
script.type = 'module'
|
|
46
59
|
|
|
47
60
|
// append to head
|