@browsermation/test 0.0.70 → 0.0.71

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/reporter.js +6 -8
  2. package/package.json +1 -1
package/dist/reporter.js CHANGED
@@ -157,14 +157,6 @@ var BrowsermationReporter = class {
157
157
  });
158
158
  }
159
159
  getReportingURL() {
160
- const browserRunId = process.env.BM_BROWSER_RUN_ID;
161
- if (browserRunId) {
162
- const baseURL = this.browsermationURL.replace(
163
- /\/api\/v1\/playwright\/reporting$/,
164
- ""
165
- );
166
- return `${baseURL}/api/v1/browser-runs/${browserRunId}/reporting`;
167
- }
168
160
  return this.browsermationURL;
169
161
  }
170
162
  async sendData(data) {
@@ -174,6 +166,12 @@ var BrowsermationReporter = class {
174
166
  );
175
167
  return;
176
168
  }
169
+ if (process.env.BM_BROWSER_RUN_ID) {
170
+ this.log(
171
+ `BM_BROWSER_RUN_ID is set to ${process.env.BM_BROWSER_RUN_ID}. Adding to event data.`
172
+ );
173
+ data.browser_run_id = process.env.BM_BROWSER_RUN_ID;
174
+ }
177
175
  if (this.batchMode) {
178
176
  this.log(`Batch mode: Adding event to batch: ${data.type}`);
179
177
  this.batchEvents.push(data);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@browsermation/test",
3
- "version": "0.0.70",
3
+ "version": "0.0.71",
4
4
  "description": "The testing platform for Playwright by Browsermation.",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",