@rpcbase/server 0.532.0 → 0.534.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/index.js +17 -18
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -220,6 +220,20 @@ var parsePayload = (response) => {
|
|
|
220
220
|
}
|
|
221
221
|
};
|
|
222
222
|
//#endregion
|
|
223
|
+
//#region ../../node_modules/@posthog/core/dist/gzip.mjs
|
|
224
|
+
function isGzipSupported() {
|
|
225
|
+
return "CompressionStream" in globalThis;
|
|
226
|
+
}
|
|
227
|
+
async function gzipCompress(input, isDebug = true) {
|
|
228
|
+
try {
|
|
229
|
+
const compressedStream = new Blob([input], { type: "text/plain" }).stream().pipeThrough(new CompressionStream("gzip"));
|
|
230
|
+
return await new Response(compressedStream).blob();
|
|
231
|
+
} catch (error) {
|
|
232
|
+
if (isDebug) console.error("Failed to gzip compress data", error);
|
|
233
|
+
return null;
|
|
234
|
+
}
|
|
235
|
+
}
|
|
236
|
+
//#endregion
|
|
223
237
|
//#region ../../node_modules/@posthog/core/dist/vendor/uuidv7.mjs
|
|
224
238
|
/*! For license information please see uuidv7.mjs.LICENSE.txt */
|
|
225
239
|
/**
|
|
@@ -764,20 +778,6 @@ var SimpleEventEmitter = class {
|
|
|
764
778
|
}
|
|
765
779
|
};
|
|
766
780
|
//#endregion
|
|
767
|
-
//#region ../../node_modules/@posthog/core/dist/gzip.mjs
|
|
768
|
-
function isGzipSupported() {
|
|
769
|
-
return "CompressionStream" in globalThis;
|
|
770
|
-
}
|
|
771
|
-
async function gzipCompress(input, isDebug = true) {
|
|
772
|
-
try {
|
|
773
|
-
const compressedStream = new Blob([input], { type: "text/plain" }).stream().pipeThrough(new CompressionStream("gzip"));
|
|
774
|
-
return await new Response(compressedStream).blob();
|
|
775
|
-
} catch (error) {
|
|
776
|
-
if (isDebug) console.error("Failed to gzip compress data", error);
|
|
777
|
-
return null;
|
|
778
|
-
}
|
|
779
|
-
}
|
|
780
|
-
//#endregion
|
|
781
781
|
//#region ../../node_modules/@posthog/core/dist/posthog-core-stateless.mjs
|
|
782
782
|
var PostHogFetchHttpError = class extends Error {
|
|
783
783
|
constructor(response, reqByteLength) {
|
|
@@ -2040,12 +2040,11 @@ var ErrorTracking = class ErrorTracking {
|
|
|
2040
2040
|
}
|
|
2041
2041
|
static async buildEventMessage(error, hint, distinctId, additionalProperties) {
|
|
2042
2042
|
const properties = { ...additionalProperties };
|
|
2043
|
-
if (!distinctId) properties.$process_person_profile = false;
|
|
2044
2043
|
const exceptionProperties = this.errorPropertiesBuilder.buildFromUnknown(error, hint);
|
|
2045
2044
|
exceptionProperties.$exception_list = await this.errorPropertiesBuilder.modifyFrames(exceptionProperties.$exception_list);
|
|
2046
2045
|
return {
|
|
2047
2046
|
event: "$exception",
|
|
2048
|
-
distinctId
|
|
2047
|
+
distinctId,
|
|
2049
2048
|
properties: {
|
|
2050
2049
|
...exceptionProperties,
|
|
2051
2050
|
...properties
|
|
@@ -2083,7 +2082,7 @@ var ErrorTracking = class ErrorTracking {
|
|
|
2083
2082
|
};
|
|
2084
2083
|
//#endregion
|
|
2085
2084
|
//#region ../../node_modules/posthog-node/dist/version.mjs
|
|
2086
|
-
var version = "5.28.
|
|
2085
|
+
var version = "5.28.7";
|
|
2087
2086
|
//#endregion
|
|
2088
2087
|
//#region ../../node_modules/posthog-node/dist/types.mjs
|
|
2089
2088
|
var FeatureFlagError = {
|
|
@@ -4395,7 +4394,7 @@ function getShortCircuitMatches(routes) {
|
|
|
4395
4394
|
};
|
|
4396
4395
|
}
|
|
4397
4396
|
var NOT_FOUND_STATUS = 404;
|
|
4398
|
-
var LOADER_TIMEOUT_MS =
|
|
4397
|
+
var LOADER_TIMEOUT_MS = 15e3;
|
|
4399
4398
|
var IMMUTABLE_LAZY_ROUTE_KEYS = new Set([
|
|
4400
4399
|
"lazy",
|
|
4401
4400
|
"caseSensitive",
|