nuxt-yandex-metrika 1.2.9 → 1.3.1
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/module.d.mts +1 -1
- package/dist/module.json +3 -3
- package/dist/module.mjs +5 -9
- package/dist/runtime/components/yandex-metrika-informer.d.vue.ts +3 -0
- package/dist/runtime/components/yandex-metrika-informer.vue +2 -3
- package/dist/runtime/components/yandex-metrika-informer.vue.d.ts +3 -0
- package/dist/runtime/components/yandex-verification.d.vue.ts +3 -0
- package/dist/runtime/components/yandex-verification.vue +4 -9
- package/dist/runtime/components/yandex-verification.vue.d.ts +3 -0
- package/dist/runtime/composables/useYandexMetrika.d.ts +1 -1
- package/dist/runtime/plugin.d.ts +6 -1
- package/dist/types.d.mts +2 -2
- package/package.json +28 -29
- package/dist/module.cjs +0 -5
- package/dist/module.d.ts +0 -15
- package/dist/types.d.ts +0 -7
package/dist/module.d.mts
CHANGED
|
@@ -10,6 +10,6 @@ type YandexMetrikaModuleOptions = {
|
|
|
10
10
|
options: Partial<InitParameters>;
|
|
11
11
|
};
|
|
12
12
|
|
|
13
|
-
declare const _default: _nuxt_schema.NuxtModule<YandexMetrikaModuleOptions>;
|
|
13
|
+
declare const _default: _nuxt_schema.NuxtModule<YandexMetrikaModuleOptions, YandexMetrikaModuleOptions, false>;
|
|
14
14
|
|
|
15
15
|
export { _default as default };
|
package/dist/module.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "nuxt-yandex-metrika",
|
|
3
|
-
"version": "1.2.9",
|
|
4
3
|
"configKey": "yandexMetrika",
|
|
5
4
|
"compatibility": {
|
|
6
5
|
"nuxt": ">=3.0.0"
|
|
7
6
|
},
|
|
7
|
+
"version": "1.3.1",
|
|
8
8
|
"builder": {
|
|
9
|
-
"@nuxt/module-builder": "0.
|
|
10
|
-
"unbuild": "
|
|
9
|
+
"@nuxt/module-builder": "1.0.2",
|
|
10
|
+
"unbuild": "3.6.1"
|
|
11
11
|
}
|
|
12
12
|
}
|
package/dist/module.mjs
CHANGED
|
@@ -1,13 +1,9 @@
|
|
|
1
1
|
import { defineNuxtModule, createResolver, addPlugin, addComponentsDir, addImports } from '@nuxt/kit';
|
|
2
2
|
import { defu } from 'defu';
|
|
3
3
|
|
|
4
|
-
const
|
|
5
|
-
const version = "1.2.9";
|
|
6
|
-
|
|
7
|
-
const module = defineNuxtModule({
|
|
4
|
+
const module$1 = defineNuxtModule({
|
|
8
5
|
meta: {
|
|
9
|
-
name,
|
|
10
|
-
version,
|
|
6
|
+
name: "nuxt-yandex-metrika",
|
|
11
7
|
configKey: "yandexMetrika",
|
|
12
8
|
compatibility: {
|
|
13
9
|
nuxt: ">=3.0.0"
|
|
@@ -16,7 +12,7 @@ const module = defineNuxtModule({
|
|
|
16
12
|
// Default configuration options of the Nuxt module
|
|
17
13
|
defaults: {
|
|
18
14
|
id: "xxx",
|
|
19
|
-
debug:
|
|
15
|
+
debug: import.meta.env.NODE_ENV !== "production",
|
|
20
16
|
delay: 0,
|
|
21
17
|
cdn: false,
|
|
22
18
|
verification: null,
|
|
@@ -39,7 +35,7 @@ const module = defineNuxtModule({
|
|
|
39
35
|
options,
|
|
40
36
|
{
|
|
41
37
|
id: "xxx",
|
|
42
|
-
debug:
|
|
38
|
+
debug: import.meta.env.NODE_ENV !== "production",
|
|
43
39
|
delay: 0,
|
|
44
40
|
cdn: false,
|
|
45
41
|
verification: null,
|
|
@@ -73,4 +69,4 @@ const module = defineNuxtModule({
|
|
|
73
69
|
}
|
|
74
70
|
});
|
|
75
71
|
|
|
76
|
-
export { module as default };
|
|
72
|
+
export { module$1 as default };
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
declare const __VLS_export: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
2
|
+
declare const _default: typeof __VLS_export;
|
|
3
|
+
export default _default;
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
declare const __VLS_export: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
2
|
+
declare const _default: typeof __VLS_export;
|
|
3
|
+
export default _default;
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
declare const __VLS_export: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
2
|
+
declare const _default: typeof __VLS_export;
|
|
3
|
+
export default _default;
|
|
@@ -1,17 +1,12 @@
|
|
|
1
|
-
<script setup
|
|
2
|
-
import chalk from
|
|
3
|
-
|
|
4
|
-
import { useYandexMetrika } from '../composables/useYandexMetrika';
|
|
5
|
-
|
|
1
|
+
<script setup>
|
|
2
|
+
import chalk from "chalk";
|
|
3
|
+
import { useYandexMetrika } from "../composables/useYandexMetrika";
|
|
6
4
|
const { verification } = useYandexMetrika();
|
|
7
|
-
|
|
8
5
|
if (!verification) {
|
|
9
|
-
|
|
6
|
+
console.error(`${chalk.bgRed(chalk.black("[yandex-metrika]"))} ${chalk.red("Verification key not found")}`);
|
|
10
7
|
}
|
|
11
8
|
</script>
|
|
12
9
|
|
|
13
10
|
<template>
|
|
14
11
|
<Meta v-if="verification" name="yandex-verification" :content="verification" />
|
|
15
12
|
</template>
|
|
16
|
-
|
|
17
|
-
<style scoped></style>
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
declare const __VLS_export: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
2
|
+
declare const _default: typeof __VLS_export;
|
|
3
|
+
export default _default;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import type { YandexMetrika } from '../yandex-metrika.js';
|
|
1
|
+
import type { YandexMetrika } from '../yandex-metrika/index.js';
|
|
2
2
|
export declare function useYandexMetrika(): YandexMetrika;
|
package/dist/runtime/plugin.d.ts
CHANGED
|
@@ -1,2 +1,7 @@
|
|
|
1
|
-
|
|
1
|
+
import { YandexMetrika } from './yandex-metrika/index.js';
|
|
2
|
+
declare const _default: import("#app").Plugin<{
|
|
3
|
+
yandexMetrika: YandexMetrika;
|
|
4
|
+
}> & import("#app").ObjectPlugin<{
|
|
5
|
+
yandexMetrika: YandexMetrika;
|
|
6
|
+
}>;
|
|
2
7
|
export default _default;
|
package/dist/types.d.mts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { NuxtModule } from '@nuxt/schema'
|
|
2
2
|
|
|
3
|
-
import type { default as Module } from './module.
|
|
3
|
+
import type { default as Module } from './module.mjs'
|
|
4
4
|
|
|
5
5
|
export type ModuleOptions = typeof Module extends NuxtModule<infer O> ? Partial<O> : Record<string, any>
|
|
6
6
|
|
|
7
|
-
export { default } from './module.
|
|
7
|
+
export { default } from './module.mjs'
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "nuxt-yandex-metrika",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.3.1",
|
|
4
4
|
"description": "Add Yandex Metrika to your Nuxt 3 application.",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -15,47 +15,38 @@
|
|
|
15
15
|
},
|
|
16
16
|
"exports": {
|
|
17
17
|
".": {
|
|
18
|
-
"types": "./dist/types.d.
|
|
19
|
-
"import": "./dist/module.mjs"
|
|
20
|
-
"require": "./dist/module.cjs"
|
|
18
|
+
"types": "./dist/types.d.mts",
|
|
19
|
+
"import": "./dist/module.mjs"
|
|
21
20
|
}
|
|
22
21
|
},
|
|
23
|
-
"main": "./dist/module.
|
|
24
|
-
"types": "./dist/types.d.
|
|
22
|
+
"main": "./dist/module.mjs",
|
|
23
|
+
"types": "./dist/types.d.mts",
|
|
25
24
|
"files": [
|
|
26
25
|
"dist"
|
|
27
26
|
],
|
|
28
|
-
"scripts": {
|
|
29
|
-
"prepack": "nuxt-module-build build",
|
|
30
|
-
"dev": "nuxi dev playground",
|
|
31
|
-
"dev:build": "nuxi build playground build",
|
|
32
|
-
"dev:prepare": "nuxt-module-build build --stub && nuxt-module-build prepare && nuxi prepare playground",
|
|
33
|
-
"release": "npm run lint && npm run prepack && changelogen --release && npm publish && git push --follow-tags",
|
|
34
|
-
"prettier": "prettier --write .",
|
|
35
|
-
"lint": "eslint --fix .",
|
|
36
|
-
"prepare": "husky install"
|
|
37
|
-
},
|
|
38
27
|
"publishConfig": {
|
|
39
28
|
"access": "public"
|
|
40
29
|
},
|
|
41
30
|
"dependencies": {
|
|
42
|
-
"@nuxt/kit": "^
|
|
43
|
-
"chalk": "^5.
|
|
31
|
+
"@nuxt/kit": "^4.2.2",
|
|
32
|
+
"chalk": "^5.6.2",
|
|
44
33
|
"defu": "^6.1.4"
|
|
45
34
|
},
|
|
46
35
|
"devDependencies": {
|
|
47
36
|
"@nuxt/devtools": "latest",
|
|
48
|
-
"@nuxt/eslint-config": "^
|
|
49
|
-
"@nuxt/module-builder": "^0.
|
|
50
|
-
"@nuxt/schema": "^
|
|
51
|
-
"@poidet/prettier": "^0.8.
|
|
52
|
-
"@types/node": "^
|
|
53
|
-
"changelogen": "^0.
|
|
54
|
-
"eslint": "^9.
|
|
55
|
-
"husky": "^9.
|
|
56
|
-
"lint-staged": "^
|
|
57
|
-
"nuxt": "^
|
|
58
|
-
"prettier": "^3.
|
|
37
|
+
"@nuxt/eslint-config": "^1.12.1",
|
|
38
|
+
"@nuxt/module-builder": "^1.0.2",
|
|
39
|
+
"@nuxt/schema": "^4.2.2",
|
|
40
|
+
"@poidet/prettier": "^0.8.4",
|
|
41
|
+
"@types/node": "^25.0.3",
|
|
42
|
+
"changelogen": "^0.6.2",
|
|
43
|
+
"eslint": "^9.39.2",
|
|
44
|
+
"husky": "^9.1.7",
|
|
45
|
+
"lint-staged": "^16.2.7",
|
|
46
|
+
"nuxt": "^4.2.2",
|
|
47
|
+
"prettier": "^3.7.4",
|
|
48
|
+
"typescript": "5.9.3",
|
|
49
|
+
"vue-tsc": "^3.2.1"
|
|
59
50
|
},
|
|
60
51
|
"lint-staged": {
|
|
61
52
|
"**/*.(ts|vue)": [
|
|
@@ -66,5 +57,13 @@
|
|
|
66
57
|
"prettier --write",
|
|
67
58
|
"git add"
|
|
68
59
|
]
|
|
60
|
+
},
|
|
61
|
+
"scripts": {
|
|
62
|
+
"dev": "nuxi dev playground",
|
|
63
|
+
"dev:build": "nuxi build playground build",
|
|
64
|
+
"dev:prepare": "nuxt-module-build build --stub && nuxt-module-build prepare && nuxi prepare playground",
|
|
65
|
+
"release": "npm run lint && npm run prepack && changelogen --release && npm publish && git push --follow-tags",
|
|
66
|
+
"prettier": "prettier --write .",
|
|
67
|
+
"lint": "eslint --fix ."
|
|
69
68
|
}
|
|
70
69
|
}
|
package/dist/module.cjs
DELETED
package/dist/module.d.ts
DELETED
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import * as _nuxt_schema from '@nuxt/schema';
|
|
2
|
-
import { InitParameters } from '../dist/runtime/yandex-metrika/index.js';
|
|
3
|
-
|
|
4
|
-
type YandexMetrikaModuleOptions = {
|
|
5
|
-
id: string;
|
|
6
|
-
debug: boolean;
|
|
7
|
-
cdn: boolean;
|
|
8
|
-
delay: number;
|
|
9
|
-
verification: null | string;
|
|
10
|
-
options: Partial<InitParameters>;
|
|
11
|
-
};
|
|
12
|
-
|
|
13
|
-
declare const _default: _nuxt_schema.NuxtModule<YandexMetrikaModuleOptions>;
|
|
14
|
-
|
|
15
|
-
export { _default as default };
|
package/dist/types.d.ts
DELETED