@nuxt/scripts 0.10.0 → 0.10.3
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/client/200.html +2 -2
- package/dist/client/404.html +2 -2
- package/dist/client/_nuxt/builds/latest.json +1 -1
- package/dist/client/_nuxt/builds/meta/6ee6936d-8f09-469f-bb2a-9f8e9081adc3.json +1 -0
- package/dist/client/index.html +2 -2
- package/dist/module.json +1 -1
- package/dist/runtime/components/ScriptGoogleMaps.vue +3 -0
- package/dist/runtime/components/ScriptVimeoPlayer.vue +3 -0
- package/dist/runtime/components/ScriptYouTubePlayer.vue +3 -0
- package/dist/runtime/registry/google-adsense.js +10 -9
- package/dist/runtime/registry/google-tag-manager.d.ts +3 -0
- package/package.json +8 -8
- package/dist/client/_nuxt/builds/meta/66990e06-bd43-4fcc-a366-b9ec546b2f39.json +0 -1
package/dist/client/200.html
CHANGED
|
@@ -280,5 +280,5 @@
|
|
|
280
280
|
<link rel="prefetch" as="script" crossorigin href="/__nuxt-scripts/_nuxt/o8ODhS4a.js">
|
|
281
281
|
<link rel="prefetch" as="style" crossorigin href="/__nuxt-scripts/_nuxt/error-500.DrCOIGHy.css">
|
|
282
282
|
<link rel="prefetch" as="script" crossorigin href="/__nuxt-scripts/_nuxt/BXZ5z1bG.js">
|
|
283
|
-
<script type="module" src="/__nuxt-scripts/_nuxt/CGzGISHo.js" crossorigin></script></head><body><div id="__nuxt"></div><div id="teleports"></div><script type="application/json" data-nuxt-data="nuxt-app" data-ssr="false" id="__NUXT_DATA__">[{"prerenderedAt":1,"serverRendered":2},
|
|
284
|
-
<script>window.__NUXT__={};window.__NUXT__.config={public:{},app:{baseURL:"/__nuxt-scripts",buildId:"
|
|
283
|
+
<script type="module" src="/__nuxt-scripts/_nuxt/CGzGISHo.js" crossorigin></script></head><body><div id="__nuxt"></div><div id="teleports"></div><script type="application/json" data-nuxt-data="nuxt-app" data-ssr="false" id="__NUXT_DATA__">[{"prerenderedAt":1,"serverRendered":2},1739503676443,false]</script>
|
|
284
|
+
<script>window.__NUXT__={};window.__NUXT__.config={public:{},app:{baseURL:"/__nuxt-scripts",buildId:"6ee6936d-8f09-469f-bb2a-9f8e9081adc3",buildAssetsDir:"/_nuxt/",cdnURL:""}}</script></body></html>
|
package/dist/client/404.html
CHANGED
|
@@ -280,5 +280,5 @@
|
|
|
280
280
|
<link rel="prefetch" as="script" crossorigin href="/__nuxt-scripts/_nuxt/o8ODhS4a.js">
|
|
281
281
|
<link rel="prefetch" as="style" crossorigin href="/__nuxt-scripts/_nuxt/error-500.DrCOIGHy.css">
|
|
282
282
|
<link rel="prefetch" as="script" crossorigin href="/__nuxt-scripts/_nuxt/BXZ5z1bG.js">
|
|
283
|
-
<script type="module" src="/__nuxt-scripts/_nuxt/CGzGISHo.js" crossorigin></script></head><body><div id="__nuxt"></div><div id="teleports"></div><script type="application/json" data-nuxt-data="nuxt-app" data-ssr="false" id="__NUXT_DATA__">[{"prerenderedAt":1,"serverRendered":2},
|
|
284
|
-
<script>window.__NUXT__={};window.__NUXT__.config={public:{},app:{baseURL:"/__nuxt-scripts",buildId:"
|
|
283
|
+
<script type="module" src="/__nuxt-scripts/_nuxt/CGzGISHo.js" crossorigin></script></head><body><div id="__nuxt"></div><div id="teleports"></div><script type="application/json" data-nuxt-data="nuxt-app" data-ssr="false" id="__NUXT_DATA__">[{"prerenderedAt":1,"serverRendered":2},1739503676444,false]</script>
|
|
284
|
+
<script>window.__NUXT__={};window.__NUXT__.config={public:{},app:{baseURL:"/__nuxt-scripts",buildId:"6ee6936d-8f09-469f-bb2a-9f8e9081adc3",buildAssetsDir:"/_nuxt/",cdnURL:""}}</script></body></html>
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"id":"
|
|
1
|
+
{"id":"6ee6936d-8f09-469f-bb2a-9f8e9081adc3","timestamp":1739503671736}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"id":"6ee6936d-8f09-469f-bb2a-9f8e9081adc3","timestamp":1739503671736,"matcher":{"static":{},"wildcard":{},"dynamic":{}},"prerendered":[]}
|
package/dist/client/index.html
CHANGED
|
@@ -280,5 +280,5 @@
|
|
|
280
280
|
<link rel="prefetch" as="script" crossorigin href="/__nuxt-scripts/_nuxt/o8ODhS4a.js">
|
|
281
281
|
<link rel="prefetch" as="style" crossorigin href="/__nuxt-scripts/_nuxt/error-500.DrCOIGHy.css">
|
|
282
282
|
<link rel="prefetch" as="script" crossorigin href="/__nuxt-scripts/_nuxt/BXZ5z1bG.js">
|
|
283
|
-
<script type="module" src="/__nuxt-scripts/_nuxt/CGzGISHo.js" crossorigin></script></head><body><div id="__nuxt"></div><div id="teleports"></div><script type="application/json" data-nuxt-data="nuxt-app" data-ssr="false" id="__NUXT_DATA__">[{"prerenderedAt":1,"serverRendered":2},
|
|
284
|
-
<script>window.__NUXT__={};window.__NUXT__.config={public:{},app:{baseURL:"/__nuxt-scripts",buildId:"
|
|
283
|
+
<script type="module" src="/__nuxt-scripts/_nuxt/CGzGISHo.js" crossorigin></script></head><body><div id="__nuxt"></div><div id="teleports"></div><script type="application/json" data-nuxt-data="nuxt-app" data-ssr="false" id="__NUXT_DATA__">[{"prerenderedAt":1,"serverRendered":2},1739503676444,false]</script>
|
|
284
|
+
<script>window.__NUXT__={};window.__NUXT__.config={public:{},app:{baseURL:"/__nuxt-scripts",buildId:"6ee6936d-8f09-469f-bb2a-9f8e9081adc3",buildAssetsDir:"/_nuxt/",cdnURL:""}}</script></body></html>
|
package/dist/module.json
CHANGED
|
@@ -1,4 +1,7 @@
|
|
|
1
1
|
<script lang="ts" setup>
|
|
2
|
+
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
3
|
+
// @ts-nocheck
|
|
4
|
+
|
|
2
5
|
/// <reference types="google.maps" />
|
|
3
6
|
import { computed, onBeforeUnmount, onMounted, ref, watch, toRaw } from 'vue'
|
|
4
7
|
import type { HTMLAttributes, ImgHTMLAttributes, Ref, ReservedProps } from 'vue'
|
|
@@ -1,4 +1,7 @@
|
|
|
1
1
|
<script setup lang="ts">
|
|
2
|
+
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
3
|
+
// @ts-nocheck
|
|
4
|
+
|
|
2
5
|
/// <reference types="vimeo__player" />
|
|
3
6
|
import { computed, onBeforeUnmount, onMounted, ref, watch } from 'vue'
|
|
4
7
|
import type { HTMLAttributes, ImgHTMLAttributes } from 'vue'
|
|
@@ -14,7 +14,7 @@ export const GoogleAdsenseOptions = object({
|
|
|
14
14
|
export function useScriptGoogleAdsense(_options) {
|
|
15
15
|
return useRegistryScript("googleAdsense", (options) => ({
|
|
16
16
|
scriptInput: {
|
|
17
|
-
src:
|
|
17
|
+
src: "https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"
|
|
18
18
|
},
|
|
19
19
|
schema: import.meta.dev ? GoogleAdsenseOptions : void 0,
|
|
20
20
|
scriptOptions: {
|
|
@@ -24,24 +24,25 @@ export function useScriptGoogleAdsense(_options) {
|
|
|
24
24
|
beforeInit() {
|
|
25
25
|
if (options?.client) {
|
|
26
26
|
useHead({
|
|
27
|
+
// Add meta tag for Google Adsense account
|
|
27
28
|
meta: [
|
|
28
29
|
{
|
|
29
30
|
name: "google-adsense-account",
|
|
30
|
-
content: options
|
|
31
|
+
content: options.client
|
|
31
32
|
}
|
|
32
33
|
],
|
|
33
34
|
// Inject Auto Ads script dynamically
|
|
34
|
-
script:
|
|
35
|
+
script: [
|
|
35
36
|
{
|
|
36
37
|
innerHTML: `
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
38
|
+
(adsbygoogle = window.adsbygoogle || []).push({
|
|
39
|
+
google_ad_client: "${options.client}",
|
|
40
|
+
enable_page_level_ads: ${options.autoAds ?? false}
|
|
41
|
+
});
|
|
42
|
+
`,
|
|
42
43
|
type: "text/javascript"
|
|
43
44
|
}
|
|
44
|
-
]
|
|
45
|
+
]
|
|
45
46
|
});
|
|
46
47
|
}
|
|
47
48
|
}
|
|
@@ -1,4 +1,6 @@
|
|
|
1
|
+
import type { GTag } from './google-analytics.js';
|
|
1
2
|
import type { RegistryScriptInput } from '#nuxt-scripts/types';
|
|
3
|
+
type DataLayer = Array<Parameters<GTag> | Record<string, unknown>>;
|
|
2
4
|
interface GoogleTagManagerDataLayerApi {
|
|
3
5
|
name: 'dataLayer';
|
|
4
6
|
set: (opt: {
|
|
@@ -22,6 +24,7 @@ type GoogleTagManagerInstance = GoogleTagManagerDataLayerStatus & {
|
|
|
22
24
|
};
|
|
23
25
|
interface GoogleTagManagerApi {
|
|
24
26
|
google_tag_manager: GoogleTagManagerInstance;
|
|
27
|
+
dataLayer: DataLayer;
|
|
25
28
|
}
|
|
26
29
|
declare global {
|
|
27
30
|
interface Window extends GoogleTagManagerApi {
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nuxt/scripts",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.10.
|
|
4
|
+
"version": "0.10.3",
|
|
5
5
|
"description": "Load third-party scripts with better performance, privacy and DX in Nuxt Apps.",
|
|
6
6
|
"author": {
|
|
7
7
|
"website": "https://harlanzw.com",
|
|
@@ -76,31 +76,31 @@
|
|
|
76
76
|
"magic-string": "^0.30.17",
|
|
77
77
|
"ofetch": "^1.4.1",
|
|
78
78
|
"ohash": "^1.1.4",
|
|
79
|
-
"pathe": "^2.0.
|
|
79
|
+
"pathe": "^2.0.3",
|
|
80
80
|
"pkg-types": "^1.3.1",
|
|
81
81
|
"semver": "^7.7.1",
|
|
82
82
|
"sirv": "^3.0.0",
|
|
83
83
|
"std-env": "^3.8.0",
|
|
84
84
|
"ufo": "^1.5.4",
|
|
85
|
-
"unplugin": "^2.
|
|
85
|
+
"unplugin": "^2.2.0",
|
|
86
86
|
"unstorage": "^1.14.4",
|
|
87
|
-
"valibot": "^1.0.0-
|
|
87
|
+
"valibot": "^1.0.0-rc.0"
|
|
88
88
|
},
|
|
89
89
|
"devDependencies": {
|
|
90
90
|
"@nuxt/devtools-kit": "^2.0.0",
|
|
91
91
|
"@nuxt/devtools-ui-kit": "^2.0.0",
|
|
92
|
-
"@nuxt/eslint-config": "^1.0.
|
|
92
|
+
"@nuxt/eslint-config": "^1.0.1",
|
|
93
93
|
"@nuxt/module-builder": "^0.8.4",
|
|
94
94
|
"@nuxt/test-utils": "3.15.4",
|
|
95
95
|
"@types/semver": "^7.5.8",
|
|
96
|
-
"@typescript-eslint/typescript-estree": "^8.
|
|
96
|
+
"@typescript-eslint/typescript-estree": "^8.24.0",
|
|
97
97
|
"@unhead/schema": "^1.11.18",
|
|
98
98
|
"acorn-loose": "^8.4.0",
|
|
99
|
-
"bumpp": "^10.0.
|
|
99
|
+
"bumpp": "^10.0.3",
|
|
100
100
|
"changelogen": "^0.5.7",
|
|
101
101
|
"eslint": "9.19.0",
|
|
102
102
|
"eslint-plugin-n": "^17.15.1",
|
|
103
|
-
"happy-dom": "^17.
|
|
103
|
+
"happy-dom": "^17.1.0",
|
|
104
104
|
"knitwork": "^1.2.0",
|
|
105
105
|
"nuxt": "^3.15.4",
|
|
106
106
|
"playwright-core": "^1.50.1",
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"id":"66990e06-bd43-4fcc-a366-b9ec546b2f39","timestamp":1738931123702,"matcher":{"static":{},"wildcard":{},"dynamic":{}},"prerendered":[]}
|