@wdio/browser-runner 8.10.2 → 8.10.4

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 +1 @@
1
- {"version":3,"file":"testrunner.d.ts","sourceRoot":"","sources":["../../../src/vite/plugins/testrunner.ts"],"names":[],"mappings":"AASA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,MAAM,CAAA;AA0ClC,wBAAgB,UAAU,CAAC,OAAO,EAAE,WAAW,CAAC,oBAAoB,GAAG,MAAM,EAAE,CAoH9E"}
1
+ {"version":3,"file":"testrunner.d.ts","sourceRoot":"","sources":["../../../src/vite/plugins/testrunner.ts"],"names":[],"mappings":"AASA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,MAAM,CAAA;AA0ClC,wBAAgB,UAAU,CAAC,OAAO,EAAE,WAAW,CAAC,oBAAoB,GAAG,MAAM,EAAE,CAuH9E"}
@@ -85,7 +85,10 @@ export function testrunner(options) {
85
85
  return () => {
86
86
  server.middlewares.use(async (req, res, next) => {
87
87
  log.info(`Received request for: ${req.originalUrl}`);
88
- if (!req.originalUrl) {
88
+ /**
89
+ * don't return test page when sourcemaps are requested
90
+ */
91
+ if (!req.originalUrl || req.url?.endsWith('.map')) {
89
92
  return next();
90
93
  }
91
94
  const cookies = ((req.headers.cookie && req.headers.cookie.split(';')) || []).map((c) => c.trim());
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wdio/browser-runner",
3
- "version": "8.10.2",
3
+ "version": "8.10.4",
4
4
  "description": "A WebdriverIO runner to run unit tests tests in the browser.",
5
5
  "author": "Christian Bromann <mail@bromann.dev>",
6
6
  "homepage": "https://github.com/webdriverio/webdriverio/tree/main/packages/wdio-browser-runner",
@@ -34,14 +34,14 @@
34
34
  "@originjs/vite-plugin-commonjs": "^1.0.3",
35
35
  "@types/istanbul-lib-source-maps": "^4.0.1",
36
36
  "@types/node": "^20.1.0",
37
- "@vitest/spy": "^0.30.0",
38
- "@wdio/globals": "8.10.2",
39
- "@wdio/local-runner": "8.10.2",
37
+ "@vitest/spy": "^0.31.0",
38
+ "@wdio/globals": "8.10.4",
39
+ "@wdio/local-runner": "8.10.4",
40
40
  "@wdio/logger": "8.6.6",
41
- "@wdio/mocha-framework": "8.10.2",
41
+ "@wdio/mocha-framework": "8.10.4",
42
42
  "@wdio/protocols": "8.10.2",
43
- "@wdio/types": "8.10.2",
44
- "@wdio/utils": "8.10.2",
43
+ "@wdio/types": "8.10.4",
44
+ "@wdio/utils": "8.10.4",
45
45
  "ast-types": "^0.14.2",
46
46
  "deepmerge-ts": "^5.0.0",
47
47
  "expect-webdriverio": "^4.1.2",
@@ -53,14 +53,14 @@
53
53
  "istanbul-lib-source-maps": "^4.0.1",
54
54
  "istanbul-reports": "^3.1.5",
55
55
  "modern-node-polyfills": "^0.1.0",
56
- "recast": "^0.22.0",
56
+ "recast": "^0.23.2",
57
57
  "serialize-error": "^11.0.0",
58
58
  "source-map-support": "^0.5.21",
59
59
  "vite": "~4.2.0",
60
60
  "vite-plugin-istanbul": "^4.0.1",
61
61
  "vite-plugin-top-level-await": "^1.3.0",
62
- "webdriver": "8.10.2",
63
- "webdriverio": "8.10.2",
62
+ "webdriver": "8.10.4",
63
+ "webdriverio": "8.10.4",
64
64
  "ws": "^8.13.0"
65
65
  },
66
66
  "scripts": {
@@ -71,7 +71,7 @@
71
71
  },
72
72
  "devDependencies": {
73
73
  "@types/ws": "^8.5.4",
74
- "@wdio/runner": "8.10.2"
74
+ "@wdio/runner": "8.10.4"
75
75
  },
76
- "gitHead": "fb163d506af31d0c5e5328bfee07d55a56aa0034"
76
+ "gitHead": "a8371338e89da4e7cc7e5a9dd0aaccf44776b04c"
77
77
  }