@contractspec/lib.analytics 3.6.0 → 3.7.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/package.json +32 -116
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@contractspec/lib.analytics",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.7.1",
|
|
4
4
|
"description": "Product analytics and growth metrics",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"contractspec",
|
|
@@ -32,169 +32,127 @@
|
|
|
32
32
|
"typecheck": "tsc --noEmit"
|
|
33
33
|
},
|
|
34
34
|
"dependencies": {
|
|
35
|
-
"@contractspec/lib.contracts-spec": "3.
|
|
36
|
-
"@contractspec/lib.contracts-integrations": "3.
|
|
37
|
-
"@contractspec/lib.lifecycle": "3.
|
|
35
|
+
"@contractspec/lib.contracts-spec": "3.7.1",
|
|
36
|
+
"@contractspec/lib.contracts-integrations": "3.7.1",
|
|
37
|
+
"@contractspec/lib.lifecycle": "3.7.1",
|
|
38
38
|
"dayjs": "^1.11.13"
|
|
39
39
|
},
|
|
40
40
|
"devDependencies": {
|
|
41
|
-
"@contractspec/tool.typescript": "3.
|
|
41
|
+
"@contractspec/tool.typescript": "3.7.1",
|
|
42
42
|
"typescript": "^5.9.3",
|
|
43
|
-
"@contractspec/tool.bun": "3.
|
|
43
|
+
"@contractspec/tool.bun": "3.7.1"
|
|
44
44
|
},
|
|
45
45
|
"exports": {
|
|
46
46
|
".": {
|
|
47
47
|
"types": "./dist/index.d.ts",
|
|
48
|
+
"browser": "./dist/browser/index.js",
|
|
48
49
|
"bun": "./dist/index.js",
|
|
49
50
|
"node": "./dist/node/index.js",
|
|
50
|
-
"browser": "./dist/browser/index.js",
|
|
51
51
|
"default": "./dist/index.js"
|
|
52
52
|
},
|
|
53
53
|
"./churn": {
|
|
54
54
|
"types": "./dist/churn/index.d.ts",
|
|
55
|
-
"bun": "./dist/churn/index.js",
|
|
56
|
-
"node": "./dist/node/churn/index.js",
|
|
57
55
|
"browser": "./dist/browser/churn/index.js",
|
|
58
|
-
"default": "./dist/churn/index.js"
|
|
59
|
-
},
|
|
60
|
-
"./churn/index": {
|
|
61
|
-
"types": "./dist/churn/index.d.ts",
|
|
62
56
|
"bun": "./dist/churn/index.js",
|
|
63
57
|
"node": "./dist/node/churn/index.js",
|
|
64
|
-
"browser": "./dist/browser/churn/index.js",
|
|
65
58
|
"default": "./dist/churn/index.js"
|
|
66
59
|
},
|
|
67
60
|
"./churn/predictor": {
|
|
68
61
|
"types": "./dist/churn/predictor.d.ts",
|
|
62
|
+
"browser": "./dist/browser/churn/predictor.js",
|
|
69
63
|
"bun": "./dist/churn/predictor.js",
|
|
70
64
|
"node": "./dist/node/churn/predictor.js",
|
|
71
|
-
"browser": "./dist/browser/churn/predictor.js",
|
|
72
65
|
"default": "./dist/churn/predictor.js"
|
|
73
66
|
},
|
|
74
67
|
"./cohort": {
|
|
75
68
|
"types": "./dist/cohort/index.d.ts",
|
|
76
|
-
"bun": "./dist/cohort/index.js",
|
|
77
|
-
"node": "./dist/node/cohort/index.js",
|
|
78
69
|
"browser": "./dist/browser/cohort/index.js",
|
|
79
|
-
"default": "./dist/cohort/index.js"
|
|
80
|
-
},
|
|
81
|
-
"./cohort/index": {
|
|
82
|
-
"types": "./dist/cohort/index.d.ts",
|
|
83
70
|
"bun": "./dist/cohort/index.js",
|
|
84
71
|
"node": "./dist/node/cohort/index.js",
|
|
85
|
-
"browser": "./dist/browser/cohort/index.js",
|
|
86
72
|
"default": "./dist/cohort/index.js"
|
|
87
73
|
},
|
|
88
74
|
"./cohort/tracker": {
|
|
89
75
|
"types": "./dist/cohort/tracker.d.ts",
|
|
76
|
+
"browser": "./dist/browser/cohort/tracker.js",
|
|
90
77
|
"bun": "./dist/cohort/tracker.js",
|
|
91
78
|
"node": "./dist/node/cohort/tracker.js",
|
|
92
|
-
"browser": "./dist/browser/cohort/tracker.js",
|
|
93
79
|
"default": "./dist/cohort/tracker.js"
|
|
94
80
|
},
|
|
95
81
|
"./funnel": {
|
|
96
82
|
"types": "./dist/funnel/index.d.ts",
|
|
83
|
+
"browser": "./dist/browser/funnel/index.js",
|
|
97
84
|
"bun": "./dist/funnel/index.js",
|
|
98
85
|
"node": "./dist/node/funnel/index.js",
|
|
99
|
-
"browser": "./dist/browser/funnel/index.js",
|
|
100
86
|
"default": "./dist/funnel/index.js"
|
|
101
87
|
},
|
|
102
88
|
"./funnel/analyzer": {
|
|
103
89
|
"types": "./dist/funnel/analyzer.d.ts",
|
|
90
|
+
"browser": "./dist/browser/funnel/analyzer.js",
|
|
104
91
|
"bun": "./dist/funnel/analyzer.js",
|
|
105
92
|
"node": "./dist/node/funnel/analyzer.js",
|
|
106
|
-
"browser": "./dist/browser/funnel/analyzer.js",
|
|
107
93
|
"default": "./dist/funnel/analyzer.js"
|
|
108
94
|
},
|
|
109
|
-
"./funnel/index": {
|
|
110
|
-
"types": "./dist/funnel/index.d.ts",
|
|
111
|
-
"bun": "./dist/funnel/index.js",
|
|
112
|
-
"node": "./dist/node/funnel/index.js",
|
|
113
|
-
"browser": "./dist/browser/funnel/index.js",
|
|
114
|
-
"default": "./dist/funnel/index.js"
|
|
115
|
-
},
|
|
116
95
|
"./growth": {
|
|
117
96
|
"types": "./dist/growth/index.d.ts",
|
|
97
|
+
"browser": "./dist/browser/growth/index.js",
|
|
118
98
|
"bun": "./dist/growth/index.js",
|
|
119
99
|
"node": "./dist/node/growth/index.js",
|
|
120
|
-
"browser": "./dist/browser/growth/index.js",
|
|
121
100
|
"default": "./dist/growth/index.js"
|
|
122
101
|
},
|
|
123
102
|
"./growth/hypothesis-generator": {
|
|
124
103
|
"types": "./dist/growth/hypothesis-generator.d.ts",
|
|
104
|
+
"browser": "./dist/browser/growth/hypothesis-generator.js",
|
|
125
105
|
"bun": "./dist/growth/hypothesis-generator.js",
|
|
126
106
|
"node": "./dist/node/growth/hypothesis-generator.js",
|
|
127
|
-
"browser": "./dist/browser/growth/hypothesis-generator.js",
|
|
128
107
|
"default": "./dist/growth/hypothesis-generator.js"
|
|
129
108
|
},
|
|
130
|
-
"./growth/index": {
|
|
131
|
-
"types": "./dist/growth/index.d.ts",
|
|
132
|
-
"bun": "./dist/growth/index.js",
|
|
133
|
-
"node": "./dist/node/growth/index.js",
|
|
134
|
-
"browser": "./dist/browser/growth/index.js",
|
|
135
|
-
"default": "./dist/growth/index.js"
|
|
136
|
-
},
|
|
137
109
|
"./lifecycle": {
|
|
138
110
|
"types": "./dist/lifecycle/index.d.ts",
|
|
139
|
-
"bun": "./dist/lifecycle/index.js",
|
|
140
|
-
"node": "./dist/node/lifecycle/index.js",
|
|
141
111
|
"browser": "./dist/browser/lifecycle/index.js",
|
|
142
|
-
"default": "./dist/lifecycle/index.js"
|
|
143
|
-
},
|
|
144
|
-
"./lifecycle/index": {
|
|
145
|
-
"types": "./dist/lifecycle/index.d.ts",
|
|
146
112
|
"bun": "./dist/lifecycle/index.js",
|
|
147
113
|
"node": "./dist/node/lifecycle/index.js",
|
|
148
|
-
"browser": "./dist/browser/lifecycle/index.js",
|
|
149
114
|
"default": "./dist/lifecycle/index.js"
|
|
150
115
|
},
|
|
151
116
|
"./lifecycle/metric-collectors": {
|
|
152
117
|
"types": "./dist/lifecycle/metric-collectors.d.ts",
|
|
118
|
+
"browser": "./dist/browser/lifecycle/metric-collectors.js",
|
|
153
119
|
"bun": "./dist/lifecycle/metric-collectors.js",
|
|
154
120
|
"node": "./dist/node/lifecycle/metric-collectors.js",
|
|
155
|
-
"browser": "./dist/browser/lifecycle/metric-collectors.js",
|
|
156
121
|
"default": "./dist/lifecycle/metric-collectors.js"
|
|
157
122
|
},
|
|
158
123
|
"./lifecycle/posthog-bridge": {
|
|
159
124
|
"types": "./dist/lifecycle/posthog-bridge.d.ts",
|
|
125
|
+
"browser": "./dist/browser/lifecycle/posthog-bridge.js",
|
|
160
126
|
"bun": "./dist/lifecycle/posthog-bridge.js",
|
|
161
127
|
"node": "./dist/node/lifecycle/posthog-bridge.js",
|
|
162
|
-
"browser": "./dist/browser/lifecycle/posthog-bridge.js",
|
|
163
128
|
"default": "./dist/lifecycle/posthog-bridge.js"
|
|
164
129
|
},
|
|
165
130
|
"./lifecycle/posthog-metric-source": {
|
|
166
131
|
"types": "./dist/lifecycle/posthog-metric-source.d.ts",
|
|
132
|
+
"browser": "./dist/browser/lifecycle/posthog-metric-source.js",
|
|
167
133
|
"bun": "./dist/lifecycle/posthog-metric-source.js",
|
|
168
134
|
"node": "./dist/node/lifecycle/posthog-metric-source.js",
|
|
169
|
-
"browser": "./dist/browser/lifecycle/posthog-metric-source.js",
|
|
170
135
|
"default": "./dist/lifecycle/posthog-metric-source.js"
|
|
171
136
|
},
|
|
172
137
|
"./posthog": {
|
|
173
138
|
"types": "./dist/posthog/index.d.ts",
|
|
139
|
+
"browser": "./dist/browser/posthog/index.js",
|
|
174
140
|
"bun": "./dist/posthog/index.js",
|
|
175
141
|
"node": "./dist/node/posthog/index.js",
|
|
176
|
-
"browser": "./dist/browser/posthog/index.js",
|
|
177
142
|
"default": "./dist/posthog/index.js"
|
|
178
143
|
},
|
|
179
144
|
"./posthog/event-source": {
|
|
180
145
|
"types": "./dist/posthog/event-source.d.ts",
|
|
146
|
+
"browser": "./dist/browser/posthog/event-source.js",
|
|
181
147
|
"bun": "./dist/posthog/event-source.js",
|
|
182
148
|
"node": "./dist/node/posthog/event-source.js",
|
|
183
|
-
"browser": "./dist/browser/posthog/event-source.js",
|
|
184
149
|
"default": "./dist/posthog/event-source.js"
|
|
185
150
|
},
|
|
186
|
-
"./posthog/index": {
|
|
187
|
-
"types": "./dist/posthog/index.d.ts",
|
|
188
|
-
"bun": "./dist/posthog/index.js",
|
|
189
|
-
"node": "./dist/node/posthog/index.js",
|
|
190
|
-
"browser": "./dist/browser/posthog/index.js",
|
|
191
|
-
"default": "./dist/posthog/index.js"
|
|
192
|
-
},
|
|
193
151
|
"./types": {
|
|
194
152
|
"types": "./dist/types.d.ts",
|
|
153
|
+
"browser": "./dist/browser/types.js",
|
|
195
154
|
"bun": "./dist/types.js",
|
|
196
155
|
"node": "./dist/node/types.js",
|
|
197
|
-
"browser": "./dist/browser/types.js",
|
|
198
156
|
"default": "./dist/types.js"
|
|
199
157
|
}
|
|
200
158
|
},
|
|
@@ -203,156 +161,114 @@
|
|
|
203
161
|
"exports": {
|
|
204
162
|
".": {
|
|
205
163
|
"types": "./dist/index.d.ts",
|
|
164
|
+
"browser": "./dist/browser/index.js",
|
|
206
165
|
"bun": "./dist/index.js",
|
|
207
166
|
"node": "./dist/node/index.js",
|
|
208
|
-
"browser": "./dist/browser/index.js",
|
|
209
167
|
"default": "./dist/index.js"
|
|
210
168
|
},
|
|
211
169
|
"./churn": {
|
|
212
170
|
"types": "./dist/churn/index.d.ts",
|
|
213
|
-
"bun": "./dist/churn/index.js",
|
|
214
|
-
"node": "./dist/node/churn/index.js",
|
|
215
171
|
"browser": "./dist/browser/churn/index.js",
|
|
216
|
-
"default": "./dist/churn/index.js"
|
|
217
|
-
},
|
|
218
|
-
"./churn/index": {
|
|
219
|
-
"types": "./dist/churn/index.d.ts",
|
|
220
172
|
"bun": "./dist/churn/index.js",
|
|
221
173
|
"node": "./dist/node/churn/index.js",
|
|
222
|
-
"browser": "./dist/browser/churn/index.js",
|
|
223
174
|
"default": "./dist/churn/index.js"
|
|
224
175
|
},
|
|
225
176
|
"./churn/predictor": {
|
|
226
177
|
"types": "./dist/churn/predictor.d.ts",
|
|
178
|
+
"browser": "./dist/browser/churn/predictor.js",
|
|
227
179
|
"bun": "./dist/churn/predictor.js",
|
|
228
180
|
"node": "./dist/node/churn/predictor.js",
|
|
229
|
-
"browser": "./dist/browser/churn/predictor.js",
|
|
230
181
|
"default": "./dist/churn/predictor.js"
|
|
231
182
|
},
|
|
232
183
|
"./cohort": {
|
|
233
184
|
"types": "./dist/cohort/index.d.ts",
|
|
234
|
-
"bun": "./dist/cohort/index.js",
|
|
235
|
-
"node": "./dist/node/cohort/index.js",
|
|
236
185
|
"browser": "./dist/browser/cohort/index.js",
|
|
237
|
-
"default": "./dist/cohort/index.js"
|
|
238
|
-
},
|
|
239
|
-
"./cohort/index": {
|
|
240
|
-
"types": "./dist/cohort/index.d.ts",
|
|
241
186
|
"bun": "./dist/cohort/index.js",
|
|
242
187
|
"node": "./dist/node/cohort/index.js",
|
|
243
|
-
"browser": "./dist/browser/cohort/index.js",
|
|
244
188
|
"default": "./dist/cohort/index.js"
|
|
245
189
|
},
|
|
246
190
|
"./cohort/tracker": {
|
|
247
191
|
"types": "./dist/cohort/tracker.d.ts",
|
|
192
|
+
"browser": "./dist/browser/cohort/tracker.js",
|
|
248
193
|
"bun": "./dist/cohort/tracker.js",
|
|
249
194
|
"node": "./dist/node/cohort/tracker.js",
|
|
250
|
-
"browser": "./dist/browser/cohort/tracker.js",
|
|
251
195
|
"default": "./dist/cohort/tracker.js"
|
|
252
196
|
},
|
|
253
197
|
"./funnel": {
|
|
254
198
|
"types": "./dist/funnel/index.d.ts",
|
|
199
|
+
"browser": "./dist/browser/funnel/index.js",
|
|
255
200
|
"bun": "./dist/funnel/index.js",
|
|
256
201
|
"node": "./dist/node/funnel/index.js",
|
|
257
|
-
"browser": "./dist/browser/funnel/index.js",
|
|
258
202
|
"default": "./dist/funnel/index.js"
|
|
259
203
|
},
|
|
260
204
|
"./funnel/analyzer": {
|
|
261
205
|
"types": "./dist/funnel/analyzer.d.ts",
|
|
206
|
+
"browser": "./dist/browser/funnel/analyzer.js",
|
|
262
207
|
"bun": "./dist/funnel/analyzer.js",
|
|
263
208
|
"node": "./dist/node/funnel/analyzer.js",
|
|
264
|
-
"browser": "./dist/browser/funnel/analyzer.js",
|
|
265
209
|
"default": "./dist/funnel/analyzer.js"
|
|
266
210
|
},
|
|
267
|
-
"./funnel/index": {
|
|
268
|
-
"types": "./dist/funnel/index.d.ts",
|
|
269
|
-
"bun": "./dist/funnel/index.js",
|
|
270
|
-
"node": "./dist/node/funnel/index.js",
|
|
271
|
-
"browser": "./dist/browser/funnel/index.js",
|
|
272
|
-
"default": "./dist/funnel/index.js"
|
|
273
|
-
},
|
|
274
211
|
"./growth": {
|
|
275
212
|
"types": "./dist/growth/index.d.ts",
|
|
213
|
+
"browser": "./dist/browser/growth/index.js",
|
|
276
214
|
"bun": "./dist/growth/index.js",
|
|
277
215
|
"node": "./dist/node/growth/index.js",
|
|
278
|
-
"browser": "./dist/browser/growth/index.js",
|
|
279
216
|
"default": "./dist/growth/index.js"
|
|
280
217
|
},
|
|
281
218
|
"./growth/hypothesis-generator": {
|
|
282
219
|
"types": "./dist/growth/hypothesis-generator.d.ts",
|
|
220
|
+
"browser": "./dist/browser/growth/hypothesis-generator.js",
|
|
283
221
|
"bun": "./dist/growth/hypothesis-generator.js",
|
|
284
222
|
"node": "./dist/node/growth/hypothesis-generator.js",
|
|
285
|
-
"browser": "./dist/browser/growth/hypothesis-generator.js",
|
|
286
223
|
"default": "./dist/growth/hypothesis-generator.js"
|
|
287
224
|
},
|
|
288
|
-
"./growth/index": {
|
|
289
|
-
"types": "./dist/growth/index.d.ts",
|
|
290
|
-
"bun": "./dist/growth/index.js",
|
|
291
|
-
"node": "./dist/node/growth/index.js",
|
|
292
|
-
"browser": "./dist/browser/growth/index.js",
|
|
293
|
-
"default": "./dist/growth/index.js"
|
|
294
|
-
},
|
|
295
225
|
"./lifecycle": {
|
|
296
226
|
"types": "./dist/lifecycle/index.d.ts",
|
|
297
|
-
"bun": "./dist/lifecycle/index.js",
|
|
298
|
-
"node": "./dist/node/lifecycle/index.js",
|
|
299
227
|
"browser": "./dist/browser/lifecycle/index.js",
|
|
300
|
-
"default": "./dist/lifecycle/index.js"
|
|
301
|
-
},
|
|
302
|
-
"./lifecycle/index": {
|
|
303
|
-
"types": "./dist/lifecycle/index.d.ts",
|
|
304
228
|
"bun": "./dist/lifecycle/index.js",
|
|
305
229
|
"node": "./dist/node/lifecycle/index.js",
|
|
306
|
-
"browser": "./dist/browser/lifecycle/index.js",
|
|
307
230
|
"default": "./dist/lifecycle/index.js"
|
|
308
231
|
},
|
|
309
232
|
"./lifecycle/metric-collectors": {
|
|
310
233
|
"types": "./dist/lifecycle/metric-collectors.d.ts",
|
|
234
|
+
"browser": "./dist/browser/lifecycle/metric-collectors.js",
|
|
311
235
|
"bun": "./dist/lifecycle/metric-collectors.js",
|
|
312
236
|
"node": "./dist/node/lifecycle/metric-collectors.js",
|
|
313
|
-
"browser": "./dist/browser/lifecycle/metric-collectors.js",
|
|
314
237
|
"default": "./dist/lifecycle/metric-collectors.js"
|
|
315
238
|
},
|
|
316
239
|
"./lifecycle/posthog-bridge": {
|
|
317
240
|
"types": "./dist/lifecycle/posthog-bridge.d.ts",
|
|
241
|
+
"browser": "./dist/browser/lifecycle/posthog-bridge.js",
|
|
318
242
|
"bun": "./dist/lifecycle/posthog-bridge.js",
|
|
319
243
|
"node": "./dist/node/lifecycle/posthog-bridge.js",
|
|
320
|
-
"browser": "./dist/browser/lifecycle/posthog-bridge.js",
|
|
321
244
|
"default": "./dist/lifecycle/posthog-bridge.js"
|
|
322
245
|
},
|
|
323
246
|
"./lifecycle/posthog-metric-source": {
|
|
324
247
|
"types": "./dist/lifecycle/posthog-metric-source.d.ts",
|
|
248
|
+
"browser": "./dist/browser/lifecycle/posthog-metric-source.js",
|
|
325
249
|
"bun": "./dist/lifecycle/posthog-metric-source.js",
|
|
326
250
|
"node": "./dist/node/lifecycle/posthog-metric-source.js",
|
|
327
|
-
"browser": "./dist/browser/lifecycle/posthog-metric-source.js",
|
|
328
251
|
"default": "./dist/lifecycle/posthog-metric-source.js"
|
|
329
252
|
},
|
|
330
253
|
"./posthog": {
|
|
331
254
|
"types": "./dist/posthog/index.d.ts",
|
|
255
|
+
"browser": "./dist/browser/posthog/index.js",
|
|
332
256
|
"bun": "./dist/posthog/index.js",
|
|
333
257
|
"node": "./dist/node/posthog/index.js",
|
|
334
|
-
"browser": "./dist/browser/posthog/index.js",
|
|
335
258
|
"default": "./dist/posthog/index.js"
|
|
336
259
|
},
|
|
337
260
|
"./posthog/event-source": {
|
|
338
261
|
"types": "./dist/posthog/event-source.d.ts",
|
|
262
|
+
"browser": "./dist/browser/posthog/event-source.js",
|
|
339
263
|
"bun": "./dist/posthog/event-source.js",
|
|
340
264
|
"node": "./dist/node/posthog/event-source.js",
|
|
341
|
-
"browser": "./dist/browser/posthog/event-source.js",
|
|
342
265
|
"default": "./dist/posthog/event-source.js"
|
|
343
266
|
},
|
|
344
|
-
"./posthog/index": {
|
|
345
|
-
"types": "./dist/posthog/index.d.ts",
|
|
346
|
-
"bun": "./dist/posthog/index.js",
|
|
347
|
-
"node": "./dist/node/posthog/index.js",
|
|
348
|
-
"browser": "./dist/browser/posthog/index.js",
|
|
349
|
-
"default": "./dist/posthog/index.js"
|
|
350
|
-
},
|
|
351
267
|
"./types": {
|
|
352
268
|
"types": "./dist/types.d.ts",
|
|
269
|
+
"browser": "./dist/browser/types.js",
|
|
353
270
|
"bun": "./dist/types.js",
|
|
354
271
|
"node": "./dist/node/types.js",
|
|
355
|
-
"browser": "./dist/browser/types.js",
|
|
356
272
|
"default": "./dist/types.js"
|
|
357
273
|
}
|
|
358
274
|
},
|