@docusaurus/plugin-google-tag-manager 0.0.0-5980 → 0.0.0-5983
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.js +2 -3
- package/package.json +5 -5
package/lib/index.js
CHANGED
|
@@ -6,7 +6,8 @@
|
|
|
6
6
|
* LICENSE file in the root directory of this source tree.
|
|
7
7
|
*/
|
|
8
8
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
|
-
exports.
|
|
9
|
+
exports.default = pluginGoogleAnalytics;
|
|
10
|
+
exports.validateOptions = validateOptions;
|
|
10
11
|
const utils_validation_1 = require("@docusaurus/utils-validation");
|
|
11
12
|
function pluginGoogleAnalytics(context, options) {
|
|
12
13
|
const { containerId } = options;
|
|
@@ -52,11 +53,9 @@ j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=
|
|
|
52
53
|
},
|
|
53
54
|
};
|
|
54
55
|
}
|
|
55
|
-
exports.default = pluginGoogleAnalytics;
|
|
56
56
|
const pluginOptionsSchema = utils_validation_1.Joi.object({
|
|
57
57
|
containerId: utils_validation_1.Joi.string().required(),
|
|
58
58
|
});
|
|
59
59
|
function validateOptions({ validate, options, }) {
|
|
60
60
|
return validate(pluginOptionsSchema, options);
|
|
61
61
|
}
|
|
62
|
-
exports.validateOptions = validateOptions;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@docusaurus/plugin-google-tag-manager",
|
|
3
|
-
"version": "0.0.0-
|
|
3
|
+
"version": "0.0.0-5983",
|
|
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": "0.0.0-
|
|
22
|
-
"@docusaurus/types": "0.0.0-
|
|
23
|
-
"@docusaurus/utils-validation": "0.0.0-
|
|
21
|
+
"@docusaurus/core": "0.0.0-5983",
|
|
22
|
+
"@docusaurus/types": "0.0.0-5983",
|
|
23
|
+
"@docusaurus/utils-validation": "0.0.0-5983",
|
|
24
24
|
"tslib": "^2.6.0"
|
|
25
25
|
},
|
|
26
26
|
"peerDependencies": {
|
|
@@ -30,5 +30,5 @@
|
|
|
30
30
|
"engines": {
|
|
31
31
|
"node": ">=18.0"
|
|
32
32
|
},
|
|
33
|
-
"gitHead": "
|
|
33
|
+
"gitHead": "303ced3b8c9e4b7674a42ebbbe73d24debeb211a"
|
|
34
34
|
}
|