sitepong 0.1.13 → 0.2.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.
@@ -1,6 +1,6 @@
1
- import { B as Breadcrumb, S as SitePongConfig, C as CaptureContext, L as LogLevel } from '../types-Cms9VXx9.mjs';
2
- export { E as ErrorEvent } from '../types-Cms9VXx9.mjs';
3
- import '../types-BEqbz0tw.mjs';
1
+ import { B as Breadcrumb, S as SitePongConfig, C as CaptureContext, L as LogLevel } from '../types-CphqOTfm.mjs';
2
+ export { E as ErrorEvent } from '../types-CphqOTfm.mjs';
3
+ import '../types-DPINdOQW.mjs';
4
4
 
5
5
  /**
6
6
  * Add a breadcrumb to the trail
@@ -1,6 +1,6 @@
1
- import { B as Breadcrumb, S as SitePongConfig, C as CaptureContext, L as LogLevel } from '../types-DQSv7JAE.js';
2
- export { E as ErrorEvent } from '../types-DQSv7JAE.js';
3
- import '../types-BEqbz0tw.js';
1
+ import { B as Breadcrumb, S as SitePongConfig, C as CaptureContext, L as LogLevel } from '../types-BTA43eyz.js';
2
+ export { E as ErrorEvent } from '../types-BTA43eyz.js';
3
+ import '../types-DPINdOQW.js';
4
4
 
5
5
  /**
6
6
  * Add a breadcrumb to the trail
@@ -1,4 +1,4 @@
1
- import { R as ReplayConfig, A as AnalyticsConfig } from './types-BEqbz0tw.js';
1
+ import { R as ReplayConfig, A as AnalyticsConfig } from './types-DPINdOQW.js';
2
2
 
3
3
  /**
4
4
  * SitePong SDK Types
@@ -1,4 +1,4 @@
1
- import { R as ReplayConfig, A as AnalyticsConfig } from './types-BEqbz0tw.mjs';
1
+ import { R as ReplayConfig, A as AnalyticsConfig } from './types-DPINdOQW.mjs';
2
2
 
3
3
  /**
4
4
  * SitePong SDK Types
@@ -26,6 +26,8 @@ interface AnalyticsConfig {
26
26
  flushInterval?: number;
27
27
  eventsEndpoint?: string;
28
28
  debug?: boolean;
29
+ /** Application version stamped on every event for funnels/segmentation */
30
+ appVersion?: string;
29
31
  }
30
32
  interface TrackProperties {
31
33
  [key: string]: unknown;
@@ -26,6 +26,8 @@ interface AnalyticsConfig {
26
26
  flushInterval?: number;
27
27
  eventsEndpoint?: string;
28
28
  debug?: boolean;
29
+ /** Application version stamped on every event for funnels/segmentation */
30
+ appVersion?: string;
29
31
  }
30
32
  interface TrackProperties {
31
33
  [key: string]: unknown;
package/package.json CHANGED
@@ -1,162 +1,164 @@
1
1
  {
2
- "name": "sitepong",
3
- "version": "0.1.13",
4
- "description": "Official SitePong SDK for error tracking and monitoring",
5
- "main": "dist/index.js",
6
- "module": "dist/index.mjs",
7
- "types": "dist/index.d.ts",
8
- "exports": {
9
- ".": {
10
- "react-native": {
11
- "types": "./dist/entries/rn.d.ts",
12
- "default": "./dist/entries/rn.js"
13
- },
14
- "browser": {
15
- "types": "./dist/entries/web.d.ts",
16
- "import": "./dist/entries/web.mjs",
17
- "require": "./dist/entries/web.js"
18
- },
19
- "types": "./dist/index.d.ts",
20
- "import": "./dist/index.mjs",
21
- "require": "./dist/index.js"
22
- },
23
- "./web": {
24
- "types": "./dist/entries/web.d.ts",
25
- "import": "./dist/entries/web.mjs",
26
- "require": "./dist/entries/web.js"
27
- },
28
- "./node": {
29
- "types": "./dist/entries/node.d.ts",
30
- "import": "./dist/entries/node.mjs",
31
- "require": "./dist/entries/node.js"
32
- },
33
- "./react": {
34
- "types": "./dist/react/index.d.ts",
35
- "import": "./dist/react/index.mjs",
36
- "require": "./dist/react/index.js"
37
- },
38
- "./react-native": {
39
- "types": "./dist/entries/rn.d.ts",
40
- "default": "./dist/entries/rn.js"
41
- },
42
- "./server": {
43
- "types": "./dist/server/index.d.ts",
44
- "import": "./dist/server/index.mjs",
45
- "require": "./dist/server/index.js"
46
- },
47
- "./express": {
48
- "types": "./dist/express/index.d.ts",
49
- "import": "./dist/express/index.mjs",
50
- "require": "./dist/express/index.js"
51
- },
52
- "./nextjs": {
53
- "types": "./dist/nextjs/index.d.ts",
54
- "import": "./dist/nextjs/index.mjs",
55
- "require": "./dist/nextjs/index.js"
56
- }
57
- },
58
- "typesVersions": {
59
- "*": {
60
- "web": [
61
- "./dist/entries/web.d.ts"
62
- ],
63
- "node": [
64
- "./dist/entries/node.d.ts"
65
- ],
66
- "react": [
67
- "./dist/react/index.d.ts"
68
- ],
69
- "react-native": [
70
- "./dist/entries/rn.d.ts"
71
- ],
72
- "server": [
73
- "./dist/server/index.d.ts"
74
- ],
75
- "express": [
76
- "./dist/express/index.d.ts"
77
- ],
78
- "nextjs": [
79
- "./dist/nextjs/index.d.ts"
80
- ]
81
- }
82
- },
83
- "files": [
84
- "dist"
85
- ],
86
- "scripts": {
87
- "build": "tsup",
88
- "dev": "tsup --watch",
89
- "lint": "eslint --cache src/**/*.{ts,tsx}",
90
- "typecheck": "tsc -p tsconfig.web.json && tsc -p tsconfig.node.json",
91
- "test": "vitest run",
92
- "test:watch": "vitest",
93
- "prepublishOnly": "npm run build"
94
- },
95
- "keywords": [
96
- "error-tracking",
97
- "monitoring",
98
- "sitepong",
99
- "error-reporting",
100
- "crash-reporting"
101
- ],
102
- "author": "SitePong",
103
- "license": "MIT",
104
- "repository": {
105
- "type": "git",
106
- "url": "https://github.com/programmrz/sitepong.git",
107
- "directory": "packages/sdk"
108
- },
109
- "homepage": "https://sitepong.com",
110
- "bugs": {
111
- "url": "https://github.com/programmrz/sitepong/issues"
112
- },
113
- "peerDependencies": {
114
- "react-native": ">=0.70.0",
115
- "@react-native-async-storage/async-storage": ">=1.0.0",
116
- "@react-navigation/native": ">=6.0.0",
117
- "expo-device": ">=5.0.0",
118
- "expo-application": ">=5.0.0",
119
- "@sitepong/device-id": ">=0.1.0",
120
- "expo-sqlite": ">=14.0.0"
121
- },
122
- "peerDependenciesMeta": {
123
- "react-native": {
124
- "optional": true
125
- },
126
- "@react-native-async-storage/async-storage": {
127
- "optional": true
128
- },
129
- "@react-navigation/native": {
130
- "optional": true
131
- },
132
- "expo-device": {
133
- "optional": true
134
- },
135
- "expo-application": {
136
- "optional": true
137
- },
138
- "@sitepong/device-id": {
139
- "optional": true
140
- },
141
- "expo-sqlite": {
142
- "optional": true
143
- }
144
- },
145
- "dependencies": {},
146
- "devDependencies": {
147
- "@types/express": "^5.0.6",
148
- "@types/node": "^20.10.0",
149
- "@types/react": "^19.2.9",
150
- "@typescript-eslint/eslint-plugin": "^6.13.0",
151
- "@typescript-eslint/parser": "^6.13.0",
152
- "eslint": "^8.55.0",
153
- "next": "^16.1.4",
154
- "react": "^19.2.3",
155
- "tsup": "^8.0.1",
156
- "typescript": "^5.3.0",
157
- "vitest": "^1.0.0"
158
- },
159
- "engines": {
160
- "node": ">=16.0.0"
161
- }
2
+ "name": "sitepong",
3
+ "version": "0.2.1",
4
+ "description": "Official SitePong SDK for error tracking and monitoring",
5
+ "main": "dist/index.js",
6
+ "module": "dist/index.mjs",
7
+ "types": "dist/index.d.ts",
8
+ "exports": {
9
+ ".": {
10
+ "react-native": {
11
+ "types": "./dist/entries/rn.d.ts",
12
+ "default": "./dist/entries/rn.js"
13
+ },
14
+ "browser": {
15
+ "types": "./dist/entries/web.d.ts",
16
+ "import": "./dist/entries/web.mjs",
17
+ "require": "./dist/entries/web.js"
18
+ },
19
+ "types": "./dist/index.d.ts",
20
+ "import": "./dist/index.mjs",
21
+ "require": "./dist/index.js"
22
+ },
23
+ "./web": {
24
+ "types": "./dist/entries/web.d.ts",
25
+ "import": "./dist/entries/web.mjs",
26
+ "require": "./dist/entries/web.js"
27
+ },
28
+ "./node": {
29
+ "types": "./dist/entries/node.d.ts",
30
+ "import": "./dist/entries/node.mjs",
31
+ "require": "./dist/entries/node.js"
32
+ },
33
+ "./react": {
34
+ "types": "./dist/react/index.d.ts",
35
+ "import": "./dist/react/index.mjs",
36
+ "require": "./dist/react/index.js"
37
+ },
38
+ "./react-native": {
39
+ "types": "./dist/entries/rn.d.ts",
40
+ "default": "./dist/entries/rn.js"
41
+ },
42
+ "./server": {
43
+ "types": "./dist/server/index.d.ts",
44
+ "import": "./dist/server/index.mjs",
45
+ "require": "./dist/server/index.js"
46
+ },
47
+ "./express": {
48
+ "types": "./dist/express/index.d.ts",
49
+ "import": "./dist/express/index.mjs",
50
+ "require": "./dist/express/index.js"
51
+ },
52
+ "./nextjs": {
53
+ "types": "./dist/nextjs/index.d.ts",
54
+ "import": "./dist/nextjs/index.mjs",
55
+ "require": "./dist/nextjs/index.js"
56
+ }
57
+ },
58
+ "typesVersions": {
59
+ "*": {
60
+ "web": [
61
+ "./dist/entries/web.d.ts"
62
+ ],
63
+ "node": [
64
+ "./dist/entries/node.d.ts"
65
+ ],
66
+ "react": [
67
+ "./dist/react/index.d.ts"
68
+ ],
69
+ "react-native": [
70
+ "./dist/entries/rn.d.ts"
71
+ ],
72
+ "server": [
73
+ "./dist/server/index.d.ts"
74
+ ],
75
+ "express": [
76
+ "./dist/express/index.d.ts"
77
+ ],
78
+ "nextjs": [
79
+ "./dist/nextjs/index.d.ts"
80
+ ]
81
+ }
82
+ },
83
+ "files": [
84
+ "dist"
85
+ ],
86
+ "scripts": {
87
+ "build": "tsup",
88
+ "dev": "tsup --watch",
89
+ "lint": "eslint --cache src/**/*.{ts,tsx}",
90
+ "typecheck": "tsc -p tsconfig.web.json && tsc -p tsconfig.node.json",
91
+ "test": "vitest run",
92
+ "test:watch": "vitest",
93
+ "prepublishOnly": "npm run build"
94
+ },
95
+ "keywords": [
96
+ "error-tracking",
97
+ "monitoring",
98
+ "sitepong",
99
+ "error-reporting",
100
+ "crash-reporting"
101
+ ],
102
+ "author": "SitePong",
103
+ "license": "MIT",
104
+ "repository": {
105
+ "type": "git",
106
+ "url": "https://github.com/programmrz/sitepong.git",
107
+ "directory": "packages/sdk"
108
+ },
109
+ "homepage": "https://sitepong.com",
110
+ "bugs": {
111
+ "url": "https://github.com/programmrz/sitepong/issues"
112
+ },
113
+ "peerDependencies": {
114
+ "react-native": ">=0.70.0",
115
+ "@react-native-async-storage/async-storage": ">=1.0.0",
116
+ "@react-navigation/native": ">=6.0.0",
117
+ "expo-device": ">=5.0.0",
118
+ "expo-application": ">=5.0.0",
119
+ "@sitepong/device-id": ">=0.1.0",
120
+ "expo-sqlite": ">=14.0.0"
121
+ },
122
+ "peerDependenciesMeta": {
123
+ "react-native": {
124
+ "optional": true
125
+ },
126
+ "@react-native-async-storage/async-storage": {
127
+ "optional": true
128
+ },
129
+ "@react-navigation/native": {
130
+ "optional": true
131
+ },
132
+ "expo-device": {
133
+ "optional": true
134
+ },
135
+ "expo-application": {
136
+ "optional": true
137
+ },
138
+ "@sitepong/device-id": {
139
+ "optional": true
140
+ },
141
+ "expo-sqlite": {
142
+ "optional": true
143
+ }
144
+ },
145
+ "dependencies": {
146
+ "web-vitals": "^4.2.4"
147
+ },
148
+ "devDependencies": {
149
+ "@types/express": "^5.0.6",
150
+ "@types/node": "^20.10.0",
151
+ "@types/react": "^19.2.9",
152
+ "@typescript-eslint/eslint-plugin": "^6.13.0",
153
+ "@typescript-eslint/parser": "^6.13.0",
154
+ "eslint": "^8.55.0",
155
+ "next": "^16.1.4",
156
+ "react": "^19.2.3",
157
+ "tsup": "^8.0.1",
158
+ "typescript": "^5.3.0",
159
+ "vitest": "^1.0.0"
160
+ },
161
+ "engines": {
162
+ "node": ">=16.0.0"
163
+ }
162
164
  }