posthog-js 1.455.0 → 1.455.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/dist/all-external-dependencies.js +1 -1
- package/dist/all-external-dependencies.js.map +1 -1
- package/dist/array.full.es5.js +1 -1
- package/dist/array.full.es5.js.map +1 -1
- package/dist/array.full.js +1 -1
- package/dist/array.full.js.map +1 -1
- package/dist/array.full.no-external.js +1 -1
- package/dist/array.full.no-external.js.map +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.js +1 -1
- package/dist/default-extensions.js +1 -1
- package/dist/exception-autocapture.d.ts +4 -3
- package/dist/exception-autocapture.js +1 -1
- package/dist/exception-autocapture.js.map +1 -1
- package/dist/extension-bundles.js +1 -1
- package/dist/external-scripts-loader.js +1 -1
- package/dist/integrity.json +28 -28
- 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.js.map +1 -1
- package/dist/module.full.no-external.cjs +1 -1
- package/dist/module.full.no-external.js +1 -1
- package/dist/module.full.no-external.js.map +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/dist/src/entrypoints/exception-autocapture.d.ts +4 -3
- package/dist/surveys-preview.js +1 -1
- package/dist/surveys.js +1 -1
- package/lib/package.json +1 -1
- package/lib/src/entrypoints/exception-autocapture.d.ts +4 -3
- package/lib/src/entrypoints/exception-autocapture.js +92 -42
- package/lib/src/entrypoints/exception-autocapture.js.map +1 -1
- package/package.json +4 -4
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
!function(){const t="u">typeof window?window:void 0,e="u">typeof globalThis?globalThis:t,s=null==e?void 0:e.document;null!=e&&e.XMLHttpRequest&&new e.XMLHttpRequest;const i="undefined"!=typeof globalThis?globalThis:t;i&&"undefined"==typeof self&&(i.self=i),i&&"undefined"==typeof File&&(i.File=function(){});const r=null!=t?t:{},n=Object.prototype.toString,o=(t,{debugEnabled:e}={})=>{const s={N(s,...i){let r;try{r=typeof window>"u"?void 0:window}catch(t){return}r&&(r.POSTHOG_DEBUG||e)&&void 0!==r.console&&r.console&&("__rrweb_original__"in r.console[s]?r.console[s].__rrweb_original__:r.console[s])(t,...i)},debug(...t){s.N("debug",...t)},info(...t){s.N("log",...t)},warn(...t){s.N("warn",...t)},error(...t){s.N("error",...t)},critical(...e){console.error(t,...e)},uninitializedWarning(t){s.error(`You must initialize PostHog before calling ${t}`)},createLogger:(e,s)=>o(`${t} ${e}`,s)};return s},a={"conversations.js":"sha384-8fPy3IASBzA8AWqnw4GisFo+FugHLE1xLpCaDmKKa+sdTroMj7fsaSQxeJdciOoP","crisp-chat-integration.js":"sha384-qVSPPiM5PHJlVNpiLPyETnf0VXOGevtCqjm2K8EmWnKpLQnY/TMu+iLJ8wWLW8iA","dead-clicks-autocapture.js":"sha384-MYefNCyD6/XLhTOKa8DavuGsgGJvAJO/X4iqoFkAqgGk7H9qgcIoysU9F2qVGMk1","exception-autocapture.js":"sha384-
|
|
1
|
+
!function(){const t="u">typeof window?window:void 0,e="u">typeof globalThis?globalThis:t,s=null==e?void 0:e.document;null!=e&&e.XMLHttpRequest&&new e.XMLHttpRequest;const i="undefined"!=typeof globalThis?globalThis:t;i&&"undefined"==typeof self&&(i.self=i),i&&"undefined"==typeof File&&(i.File=function(){});const r=null!=t?t:{},n=Object.prototype.toString,o=(t,{debugEnabled:e}={})=>{const s={N(s,...i){let r;try{r=typeof window>"u"?void 0:window}catch(t){return}r&&(r.POSTHOG_DEBUG||e)&&void 0!==r.console&&r.console&&("__rrweb_original__"in r.console[s]?r.console[s].__rrweb_original__:r.console[s])(t,...i)},debug(...t){s.N("debug",...t)},info(...t){s.N("log",...t)},warn(...t){s.N("warn",...t)},error(...t){s.N("error",...t)},critical(...e){console.error(t,...e)},uninitializedWarning(t){s.error(`You must initialize PostHog before calling ${t}`)},createLogger:(e,s)=>o(`${t} ${e}`,s)};return s},a={"conversations.js":"sha384-8fPy3IASBzA8AWqnw4GisFo+FugHLE1xLpCaDmKKa+sdTroMj7fsaSQxeJdciOoP","crisp-chat-integration.js":"sha384-qVSPPiM5PHJlVNpiLPyETnf0VXOGevtCqjm2K8EmWnKpLQnY/TMu+iLJ8wWLW8iA","dead-clicks-autocapture.js":"sha384-MYefNCyD6/XLhTOKa8DavuGsgGJvAJO/X4iqoFkAqgGk7H9qgcIoysU9F2qVGMk1","exception-autocapture.js":"sha384-miJNvXEqyiBQpQrLVO7Yfby3J/doNarkjZX+a1eOKpGkF23r0WwtkxSSPyz/ngDx","intercom-integration.js":"sha384-gWEoUxf+HEPSZ4GZthxep/3LlEectgXxzj8uWkW7dnvRRV6AKkHXtZEmcb0OqOvn","lazy-recorder.js":"sha384-Ge58ONxarh9k88Xh0cuyu9EsN4wEhFQkA+e2lQbzD6COVKkGG/s1EeLkGhaXCZf1","logs.js":"sha384-HGXa+FeVH5JwY3bwubM1EJrP+LG95rh6oU9TbtzHZLs1ECpl5mCXv5FcYF8SgNjk","product-tours.js":"sha384-TlWlQfnDBI1yB3+CuhSTePe38C4bKqQwtK1m0/T6kk/EAsKbWvIya0UeuVkDmSV7","recorder.js":"sha384-t08QiFh+RHB6Jdz9IrPZ5yxf3Dzwdz92Mz0l8Ga/nox8o5+oO0I0gosm16hHDlCF","surveys.js":"sha384-voLXJFCjNwKYjWdB/DrH+XOQ4hYyH7Vi7xz/L+k8Z3WqCkKR6AnlC/ypiOR3UVIT","tracing-headers.js":"sha384-Zb7V2jbC5lJGl7yFzBe8HpCvO3xgJln/lEcqY5xAQ9Z1LLCnbi2glbsfvRPRIYcD","web-vitals-soft-navs.js":"sha384-recN8i2tLQWaeNtCAnErAmFlgg4+33FAHvs8l84aE+SHr6oqLAPwhFVZdP4SfKT6","web-vitals-with-attribution-soft-navs.js":"sha384-f9L4YQQre9lKeUzyvy2Kt4dHLIXECipeMmbr7SPQAOqLi+ZCHbh1I1g/OwsK/zrp","web-vitals-with-attribution.js":"sha384-QVSLDmgzPE1K6g6gBB8QKx/YDQbI2ot0gAcajFIAkGf34SWA3oe6m+WzcmbzpVjD","web-vitals.js":"sha384-wNvgQ2MIesvfVwpUOblaIO/5weiMjR0Ld1eSNtW14MURV24BwfW8Svo6TsBJ3Bk9"},c=/^sha384-[A-Za-z0-9+/]{64}$/,l=o("[PostHog.js]").createLogger("[ExternalScriptsLoader]",void 0);const d=t=>{const e=null==s?void 0:s.querySelectorAll("script");if(e)for(let s=0;e.length>s;s++)if(e[s].src===t||e[s].getAttribute("src")===t)return e[s]},u=(t,e,s)=>{s?l.critical(e):l.warn(e),t(e)},f=(t,e,i,r)=>{if(t.config.disable_external_dependency_loading)return l.warn(`${e} was requested but loading of external scripts is disabled.`),i("Loading of external scripts is disabled");const n=()=>{if(null==s||s.removeEventListener("DOMContentLoaded",n),t.config.disable_external_dependency_loading)return i("Loading of external scripts is disabled");if(!s)return i("document not found");let a=s.createElement("script");if(a.type="text/javascript",a.crossOrigin="anonymous",r&&(a.integrity=r),a.src=e,a.onload=t=>{a.__posthog_loading_callback_fired=!0,i(void 0,t)},a.onerror=t=>{a.__posthog_loading_error=t,i(t)},t.config.prepare_external_dependency_script&&(a=t.config.prepare_external_dependency_script(a)),!a)return i("prepare_external_dependency_script returned null");if(r&&(!a.src||a.integrity!==r||"anonymous"!==a.crossOrigin))return u(i,`prepare_external_dependency_script must keep src, integrity and crossOrigin 'anonymous' for ${e}`,!0);if(t.config.disable_external_dependency_loading)return i("Loading of external scripts is disabled");const c=d(a.src);if(c){if(c.integrity!==a.integrity||c.crossOrigin!==a.crossOrigin||c.nonce!==a.nonce)return i("Existing script conflicts with prepared script policy");if(c.__posthog_loading_callback_fired)return i();const t=c.__posthog_loading_error;return t?i(t):(c.addEventListener("load",t=>{c.__posthog_loading_callback_fired=!0,i(void 0,t)}),void c.addEventListener("error",t=>{c.__posthog_loading_error=t,i(t)}))}if(!s.body)return o();if("head"===t.config.external_scripts_inject_target)s.head.appendChild(a);else{const t=s.querySelectorAll("body > script");var l;t.length>0?null===(l=t[0].parentNode)||void 0===l||l.insertBefore(a,t[0]):s.body.appendChild(a)}},o=()=>{null==s||s.addEventListener("DOMContentLoaded",n)};(null==s?void 0:s.body)||d(e)?n():o()},p={},g=(t,e)=>{let s=`/static/${e}.js?v=${t.version}`;if("toolbar"===e){const t=3e5;s=`${s}&t=${Math.floor(Date.now()/t)*t}`}return t.requestRouter.endpointFor("assets",s)};r.__PosthogExtensions__=r.__PosthogExtensions__||{},r.__PosthogExtensions__.loadExternalDependency=(t,e,i)=>{if(t.config.require_subresource_integrity){if("remote-config"===e||"toolbar"===e)return u(i,`${e} can't be integrity-verified, so it is not loaded with require_subresource_integrity`);if(!s||!("integrity"in s.createElement("script")))return u(i,"This browser does not support Subresource Integrity",!0);const r=`${e}.js`,o=a[r];return"[object String]"==n.call(o)&&c.test(o)?void f(t,t.requestRouter.endpointFor("assets",`/static/${t.version}/${r}`),i,o):u(i,`No integrity hash for ${r}`,!0)}if("remote-config"===e){const e=t.requestRouter.endpointFor("assets",`/array/${t.config.token}/config.js`);return void f(t,e,i)}const r=t.config.strict_script_versioning;if(r){const s=t.requestRouter.endpointFor("assets",`/static/${t.version}/${e}.js`),n=p[s];if("fallback"===r&&n){if(d(n))return void f(t,n,i);delete p[s]}return void f(t,s,"fallback"===r?(r,n)=>{if(r)if("string"==typeof r)i(r);else{var o;const r=g(t,e);p[s]=r;const n=d(s);null==n||null===(o=n.parentNode)||void 0===o||o.removeChild(n),f(t,r,i)}else i(void 0,n)}:i)}f(t,g(t,e),i)},r.__PosthogExtensions__.loadSiteApp=(t,e,s)=>{if(t.config.require_subresource_integrity)return u(s,`Site apps can't be integrity-verified, so ${e} is not loaded with require_subresource_integrity`);const i=t.requestRouter.endpointFor("api",e);f(t,i,s)}}();
|
|
2
2
|
//# sourceMappingURL=external-scripts-loader.js.map
|
package/dist/integrity.json
CHANGED
|
@@ -1,39 +1,39 @@
|
|
|
1
1
|
{
|
|
2
|
-
"version": "1.455.
|
|
2
|
+
"version": "1.455.1",
|
|
3
3
|
"files": {
|
|
4
|
-
"all-external-dependencies.js": "sha384-
|
|
5
|
-
"array.full.es5.js": "sha384-
|
|
6
|
-
"array.full.js": "sha384
|
|
7
|
-
"array.full.no-external.js": "sha384-
|
|
8
|
-
"array.js": "sha384-
|
|
9
|
-
"array.no-external.js": "sha384
|
|
4
|
+
"all-external-dependencies.js": "sha384-zcg6/80aJ+ZpUu6iFY07ppW2jt4KuMOAPvaWUWS/9WzJUIfAfy7eZqA8rEmEoVVn",
|
|
5
|
+
"array.full.es5.js": "sha384-40J31lngauzp1uUSLb/Nwm0T6mnLTNoCGUaqsbmiUi8fNFlthu4gCpd/pKqccKUd",
|
|
6
|
+
"array.full.js": "sha384-o5uvLkVhNpaKMlAk5eRS0/TzXHmyJ8klMjLUx9W9iZAq/FEXkaV+B7HMKVmEOVB0",
|
|
7
|
+
"array.full.no-external.js": "sha384-t+I2D+fqVmrZtfrYuqexZlivAtq3E61UF2cvIZDnChgy1Cntz6GZjcHIaOuEgNhi",
|
|
8
|
+
"array.js": "sha384-A6icAPzgCy/E1zkzLOiAHir9ae2r25JGXPt2ihXEbYWriUoIDJ1c0tyfFdvNx9LZ",
|
|
9
|
+
"array.no-external.js": "sha384-+4/TRlyZ8ndRQCi4+KBwGWMcpijPi5R/3Hh+kloD4WusTrRhDCHBDgRHtUN9PY+/",
|
|
10
10
|
"conversations.js": "sha384-8fPy3IASBzA8AWqnw4GisFo+FugHLE1xLpCaDmKKa+sdTroMj7fsaSQxeJdciOoP",
|
|
11
11
|
"crisp-chat-integration.js": "sha384-qVSPPiM5PHJlVNpiLPyETnf0VXOGevtCqjm2K8EmWnKpLQnY/TMu+iLJ8wWLW8iA",
|
|
12
|
-
"customizations.full.js": "sha384-
|
|
13
|
-
"customizations.js": "sha384-
|
|
12
|
+
"customizations.full.js": "sha384-00oDZpAU0vjzNrpWgwyaZB6F0EJi4yqHVS88zDMgwzVcIqx59iSk2L9MfWchX/qj",
|
|
13
|
+
"customizations.js": "sha384-wZqhTr1/AUEsbV8dhaPb4/DO+cOyMS33cjc6K/RLSZAEhaZrpyafaYHaB9a7pUxc",
|
|
14
14
|
"dead-clicks-autocapture.js": "sha384-MYefNCyD6/XLhTOKa8DavuGsgGJvAJO/X4iqoFkAqgGk7H9qgcIoysU9F2qVGMk1",
|
|
15
|
-
"default-extensions.js": "sha384-
|
|
15
|
+
"default-extensions.js": "sha384-PqXxfOggV1aBJmYz6MDTZ6Ur//Xe6JIuz8WLZ/La5DlP8ba5DZ/UoCe/l8NNvLtw",
|
|
16
16
|
"element-inference.js": "sha384-wZNGW5WCxlt5ty9m3xBdQ2p9K+W4IDqKACA0r4Vkf+sr/xGkOTSVo/zCHcYdBZPC",
|
|
17
|
-
"exception-autocapture.js": "sha384-
|
|
18
|
-
"extension-bundles.js": "sha384-
|
|
19
|
-
"external-scripts-loader.js": "sha384-
|
|
17
|
+
"exception-autocapture.js": "sha384-miJNvXEqyiBQpQrLVO7Yfby3J/doNarkjZX+a1eOKpGkF23r0WwtkxSSPyz/ngDx",
|
|
18
|
+
"extension-bundles.js": "sha384-vXPFDWdB/Gp2xOARoP82h0Dmq/u2V/qBwGMDPrpPhmIpF46glZVPosxCZSeU7+wb",
|
|
19
|
+
"external-scripts-loader.js": "sha384-X+zvw8dyRh3KEnlZtkGewWiF+0Mh7v37Q2fo8yjbgiSqyaT8x0vr0uqXR/HCg8Q+",
|
|
20
20
|
"intercom-integration.js": "sha384-gWEoUxf+HEPSZ4GZthxep/3LlEectgXxzj8uWkW7dnvRRV6AKkHXtZEmcb0OqOvn",
|
|
21
|
-
"lazy-recorder.js": "sha384-
|
|
21
|
+
"lazy-recorder.js": "sha384-Ge58ONxarh9k88Xh0cuyu9EsN4wEhFQkA+e2lQbzD6COVKkGG/s1EeLkGhaXCZf1",
|
|
22
22
|
"loader-bootstrap.js": "sha384-3hmOJOf2suMbQwGjKn52zvaodaCnKh7RPhuxY2W0P6HLhOOrKHM85TZYLXRmYeOv",
|
|
23
23
|
"loader.js": "sha384-7lhVAJ9/ISOdeyo1KQmG+50LNTxUIelfz01kgXZPO5waQthY46DU1wi7MopT2bg5",
|
|
24
24
|
"logs.js": "sha384-HGXa+FeVH5JwY3bwubM1EJrP+LG95rh6oU9TbtzHZLs1ECpl5mCXv5FcYF8SgNjk",
|
|
25
|
-
"main.js": "sha384-
|
|
26
|
-
"module.full.cjs": "sha384-
|
|
27
|
-
"module.full.js": "sha384-
|
|
28
|
-
"module.full.no-external.cjs": "sha384-
|
|
29
|
-
"module.full.no-external.js": "sha384
|
|
30
|
-
"module.js": "sha384-
|
|
31
|
-
"module.mjs": "sha384
|
|
32
|
-
"module.no-external.cjs": "sha384-
|
|
33
|
-
"module.no-external.js": "sha384-
|
|
34
|
-
"module.slim.js": "sha384-
|
|
35
|
-
"module.slim.no-external.js": "sha384-
|
|
36
|
-
"posthog-recorder.js": "sha384-
|
|
25
|
+
"main.js": "sha384-9SNNPBreTkVOeE1GR7q1SsemZAslYoVN+esUgeUmdiGafgxqIcw7UjGu0C2C5hFX",
|
|
26
|
+
"module.full.cjs": "sha384-0gmkNHLM/sQRfcCEr/xQxnJbla/XSxqvLFunQEe5HrKWTqDXZcykEe4xDHhrq9Yq",
|
|
27
|
+
"module.full.js": "sha384-k5pt8GP9Uj1fhOUhX5I3NQEvhljGyiOTXTAnu+mYrb/vpMQmlxOAWJ683sODD6yI",
|
|
28
|
+
"module.full.no-external.cjs": "sha384-vcxqGbJQCADW6Biv9uh7mqB1idnu/XAxrWwqMGs2rBVUOQP1MXNsnbR5nOr0DCCq",
|
|
29
|
+
"module.full.no-external.js": "sha384-/yeJqOhK6Ja+x+OjMGx9WIncKgNkenar7UH7QSUQLpXw6KGgqbnKOFt5ZzfCkaAr",
|
|
30
|
+
"module.js": "sha384-TYJc996q0is6+tg6Cpwsdj5FXdUp38NUOd4BHZiHhFA3y1bXHjWJUpAZup5mOa+x",
|
|
31
|
+
"module.mjs": "sha384-/Lcd6cjpaw5NxyDOmt2gwuSKhop0X6HdQnOq0UvxrmWKi8UpGrA2K77k6AWrxDe0",
|
|
32
|
+
"module.no-external.cjs": "sha384-bG63VX3G665L15E6fUd3lpEzdJ00JiX5RA1oYxYzCMg3h6g1i1TlLp5tKtSxOGFW",
|
|
33
|
+
"module.no-external.js": "sha384-yqUVvNcNOYBQmkY8gCS9JabxC664AR6yiMxQN728TTNMX8HEmaHGcVQuQ1B8XX1Z",
|
|
34
|
+
"module.slim.js": "sha384-qOieo0PfHh3vNNrypuDnINCN8bB6DbT0Y0Z+j6+bz34lA7zPlYQr7GrZ7PgVgUUV",
|
|
35
|
+
"module.slim.no-external.js": "sha384-HjPkaxKAmKO3lByXSYt2KYh4OYq91kQW7T23pkqiB4UBxp02xWc6RGqjYJaW0azB",
|
|
36
|
+
"posthog-recorder.js": "sha384-CC2dolC7t9MoAuuF9zBYCjUHV9HQqtRZa2TtcMbLRZwIVYBmMcdwYqVA11KbzGhv",
|
|
37
37
|
"product-tours-preview.js": "sha384-xA08tq6VwIcjOQs3pEN5z9pnsf33QxjaKXXfiTH3YlYYMP2p20suywo0meTOSoDt",
|
|
38
38
|
"product-tours.js": "sha384-TlWlQfnDBI1yB3+CuhSTePe38C4bKqQwtK1m0/T6kk/EAsKbWvIya0UeuVkDmSV7",
|
|
39
39
|
"recorder-v2.js": "sha384-0s1o/PCrphOTxhUSxiXRIHCUMtGWPhTNQwy4GAA9VHJeXvCaugbUsAJW/aIO8lgy",
|
|
@@ -41,8 +41,8 @@
|
|
|
41
41
|
"rrweb-plugin-console-record.js": "sha384-eUjv/3XTVUchSCDm+c+HrELykuCa3im7Fw6raakTaIloIMD91jTl9k/D10t6HrRH",
|
|
42
42
|
"rrweb-types.js": "sha384-Gnqg0Jh1SF6pYDEUq2SFkyV2nfGRukkjbz1pLt7VYgGIVgU04doXfoevlt0zvuIP",
|
|
43
43
|
"rrweb.js": "sha384-Cus3+efg/XkpZOpnxtq9WXFeW4DxE7GcPegogpCxALv3yimannf7X6hRCLcfkU/g",
|
|
44
|
-
"surveys-preview.js": "sha384-
|
|
45
|
-
"surveys.js": "sha384-
|
|
44
|
+
"surveys-preview.js": "sha384-jZ07gApzJ/A5x0Rs55G5VG4/SpYvScG5TfHz1UTou16UXX0D8L9gCvtxCON1PhH8",
|
|
45
|
+
"surveys.js": "sha384-voLXJFCjNwKYjWdB/DrH+XOQ4hYyH7Vi7xz/L+k8Z3WqCkKR6AnlC/ypiOR3UVIT",
|
|
46
46
|
"tracing-headers.js": "sha384-Zb7V2jbC5lJGl7yFzBe8HpCvO3xgJln/lEcqY5xAQ9Z1LLCnbi2glbsfvRPRIYcD",
|
|
47
47
|
"web-vitals-soft-navs.js": "sha384-recN8i2tLQWaeNtCAnErAmFlgg4+33FAHvs8l84aE+SHr6oqLAPwhFVZdP4SfKT6",
|
|
48
48
|
"web-vitals-with-attribution-soft-navs.js": "sha384-f9L4YQQre9lKeUzyvy2Kt4dHLIXECipeMmbr7SPQAOqLi+ZCHbh1I1g/OwsK/zrp",
|