posthog-node 2.5.1 → 2.5.2
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/CHANGELOG.md +6 -0
- package/lib/index.cjs.js +7 -3
- package/lib/index.cjs.js.map +1 -1
- package/lib/index.esm.js +7 -3
- package/lib/index.esm.js.map +1 -1
- package/package.json +1 -1
- package/src/posthog-node.ts +6 -1
- package/test/posthog-node.spec.ts +21 -1
package/lib/index.esm.js
CHANGED
|
@@ -155,7 +155,7 @@ function __spreadArray(to, from, pack) {
|
|
|
155
155
|
return to.concat(ar || Array.prototype.slice.call(from));
|
|
156
156
|
}
|
|
157
157
|
|
|
158
|
-
var version = "2.5.
|
|
158
|
+
var version = "2.5.2";
|
|
159
159
|
|
|
160
160
|
var PostHogPersistedProperty;
|
|
161
161
|
(function (PostHogPersistedProperty) {
|
|
@@ -2368,9 +2368,13 @@ function (_super) {
|
|
|
2368
2368
|
|
|
2369
2369
|
PostHog.prototype.identify = function (_a) {
|
|
2370
2370
|
var distinctId = _a.distinctId,
|
|
2371
|
-
properties = _a.properties;
|
|
2371
|
+
properties = _a.properties; // Catch properties passed as $set and move them to the top level
|
|
2372
|
+
|
|
2373
|
+
var personProperties = (properties === null || properties === void 0 ? void 0 : properties.$set) || properties;
|
|
2372
2374
|
|
|
2373
|
-
_super.prototype.identifyStateless.call(this, distinctId,
|
|
2375
|
+
_super.prototype.identifyStateless.call(this, distinctId, {
|
|
2376
|
+
$set: personProperties
|
|
2377
|
+
});
|
|
2374
2378
|
};
|
|
2375
2379
|
|
|
2376
2380
|
PostHog.prototype.alias = function (data) {
|