@webority/analytics 0.40.6 → 0.40.7

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.
@@ -9,7 +9,7 @@ type ConsentRegion = (typeof REGIONS)[number];
9
9
  export declare const WORKSPACE_GROUP_TYPE = "workspace";
10
10
  type KeyValueStorage = {
11
11
  getItem(key: string): Promise<string | null>;
12
- setItem(key: string, value: string): Promise<void>;
12
+ setItem(key: string, value: string): Promise<unknown>;
13
13
  };
14
14
  type MobileInit = {
15
15
  host?: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@webority/analytics",
3
- "version": "0.40.6",
3
+ "version": "0.40.7",
4
4
  "license": "SEE LICENSE IN LICENSE",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
@@ -68,6 +68,7 @@
68
68
  "devDependencies": {
69
69
  "@biomejs/biome": "2.6.5",
70
70
  "@types/node": "24.19.2",
71
+ "@webority/biome-config": "0.165.0",
71
72
  "esbuild": "0.28.2",
72
73
  "posthog-js": "1.417.1",
73
74
  "posthog-node": "5.61.2",
@@ -86,9 +87,9 @@
86
87
  "build": "node -e \"require(\\\"node:fs\\\").rmSync(\\\"dist\\\",{recursive:true,force:true})\" && esbuild src/index.ts src/site.ts src/errors.ts --bundle --splitting --format=esm --external:posthog-js --target=es2020 --minify --outdir=dist && esbuild src/site.ts --bundle --format=iife --global-name=WeborityAnalytics --alias:posthog-js=./src/site-posthog-snippet.ts --conditions=webority-site-global --target=es2020 --minify --outfile=dist/webority-analytics-site.global.js && esbuild src/web-vitals-global.ts --bundle --format=iife --global-name=WeborityAnalyticsWebVitals --target=es2020 --minify --outfile=dist/webority-analytics-web-vitals.global.js && esbuild src/react-native/index.ts --bundle --format=esm --external:posthog-react-native --target=es2020 --minify --outfile=dist/react-native.js && esbuild src/node/index.ts --bundle --platform=node --format=esm --external:posthog-node --target=node20 --minify --outfile=dist/node.js && esbuild src/catalogue/check-events.ts src/catalogue/generate-events.ts --bundle --platform=node --format=esm --target=node20 --minify --outdir=dist && node -e \"for (const f of [\\\"fleet-tracking-plan.json\\\", \\\"tracking-plan.schema.json\\\"]) require(\\\"node:fs\\\").copyFileSync(\\\"src/catalogue/\\\" + f, \\\"dist/\\\" + f)\" && tsc -p tsconfig.json",
87
88
  "lint": "biome lint ./src ./test",
88
89
  "format": "biome format --write ./src ./test",
89
- "check": "biome check ./src ./test",
90
+ "check": "corepack pnpm run typecheck && biome check ./src ./test",
90
91
  "test": "tsc -p tsconfig.test.json && node test/smoke.ts && node test/site.ts && node test/errors.ts && node test/react-native.ts && node test/url-scrub.ts && node test/property-scrub.ts && node test/web-vitals.ts && node test/tours.ts && node test/catalogue.ts &&node src/catalogue/generate-events.ts --plan src/catalogue/fleet-tracking-plan.json --cs ../Webority.Analytics/FleetEventCatalogue.g.cs --cs-namespace Webority.Analytics --cs-class FleetEventCatalogue --cs-internal --check && pnpm run --silent build && node test/bundle.ts && node test/types.ts",
91
92
  "catalogue:generate": "node src/catalogue/generate-events.ts --plan src/catalogue/fleet-tracking-plan.json --cs ../Webority.Analytics/FleetEventCatalogue.g.cs --cs-namespace Webority.Analytics --cs-class FleetEventCatalogue --cs-internal",
92
- "typecheck": "tsc -p tsconfig.json --noEmit && tsc -p tsconfig.test.json"
93
+ "typecheck": "tsc --noEmit -p tsconfig.json && tsc --noEmit -p tsconfig.test.json"
93
94
  }
94
95
  }