@rpcbase/client 0.384.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.
- package/dist/errorReporting-CVoUUKxW.js.map +1 -1
- package/dist/{getServerApiClient-BYu8h5Zd.js → getServerApiClient-C1UInaMF.js} +26 -6
- package/dist/{getServerApiClient-BYu8h5Zd.js.map → getServerApiClient-C1UInaMF.js.map} +1 -1
- package/dist/index.js +1056 -384
- package/dist/index.js.map +1 -1
- package/dist/instrument.js +6 -2
- package/dist/instrument.js.map +1 -1
- package/dist/rts/index.js +1 -1
- package/dist/rts/useQuery.d.ts.map +1 -1
- package/dist/{useQuery-Ce_EmI2F.js → useQuery-DImVXkBa.js} +362 -198
- package/dist/useQuery-DImVXkBa.js.map +1 -0
- package/package.json +1 -1
- package/dist/useQuery-Ce_EmI2F.js.map +0 -1
package/dist/instrument.js
CHANGED
|
@@ -1,8 +1,12 @@
|
|
|
1
1
|
import { s as setClientExceptionReporter } from "./errorReporting-CVoUUKxW.js";
|
|
2
|
-
const instrument = async ({
|
|
2
|
+
const instrument = async ({
|
|
3
|
+
posthogKey
|
|
4
|
+
}) => {
|
|
3
5
|
if (typeof posthogKey === "string" && posthogKey.length > 0) {
|
|
4
6
|
try {
|
|
5
|
-
const {
|
|
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",
|
package/dist/instrument.js.map
CHANGED
|
@@ -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,
|
|
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-
|
|
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,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useQuery.d.ts","sourceRoot":"","sources":["../../src/rts/useQuery.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,cAAc,CAAA;AAEtD,OAAO,KAAK,EAAE,YA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