@rpcbase/server 0.470.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.
Files changed (2) hide show
  1. package/dist/index.js +21 -17
  2. package/package.json +4 -2
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.2";
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 userPropsOnce = properties?.$set_once;
2755
- delete properties?.$set_once;
2756
- const userProps = properties?.$set || properties;
2757
- super.identifyStateless(distinctId, {
2758
- $set: userProps,
2759
- $set_once: userPropsOnce
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 userPropsOnce = properties?.$set_once;
2766
- delete properties?.$set_once;
2767
- const userProps = properties?.$set || properties;
2768
- await super.identifyStatelessImmediate(distinctId, {
2769
- $set: userProps,
2770
- $set_once: userPropsOnce
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
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rpcbase/server",
3
- "version": "0.470.0",
3
+ "version": "0.472.0",
4
4
  "type": "module",
5
5
  "files": [
6
6
  "dist"
@@ -62,7 +62,9 @@
62
62
  "package.json",
63
63
  "dist/**/*"
64
64
  ],
65
- "output": [],
65
+ "output": [
66
+ "publish-output.txt"
67
+ ],
66
68
  "env": {
67
69
  "NPM_RELEASE_CHANNEL": {
68
70
  "external": true