@affogatosoftware/recorder 1.4.0 → 1.4.1

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.
@@ -1,7 +1,6 @@
1
1
  import { logger } from "../logger";
2
2
  import { post } from "../requests";
3
3
  import {} from "./recorder";
4
- import { assertNever } from "../utils";
5
4
  export class EventRecorder {
6
5
  window;
7
6
  recorderSettings;
@@ -127,7 +127,7 @@ export class Recorder {
127
127
  return;
128
128
  }
129
129
  try {
130
- const response = await patch(`public/captured-sessions/${capturedSessionId}/identify`, userIdentity.userId, { withCredentials: false });
130
+ const response = await patch(`public/captured-sessions/${capturedSessionId}/identify`, { user: userIdentity.userId }, { withCredentials: false });
131
131
  if (response.status >= 400) {
132
132
  console.error(`Failed to identify user: HTTP ${response.status}`, response.data);
133
133
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@affogatosoftware/recorder",
3
- "version": "1.4.0",
3
+ "version": "1.4.1",
4
4
  "license": "MIT",
5
5
  "author": "Chris Ryan",
6
6
  "main": "./dist/index.js",