@usermaven/nextjs 1.4.1 → 1.4.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.
Files changed (2) hide show
  1. package/lib/index.es.js +4 -4
  2. package/package.json +1 -1
package/lib/index.es.js CHANGED
@@ -1547,8 +1547,8 @@ var FormTracking = /** @class */ (function () {
1547
1547
 
1548
1548
  var VERSION_INFO = {
1549
1549
  env: 'production',
1550
- date: '2024-11-12T08:10:12.563Z',
1551
- version: '1.4.1'
1550
+ date: '2024-11-15T06:39:44.205Z',
1551
+ version: '1.4.2'
1552
1552
  };
1553
1553
  var USERMAVEN_VERSION = VERSION_INFO.version + "/" + VERSION_INFO.env + "@" + VERSION_INFO.date;
1554
1554
  var MAX_AGE_TEN_YEARS = 31622400 * 10;
@@ -2164,13 +2164,13 @@ var UsermavenClientImpl = /** @class */ (function () {
2164
2164
  var user = __assign({}, this.userProperties);
2165
2165
  var company = user['company'] || {};
2166
2166
  delete user['company'];
2167
- var payload = __assign(__assign({ event_id: "", user: __assign({ anonymous_id: this.cookiePolicy !== "strict"
2167
+ var payload = __assign(__assign({ event_id: "", user: __assign(__assign({}, user), { anonymous_id: this.cookiePolicy !== "strict"
2168
2168
  ? env.getAnonymousId({
2169
2169
  name: this.idCookieName,
2170
2170
  domain: this.cookieDomain,
2171
2171
  crossDomainLinking: this.crossDomainLinking,
2172
2172
  })
2173
- : "" }, user), ids: this._getIds(), utc_time: reformatDate(now.toISOString()), local_tz_offset: now.getTimezoneOffset() }, props), getDataFromParams(parseQuery(props.doc_search)));
2173
+ : "" }), ids: this._getIds(), utc_time: reformatDate(now.toISOString()), local_tz_offset: now.getTimezoneOffset() }, props), getDataFromParams(parseQuery(props.doc_search)));
2174
2174
  // id and name attributes will be checked on backend
2175
2175
  if (Object.keys(company).length) {
2176
2176
  payload['company'] = company;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@usermaven/nextjs",
3
- "version": "1.4.1",
3
+ "version": "1.4.2",
4
4
  "description": "Usermaven JavaScript SDK for NextJS",
5
5
  "author": "Usermaven <hello@usermaven.com>",
6
6
  "license": "MIT",