@rpcbase/client 0.405.0 → 0.406.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,41 +1,33 @@
1
- import { s as setClientExceptionReporter } from "./errorReporting-CVoUUKxW.js";
2
- const instrument = async ({
3
- posthogKey
4
- }) => {
5
- if (typeof posthogKey === "string" && posthogKey.length > 0) {
6
- try {
7
- const {
8
- default: posthog
9
- } = await import("posthog-js");
10
- posthog.init(posthogKey, {
11
- api_host: "/ingest",
12
- ui_host: "https://eu.posthog.com",
13
- person_profiles: "always",
14
- session_recording: {
15
- maskAllInputs: false
16
- },
17
- capture_exceptions: {
18
- capture_unhandled_errors: true,
19
- capture_unhandled_rejections: true,
20
- capture_console_errors: true
21
- },
22
- capture_pageview: true,
23
- autocapture: true,
24
- disable_session_recording: false,
25
- disable_surveys: true,
26
- disable_surveys_automatic_display: true
27
- });
28
- setClientExceptionReporter((error, context) => {
29
- posthog.captureException(error, context);
30
- });
31
- } catch (err) {
32
- console.warn("instrument: failed to load posthog-js", err);
33
- }
34
- } else {
35
- console.warn("instrument: missing posthogKey");
36
- }
1
+ import { n as setClientExceptionReporter } from "./errorReporting-Dfcrn3W1.js";
2
+ //#region src/instrument.ts
3
+ var instrument = async ({ posthogKey }) => {
4
+ if (typeof posthogKey === "string" && posthogKey.length > 0) try {
5
+ const { default: posthog } = await import("posthog-js");
6
+ posthog.init(posthogKey, {
7
+ api_host: "/ingest",
8
+ ui_host: "https://eu.posthog.com",
9
+ person_profiles: "always",
10
+ session_recording: { maskAllInputs: false },
11
+ capture_exceptions: {
12
+ capture_unhandled_errors: true,
13
+ capture_unhandled_rejections: true,
14
+ capture_console_errors: true
15
+ },
16
+ capture_pageview: true,
17
+ autocapture: true,
18
+ disable_session_recording: false,
19
+ disable_surveys: true,
20
+ disable_surveys_automatic_display: true
21
+ });
22
+ setClientExceptionReporter((error, context) => {
23
+ posthog.captureException(error, context);
24
+ });
25
+ } catch (err) {
26
+ console.warn("instrument: failed to load posthog-js", err);
27
+ }
28
+ else console.warn("instrument: missing posthogKey");
37
29
  };
38
- export {
39
- instrument
40
- };
41
- //# sourceMappingURL=instrument.js.map
30
+ //#endregion
31
+ export { instrument };
32
+
33
+ //# sourceMappingURL=instrument.js.map
@@ -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":["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;"}
1
+ {"version":3,"file":"instrument.js","names":[],"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"],"mappings":";;AAGA,IAAa,aAAa,OAAO,EAAC,iBAAuC;AACvE,KAAI,OAAO,eAAe,YAAY,WAAW,SAAS,EACxD,KAAI;EACF,MAAM,EAAE,SAAS,YAAY,MAAM,OAAO;AAE1C,UAAQ,KAAK,YAAY;GACvB,UAAU;GACV,SAAS;GACT,iBAAiB;GACjB,mBAAmB,EACjB,eAAe,OAChB;GACD,oBAAoB;IAClB,0BAA0B;IAC1B,8BAA8B;IAC9B,wBAAwB;IACzB;GACD,kBAAkB;GAClB,aAAa;GACb,2BAA2B;GAC3B,iBAAiB;GACjB,mCAAmC;GACpC,CAAC;AAEF,8BAA4B,OAAO,YAAY;AAC7C,WAAQ,iBAAiB,OAAO,QAAQ;IACxC;UACK,KAAK;AACZ,UAAQ,KAAK,yCAAyC,IAAI;;KAG5D,SAAQ,KAAK,iCAAiC"}
package/dist/rts/index.js CHANGED
@@ -1,29 +1,2 @@
1
- import { R, S, f, p, c, h, b, d, a, i, g, n, o, q, t, v, j, k, r, l, e, s, m, u, w } from "../useQuery-XvXbEwG_.js";
2
- export {
3
- R as RtsSsrRuntimeProvider,
4
- S as STATIC_RPCBASE_RTS_HYDRATION_DATA_KEY,
5
- f as addLocalTxn,
6
- p as clearHydratedRtsQueryData,
7
- c as configureRtsPouchStore,
8
- h as connect,
9
- b as deleteDocs,
10
- d as destroyAllCollections,
11
- a as destroyCollection,
12
- i as disconnect,
13
- g as getCollection,
14
- n as hydrateRtsFromWindow,
15
- o as onMessage,
16
- q as peekHydratedRtsQueryData,
17
- t as peekHydratedRtsQueryPageInfo,
18
- v as peekHydratedRtsQueryTotalCount,
19
- j as reconnect,
20
- k as registerQuery,
21
- r as resetRtsPouchStore,
22
- l as runNetworkQuery,
23
- e as runQuery,
24
- s as sendMessage,
25
- m as syncRtsChanges,
26
- u as updateDocs,
27
- w as useQuery
28
- };
29
- //# sourceMappingURL=index.js.map
1
+ import { C as peekHydratedRtsQueryData, S as hydrateRtsFromWindow, T as peekHydratedRtsQueryTotalCount, _ as runQuery, a as onMessage, b as STATIC_RPCBASE_RTS_HYDRATION_DATA_KEY, c as runNetworkQuery, d as configureRtsPouchStore, f as deleteDocs, g as resetRtsPouchStore, h as getCollection, i as disconnect, l as sendMessage, m as destroyCollection, n as addLocalTxn, o as reconnect, p as destroyAllCollections, r as connect, s as registerQuery, t as useQuery, u as syncRtsChanges, v as updateDocs, w as peekHydratedRtsQueryPageInfo, x as clearHydratedRtsQueryData, y as RtsSsrRuntimeProvider } from "../rts-C9dMrcRZ.js";
2
+ export { RtsSsrRuntimeProvider, STATIC_RPCBASE_RTS_HYDRATION_DATA_KEY, addLocalTxn, clearHydratedRtsQueryData, configureRtsPouchStore, connect, deleteDocs, destroyAllCollections, destroyCollection, disconnect, getCollection, hydrateRtsFromWindow, onMessage, peekHydratedRtsQueryData, peekHydratedRtsQueryPageInfo, peekHydratedRtsQueryTotalCount, reconnect, registerQuery, resetRtsPouchStore, runNetworkQuery, runQuery, sendMessage, syncRtsChanges, updateDocs, useQuery };