@nexim/google-analytics 1.0.1 → 1.0.2

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/CHANGELOG.md CHANGED
@@ -3,6 +3,12 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ ## [1.0.2](https://github.com/the-nexim/nanolib/compare/@nexim/google-analytics@1.0.1...@nexim/google-analytics@1.0.2) (2025-01-05)
7
+
8
+ ### Bug Fixes
9
+
10
+ * **google-analytic:** build for browser platform ([0d16bca](https://github.com/the-nexim/nanolib/commit/0d16bca2529aae0dab368e68a5ad9a8c924037e2)) by @njfamirm
11
+
6
12
  ## 1.0.1 (2024-12-24)
7
13
 
8
14
  ### Code Refactoring
package/README.md CHANGED
@@ -1,10 +1,10 @@
1
1
  # @nexim/google-analytics
2
2
 
3
- ![NPM Version](https://img.shields.io/npm/v/%40nexim%2Fgoogle-analytic)
4
- ![npm bundle size](https://img.shields.io/bundlephobia/min/%40nexim%2Fgoogle-analytic)
3
+ ![NPM Version](https://img.shields.io/npm/v/@nexim/google-analytic)
4
+ ![npm bundle size](https://img.shields.io/bundlephobia/min/@nexim/google-analytic)
5
5
  ![Build & Lint & Test](https://github.com/the-nexim/nanolib/actions/workflows/build-lint-test.yaml/badge.svg)
6
- ![NPM Downloads](https://img.shields.io/npm/dm/%40nexim%2Fgoogle-analytic)
7
- ![NPM License](https://img.shields.io/npm/l/%40nexim%2Fgoogle-analytic)
6
+ ![NPM Downloads](https://img.shields.io/npm/dm/@nexim/google-analytic)
7
+ ![NPM License](https://img.shields.io/npm/l/@nexim/google-analytic)
8
8
 
9
9
  ## Overview
10
10
 
package/dist/main.cjs CHANGED
@@ -1,4 +1,4 @@
1
- /* @nexim/google-analytics v1.0.1 */
1
+ /* @nexim/google-analytics v1.0.2 */
2
2
  "use strict";
3
3
  var __defProp = Object.defineProperty;
4
4
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
@@ -26,7 +26,7 @@ __export(main_exports, {
26
26
  module.exports = __toCommonJS(main_exports);
27
27
  var import_logger = require("@alwatr/logger");
28
28
  var import_package_tracer = require("@alwatr/package-tracer");
29
- __dev_mode__: import_package_tracer.packageTracer.add("@nexim/google-analytics", "1.0.1");
29
+ __dev_mode__: import_package_tracer.packageTracer.add("@nexim/google-analytics", "1.0.2");
30
30
  var logger = (0, import_logger.createLogger)("@nexim/google-analytics");
31
31
  async function initializeGoogleAnalytics(trackingId) {
32
32
  logger.logMethodArgs?.("initializeGoogleAnalytics", { trackingId });
@@ -59,9 +59,5 @@ function loadGoogleAnalyticsScript(trackingId) {
59
59
  script.onerror = (error) => reject(error);
60
60
  });
61
61
  }
62
- // Annotate the CommonJS export names for ESM import in node:
63
- 0 && (module.exports = {
64
- initializeGoogleAnalytics
65
- });
66
62
  /*! For license information please see main.cjs.LEGAL.txt */
67
63
  //# sourceMappingURL=main.cjs.map
package/dist/main.mjs CHANGED
@@ -1,9 +1,9 @@
1
- /* @nexim/google-analytics v1.0.1 */
1
+ /* @nexim/google-analytics v1.0.2 */
2
2
 
3
3
  // src/main.ts
4
4
  import { createLogger } from "@alwatr/logger";
5
5
  import { packageTracer } from "@alwatr/package-tracer";
6
- __dev_mode__: packageTracer.add("@nexim/google-analytics", "1.0.1");
6
+ __dev_mode__: packageTracer.add("@nexim/google-analytics", "1.0.2");
7
7
  var logger = createLogger("@nexim/google-analytics");
8
8
  async function initializeGoogleAnalytics(trackingId) {
9
9
  logger.logMethodArgs?.("initializeGoogleAnalytics", { trackingId });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nexim/google-analytics",
3
- "version": "1.0.1",
3
+ "version": "1.0.2",
4
4
  "description": "Utilities provides functions to set up Google Analytics for your web application.",
5
5
  "keywords": [
6
6
  "analytic",
@@ -35,8 +35,7 @@
35
35
  "files": [
36
36
  "**/*.{js,mjs,cjs,map,d.ts,html,md,LEGAL.txt}",
37
37
  "LICENSE",
38
- "!**/*.test.js",
39
- "!demo/**/*"
38
+ "!**/*.test.js"
40
39
  ],
41
40
  "scripts": {
42
41
  "build": "wireit",
@@ -50,7 +49,7 @@
50
49
  "devDependencies": {
51
50
  "@alwatr/nano-build": "^5.0.0",
52
51
  "@alwatr/type-helper": "^5.0.0",
53
- "@nexim/typescript-config": "^1.0.1",
52
+ "@nexim/typescript-config": "^1.1.0",
54
53
  "ava": "^6.2.0",
55
54
  "typescript": "^5.7.2",
56
55
  "wireit": "^0.14.9"
@@ -58,6 +57,9 @@
58
57
  "publishConfig": {
59
58
  "access": "public"
60
59
  },
60
+ "nano-build": {
61
+ "platform": "browser"
62
+ },
61
63
  "wireit": {
62
64
  "test": {
63
65
  "command": "NODE_OPTIONS=\"$NODE_OPTIONS --enable-source-maps --experimental-vm-modules\" ava"
@@ -98,5 +100,5 @@
98
100
  "service": true
99
101
  }
100
102
  },
101
- "gitHead": "bc359427982999632efc472ee14238e4317e6320"
103
+ "gitHead": "52096aedc16222a434b2badfe7e860f671c1c5f8"
102
104
  }