@nuxt/scripts 2.0.0-beta.5 → 2.0.0-beta.6
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/LICENSE.md +9 -0
- package/dist/devtools-client/200.html +1 -1
- package/dist/devtools-client/404.html +1 -1
- package/dist/devtools-client/_nuxt/Bagqfgzu.js +179 -0
- package/dist/devtools-client/_nuxt/CIwvJvFr.js +1 -0
- package/dist/devtools-client/_nuxt/CP6K2Qm6.js +1 -0
- package/dist/devtools-client/_nuxt/CWci3Eb_.js +1 -0
- package/dist/devtools-client/_nuxt/Car86Ubo.js +3 -0
- package/dist/devtools-client/_nuxt/{Dat651Oh.js → ClT2ZYzs.js} +1 -1
- package/dist/devtools-client/_nuxt/D4iN56En.js +1 -0
- package/dist/devtools-client/_nuxt/DXDqMNFL.js +1 -0
- package/dist/devtools-client/_nuxt/DZ6h2v9A.js +1 -0
- package/dist/devtools-client/_nuxt/D_hceTm9.js +1 -0
- package/dist/devtools-client/_nuxt/QMsSHdby.js +6 -0
- package/dist/devtools-client/_nuxt/WbNXtEed.js +2 -0
- package/dist/devtools-client/_nuxt/builds/latest.json +1 -1
- package/dist/devtools-client/_nuxt/builds/meta/8bf6d5ed-9af4-4b18-be50-90e3f19066d5.json +1 -0
- package/dist/devtools-client/_nuxt/entry.CuI_2OaG.css +2 -0
- package/dist/devtools-client/_nuxt/error-404.Bn3cR6N7.css +1 -0
- package/dist/devtools-client/_nuxt/error-500.ClHmgt9z.css +1 -0
- package/dist/devtools-client/_nuxt/{pages.aU4WirOM.css → pages.BTJrCFzE.css} +1 -1
- package/dist/devtools-client/_nuxt/utTTwIIR.js +8 -0
- package/dist/devtools-client/docs/index.html +1 -1
- package/dist/devtools-client/first-party/index.html +1 -1
- package/dist/devtools-client/index.html +1 -1
- package/dist/devtools-client/registry/index.html +1 -1
- package/dist/module.json +1 -1
- package/dist/runtime/components/MapLibre/ScriptMapLibreMap.vue +3 -2
- package/dist/runtime/components/MapLibre/ScriptMapLibreMarker.d.vue.ts +6 -6
- package/dist/runtime/components/MapLibre/ScriptMapLibreMarker.vue.d.ts +6 -6
- package/dist/runtime/components/MapLibre/ScriptMapLibrePopup.d.vue.ts +4 -4
- package/dist/runtime/components/MapLibre/ScriptMapLibrePopup.vue.d.ts +4 -4
- package/dist/runtime/components/ScriptCarbonAds.vue +3 -1
- package/dist/runtime/components/ScriptGoogleAdsense.d.vue.ts +1 -1
- package/dist/runtime/components/ScriptGoogleAdsense.vue.d.ts +1 -1
- package/dist/runtime/server/proxy-handler.d.ts +0 -4
- package/dist/runtime/server/proxy-handler.js +109 -38
- package/dist/runtime/server/utils/network-dispatcher.platform.d.ts +2 -2
- package/dist/runtime/server/utils/network-dispatcher.platform.js +4 -1
- package/dist/types-source.mjs +2 -2
- package/package.json +22 -22
- package/dist/devtools-client/_nuxt/2p1_IuX2.js +0 -1
- package/dist/devtools-client/_nuxt/9elIQxwW.js +0 -1
- package/dist/devtools-client/_nuxt/B-kTnbRv.js +0 -1
- package/dist/devtools-client/_nuxt/BDNMzG2s.js +0 -1
- package/dist/devtools-client/_nuxt/BNPn63Jz.js +0 -1
- package/dist/devtools-client/_nuxt/BuTlAAeI.js +0 -152
- package/dist/devtools-client/_nuxt/C41E8Pp1.js +0 -8
- package/dist/devtools-client/_nuxt/CDDBpkXG.js +0 -3
- package/dist/devtools-client/_nuxt/Cbmw_5H5.js +0 -1
- package/dist/devtools-client/_nuxt/DAsiyhPm.js +0 -6
- package/dist/devtools-client/_nuxt/DabLKy7M.js +0 -1
- package/dist/devtools-client/_nuxt/DiZU_C4m.js +0 -1
- package/dist/devtools-client/_nuxt/KsX6Az5B.js +0 -1
- package/dist/devtools-client/_nuxt/LFNkKKtz.js +0 -28
- package/dist/devtools-client/_nuxt/UmWNrBO5.js +0 -2
- package/dist/devtools-client/_nuxt/builds/meta/778de0a6-ec82-430f-966c-9a96d75eb772.json +0 -1
- package/dist/devtools-client/_nuxt/entry.CYUdJFoE.css +0 -2
- package/dist/devtools-client/_nuxt/error-404.DnwL1N6v.css +0 -1
- package/dist/devtools-client/_nuxt/error-500.DEbXRLdm.css +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
<!DOCTYPE html><html><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1"><script type="importmap">{"imports":{"#entry":"/__nuxt-scripts/_nuxt/
|
|
1
|
+
<!DOCTYPE html><html><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1"><script type="importmap">{"imports":{"#entry":"/__nuxt-scripts/_nuxt/Bagqfgzu.js"}}</script><link rel="stylesheet" href="/__nuxt-scripts/_nuxt/entry.CuI_2OaG.css" crossorigin><link rel="modulepreload" as="script" crossorigin href="/__nuxt-scripts/_nuxt/Bagqfgzu.js"><link rel="modulepreload" as="script" crossorigin href="/__nuxt-scripts/_nuxt/DK3Fl9T5.js"><link rel="modulepreload" as="script" crossorigin href="/__nuxt-scripts/_nuxt/CIwvJvFr.js"><link rel="modulepreload" as="script" crossorigin href="/__nuxt-scripts/_nuxt/Car86Ubo.js"><link rel="modulepreload" as="script" crossorigin href="/__nuxt-scripts/_nuxt/WbNXtEed.js"><link rel="modulepreload" as="script" crossorigin href="/__nuxt-scripts/_nuxt/utTTwIIR.js"><link rel="modulepreload" as="script" crossorigin href="/__nuxt-scripts/_nuxt/QMsSHdby.js"><link rel="modulepreload" as="script" crossorigin href="/__nuxt-scripts/_nuxt/ClT2ZYzs.js"><script type="module" src="/__nuxt-scripts/_nuxt/Bagqfgzu.js" crossorigin></script><link rel="prefetch" as="script" crossorigin href="/__nuxt-scripts/_nuxt/DMbpbO54.js"><link rel="prefetch" as="script" crossorigin href="/__nuxt-scripts/_nuxt/qhed-kSA.js"><link rel="prefetch" as="script" crossorigin href="/__nuxt-scripts/_nuxt/BgS3c2Ky.js"><link rel="prefetch" as="script" crossorigin href="/__nuxt-scripts/_nuxt/VbXTXTou.js"><link rel="prefetch" as="script" crossorigin href="/__nuxt-scripts/_nuxt/BZCL-v6S.js"><link rel="prefetch" as="style" crossorigin href="/__nuxt-scripts/_nuxt/error-404.Bn3cR6N7.css"><link rel="prefetch" as="script" crossorigin href="/__nuxt-scripts/_nuxt/DZ6h2v9A.js"><link rel="prefetch" as="style" crossorigin href="/__nuxt-scripts/_nuxt/error-500.ClHmgt9z.css"><link rel="prefetch" as="script" crossorigin href="/__nuxt-scripts/_nuxt/DXDqMNFL.js"><script>"use strict";(()=>{const o=window,e=document.documentElement,c=["dark","light"],s=getStorageValue("localStorage","nuxt-color-mode")||"system";let r=s==="system"?f():s;const l=e.getAttribute("data-color-mode-forced");l&&(r=l),i(r),o["__NUXT_COLOR_MODE__"]={preference:s,value:r,getColorScheme:f,addColorScheme:i,removeColorScheme:d};function i(t){const a=""+t+"",n="";e.classList?e.classList.add(a):e.className+=" "+a,n&&e.setAttribute("data-"+n,t)}function d(t){const a=""+t+"",n="";e.classList?e.classList.remove(a):e.className=e.className.replace(new RegExp(a,"g"),""),n&&e.removeAttribute("data-"+n)}function u(t){return o.matchMedia("(prefers-color-scheme"+t+")")}function f(){if(o.matchMedia&&u("").media!=="not all"){for(const t of c)if(u(":"+t).matches)return t}return"light"}})();function getStorageValue(o,e){switch(o){case"localStorage":try{return window.localStorage.getItem(e)}catch{return null}case"sessionStorage":try{return window.sessionStorage.getItem(e)}catch{return null}case"cookie":try{return getCookie(e)}catch{return null}default:return null}}function getCookie(o){const c=("; "+window.document.cookie).split("; "+o+"=");if(c.length===2){const s=c.pop();return s?s.split(";").shift():null}}</script></head><body><div id="__nuxt" class="isolate"></div><div id="teleports"></div><script>window.__NUXT__={};window.__NUXT__.config={public:{},app:{baseURL:"/__nuxt-scripts",buildId:"8bf6d5ed-9af4-4b18-be50-90e3f19066d5",buildAssetsDir:"/_nuxt/",cdnURL:""}}</script><script type="application/json" data-nuxt-data="nuxt-app" data-ssr="false" id="__NUXT_DATA__">[{"prerenderedAt":1,"serverRendered":2},1788930429922,false]</script></body></html>
|
|
@@ -1 +1 @@
|
|
|
1
|
-
<!DOCTYPE html><html><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1"><script type="importmap">{"imports":{"#entry":"/__nuxt-scripts/_nuxt/
|
|
1
|
+
<!DOCTYPE html><html><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1"><script type="importmap">{"imports":{"#entry":"/__nuxt-scripts/_nuxt/Bagqfgzu.js"}}</script><link rel="stylesheet" href="/__nuxt-scripts/_nuxt/entry.CuI_2OaG.css" crossorigin><link rel="modulepreload" as="script" crossorigin href="/__nuxt-scripts/_nuxt/Bagqfgzu.js"><link rel="modulepreload" as="script" crossorigin href="/__nuxt-scripts/_nuxt/DK3Fl9T5.js"><link rel="modulepreload" as="script" crossorigin href="/__nuxt-scripts/_nuxt/CIwvJvFr.js"><link rel="modulepreload" as="script" crossorigin href="/__nuxt-scripts/_nuxt/Car86Ubo.js"><link rel="modulepreload" as="script" crossorigin href="/__nuxt-scripts/_nuxt/WbNXtEed.js"><link rel="modulepreload" as="script" crossorigin href="/__nuxt-scripts/_nuxt/utTTwIIR.js"><link rel="modulepreload" as="script" crossorigin href="/__nuxt-scripts/_nuxt/QMsSHdby.js"><link rel="modulepreload" as="script" crossorigin href="/__nuxt-scripts/_nuxt/ClT2ZYzs.js"><script type="module" src="/__nuxt-scripts/_nuxt/Bagqfgzu.js" crossorigin></script><link rel="prefetch" as="script" crossorigin href="/__nuxt-scripts/_nuxt/DMbpbO54.js"><link rel="prefetch" as="script" crossorigin href="/__nuxt-scripts/_nuxt/qhed-kSA.js"><link rel="prefetch" as="script" crossorigin href="/__nuxt-scripts/_nuxt/BgS3c2Ky.js"><link rel="prefetch" as="script" crossorigin href="/__nuxt-scripts/_nuxt/VbXTXTou.js"><link rel="prefetch" as="script" crossorigin href="/__nuxt-scripts/_nuxt/BZCL-v6S.js"><link rel="prefetch" as="style" crossorigin href="/__nuxt-scripts/_nuxt/error-404.Bn3cR6N7.css"><link rel="prefetch" as="script" crossorigin href="/__nuxt-scripts/_nuxt/DZ6h2v9A.js"><link rel="prefetch" as="style" crossorigin href="/__nuxt-scripts/_nuxt/error-500.ClHmgt9z.css"><link rel="prefetch" as="script" crossorigin href="/__nuxt-scripts/_nuxt/DXDqMNFL.js"><script>"use strict";(()=>{const o=window,e=document.documentElement,c=["dark","light"],s=getStorageValue("localStorage","nuxt-color-mode")||"system";let r=s==="system"?f():s;const l=e.getAttribute("data-color-mode-forced");l&&(r=l),i(r),o["__NUXT_COLOR_MODE__"]={preference:s,value:r,getColorScheme:f,addColorScheme:i,removeColorScheme:d};function i(t){const a=""+t+"",n="";e.classList?e.classList.add(a):e.className+=" "+a,n&&e.setAttribute("data-"+n,t)}function d(t){const a=""+t+"",n="";e.classList?e.classList.remove(a):e.className=e.className.replace(new RegExp(a,"g"),""),n&&e.removeAttribute("data-"+n)}function u(t){return o.matchMedia("(prefers-color-scheme"+t+")")}function f(){if(o.matchMedia&&u("").media!=="not all"){for(const t of c)if(u(":"+t).matches)return t}return"light"}})();function getStorageValue(o,e){switch(o){case"localStorage":try{return window.localStorage.getItem(e)}catch{return null}case"sessionStorage":try{return window.sessionStorage.getItem(e)}catch{return null}case"cookie":try{return getCookie(e)}catch{return null}default:return null}}function getCookie(o){const c=("; "+window.document.cookie).split("; "+o+"=");if(c.length===2){const s=c.pop();return s?s.split(";").shift():null}}</script></head><body><div id="__nuxt" class="isolate"></div><div id="teleports"></div><script>window.__NUXT__={};window.__NUXT__.config={public:{},app:{baseURL:"/__nuxt-scripts",buildId:"8bf6d5ed-9af4-4b18-be50-90e3f19066d5",buildAssetsDir:"/_nuxt/",cdnURL:""}}</script><script type="application/json" data-nuxt-data="nuxt-app" data-ssr="false" id="__NUXT_DATA__">[{"prerenderedAt":1,"serverRendered":2},1788930429923,false]</script></body></html>
|
|
@@ -1 +1 @@
|
|
|
1
|
-
<!DOCTYPE html><html><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1"><script type="importmap">{"imports":{"#entry":"/__nuxt-scripts/_nuxt/
|
|
1
|
+
<!DOCTYPE html><html><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1"><script type="importmap">{"imports":{"#entry":"/__nuxt-scripts/_nuxt/Bagqfgzu.js"}}</script><link rel="stylesheet" href="/__nuxt-scripts/_nuxt/entry.CuI_2OaG.css" crossorigin><link rel="modulepreload" as="script" crossorigin href="/__nuxt-scripts/_nuxt/Bagqfgzu.js"><link rel="modulepreload" as="script" crossorigin href="/__nuxt-scripts/_nuxt/DK3Fl9T5.js"><link rel="modulepreload" as="script" crossorigin href="/__nuxt-scripts/_nuxt/CIwvJvFr.js"><link rel="modulepreload" as="script" crossorigin href="/__nuxt-scripts/_nuxt/Car86Ubo.js"><link rel="modulepreload" as="script" crossorigin href="/__nuxt-scripts/_nuxt/WbNXtEed.js"><link rel="modulepreload" as="script" crossorigin href="/__nuxt-scripts/_nuxt/utTTwIIR.js"><link rel="modulepreload" as="script" crossorigin href="/__nuxt-scripts/_nuxt/QMsSHdby.js"><link rel="modulepreload" as="script" crossorigin href="/__nuxt-scripts/_nuxt/ClT2ZYzs.js"><script type="module" src="/__nuxt-scripts/_nuxt/Bagqfgzu.js" crossorigin></script><link rel="prefetch" as="script" crossorigin href="/__nuxt-scripts/_nuxt/DMbpbO54.js"><link rel="prefetch" as="script" crossorigin href="/__nuxt-scripts/_nuxt/qhed-kSA.js"><link rel="prefetch" as="script" crossorigin href="/__nuxt-scripts/_nuxt/BgS3c2Ky.js"><link rel="prefetch" as="script" crossorigin href="/__nuxt-scripts/_nuxt/VbXTXTou.js"><link rel="prefetch" as="script" crossorigin href="/__nuxt-scripts/_nuxt/BZCL-v6S.js"><link rel="prefetch" as="style" crossorigin href="/__nuxt-scripts/_nuxt/error-404.Bn3cR6N7.css"><link rel="prefetch" as="script" crossorigin href="/__nuxt-scripts/_nuxt/DZ6h2v9A.js"><link rel="prefetch" as="style" crossorigin href="/__nuxt-scripts/_nuxt/error-500.ClHmgt9z.css"><link rel="prefetch" as="script" crossorigin href="/__nuxt-scripts/_nuxt/DXDqMNFL.js"><script>"use strict";(()=>{const o=window,e=document.documentElement,c=["dark","light"],s=getStorageValue("localStorage","nuxt-color-mode")||"system";let r=s==="system"?f():s;const l=e.getAttribute("data-color-mode-forced");l&&(r=l),i(r),o["__NUXT_COLOR_MODE__"]={preference:s,value:r,getColorScheme:f,addColorScheme:i,removeColorScheme:d};function i(t){const a=""+t+"",n="";e.classList?e.classList.add(a):e.className+=" "+a,n&&e.setAttribute("data-"+n,t)}function d(t){const a=""+t+"",n="";e.classList?e.classList.remove(a):e.className=e.className.replace(new RegExp(a,"g"),""),n&&e.removeAttribute("data-"+n)}function u(t){return o.matchMedia("(prefers-color-scheme"+t+")")}function f(){if(o.matchMedia&&u("").media!=="not all"){for(const t of c)if(u(":"+t).matches)return t}return"light"}})();function getStorageValue(o,e){switch(o){case"localStorage":try{return window.localStorage.getItem(e)}catch{return null}case"sessionStorage":try{return window.sessionStorage.getItem(e)}catch{return null}case"cookie":try{return getCookie(e)}catch{return null}default:return null}}function getCookie(o){const c=("; "+window.document.cookie).split("; "+o+"=");if(c.length===2){const s=c.pop();return s?s.split(";").shift():null}}</script></head><body><div id="__nuxt" class="isolate"></div><div id="teleports"></div><script>window.__NUXT__={};window.__NUXT__.config={public:{},app:{baseURL:"/__nuxt-scripts",buildId:"8bf6d5ed-9af4-4b18-be50-90e3f19066d5",buildAssetsDir:"/_nuxt/",cdnURL:""}}</script><script type="application/json" data-nuxt-data="nuxt-app" data-ssr="false" id="__NUXT_DATA__">[{"prerenderedAt":1,"serverRendered":2},1788930429924,false]</script></body></html>
|
|
@@ -1 +1 @@
|
|
|
1
|
-
<!DOCTYPE html><html><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1"><script type="importmap">{"imports":{"#entry":"/__nuxt-scripts/_nuxt/
|
|
1
|
+
<!DOCTYPE html><html><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1"><script type="importmap">{"imports":{"#entry":"/__nuxt-scripts/_nuxt/Bagqfgzu.js"}}</script><link rel="stylesheet" href="/__nuxt-scripts/_nuxt/entry.CuI_2OaG.css" crossorigin><link rel="modulepreload" as="script" crossorigin href="/__nuxt-scripts/_nuxt/Bagqfgzu.js"><link rel="modulepreload" as="script" crossorigin href="/__nuxt-scripts/_nuxt/DK3Fl9T5.js"><link rel="modulepreload" as="script" crossorigin href="/__nuxt-scripts/_nuxt/CIwvJvFr.js"><link rel="modulepreload" as="script" crossorigin href="/__nuxt-scripts/_nuxt/Car86Ubo.js"><link rel="modulepreload" as="script" crossorigin href="/__nuxt-scripts/_nuxt/WbNXtEed.js"><link rel="modulepreload" as="script" crossorigin href="/__nuxt-scripts/_nuxt/utTTwIIR.js"><link rel="modulepreload" as="script" crossorigin href="/__nuxt-scripts/_nuxt/QMsSHdby.js"><link rel="modulepreload" as="script" crossorigin href="/__nuxt-scripts/_nuxt/ClT2ZYzs.js"><script type="module" src="/__nuxt-scripts/_nuxt/Bagqfgzu.js" crossorigin></script><link rel="prefetch" as="script" crossorigin href="/__nuxt-scripts/_nuxt/DMbpbO54.js"><link rel="prefetch" as="script" crossorigin href="/__nuxt-scripts/_nuxt/qhed-kSA.js"><link rel="prefetch" as="script" crossorigin href="/__nuxt-scripts/_nuxt/BgS3c2Ky.js"><link rel="prefetch" as="script" crossorigin href="/__nuxt-scripts/_nuxt/VbXTXTou.js"><link rel="prefetch" as="script" crossorigin href="/__nuxt-scripts/_nuxt/BZCL-v6S.js"><link rel="prefetch" as="style" crossorigin href="/__nuxt-scripts/_nuxt/error-404.Bn3cR6N7.css"><link rel="prefetch" as="script" crossorigin href="/__nuxt-scripts/_nuxt/DZ6h2v9A.js"><link rel="prefetch" as="style" crossorigin href="/__nuxt-scripts/_nuxt/error-500.ClHmgt9z.css"><link rel="prefetch" as="script" crossorigin href="/__nuxt-scripts/_nuxt/DXDqMNFL.js"><script>"use strict";(()=>{const o=window,e=document.documentElement,c=["dark","light"],s=getStorageValue("localStorage","nuxt-color-mode")||"system";let r=s==="system"?f():s;const l=e.getAttribute("data-color-mode-forced");l&&(r=l),i(r),o["__NUXT_COLOR_MODE__"]={preference:s,value:r,getColorScheme:f,addColorScheme:i,removeColorScheme:d};function i(t){const a=""+t+"",n="";e.classList?e.classList.add(a):e.className+=" "+a,n&&e.setAttribute("data-"+n,t)}function d(t){const a=""+t+"",n="";e.classList?e.classList.remove(a):e.className=e.className.replace(new RegExp(a,"g"),""),n&&e.removeAttribute("data-"+n)}function u(t){return o.matchMedia("(prefers-color-scheme"+t+")")}function f(){if(o.matchMedia&&u("").media!=="not all"){for(const t of c)if(u(":"+t).matches)return t}return"light"}})();function getStorageValue(o,e){switch(o){case"localStorage":try{return window.localStorage.getItem(e)}catch{return null}case"sessionStorage":try{return window.sessionStorage.getItem(e)}catch{return null}case"cookie":try{return getCookie(e)}catch{return null}default:return null}}function getCookie(o){const c=("; "+window.document.cookie).split("; "+o+"=");if(c.length===2){const s=c.pop();return s?s.split(";").shift():null}}</script></head><body><div id="__nuxt" class="isolate"></div><div id="teleports"></div><script>window.__NUXT__={};window.__NUXT__.config={public:{},app:{baseURL:"/__nuxt-scripts",buildId:"8bf6d5ed-9af4-4b18-be50-90e3f19066d5",buildAssetsDir:"/_nuxt/",cdnURL:""}}</script><script type="application/json" data-nuxt-data="nuxt-app" data-ssr="false" id="__NUXT_DATA__">[{"prerenderedAt":1,"serverRendered":2},1788930429924,false]</script></body></html>
|
package/dist/module.json
CHANGED
|
@@ -77,8 +77,9 @@ function bindMapEvents(instance) {
|
|
|
77
77
|
emit("update:pitch", instance.getPitch());
|
|
78
78
|
});
|
|
79
79
|
instance.on("error", (event) => {
|
|
80
|
-
|
|
81
|
-
|
|
80
|
+
const error = event.error instanceof Error ? event.error : new Error(event.error.message, { cause: event.error });
|
|
81
|
+
loadError.value = error;
|
|
82
|
+
emit("error", error);
|
|
82
83
|
});
|
|
83
84
|
}
|
|
84
85
|
onMounted(() => {
|
|
@@ -16,14 +16,14 @@ declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {
|
|
|
16
16
|
marker: import("vue").ShallowRef<MapLibre.Marker | undefined>;
|
|
17
17
|
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
18
18
|
click: (event: MouseEvent) => any;
|
|
19
|
-
drag: (event: MapLibre.Event) => any;
|
|
20
|
-
dragend: (event: MapLibre.Event) => any;
|
|
21
|
-
dragstart: (event: MapLibre.Event) => any;
|
|
19
|
+
drag: (event: MapLibre.Event<string>) => any;
|
|
20
|
+
dragend: (event: MapLibre.Event<string>) => any;
|
|
21
|
+
dragstart: (event: MapLibre.Event<string>) => any;
|
|
22
22
|
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
23
23
|
onClick?: ((event: MouseEvent) => any) | undefined;
|
|
24
|
-
onDrag?: ((event: MapLibre.Event) => any) | undefined;
|
|
25
|
-
onDragend?: ((event: MapLibre.Event) => any) | undefined;
|
|
26
|
-
onDragstart?: ((event: MapLibre.Event) => any) | undefined;
|
|
24
|
+
onDrag?: ((event: MapLibre.Event<string>) => any) | undefined;
|
|
25
|
+
onDragend?: ((event: MapLibre.Event<string>) => any) | undefined;
|
|
26
|
+
onDragstart?: ((event: MapLibre.Event<string>) => any) | undefined;
|
|
27
27
|
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
28
28
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
29
29
|
declare const _default: typeof __VLS_export;
|
|
@@ -16,14 +16,14 @@ declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {
|
|
|
16
16
|
marker: import("vue").ShallowRef<MapLibre.Marker | undefined>;
|
|
17
17
|
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
18
18
|
click: (event: MouseEvent) => any;
|
|
19
|
-
drag: (event: MapLibre.Event) => any;
|
|
20
|
-
dragend: (event: MapLibre.Event) => any;
|
|
21
|
-
dragstart: (event: MapLibre.Event) => any;
|
|
19
|
+
drag: (event: MapLibre.Event<string>) => any;
|
|
20
|
+
dragend: (event: MapLibre.Event<string>) => any;
|
|
21
|
+
dragstart: (event: MapLibre.Event<string>) => any;
|
|
22
22
|
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
23
23
|
onClick?: ((event: MouseEvent) => any) | undefined;
|
|
24
|
-
onDrag?: ((event: MapLibre.Event) => any) | undefined;
|
|
25
|
-
onDragend?: ((event: MapLibre.Event) => any) | undefined;
|
|
26
|
-
onDragstart?: ((event: MapLibre.Event) => any) | undefined;
|
|
24
|
+
onDrag?: ((event: MapLibre.Event<string>) => any) | undefined;
|
|
25
|
+
onDragend?: ((event: MapLibre.Event<string>) => any) | undefined;
|
|
26
|
+
onDragstart?: ((event: MapLibre.Event<string>) => any) | undefined;
|
|
27
27
|
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
28
28
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
29
29
|
declare const _default: typeof __VLS_export;
|
|
@@ -13,11 +13,11 @@ type __VLS_Slots = {
|
|
|
13
13
|
declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {
|
|
14
14
|
popup: import("vue").ShallowRef<MapLibre.Popup | undefined>;
|
|
15
15
|
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
16
|
-
close: (event: MapLibre.Event) => any;
|
|
17
|
-
open: (event: MapLibre.Event) => any;
|
|
16
|
+
close: (event: MapLibre.Event<string>) => any;
|
|
17
|
+
open: (event: MapLibre.Event<string>) => any;
|
|
18
18
|
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
19
|
-
onClose?: ((event: MapLibre.Event) => any) | undefined;
|
|
20
|
-
onOpen?: ((event: MapLibre.Event) => any) | undefined;
|
|
19
|
+
onClose?: ((event: MapLibre.Event<string>) => any) | undefined;
|
|
20
|
+
onOpen?: ((event: MapLibre.Event<string>) => any) | undefined;
|
|
21
21
|
}>, {
|
|
22
22
|
open: boolean;
|
|
23
23
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
@@ -13,11 +13,11 @@ type __VLS_Slots = {
|
|
|
13
13
|
declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {
|
|
14
14
|
popup: import("vue").ShallowRef<MapLibre.Popup | undefined>;
|
|
15
15
|
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
16
|
-
close: (event: MapLibre.Event) => any;
|
|
17
|
-
open: (event: MapLibre.Event) => any;
|
|
16
|
+
close: (event: MapLibre.Event<string>) => any;
|
|
17
|
+
open: (event: MapLibre.Event<string>) => any;
|
|
18
18
|
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
19
|
-
onClose?: ((event: MapLibre.Event) => any) | undefined;
|
|
20
|
-
onOpen?: ((event: MapLibre.Event) => any) | undefined;
|
|
19
|
+
onClose?: ((event: MapLibre.Event<string>) => any) | undefined;
|
|
20
|
+
onOpen?: ((event: MapLibre.Event<string>) => any) | undefined;
|
|
21
21
|
}>, {
|
|
22
22
|
open: boolean;
|
|
23
23
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
@@ -62,7 +62,9 @@ onBeforeUnmount(() => {
|
|
|
62
62
|
if (scriptEl) {
|
|
63
63
|
scriptEl.onload = null;
|
|
64
64
|
scriptEl.onerror = null;
|
|
65
|
-
document.
|
|
65
|
+
const owner = document.getElementById(attrId);
|
|
66
|
+
if (!owner || owner === scriptEl)
|
|
67
|
+
document.head.appendChild(scriptEl);
|
|
66
68
|
scriptEl = void 0;
|
|
67
69
|
}
|
|
68
70
|
});
|
|
@@ -3,7 +3,7 @@ type __VLS_Props = {
|
|
|
3
3
|
dataAdClient: string;
|
|
4
4
|
dataAdSlot: string;
|
|
5
5
|
dataAdFormat?: 'auto' | 'rectangle' | 'vertical' | 'horizontal' | 'fluid' | 'autorelaxed';
|
|
6
|
-
dataAdLayout?: 'in-article';
|
|
6
|
+
dataAdLayout?: 'in-article' | 'image-top' | 'image-side' | 'text-only';
|
|
7
7
|
dataAdLayoutKey?: string;
|
|
8
8
|
dataFullWidthResponsive?: boolean;
|
|
9
9
|
/**
|
|
@@ -3,7 +3,7 @@ type __VLS_Props = {
|
|
|
3
3
|
dataAdClient: string;
|
|
4
4
|
dataAdSlot: string;
|
|
5
5
|
dataAdFormat?: 'auto' | 'rectangle' | 'vertical' | 'horizontal' | 'fluid' | 'autorelaxed';
|
|
6
|
-
dataAdLayout?: 'in-article';
|
|
6
|
+
dataAdLayout?: 'in-article' | 'image-top' | 'image-side' | 'text-only';
|
|
7
7
|
dataAdLayoutKey?: string;
|
|
8
8
|
dataFullWidthResponsive?: boolean;
|
|
9
9
|
/**
|
|
@@ -1,8 +1,4 @@
|
|
|
1
1
|
export declare const SKIP_REQUEST_HEADERS: Set<string>;
|
|
2
2
|
export declare function withResponseBodyIdleTimeout(body: ReadableStream<Uint8Array>, timeoutMs: number, onTimeout: () => void): ReadableStream<Uint8Array>;
|
|
3
|
-
/**
|
|
4
|
-
* Privacy-aware proxy handler for first-party script collection endpoints.
|
|
5
|
-
* Routes requests to third-party analytics while protecting user privacy.
|
|
6
|
-
*/
|
|
7
3
|
declare const _default: import("h3").EventHandler<import("h3").EventHandlerRequest, Promise<void | null>>;
|
|
8
4
|
export default _default;
|
|
@@ -15,6 +15,9 @@ const COMPRESSION_RE = /gzip|deflate|br|compress|base64/i;
|
|
|
15
15
|
const CLIENT_HINT_VERSION_RE = /;v="(\d+)\.[^"]*"/g;
|
|
16
16
|
const MAX_TRANSFORM_BODY_SIZE = 2 * 1024 * 1024;
|
|
17
17
|
const UPSTREAM_TIMEOUT_MS = 15e3;
|
|
18
|
+
const MAX_UPSTREAM_REDIRECTS = 5;
|
|
19
|
+
const REDIRECT_STATUSES = /* @__PURE__ */ new Set([301, 302, 303, 307, 308]);
|
|
20
|
+
const REQUEST_BODY_HEADERS = ["content-encoding", "content-language", "content-length", "content-location", "content-type"];
|
|
18
21
|
const SKIP_RESPONSE_HEADERS = /* @__PURE__ */ new Set([
|
|
19
22
|
"alt-svc",
|
|
20
23
|
"clear-site-data",
|
|
@@ -46,7 +49,7 @@ export const SKIP_REQUEST_HEADERS = /* @__PURE__ */ new Set([
|
|
|
46
49
|
"transfer-encoding",
|
|
47
50
|
"upgrade"
|
|
48
51
|
]);
|
|
49
|
-
async function
|
|
52
|
+
async function readBodyBytes(event) {
|
|
50
53
|
const contentLength = Number(getHeaders(event)["content-length"] || 0);
|
|
51
54
|
if (Number.isFinite(contentLength) && contentLength > MAX_TRANSFORM_BODY_SIZE) {
|
|
52
55
|
throw createError({ statusCode: 413, statusMessage: "Proxy request body too large" });
|
|
@@ -83,7 +86,7 @@ async function readTransformBody(event) {
|
|
|
83
86
|
body.set(chunk, offset);
|
|
84
87
|
offset += chunk.byteLength;
|
|
85
88
|
}
|
|
86
|
-
return
|
|
89
|
+
return body;
|
|
87
90
|
}
|
|
88
91
|
export function withResponseBodyIdleTimeout(body, timeoutMs, onTimeout) {
|
|
89
92
|
const reader = body.getReader();
|
|
@@ -145,6 +148,64 @@ function stripQueryFingerprinting(query, privacy) {
|
|
|
145
148
|
}
|
|
146
149
|
return { queryString: params.toString(), stripped };
|
|
147
150
|
}
|
|
151
|
+
function isUpstreamRedirect(status) {
|
|
152
|
+
return REDIRECT_STATUSES.has(status);
|
|
153
|
+
}
|
|
154
|
+
function upstreamFetchError(err, timedOut) {
|
|
155
|
+
const blockedPrivateNetwork = isPrivateNetworkResolutionError(err);
|
|
156
|
+
return createError({
|
|
157
|
+
statusCode: blockedPrivateNetwork ? 403 : timedOut ? 504 : 502,
|
|
158
|
+
statusMessage: blockedPrivateNetwork ? "Local network targets are not allowed" : timedOut ? "Gateway Timeout" : "Bad Gateway",
|
|
159
|
+
message: "Proxy upstream request failed",
|
|
160
|
+
cause: err,
|
|
161
|
+
data: {
|
|
162
|
+
errorName: err?.name,
|
|
163
|
+
errorCode: timedOut ? "TIMEOUT" : err?.code
|
|
164
|
+
}
|
|
165
|
+
});
|
|
166
|
+
}
|
|
167
|
+
function resolveProxyRedirect(response, state, redirectCount, urlAllowed) {
|
|
168
|
+
const location = response.headers.get("location");
|
|
169
|
+
if (!location) {
|
|
170
|
+
throw createError({
|
|
171
|
+
statusCode: 502,
|
|
172
|
+
statusMessage: "Invalid upstream redirect",
|
|
173
|
+
message: "Upstream redirect has no Location header"
|
|
174
|
+
});
|
|
175
|
+
}
|
|
176
|
+
if (redirectCount >= MAX_UPSTREAM_REDIRECTS) {
|
|
177
|
+
throw createError({
|
|
178
|
+
statusCode: 502,
|
|
179
|
+
statusMessage: "Too many upstream redirects",
|
|
180
|
+
message: "Upstream redirect limit exceeded"
|
|
181
|
+
});
|
|
182
|
+
}
|
|
183
|
+
let nextUrl;
|
|
184
|
+
try {
|
|
185
|
+
nextUrl = new URL(location, state.url);
|
|
186
|
+
} catch (cause) {
|
|
187
|
+
throw createError({
|
|
188
|
+
statusCode: 502,
|
|
189
|
+
statusMessage: "Invalid upstream redirect",
|
|
190
|
+
message: "Upstream redirect URL is invalid",
|
|
191
|
+
cause
|
|
192
|
+
});
|
|
193
|
+
}
|
|
194
|
+
if (!urlAllowed(nextUrl)) {
|
|
195
|
+
throw createError({
|
|
196
|
+
statusCode: 502,
|
|
197
|
+
statusMessage: "Unsafe upstream redirect",
|
|
198
|
+
message: `Upstream redirect target is not allowed: ${nextUrl.origin}`
|
|
199
|
+
});
|
|
200
|
+
}
|
|
201
|
+
const switchToGet = response.status === 303 && state.method !== "GET" && state.method !== "HEAD" || (response.status === 301 || response.status === 302) && state.method === "POST";
|
|
202
|
+
if (!switchToGet)
|
|
203
|
+
return { ...state, url: nextUrl };
|
|
204
|
+
const headers = { ...state.headers };
|
|
205
|
+
for (const header of REQUEST_BODY_HEADERS)
|
|
206
|
+
delete headers[header];
|
|
207
|
+
return { url: nextUrl, method: "GET", body: void 0, headers };
|
|
208
|
+
}
|
|
148
209
|
export default defineEventHandler(async (event) => {
|
|
149
210
|
const config = useRuntimeConfig();
|
|
150
211
|
const proxyConfig = config["nuxt-scripts-proxy"];
|
|
@@ -282,12 +343,14 @@ export default defineEventHandler(async (event) => {
|
|
|
282
343
|
}
|
|
283
344
|
let body;
|
|
284
345
|
let rawBody;
|
|
346
|
+
let rawBodyBytes;
|
|
285
347
|
let passthroughBody = false;
|
|
286
348
|
if (isWriteMethod) {
|
|
349
|
+
rawBodyBytes = await readBodyBytes(event);
|
|
287
350
|
if (!shouldTransformBody) {
|
|
288
351
|
passthroughBody = true;
|
|
289
352
|
} else if (transformableBodyType === "form") {
|
|
290
|
-
const formBody =
|
|
353
|
+
const formBody = rawBodyBytes === void 0 ? void 0 : new TextDecoder().decode(rawBodyBytes);
|
|
291
354
|
rawBody = formBody;
|
|
292
355
|
if (formBody != null) {
|
|
293
356
|
const params = new URLSearchParams(formBody);
|
|
@@ -315,7 +378,7 @@ export default defineEventHandler(async (event) => {
|
|
|
315
378
|
body = transformed.toString();
|
|
316
379
|
}
|
|
317
380
|
} else {
|
|
318
|
-
const jsonBody =
|
|
381
|
+
const jsonBody = rawBodyBytes === void 0 ? void 0 : new TextDecoder().decode(rawBodyBytes);
|
|
319
382
|
if (jsonBody !== void 0) {
|
|
320
383
|
try {
|
|
321
384
|
rawBody = JSON.parse(jsonBody);
|
|
@@ -365,55 +428,63 @@ export default defineEventHandler(async (event) => {
|
|
|
365
428
|
controller.abort();
|
|
366
429
|
}, UPSTREAM_TIMEOUT_MS);
|
|
367
430
|
let fetchBody;
|
|
368
|
-
if (passthroughBody
|
|
369
|
-
|
|
431
|
+
if (passthroughBody) {
|
|
432
|
+
if (rawBodyBytes && rawBodyBytes.byteLength > 0)
|
|
433
|
+
fetchBody = rawBodyBytes;
|
|
370
434
|
} else if (body !== void 0) {
|
|
371
435
|
fetchBody = transformableBodyType === "json" ? JSON.stringify(body) : String(body);
|
|
372
436
|
}
|
|
437
|
+
const hopAllowed = (url) => url.protocol === "https:" && !url.username && !url.password && (!url.port || url.port === "443") && isPublicNetworkHostname(url.hostname) && Object.keys(domainPrivacy).some((configDomain) => matchDomain(url.hostname, configDomain));
|
|
373
438
|
let response;
|
|
374
439
|
let network;
|
|
375
440
|
try {
|
|
376
441
|
network = await createPublicNetworkDispatcher();
|
|
377
|
-
|
|
442
|
+
let state = {
|
|
443
|
+
url: new URL(targetUrl),
|
|
378
444
|
method: method || "GET",
|
|
379
|
-
headers,
|
|
380
445
|
body: fetchBody,
|
|
381
|
-
|
|
382
|
-
// Don't send cookies to third parties
|
|
383
|
-
signal: controller.signal,
|
|
384
|
-
redirect: "manual",
|
|
385
|
-
duplex: fetchBody instanceof ReadableStream ? "half" : void 0
|
|
446
|
+
headers
|
|
386
447
|
};
|
|
387
|
-
|
|
448
|
+
for (let redirectCount = 0; ; redirectCount++) {
|
|
449
|
+
let hop;
|
|
450
|
+
try {
|
|
451
|
+
hop = await network.fetch(state.url.toString(), {
|
|
452
|
+
method: state.method,
|
|
453
|
+
headers: state.headers,
|
|
454
|
+
body: state.body,
|
|
455
|
+
credentials: "omit",
|
|
456
|
+
// Don't send cookies to third parties
|
|
457
|
+
signal: controller.signal,
|
|
458
|
+
redirect: "manual"
|
|
459
|
+
});
|
|
460
|
+
} catch (err) {
|
|
461
|
+
log("[proxy] Upstream error:", err);
|
|
462
|
+
throw upstreamFetchError(err, timedOut);
|
|
463
|
+
}
|
|
464
|
+
log("[proxy] Response:", hop.status, hop.statusText);
|
|
465
|
+
if (!isUpstreamRedirect(hop.status)) {
|
|
466
|
+
response = hop;
|
|
467
|
+
break;
|
|
468
|
+
}
|
|
469
|
+
let next;
|
|
470
|
+
try {
|
|
471
|
+
next = resolveProxyRedirect(hop, state, redirectCount, hopAllowed);
|
|
472
|
+
} catch (err) {
|
|
473
|
+
await hop.body?.cancel(err).catch((cancelError) => Object.assign(err, { cleanupError: cancelError }));
|
|
474
|
+
throw err;
|
|
475
|
+
}
|
|
476
|
+
const redirectDiscarded = new Error("Upstream redirect response body discarded");
|
|
477
|
+
await hop.body?.cancel(redirectDiscarded).catch((cancelError) => Object.assign(redirectDiscarded, { cause: cancelError }));
|
|
478
|
+
log("[proxy] Following redirect:", next.url.toString());
|
|
479
|
+
state = next;
|
|
480
|
+
}
|
|
388
481
|
clearTimeout(timeoutId);
|
|
389
482
|
} catch (err) {
|
|
390
483
|
clearTimeout(timeoutId);
|
|
391
484
|
await closePublicNetworkDispatcher(network, err);
|
|
392
|
-
|
|
393
|
-
const blockedPrivateNetwork = isPrivateNetworkResolutionError(err);
|
|
394
|
-
throw createError({
|
|
395
|
-
statusCode: blockedPrivateNetwork ? 403 : timedOut ? 504 : 502,
|
|
396
|
-
statusMessage: blockedPrivateNetwork ? "Local network targets are not allowed" : timedOut ? "Gateway Timeout" : "Bad Gateway",
|
|
397
|
-
message: "Proxy upstream request failed",
|
|
398
|
-
cause: err,
|
|
399
|
-
data: {
|
|
400
|
-
errorName: err?.name,
|
|
401
|
-
errorCode: timedOut ? "TIMEOUT" : err?.code
|
|
402
|
-
}
|
|
403
|
-
});
|
|
404
|
-
}
|
|
405
|
-
log("[proxy] Response:", response.status, response.statusText);
|
|
406
|
-
if (response.status >= 300 && response.status < 400 && response.status !== 304) {
|
|
407
|
-
clearTimeout(timeoutId);
|
|
408
|
-
const redirectError = createError({
|
|
409
|
-
statusCode: 502,
|
|
410
|
-
statusMessage: "Unsafe upstream redirect",
|
|
411
|
-
message: "Proxy upstream returned a redirect that was not followed"
|
|
412
|
-
});
|
|
413
|
-
await response.body?.cancel(redirectError).catch((cancelError) => Object.assign(redirectError, { cleanupError: cancelError }));
|
|
414
|
-
await closePublicNetworkDispatcher(network, redirectError);
|
|
415
|
-
throw redirectError;
|
|
485
|
+
throw err;
|
|
416
486
|
}
|
|
487
|
+
log("[proxy] Upstream settled:", response.status);
|
|
417
488
|
const responseConnectionHeaders = new Set(
|
|
418
489
|
(response.headers.get("connection") || "").split(",").map((header) => header.trim().toLowerCase()).filter(Boolean)
|
|
419
490
|
);
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
export declare const createNetworkDispatcher:
|
|
1
|
+
import type { PublicNetworkDispatcher } from './network-host.js';
|
|
2
|
+
export declare const createNetworkDispatcher: () => Promise<PublicNetworkDispatcher>;
|
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
export const createNetworkDispatcher = async () => ({
|
|
2
|
-
fetch:
|
|
2
|
+
// workerd's native fetch throws `TypeError: Illegal invocation` when a
|
|
3
|
+
// detached reference is called as a method (e.g. `dispatcher.fetch(...)`),
|
|
4
|
+
// so pin the receiver before handing the function to callers.
|
|
5
|
+
fetch: globalThis.fetch.bind(globalThis),
|
|
3
6
|
close: async () => {
|
|
4
7
|
}
|
|
5
8
|
});
|
package/dist/types-source.mjs
CHANGED
|
@@ -305,7 +305,7 @@ const types = {
|
|
|
305
305
|
{
|
|
306
306
|
name: "ScriptGoogleAdsenseProps",
|
|
307
307
|
kind: "interface",
|
|
308
|
-
code: "interface ScriptGoogleAdsenseProps {\n dataAdClient: string\n dataAdSlot: string\n dataAdFormat?: 'auto' | 'rectangle' | 'vertical' | 'horizontal' | 'fluid' | 'autorelaxed'\n dataAdLayout?: 'in-article'\n dataAdLayoutKey?: string\n dataFullWidthResponsive?: boolean\n /**\n * Defines the trigger event to load the script.\n */\n trigger?: ElementScriptTrigger\n}"
|
|
308
|
+
code: "interface ScriptGoogleAdsenseProps {\n dataAdClient: string\n dataAdSlot: string\n dataAdFormat?: 'auto' | 'rectangle' | 'vertical' | 'horizontal' | 'fluid' | 'autorelaxed'\n dataAdLayout?: 'in-article' | 'image-top' | 'image-side' | 'text-only'\n dataAdLayoutKey?: string\n dataFullWidthResponsive?: boolean\n /**\n * Defines the trigger event to load the script.\n */\n trigger?: ElementScriptTrigger\n}"
|
|
309
309
|
},
|
|
310
310
|
{
|
|
311
311
|
name: "ScriptGoogleAdsenseEvents",
|
|
@@ -4544,7 +4544,7 @@ const schemaFields = {
|
|
|
4544
4544
|
},
|
|
4545
4545
|
{
|
|
4546
4546
|
name: "dataAdLayout",
|
|
4547
|
-
type: "'in-article'",
|
|
4547
|
+
type: "'in-article' | 'image-top' | 'image-side' | 'text-only'",
|
|
4548
4548
|
required: false
|
|
4549
4549
|
},
|
|
4550
4550
|
{
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nuxt/scripts",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "2.0.0-beta.
|
|
4
|
+
"version": "2.0.0-beta.6",
|
|
5
5
|
"description": "Load third-party scripts with better performance, privacy and DX in Nuxt Apps.",
|
|
6
6
|
"author": {
|
|
7
7
|
"name": "Harlan Wilton",
|
|
@@ -72,18 +72,18 @@
|
|
|
72
72
|
},
|
|
73
73
|
"peerDependencies": {
|
|
74
74
|
"@googlemaps/markerclusterer": "^2.6.2",
|
|
75
|
-
"@paypal/paypal-js": "^
|
|
76
|
-
"@speedcurve/lux": "^4.
|
|
77
|
-
"@stripe/stripe-js": "^
|
|
78
|
-
"@types/geojson": "^7946.0.
|
|
79
|
-
"@types/google.maps": "^3.
|
|
80
|
-
"@types/leaflet": "^1.9.
|
|
75
|
+
"@paypal/paypal-js": "^11.0.0",
|
|
76
|
+
"@speedcurve/lux": "^4.5.2",
|
|
77
|
+
"@stripe/stripe-js": "^9.15.0",
|
|
78
|
+
"@types/geojson": "^7946.0.16",
|
|
79
|
+
"@types/google.maps": "^3.66.2",
|
|
80
|
+
"@types/leaflet": "^1.9.22",
|
|
81
81
|
"@types/vimeo__player": "^2.18.3",
|
|
82
|
-
"@types/youtube": "^0.
|
|
83
|
-
"@unhead/vue": "^3.
|
|
84
|
-
"maplibre-gl": "^6.
|
|
85
|
-
"posthog-js": "^1.
|
|
86
|
-
"unhead": "^3.
|
|
82
|
+
"@types/youtube": "^0.3.0",
|
|
83
|
+
"@unhead/vue": "^3.4.0",
|
|
84
|
+
"maplibre-gl": "^6.8.0",
|
|
85
|
+
"posthog-js": "^1.428.7",
|
|
86
|
+
"unhead": "^3.4.0"
|
|
87
87
|
},
|
|
88
88
|
"peerDependenciesMeta": {
|
|
89
89
|
"@googlemaps/markerclusterer": {
|
|
@@ -121,16 +121,16 @@
|
|
|
121
121
|
}
|
|
122
122
|
},
|
|
123
123
|
"dependencies": {
|
|
124
|
-
"@nuxt/devtools-kit": "^3.4.
|
|
125
|
-
"@oxc-project/types": "^0.
|
|
124
|
+
"@nuxt/devtools-kit": "^3.4.2",
|
|
125
|
+
"@oxc-project/types": "^0.149.0",
|
|
126
126
|
"@vueuse/core": "^14.4.0",
|
|
127
127
|
"@vueuse/shared": "^14.4.0",
|
|
128
128
|
"consola": "^3.4.2",
|
|
129
129
|
"defu": "^6.1.7",
|
|
130
130
|
"h3": "^1.15.11",
|
|
131
|
-
"magic-string": "^1.
|
|
131
|
+
"magic-string": "^1.2.3",
|
|
132
132
|
"ofetch": "^1.5.1",
|
|
133
|
-
"ohash": "^2.0.
|
|
133
|
+
"ohash": "^2.0.12",
|
|
134
134
|
"oxc-walker": "^1.1.1",
|
|
135
135
|
"pathe": "^2.0.3",
|
|
136
136
|
"semver": "^7.8.5",
|
|
@@ -143,14 +143,14 @@
|
|
|
143
143
|
"valibot": "^1.4.2"
|
|
144
144
|
},
|
|
145
145
|
"devDependencies": {
|
|
146
|
-
"@nuxt/kit": "^4.5.
|
|
146
|
+
"@nuxt/kit": "^4.5.2",
|
|
147
147
|
"@nuxt/module-builder": "^1.0.3",
|
|
148
|
-
"@speedcurve/lux": "^4.
|
|
149
|
-
"@unhead/vue": "^3.
|
|
150
|
-
"rollup": "^4.
|
|
148
|
+
"@speedcurve/lux": "^4.5.2",
|
|
149
|
+
"@unhead/vue": "^3.4.0",
|
|
150
|
+
"rollup": "^4.63.1",
|
|
151
151
|
"unbuild": "^3.6.1",
|
|
152
|
-
"unhead": "^3.
|
|
153
|
-
"unimport": "^
|
|
152
|
+
"unhead": "^3.4.0",
|
|
153
|
+
"unimport": "^7.0.1"
|
|
154
154
|
},
|
|
155
155
|
"scripts": {
|
|
156
156
|
"build": "nuxt-module-build build",
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{H as e,L as t,an as n,gn as r,in as i,yn as a}from"./CDDBpkXG.js";var o=Error.captureStackTrace,s=class e extends Error{name;code;docs;fix;sources;get why(){return this.message}constructor(t,n=e){super(t.why,{cause:t.cause}),this.code=this.name=t.code,this.fix=t.fix,this.docs=t.docs,this.sources=t.sources,o?.(this,n)}toJSON(){return{name:this.name,why:this.why,fix:this.fix,docs:this.docs,sources:this.sources,cause:this.cause,stack:this.stack}}};function c(e,t){return typeof e==`string`?`${e}/${t.toLowerCase()}`:e?.(t)}function l(e={}){let{docsBase:t,reporters:n=[]}=e;return new Proxy({},{get(e,r){if(typeof r!=`string`)return;let i=(e={},a={})=>{let o=c(t,r),l=new s({code:r,why:o??``,docs:o,cause:e.cause,sources:e.sources},i);for(let e of n)e(l,a);return l};return i}})}function u(e){return`https://nuxt.com/docs/4.x/errors/${e.replace(`NUXT_`,``).toLowerCase()}`}var d=[e=>{console.error(`[${e.name}]`)}],f=l({docsBase:u,reporters:d});function p(e,t={},n){for(let r in e){let i=e[r],a=n?`${n}:${r}`:r;typeof i==`object`&&i?p(i,t,a):typeof i==`function`&&(t[a]=i)}return t}var m=(()=>{if(console.createTask)return console.createTask;let e={run:e=>e()};return()=>e})();function h(e,t,n,r){for(let i=n;i<e.length;i+=1)try{let n=r?r.run(()=>e[i](...t)):e[i](...t);if(n&&typeof n.then==`function`)return Promise.resolve(n).then(()=>h(e,t,i+1,r))}catch(e){return Promise.reject(e)}}function g(e,t,n){if(e.length>0)return h(e,t,0,m(n))}function _(e,t,n){if(e.length>0){let r=m(n);return Promise.all(e.map(e=>r.run(()=>e(...t))))}}function v(e,t){for(let n of[...e])n(t)}var y=class{_hooks;_before;_after;_deprecatedHooks;_deprecatedMessages;constructor(){this._hooks={},this._before=void 0,this._after=void 0,this._deprecatedMessages=void 0,this._deprecatedHooks={},this.hook=this.hook.bind(this),this.callHook=this.callHook.bind(this),this.callHookWith=this.callHookWith.bind(this)}hook(e,t,n={}){if(!e||typeof t!=`function`)return()=>{};let r=e,i;for(;this._deprecatedHooks[e];)i=this._deprecatedHooks[e],e=i.to;if(i&&!n.allowDeprecated){let e=i.message;e||=`${r} hook has been deprecated`+(i.to?`, please use ${i.to}`:``),this._deprecatedMessages||=new Set,this._deprecatedMessages.has(e)||(console.warn(e),this._deprecatedMessages.add(e))}if(!t.name)try{Object.defineProperty(t,"name",{get:()=>`_`+e.replace(/\W+/g,`_`)+`_hook_cb`,configurable:!0})}catch{}return this._hooks[e]=this._hooks[e]||[],this._hooks[e].push(t),()=>{t&&=(this.removeHook(e,t),void 0)}}hookOnce(e,t){let n,r=(...e)=>(typeof n==`function`&&n(),n=void 0,r=void 0,t(...e));return n=this.hook(e,r),n}removeHook(e,t){let n=this._hooks[e];if(n){let r=n.indexOf(t);r!==-1&&n.splice(r,1),n.length===0&&(this._hooks[e]=void 0)}}clearHook(e){this._hooks[e]=void 0}deprecateHook(e,t){this._deprecatedHooks[e]=typeof t==`string`?{to:t}:t;let n=this._hooks[e]||[];this._hooks[e]=void 0;for(let t of n)this.hook(e,t)}deprecateHooks(e){for(let t in e)this.deprecateHook(t,e[t])}addHooks(e){let t=p(e),n=Object.keys(t).map(e=>this.hook(e,t[e]));return()=>{for(let e of n)e();n.length=0}}removeHooks(e){let t=p(e);for(let e in t)this.removeHook(e,t[e])}removeAllHooks(){this._hooks={}}callHook(e,...t){return this.callHookWith(g,e,t)}callHookParallel(e,...t){return this.callHookWith(_,e,t)}callHookWith(e,t,n){let r=this._before||this._after?{name:t,args:n,context:{}}:void 0;this._before&&v(this._before,r);let i=e(this._hooks[t]?[...this._hooks[t]]:[],n,t);return i instanceof Promise?i.finally(()=>{this._after&&r&&v(this._after,r)}):(this._after&&r&&v(this._after,r),i)}beforeEach(e){return this._before=this._before||[],this._before.push(e),()=>{if(this._before!==void 0){let t=this._before.indexOf(e);t!==-1&&this._before.splice(t,1)}}}afterEach(e){return this._after=this._after||[],this._after.push(e),()=>{if(this._after!==void 0){let t=this._after.indexOf(e);t!==-1&&this._after.splice(t,1)}}}};function b(){return new y}var x=class{_hooks;constructor(){this._hooks={}}hook(e,t){return!e||typeof t!=`function`?()=>{}:(this._hooks[e]=this._hooks[e]||[],this._hooks[e].push(t),()=>{t&&=(this.removeHook(e,t),void 0)})}removeHook(e,t){let n=this._hooks[e];if(n){let r=n.indexOf(t);r!==-1&&n.splice(r,1),n.length===0&&(this._hooks[e]=void 0)}}callHook(e,...t){let n=this._hooks[e];if(!(!n||n.length===0))return h(n,t,0)}};function S(){return globalThis.AsyncLocalStorage||globalThis.process?.getBuiltinModule?.(`node:async_hooks`)?.AsyncLocalStorage}function C(e={}){let t,n=!1,r=e=>{if(t&&t!==e)throw Error(`Context conflict`)},i;if(e.asyncContext){let t=e.AsyncLocalStorage||S();t?i=new t:console.warn("[unctx] `AsyncLocalStorage` is not provided.")}let a=e=>i&&typeof e==`object`&&e?{__unctx_weak:new WeakRef(e)}:e,o=e=>e&&e.__unctx_weak?e.__unctx_weak.deref():e,s=()=>{if(i){let e=i.getStore();if(e!==void 0)return o(e)}return t};return{use:()=>{let e=s();if(e===void 0)throw Error(`Context is not available`);return e},tryUse:()=>s(),set:(e,i)=>{i||r(e),t=e,n=!0},unset:()=>{t=void 0,n=!1},call:(e,o)=>{r(e),t=e;try{return i?i.run(a(e),o):o()}finally{n||(t=void 0)}},async callAsync(e,r){t=e;let o=()=>{t=e},s=()=>t===e?o:void 0;A.add(s);try{let o=i?i.run(a(e),r):r();return n||(t=void 0),await o}finally{A.delete(s)}}}}function w(e={}){let t={};return{get(n,r={}){return t[n]||(t[n]=C({...e,...r})),t[n]}}}var T=typeof globalThis<`u`?globalThis:typeof self<`u`?self:typeof global<`u`?global:typeof window<`u`?window:{},E=`__unctx__`,D=T[E]||(T[E]=w()),O=(e,t={})=>D.get(e,t),k=`__unctx_async_handlers__`,A=T[k]||(T[k]=new Set);function j(e){let t=[];for(let e of A){let n=e();n&&t.push(n)}let n=()=>{for(let e of t)e()},r=e();return r&&typeof r==`object`&&`catch`in r&&(r=r.catch(e=>{throw n(),e})),[r,n]}var M={meta:[{name:`viewport`,content:`width=device-width, initial-scale=1`},{charset:`utf-8`}],link:[],style:[],script:[],noscript:[]},N={id:`__nuxt-loader`},P={componentName:`NuxtLink`,prefetch:!0,prefetchOn:{visibility:!0}},F={deep:!1},I=`#__nuxt`,L=`nuxt-app`,R=36e5,z=`vite:preloadError`;function B(e=`nuxt-app`){return O(e,{asyncContext:!1})}var V=`__nuxt_plugin`;function H(e){let t=0,o={_id:e.id||`nuxt-app`,_scope:i(),provide:void 0,versions:{get nuxt(){return`4.5.1`},get vue(){return o.vueApp.version}},payload:a({...e.ssrContext?.payload||{},data:a({}),state:r({}),once:new Set,_errors:a({})}),static:{data:{}},runWithContext(e){return o._scope.active&&!n()?o._scope.run(()=>K(o,e)):K(o,e)},isHydrating:!0,deferHydration(){if(!o.isHydrating)return()=>{};t++;let e=!1;return()=>{if(!e&&(e=!0,t--,t===0))return o.isHydrating=!1,o.callHook(`app:suspense:resolve`)}},_asyncDataPromises:{},_asyncData:a({}),_state:a({}),_payloadRevivers:{},...e};{let e=window.__NUXT__;if(e)for(let t in e)switch(t){case`data`:case`state`:case`_errors`:Object.assign(o.payload[t],e[t]);break;default:o.payload[t]=e[t]}}o.hooks=b(),o.hook=o.hooks.hook;{let e=o.hooks.callHook;o.hooks.callHook=(t,...n)=>Promise.resolve().then(()=>e(t,...n))}o.callHook=o.hooks.callHook,o.provide=(e,t)=>{let n=`$`+e;X(o,n,t),X(o.vueApp.config.globalProperties,n,t)},X(o.vueApp,`$nuxt`,o),X(o.vueApp.config.globalProperties,`$nuxt`,o);{window.addEventListener(z,e=>{o.callHook(`app:chunkError`,{error:e.payload}),e.payload?.message?.includes(`Unable to preload CSS`)&&e.preventDefault()}),window.useNuxtApp||=J;let e=o.hook(`app:error`,(...e)=>{f.NUXT_E1005({cause:e.length>1?e:e[0]})});o.hook(`app:mounted`,e)}let s=o.payload.config;return o.provide(`config`,s),o}async function U(e,t){if(typeof t==`function`){let{provide:n}=await e.runWithContext(()=>t(e))||{};if(n&&typeof n==`object`)for(let t in n)e.provide(t,n[t])}}async function W(e,t){let n;for(let r of t)try{await U(e,r)}catch(t){if(!e.payload.error)throw t;n||=t}if(n)throw e.payload.error||n}function G(e){if(typeof e==`function`)return e;let t=e._name||e.name;return delete e.name,Object.assign(e.setup||(()=>{}),e,{[V]:!0,_name:t})}function K(e,t,n){return B(e._id).set(e),e.vueApp.runWithContext(()=>n?t(...n):t())}function q(n){let r;return e()&&(r=t()?.appContext.app.$nuxt),r||=B(n).tryUse(),r||null}function J(e){let t=q(e);if(!t)throw f.NUXT_E1001();return t}function Y(e){return J().$config}function X(e,t,n){Object.defineProperty(e,t,{get:()=>n})}export{d as _,Y as a,N as c,R as d,I as f,u as g,f as h,J as i,F as l,x as m,H as n,M as o,j as p,G as r,L as s,W as t,P as u,l as v};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{_ as e,b as t,mt as n,tr as r}from"./CDDBpkXG.js";import{n as i}from"./KsX6Az5B.js";import{t as a}from"./BDNMzG2s.js";var o={class:`antialiased bg-white dark:bg-[#020420] dark:text-white font-sans grid min-h-screen overflow-hidden place-content-center text-[#020420] tracking-wide`},s={class:`max-w-520px text-center`},c=[`textContent`],l=[`textContent`],u=[`textContent`],d=a({__name:`error-500`,props:{appName:{type:String,default:`Nuxt`},status:{type:Number,default:500},statusText:{type:String,default:`Internal server error`},description:{type:String,default:`This page is temporarily unavailable.`},refresh:{type:String,default:`Refresh this page`}},setup(a){let d=a;return i({title:`${d.status} - ${d.statusText} | ${d.appName}`,script:[{innerHTML:`!function(){let e=document.createElement("link").relList;if(!(e&&e.supports&&e.supports("modulepreload"))){for(let e of document.querySelectorAll('link[rel="modulepreload"]'))r(e);new MutationObserver(e=>{for(let t of e)if("childList"===t.type)for(let e of t.addedNodes)"LINK"===e.tagName&&"modulepreload"===e.rel&&r(e)}).observe(document,{childList:!0,subtree:!0})}function r(e){if(e.ep)return;e.ep=!0;let r=function(e){let r={};return e.integrity&&(r.integrity=e.integrity),e.referrerPolicy&&(r.referrerPolicy=e.referrerPolicy),"use-credentials"===e.crossOrigin?r.credentials="include":"anonymous"===e.crossOrigin?r.credentials="omit":r.credentials="same-origin",r}(e);fetch(e.href,r)}}();`}],style:[{innerHTML:`*,:after,:before{box-sizing:border-box;border-style:solid;border-width:0;border-color:var(--un-default-border-color,#e5e7eb)}:after,:before{--un-content:""}html{-webkit-text-size-adjust:100%;tab-size:4;font-feature-settings:normal;font-variation-settings:normal;-webkit-tap-highlight-color:transparent;font-family:ui-sans-serif,system-ui,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;line-height:1.5}body{line-height:inherit;margin:0}h1,h2{font-size:inherit;font-weight:inherit}h1,h2,p{margin:0}*,:after,:before{--un-rotate:0;--un-rotate-x:0;--un-rotate-y:0;--un-rotate-z:0;--un-scale-x:1;--un-scale-y:1;--un-scale-z:1;--un-skew-x:0;--un-skew-y:0;--un-translate-x:0;--un-translate-y:0;--un-translate-z:0;--un-pan-x: ;--un-pan-y: ;--un-pinch-zoom: ;--un-scroll-snap-strictness:proximity;--un-ordinal: ;--un-slashed-zero: ;--un-numeric-figure: ;--un-numeric-spacing: ;--un-numeric-fraction: ;--un-border-spacing-x:0;--un-border-spacing-y:0;--un-ring-offset-shadow:0 0 #0000;--un-ring-shadow:0 0 #0000;--un-shadow-inset: ;--un-shadow:0 0 #0000;--un-ring-inset: ;--un-ring-offset-width:0px;--un-ring-offset-color:#fff;--un-ring-width:0px;--un-ring-color:#93c5fd80;--un-blur: ;--un-brightness: ;--un-contrast: ;--un-drop-shadow: ;--un-grayscale: ;--un-hue-rotate: ;--un-invert: ;--un-saturate: ;--un-sepia: ;--un-backdrop-blur: ;--un-backdrop-brightness: ;--un-backdrop-contrast: ;--un-backdrop-grayscale: ;--un-backdrop-hue-rotate: ;--un-backdrop-invert: ;--un-backdrop-opacity: ;--un-backdrop-saturate: ;--un-backdrop-sepia: }`}]}),(i,d)=>(n(),t(`div`,o,[e(`div`,s,[e(`h1`,{class:`font-semibold leading-none mb-4 sm:text-[110px] tabular-nums text-[80px]`,textContent:r(a.status)},null,8,c),e(`h2`,{class:`font-semibold mb-2 sm:text-3xl text-2xl`,textContent:r(a.statusText)},null,8,l),e(`p`,{class:`mb-4 px-2 text-[#64748B] text-md`,textContent:r(a.description)},null,8,u)])]))}},[[`__scopeId`,`data-v-847aeaf1`]]);export{d as default};
|