@docusaurus/plugin-google-tag-manager 3.9.2 → 3.10.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/lib/index.d.ts +1 -1
- package/lib/index.js +2 -2
- package/package.json +5 -5
- package/src/index.ts +1 -1
package/lib/index.d.ts
CHANGED
|
@@ -6,6 +6,6 @@
|
|
|
6
6
|
*/
|
|
7
7
|
import type { LoadContext, Plugin, OptionValidationContext } from '@docusaurus/types';
|
|
8
8
|
import type { PluginOptions, Options } from './options';
|
|
9
|
-
export default function
|
|
9
|
+
export default function pluginGoogleTagManager(context: LoadContext, options: PluginOptions): Plugin | null;
|
|
10
10
|
export declare function validateOptions({ validate, options, }: OptionValidationContext<Options, PluginOptions>): PluginOptions;
|
|
11
11
|
export type { PluginOptions, Options };
|
package/lib/index.js
CHANGED
|
@@ -6,10 +6,10 @@
|
|
|
6
6
|
* LICENSE file in the root directory of this source tree.
|
|
7
7
|
*/
|
|
8
8
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
|
-
exports.default =
|
|
9
|
+
exports.default = pluginGoogleTagManager;
|
|
10
10
|
exports.validateOptions = validateOptions;
|
|
11
11
|
const utils_validation_1 = require("@docusaurus/utils-validation");
|
|
12
|
-
function
|
|
12
|
+
function pluginGoogleTagManager(context, options) {
|
|
13
13
|
if (process.env.NODE_ENV !== 'production') {
|
|
14
14
|
return null;
|
|
15
15
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@docusaurus/plugin-google-tag-manager",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.10.1",
|
|
4
4
|
"description": "Google Tag Manager (gtm.js) plugin for Docusaurus.",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"types": "lib/index.d.ts",
|
|
@@ -18,9 +18,9 @@
|
|
|
18
18
|
},
|
|
19
19
|
"license": "MIT",
|
|
20
20
|
"dependencies": {
|
|
21
|
-
"@docusaurus/core": "3.
|
|
22
|
-
"@docusaurus/types": "3.
|
|
23
|
-
"@docusaurus/utils-validation": "3.
|
|
21
|
+
"@docusaurus/core": "3.10.1",
|
|
22
|
+
"@docusaurus/types": "3.10.1",
|
|
23
|
+
"@docusaurus/utils-validation": "3.10.1",
|
|
24
24
|
"tslib": "^2.6.0"
|
|
25
25
|
},
|
|
26
26
|
"peerDependencies": {
|
|
@@ -30,5 +30,5 @@
|
|
|
30
30
|
"engines": {
|
|
31
31
|
"node": ">=20.0"
|
|
32
32
|
},
|
|
33
|
-
"gitHead": "
|
|
33
|
+
"gitHead": "41c1a458ecb07d61b6df2761ea4bc1b13db49d12"
|
|
34
34
|
}
|
package/src/index.ts
CHANGED
|
@@ -13,7 +13,7 @@ import type {
|
|
|
13
13
|
} from '@docusaurus/types';
|
|
14
14
|
import type {PluginOptions, Options} from './options';
|
|
15
15
|
|
|
16
|
-
export default function
|
|
16
|
+
export default function pluginGoogleTagManager(
|
|
17
17
|
context: LoadContext,
|
|
18
18
|
options: PluginOptions,
|
|
19
19
|
): Plugin | null {
|