@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.
- package/dist/errorReporting-Dfcrn3W1.js +18 -0
- package/dist/errorReporting-Dfcrn3W1.js.map +1 -0
- package/dist/getServerApiClient-udstTQk3.js +153 -0
- package/dist/getServerApiClient-udstTQk3.js.map +1 -0
- package/dist/index.js +2332 -2568
- package/dist/index.js.map +1 -1
- package/dist/instrument.js +32 -40
- package/dist/instrument.js.map +1 -1
- package/dist/rts/index.js +2 -29
- package/dist/rts-C9dMrcRZ.js +1991 -0
- package/dist/rts-C9dMrcRZ.js.map +1 -0
- package/dist/spatial-nav/index.js +4790 -4327
- package/dist/spatial-nav/index.js.map +1 -1
- package/dist/throttle-Cz-gYuKD.js +606 -0
- package/dist/throttle-Cz-gYuKD.js.map +1 -0
- package/package.json +1 -1
- package/dist/errorReporting-CVoUUKxW.js +0 -18
- package/dist/errorReporting-CVoUUKxW.js.map +0 -1
- package/dist/getServerApiClient-C1UInaMF.js +0 -179
- package/dist/getServerApiClient-C1UInaMF.js.map +0 -1
- package/dist/rts/index.js.map +0 -1
- package/dist/throttle-CXOc9Dto.js +0 -396
- package/dist/throttle-CXOc9Dto.js.map +0 -1
- package/dist/useQuery-XvXbEwG_.js +0 -2312
- package/dist/useQuery-XvXbEwG_.js.map +0 -1
package/dist/instrument.js
CHANGED
|
@@ -1,41 +1,33 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
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
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
//# sourceMappingURL=instrument.js.map
|
|
30
|
+
//#endregion
|
|
31
|
+
export { instrument };
|
|
32
|
+
|
|
33
|
+
//# sourceMappingURL=instrument.js.map
|
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"],"
|
|
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 {
|
|
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 };
|