posthog-js 1.438.8 → 1.438.9
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/dist/all-external-dependencies.js +1 -1
- package/dist/array.full.es5.js +1 -1
- package/dist/array.full.js +1 -1
- package/dist/array.full.no-external.js +1 -1
- package/dist/array.js +1 -1
- package/dist/array.no-external.js +1 -1
- package/dist/customizations.full.js +1 -1
- package/dist/customizations.full.js.map +1 -1
- package/dist/customizations.js +1 -1
- package/dist/customizations.js.map +1 -1
- package/dist/default-extensions.js +1 -1
- package/dist/extension-bundles.js +1 -1
- package/dist/lazy-recorder.js +1 -1
- package/dist/main.js +1 -1
- package/dist/module.full.cjs +1 -1
- package/dist/module.full.js +1 -1
- package/dist/module.full.no-external.cjs +1 -1
- package/dist/module.full.no-external.js +1 -1
- package/dist/module.js +1 -1
- package/dist/module.mjs +1 -1
- package/dist/module.no-external.cjs +1 -1
- package/dist/module.no-external.js +1 -1
- package/dist/module.slim.js +1 -1
- package/dist/module.slim.no-external.js +1 -1
- package/dist/posthog-recorder.js +1 -1
- package/lib/package.json +1 -1
- package/lib/src/customizations/before-send.js +0 -9
- package/lib/src/customizations/before-send.js.map +1 -1
- package/package.json +6 -6
package/lib/package.json
CHANGED
|
@@ -30,9 +30,6 @@ var logger_1 = require("@posthog/browser-common/utils/logger");
|
|
|
30
30
|
*/
|
|
31
31
|
function sampleByDistinctId(percent) {
|
|
32
32
|
return function (captureResult) {
|
|
33
|
-
if (!captureResult) {
|
|
34
|
-
return null;
|
|
35
|
-
}
|
|
36
33
|
return (0, sampling_1.sampleOnProperty)(captureResult.properties.distinct_id, percent)
|
|
37
34
|
? __assign(__assign({}, captureResult), { properties: __assign(__assign({}, captureResult.properties), { $sample_type: ['sampleByDistinctId'], $sample_threshold: percent }) }) : null;
|
|
38
35
|
};
|
|
@@ -49,9 +46,6 @@ function sampleByDistinctId(percent) {
|
|
|
49
46
|
*/
|
|
50
47
|
function sampleBySessionId(percent) {
|
|
51
48
|
return function (captureResult) {
|
|
52
|
-
if (!captureResult) {
|
|
53
|
-
return null;
|
|
54
|
-
}
|
|
55
49
|
return (0, sampling_1.sampleOnProperty)(captureResult.properties.$session_id, percent)
|
|
56
50
|
? __assign(__assign({}, captureResult), { properties: __assign(__assign({}, captureResult.properties), { $sample_type: (0, sampling_1.appendArray)(captureResult.properties.$sample_type, 'sampleBySessionId'), $sample_threshold: (0, sampling_1.updateThreshold)(captureResult.properties.$sample_threshold, percent) }) }) : null;
|
|
57
51
|
};
|
|
@@ -67,9 +61,6 @@ function sampleBySessionId(percent) {
|
|
|
67
61
|
function sampleByEvent(eventNames, percent) {
|
|
68
62
|
return function (captureResult) {
|
|
69
63
|
var _a, _b, _c;
|
|
70
|
-
if (!captureResult) {
|
|
71
|
-
return null;
|
|
72
|
-
}
|
|
73
64
|
if (!(0, core_1.includes)(eventNames, captureResult.event)) {
|
|
74
65
|
return captureResult;
|
|
75
66
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"before-send.js","sourceRoot":"","sources":["../../../src/customizations/before-send.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAeA,
|
|
1
|
+
{"version":3,"file":"before-send.js","sourceRoot":"","sources":["../../../src/customizations/before-send.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAeA,gDAaC;AAYD,8CAaC;AAUD,sCAmBC;AAjFD,sCAAsD;AACtD,mDAAuF;AACvF,+DAA6D;AAE7D;;;;;;;;;GASG;AACH,SAAgB,kBAAkB,CAAC,OAAe;IAC9C,OAAO,UAAC,aAA4B;QAChC,OAAO,IAAA,2BAAgB,EAAC,aAAa,CAAC,UAAU,CAAC,WAAW,EAAE,OAAO,CAAC;YAClE,CAAC,uBACQ,aAAa,KAChB,UAAU,wBACH,aAAa,CAAC,UAAU,KAC3B,YAAY,EAAE,CAAC,oBAAoB,CAAC,EACpC,iBAAiB,EAAE,OAAO,OAGpC,CAAC,CAAC,IAAI,CAAA;IACd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I,CAAA;IACd,CAAC,CAAA;AACL,CAAC;AAEM,IAAM,sBAAsB,GAAiB,UAAC,MAAM;IACvD,sCAAsC;IACtC,OAAO,CAAC,GAAG,CAAC,wBAAwB,EAAE,MAAM,CAAC,CAAA;IAC7C,OAAO,IAAI,CAAA;AACf,CAAC,CAAA;AAJY,QAAA,sBAAsB,0BAIlC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "posthog-js",
|
|
3
|
-
"version": "1.438.
|
|
3
|
+
"version": "1.438.9",
|
|
4
4
|
"bugs": {
|
|
5
5
|
"url": "https://github.com/PostHog/posthog-js/issues"
|
|
6
6
|
},
|
|
@@ -39,9 +39,9 @@
|
|
|
39
39
|
"query-selector-shadow-dom": "^1.0.1",
|
|
40
40
|
"web-vitals": "^6.2.1",
|
|
41
41
|
"web-vitals-soft-navs": "npm:web-vitals@6.2.1",
|
|
42
|
+
"@posthog/core": "^1.58.1",
|
|
42
43
|
"@posthog/browser-common": "^0.9.4",
|
|
43
|
-
"@posthog/
|
|
44
|
-
"@posthog/types": "^1.415.2"
|
|
44
|
+
"@posthog/types": "^1.415.3"
|
|
45
45
|
},
|
|
46
46
|
"peerDependencies": {
|
|
47
47
|
"@types/react": ">=16.8.0",
|
|
@@ -105,13 +105,13 @@
|
|
|
105
105
|
"typescript": "5.8.2",
|
|
106
106
|
"yargs": "^17.7.2",
|
|
107
107
|
"vitest": "^1.6.1",
|
|
108
|
+
"@posthog-tooling/rollup-utils": "1.1.1",
|
|
108
109
|
"@posthog-tooling/sdk-mock-server": "0.0.0",
|
|
109
110
|
"@posthog/rrweb": "0.1.8",
|
|
110
|
-
"@posthog-tooling/rollup-utils": "1.1.1",
|
|
111
111
|
"@posthog/rrweb-plugin-console-record": "1.0.8",
|
|
112
|
+
"@posthog/rrweb-record": "0.0.88",
|
|
112
113
|
"@posthog/rrweb-types": "0.0.62",
|
|
113
|
-
"@posthog/rrweb-utils": "0.0.65"
|
|
114
|
-
"@posthog/rrweb-record": "0.0.88"
|
|
114
|
+
"@posthog/rrweb-utils": "0.0.65"
|
|
115
115
|
},
|
|
116
116
|
"browserslist": [
|
|
117
117
|
"> 0.5%, last 2 versions, Firefox ESR, not dead"
|