@rpcbase/client 0.385.0 → 0.386.0

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,8 +1,12 @@
1
1
  import { s as setClientExceptionReporter } from "./errorReporting-CVoUUKxW.js";
2
- const instrument = async ({ posthogKey }) => {
2
+ const instrument = async ({
3
+ posthogKey
4
+ }) => {
3
5
  if (typeof posthogKey === "string" && posthogKey.length > 0) {
4
6
  try {
5
- const { default: posthog } = await import("posthog-js");
7
+ const {
8
+ default: posthog
9
+ } = await import("posthog-js");
6
10
  posthog.init(posthogKey, {
7
11
  api_host: "/ingest",
8
12
  ui_host: "https://eu.posthog.com",
@@ -1 +1 @@
1
- {"version":3,"file":"instrument.js","sources":["../src/instrument.ts"],"sourcesContent":["import { setClientExceptionReporter } from \"./errorReporting\"\n\n\nexport const instrument = async ({posthogKey}: {posthogKey?: string}) => {\n if (typeof posthogKey === \"string\" && posthogKey.length > 0) {\n try {\n const { default: posthog } = await import(\"posthog-js\")\n\n posthog.init(posthogKey, {\n api_host: \"/ingest\",\n ui_host: \"https://eu.posthog.com\",\n person_profiles: \"always\",\n session_recording: {\n maskAllInputs: false\n },\n capture_exceptions: {\n capture_unhandled_errors: true,\n capture_unhandled_rejections: true,\n capture_console_errors: true,\n },\n capture_pageview: true,\n autocapture: true,\n disable_session_recording: false,\n disable_surveys: true,\n disable_surveys_automatic_display: true,\n })\n\n setClientExceptionReporter((error, context) => {\n posthog.captureException(error, context)\n })\n } catch (err) {\n console.warn(\"instrument: failed to load posthog-js\", err)\n }\n } else {\n console.warn(\"instrument: missing posthogKey\")\n }\n}\n"],"names":[],"mappings":";AAGO,MAAM,aAAa,OAAO,EAAC,iBAAuC;AACvE,MAAI,OAAO,eAAe,YAAY,WAAW,SAAS,GAAG;AAC3D,QAAI;AACF,YAAM,EAAE,SAAS,YAAY,MAAM,OAAO,YAAY;AAEtD,cAAQ,KAAK,YAAY;AAAA,QACvB,UAAU;AAAA,QACV,SAAS;AAAA,QACT,iBAAiB;AAAA,QACjB,mBAAmB;AAAA,UACjB,eAAe;AAAA,QAAA;AAAA,QAEjB,oBAAoB;AAAA,UAClB,0BAA0B;AAAA,UAC1B,8BAA8B;AAAA,UAC9B,wBAAwB;AAAA,QAAA;AAAA,QAE1B,kBAAkB;AAAA,QAClB,aAAa;AAAA,QACb,2BAA2B;AAAA,QAC3B,iBAAiB;AAAA,QACjB,mCAAmC;AAAA,MAAA,CACpC;AAED,iCAA2B,CAAC,OAAO,YAAY;AAC7C,gBAAQ,iBAAiB,OAAO,OAAO;AAAA,MACzC,CAAC;AAAA,IACH,SAAS,KAAK;AACZ,cAAQ,KAAK,yCAAyC,GAAG;AAAA,IAC3D;AAAA,EACF,OAAO;AACL,YAAQ,KAAK,gCAAgC;AAAA,EAC/C;AACF;"}
1
+ {"version":3,"file":"instrument.js","sources":["../src/instrument.ts"],"sourcesContent":["import { setClientExceptionReporter } from \"./errorReporting\"\n\n\nexport const instrument = async ({posthogKey}: {posthogKey?: string}) => {\n if (typeof posthogKey === \"string\" && posthogKey.length > 0) {\n try {\n const { default: posthog } = await import(\"posthog-js\")\n\n posthog.init(posthogKey, {\n api_host: \"/ingest\",\n ui_host: \"https://eu.posthog.com\",\n person_profiles: \"always\",\n session_recording: {\n maskAllInputs: false\n },\n capture_exceptions: {\n capture_unhandled_errors: true,\n capture_unhandled_rejections: true,\n capture_console_errors: true,\n },\n capture_pageview: true,\n autocapture: true,\n disable_session_recording: false,\n disable_surveys: true,\n disable_surveys_automatic_display: true,\n })\n\n setClientExceptionReporter((error, context) => {\n posthog.captureException(error, context)\n })\n } catch (err) {\n console.warn(\"instrument: failed to load posthog-js\", err)\n }\n } else {\n console.warn(\"instrument: missing posthogKey\")\n }\n}\n"],"names":["instrument","posthogKey","length","default","posthog","init","api_host","ui_host","person_profiles","session_recording","maskAllInputs","capture_exceptions","capture_unhandled_errors","capture_unhandled_rejections","capture_console_errors","capture_pageview","autocapture","disable_session_recording","disable_surveys","disable_surveys_automatic_display","setClientExceptionReporter","error","context","captureException","err","console","warn"],"mappings":";AAGO,MAAMA,aAAa,OAAO;AAAA,EAACC;AAAiC,MAAM;AACvE,MAAI,OAAOA,eAAe,YAAYA,WAAWC,SAAS,GAAG;AAC3D,QAAI;AACF,YAAM;AAAA,QAAEC,SAASC;AAAAA,MAAAA,IAAY,MAAM,OAAO,YAAY;AAEtDA,cAAQC,KAAKJ,YAAY;AAAA,QACvBK,UAAU;AAAA,QACVC,SAAS;AAAA,QACTC,iBAAiB;AAAA,QACjBC,mBAAmB;AAAA,UACjBC,eAAe;AAAA,QAAA;AAAA,QAEjBC,oBAAoB;AAAA,UAClBC,0BAA0B;AAAA,UAC1BC,8BAA8B;AAAA,UAC9BC,wBAAwB;AAAA,QAAA;AAAA,QAE1BC,kBAAkB;AAAA,QAClBC,aAAa;AAAA,QACbC,2BAA2B;AAAA,QAC3BC,iBAAiB;AAAA,QACjBC,mCAAmC;AAAA,MAAA,CACpC;AAEDC,iCAA2B,CAACC,OAAOC,YAAY;AAC7ClB,gBAAQmB,iBAAiBF,OAAOC,OAAO;AAAA,MACzC,CAAC;AAAA,IACH,SAASE,KAAK;AACZC,cAAQC,KAAK,yCAAyCF,GAAG;AAAA,IAC3D;AAAA,EACF,OAAO;AACLC,YAAQC,KAAK,gCAAgC;AAAA,EAC/C;AACF;"}
package/dist/rts/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import { R, S, f, p, c, h, b, d, a, i, g, n, o, q, t, j, k, r, l, e, s, m, u, v } from "../useQuery-ZWQYk25K.js";
1
+ import { R, S, f, p, c, h, b, d, a, i, g, n, o, q, t, j, k, r, l, e, s, m, u, v } from "../useQuery-DImVXkBa.js";
2
2
  export {
3
3
  R as RtsSsrRuntimeProvider,
4
4
  S as STATIC_RPCBASE_RTS_HYDRATION_DATA_KEY,