@rpcbase/server 0.471.0 → 0.472.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 +21 -17
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -2095,7 +2095,7 @@ class ErrorTracking {
|
|
|
2095
2095
|
this._rateLimiter.stop();
|
|
2096
2096
|
}
|
|
2097
2097
|
}
|
|
2098
|
-
const version$2 = "5.17.
|
|
2098
|
+
const version$2 = "5.17.4";
|
|
2099
2099
|
async function hashSHA1(text) {
|
|
2100
2100
|
const subtle = globalThis.crypto?.subtle;
|
|
2101
2101
|
if (!subtle) throw new Error("SubtleCrypto API not available");
|
|
@@ -2750,25 +2750,29 @@ class PostHogBackendClient extends PostHogCoreStateless {
|
|
|
2750
2750
|
if (err) console.error(err);
|
|
2751
2751
|
}));
|
|
2752
2752
|
}
|
|
2753
|
-
identify({ distinctId, properties, disableGeoip }) {
|
|
2754
|
-
const
|
|
2755
|
-
|
|
2756
|
-
const
|
|
2757
|
-
|
|
2758
|
-
$set:
|
|
2759
|
-
$set_once:
|
|
2760
|
-
|
|
2753
|
+
identify({ distinctId, properties = {}, disableGeoip }) {
|
|
2754
|
+
const { $set, $set_once, $anon_distinct_id, ...rest } = properties;
|
|
2755
|
+
const setProps = $set || rest;
|
|
2756
|
+
const setOnceProps = $set_once || {};
|
|
2757
|
+
const eventProperties = {
|
|
2758
|
+
$set: setProps,
|
|
2759
|
+
$set_once: setOnceProps,
|
|
2760
|
+
$anon_distinct_id: $anon_distinct_id ?? void 0
|
|
2761
|
+
};
|
|
2762
|
+
super.identifyStateless(distinctId, eventProperties, {
|
|
2761
2763
|
disableGeoip
|
|
2762
2764
|
});
|
|
2763
2765
|
}
|
|
2764
|
-
async identifyImmediate({ distinctId, properties, disableGeoip }) {
|
|
2765
|
-
const
|
|
2766
|
-
|
|
2767
|
-
const
|
|
2768
|
-
|
|
2769
|
-
$set:
|
|
2770
|
-
$set_once:
|
|
2771
|
-
|
|
2766
|
+
async identifyImmediate({ distinctId, properties = {}, disableGeoip }) {
|
|
2767
|
+
const { $set, $set_once, $anon_distinct_id, ...rest } = properties;
|
|
2768
|
+
const setProps = $set || rest;
|
|
2769
|
+
const setOnceProps = $set_once || {};
|
|
2770
|
+
const eventProperties = {
|
|
2771
|
+
$set: setProps,
|
|
2772
|
+
$set_once: setOnceProps,
|
|
2773
|
+
$anon_distinct_id: $anon_distinct_id ?? void 0
|
|
2774
|
+
};
|
|
2775
|
+
super.identifyStatelessImmediate(distinctId, eventProperties, {
|
|
2772
2776
|
disableGeoip
|
|
2773
2777
|
});
|
|
2774
2778
|
}
|