posthog-js 1.453.1 → 1.453.2
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/extension-bundles.js +1 -1
- package/dist/external-scripts-loader.js +1 -1
- package/dist/integrity.json +27 -27
- 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/surveys-preview.js +1 -1
- package/dist/surveys-preview.js.map +1 -1
- package/dist/surveys.js +1 -1
- package/dist/surveys.js.map +1 -1
- package/lib/package.json +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-Mz0mYEh/oXRxhqmWKRo8SkoCaH/Dd6F367KHBUJCe3apjb2BcdkKjnW1BR96Tx6Y","crisp-chat-integration.js":"sha384-qVSPPiM5PHJlVNpiLPyETnf0VXOGevtCqjm2K8EmWnKpLQnY/TMu+iLJ8wWLW8iA","dead-clicks-autocapture.js":"sha384-mhYAvGr01N2b2UN3UKXYpwoV5B0OHu/ghNIPiTEEefliWodVTZn9Z6a0GSigRjsG","exception-autocapture.js":"sha384-F/fSZE+cj7O//TRJ+JCQlJGTD5o2XBCDsPXuE1eA7HcBSkFklSQFzyOt2eKBo+iL","intercom-integration.js":"sha384-gWEoUxf+HEPSZ4GZthxep/3LlEectgXxzj8uWkW7dnvRRV6AKkHXtZEmcb0OqOvn","lazy-recorder.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-Mz0mYEh/oXRxhqmWKRo8SkoCaH/Dd6F367KHBUJCe3apjb2BcdkKjnW1BR96Tx6Y","crisp-chat-integration.js":"sha384-qVSPPiM5PHJlVNpiLPyETnf0VXOGevtCqjm2K8EmWnKpLQnY/TMu+iLJ8wWLW8iA","dead-clicks-autocapture.js":"sha384-mhYAvGr01N2b2UN3UKXYpwoV5B0OHu/ghNIPiTEEefliWodVTZn9Z6a0GSigRjsG","exception-autocapture.js":"sha384-F/fSZE+cj7O//TRJ+JCQlJGTD5o2XBCDsPXuE1eA7HcBSkFklSQFzyOt2eKBo+iL","intercom-integration.js":"sha384-gWEoUxf+HEPSZ4GZthxep/3LlEectgXxzj8uWkW7dnvRRV6AKkHXtZEmcb0OqOvn","lazy-recorder.js":"sha384-E9actjCOuNrSEF4o4/9PaEhfEuuAyBAXUZRNfUWKKgZWhopS6NfvS3NbHgdGTunm","logs.js":"sha384-HGXa+FeVH5JwY3bwubM1EJrP+LG95rh6oU9TbtzHZLs1ECpl5mCXv5FcYF8SgNjk","product-tours.js":"sha384-2YKOQYIomTGU6qhSGJdQ1GZBAqWB3iPiuaqsVC+BvHdsfinWa0tzEdL2u4jURQid","recorder.js":"sha384-88LswkBOqtAt/RoXzLE7k7Mu58QaEmmnL+18tkw1RT7WaOZPxnbzUoMnHBC+TsPB","surveys.js":"sha384-0umwTuK8V5T6mxHb2nFh9n+HimihDbD0yYMLdP1J49ZKTt4HcQKkxUBeiUKYAKMO","tracing-headers.js":"sha384-kiUbaGGMgA6klTPefqr6nHeeTCejdA62XyCxqOySP2gLNe+wl/TDX0KflMiSMNJ2","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.453.
|
|
2
|
+
"version": "1.453.2",
|
|
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-4PLminw7KeNcRubdOEXrncytgo2BDGUzkzWsy6+sLxwQt6wa4sfpxeY3iq8MMbxU",
|
|
5
|
+
"array.full.es5.js": "sha384-vnVt8/ewadSLTA1phOWx5Z8kUomNiF638c/7kdBVUupi8Wu1W2S99Y/ZFHL2LY64",
|
|
6
|
+
"array.full.js": "sha384-4lTtdNBFpquKRMuL/7JF88C9z3Isbf2KdYVfmu3P6LXqQ/H5vPJTBOIup79XQExe",
|
|
7
|
+
"array.full.no-external.js": "sha384-x37TKybsL7DoaHhYA6ihGZbON93Vi6cjpE7fSnajzFWSrMIvemva9qnd3ocvw88N",
|
|
8
|
+
"array.js": "sha384-pRYvWGKjlNdifx1HupWFKCUEZjpXF7rut5aJwOU79Dh9ne9BlBHpRvzc5y381FRH",
|
|
9
|
+
"array.no-external.js": "sha384-bdt5px+kreNGBWZfJicFMX0gVb1xp8c0THd9q2wl8WJ8tWk7SeNFWppsiRLAwPYX",
|
|
10
10
|
"conversations.js": "sha384-Mz0mYEh/oXRxhqmWKRo8SkoCaH/Dd6F367KHBUJCe3apjb2BcdkKjnW1BR96Tx6Y",
|
|
11
11
|
"crisp-chat-integration.js": "sha384-qVSPPiM5PHJlVNpiLPyETnf0VXOGevtCqjm2K8EmWnKpLQnY/TMu+iLJ8wWLW8iA",
|
|
12
|
-
"customizations.full.js": "sha384-
|
|
13
|
-
"customizations.js": "sha384-
|
|
12
|
+
"customizations.full.js": "sha384-2z+eFrQxR+bxCXV6U+k8Bt2x93xbkvj03wjh+ywP4nuFhpXZIXLoJ1VatqIzJGU7",
|
|
13
|
+
"customizations.js": "sha384-vHeHEOMVns4X1Uj6qOQM3svNYuaiPBrwjolDyQQln6C5JTLvsuCWRPewj4RolAat",
|
|
14
14
|
"dead-clicks-autocapture.js": "sha384-mhYAvGr01N2b2UN3UKXYpwoV5B0OHu/ghNIPiTEEefliWodVTZn9Z6a0GSigRjsG",
|
|
15
|
-
"default-extensions.js": "sha384-
|
|
15
|
+
"default-extensions.js": "sha384-w10GtUqVof2zc2kamkUFmZuis58BVOVJFYBvVLp3eAc9dah0hccCHD00iZ1ZNGph",
|
|
16
16
|
"element-inference.js": "sha384-wZNGW5WCxlt5ty9m3xBdQ2p9K+W4IDqKACA0r4Vkf+sr/xGkOTSVo/zCHcYdBZPC",
|
|
17
17
|
"exception-autocapture.js": "sha384-F/fSZE+cj7O//TRJ+JCQlJGTD5o2XBCDsPXuE1eA7HcBSkFklSQFzyOt2eKBo+iL",
|
|
18
|
-
"extension-bundles.js": "sha384
|
|
19
|
-
"external-scripts-loader.js": "sha384-
|
|
18
|
+
"extension-bundles.js": "sha384-+FIickUNRCc/H7w3166ch4jIhZXPHFAAF2rHzczG29zn2lG6X/YArbKYuJfxTUfO",
|
|
19
|
+
"external-scripts-loader.js": "sha384-4AqLiEaZO3quvdzQvovyJvzfuc5Vbo8/AIqkHQp2KR9OLdrjZT8dvZOUVnQ77hza",
|
|
20
20
|
"intercom-integration.js": "sha384-gWEoUxf+HEPSZ4GZthxep/3LlEectgXxzj8uWkW7dnvRRV6AKkHXtZEmcb0OqOvn",
|
|
21
|
-
"lazy-recorder.js": "sha384-
|
|
21
|
+
"lazy-recorder.js": "sha384-E9actjCOuNrSEF4o4/9PaEhfEuuAyBAXUZRNfUWKKgZWhopS6NfvS3NbHgdGTunm",
|
|
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-565MCqRV7kEcTpszZ5gHDHPdPagVD5RolnK4puBZeKIWOezr41h+8DuuYvwvTkLr",
|
|
26
|
+
"module.full.cjs": "sha384-vn51VrWTT6uyljbVn7FrfHGVGF0hwkQoZlijGkt4c6d0awO5OuF7XteuSmbWfzpC",
|
|
27
|
+
"module.full.js": "sha384-zf03s+cIqXAA8jvX0rkguSjtZBR0K6yhhyVtM5cGA0Z7IhwkyXICaMW5ameqDFJB",
|
|
28
|
+
"module.full.no-external.cjs": "sha384-WJZkIvlTXuwVzD/76A2t8Qc8a5lClZ/KZD3TTcwHAV+2D2l/32f7+8UDoIsKEqaL",
|
|
29
|
+
"module.full.no-external.js": "sha384-BfOxYZtFKA2CGQQBdeBt7y8Hvk+fwTQG8rJRzPNFA2PqELeSRIZMUkJ7XMlRBUzQ",
|
|
30
|
+
"module.js": "sha384-i9Yi+DppTCpjEOEx5/gkyZ8z7xbW0MKmEnI33X3GA+xAmqE8R90ost1IjTg3KkHU",
|
|
31
|
+
"module.mjs": "sha384-ICn9PWieilydlxg6qrjBorAJyFFV8Tkr2yKht0w6VN2jgfCJKN5zkp8yBhyBq5Hz",
|
|
32
|
+
"module.no-external.cjs": "sha384-lAxLLiVCevZifF/r2xrReEZKjw36h/t4EEMk5S/tzSkheCufQm6UowOCYvHTihJC",
|
|
33
|
+
"module.no-external.js": "sha384-H9dG4glSjLymFMRJWQUHnmJSseLZ/xijoS2wELgBDn9pY4dUHFqEN3NEJVhsGX7l",
|
|
34
|
+
"module.slim.js": "sha384-PwXFp4RwSvfhNlfrO6kfZj65tzWLmhT9+16slx9idYR66JsxDGI/sM9FO5tELZmZ",
|
|
35
|
+
"module.slim.no-external.js": "sha384-C99LgOsFxb8S8Ik5U0ONqPgNEtqD9X+4ZUKCHAjGt8WNVeajGjPIJjYrWJIbotnA",
|
|
36
|
+
"posthog-recorder.js": "sha384-PzzgOaKVoQSf7/5P7jipCZh9UxPJzNJFhjy0o8CcQXsHVMfoFh9iOzIAyljxYF1T",
|
|
37
37
|
"product-tours-preview.js": "sha384-MNCS7NE7A+KU6viLDrSkFAfXpk96sXAmptc4BnK2h5yszyp94P+KuZ4jUYv0ODFz",
|
|
38
38
|
"product-tours.js": "sha384-2YKOQYIomTGU6qhSGJdQ1GZBAqWB3iPiuaqsVC+BvHdsfinWa0tzEdL2u4jURQid",
|
|
39
39
|
"recorder-v2.js": "sha384-y1qDcrbtBfm7Z1drHcXdfj8AXI0rep2uQ20XzCGWQ42hqImUTBp5bJWmUdwcLuJ+",
|
|
@@ -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-dlos+rdi6jmuYvWk908BqayWl3t6UNbzs7gaD6YlWTfBBdWOtAox2Uf4sA8JB9MS",
|
|
44
|
-
"surveys-preview.js": "sha384
|
|
45
|
-
"surveys.js": "sha384-
|
|
44
|
+
"surveys-preview.js": "sha384-/pP7BNqC9V//GW4+nEeUFQ9fm60ioYJNXh0JiIhTwUIyqb2URLr75xeGAMvpo13V",
|
|
45
|
+
"surveys.js": "sha384-0umwTuK8V5T6mxHb2nFh9n+HimihDbD0yYMLdP1J49ZKTt4HcQKkxUBeiUKYAKMO",
|
|
46
46
|
"tracing-headers.js": "sha384-kiUbaGGMgA6klTPefqr6nHeeTCejdA62XyCxqOySP2gLNe+wl/TDX0KflMiSMNJ2",
|
|
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",
|