browser-ava 2.3.31 → 2.3.33

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/README.md CHANGED
@@ -92,4 +92,4 @@ Maps import url from node to browser view.
92
92
  * `name` **[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)** module to resolve
93
93
  * `base` **[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)** where to start resolving
94
94
 
95
- Returns **[Promise](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Promise)<[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)>** resolved import url
95
+ Returns **[Promise](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Promise)<([string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String) | [undefined](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/undefined))>** resolved import url
package/package.json CHANGED
@@ -1,10 +1,11 @@
1
1
  {
2
2
  "name": "browser-ava",
3
- "version": "2.3.31",
3
+ "version": "2.3.33",
4
4
  "publishConfig": {
5
5
  "access": "public",
6
6
  "provenance": true
7
7
  },
8
+ "packageManager": "npm@11.6.0+sha512.77f3fb0dbbd881835d7bd1217deabdf7ed77fc4ec4f363df64fc3cb986404abf6c437661041080f5c5d225103508e7c9ea30cb2742b7e942675d05a10af2d7b9",
8
9
  "description": "Run ava tests in the browser",
9
10
  "keywords": [
10
11
  "assert",
@@ -36,25 +37,25 @@
36
37
  },
37
38
  "dependencies": {
38
39
  "@koa/cors": "^5.0.0",
39
- "chalk": "^5.4.1",
40
- "commander": "^13.1.0",
40
+ "chalk": "^5.6.2",
41
+ "commander": "^14.0.1",
41
42
  "es-module-lexer": "^1.7.0",
42
43
  "globby": "^14.1.0",
43
- "koa": "^3.0.0",
44
+ "koa": "^3.0.1",
44
45
  "koa-static": "^5.0.0",
45
- "playwright": "^1.52.0",
46
- "ws": "^8.18.2"
46
+ "playwright": "^1.55.0",
47
+ "ws": "^8.18.3"
47
48
  },
48
49
  "devDependencies": {
49
- "@types/node": "^22.15.17",
50
- "ava": "^6.3.0",
50
+ "@types/node": "^24.5.2",
51
+ "ava": "^6.4.1",
51
52
  "c8": "^10.1.3",
52
53
  "documentation": "^14.0.3",
53
- "execa": "^9.5.3",
54
- "semantic-release": "^24.2.3"
54
+ "execa": "^9.6.0",
55
+ "semantic-release": "^24.2.9"
55
56
  },
56
57
  "engines": {
57
- "node": ">=22.15.0",
58
+ "node": ">=22.19.0",
58
59
  "bun": ">=1.2.12"
59
60
  },
60
61
  "repository": {
@@ -21,6 +21,13 @@ export function isEqual(a, b) {
21
21
  }
22
22
 
23
23
  if (typeof a === "object") {
24
+
25
+ if(a instanceof ArrayBuffer) {
26
+ if(b instanceof ArrayBuffer) {
27
+ return a.byteLength === b.byteLength;
28
+ }
29
+ }
30
+
24
31
  if (a instanceof Set) {
25
32
  return (
26
33
  b instanceof Set &&
@@ -240,7 +240,12 @@ async function runTestModule(tm) {
240
240
  }
241
241
 
242
242
  async function runTestModules() {
243
- await Promise.all(testModules.map(tm => runTestModule(tm)));
243
+ try {
244
+ await Promise.all(testModules.map(tm => runTestModule(tm)));
245
+ }
246
+ catch(error) {
247
+ console.error(error);
248
+ }
244
249
 
245
250
  ws.send(JSON.stringify({ action: "result", data: testModules }, allErrorProperties));
246
251
 
@@ -117,7 +117,7 @@ program
117
117
  case "error":
118
118
  errors++;
119
119
  console.error(...data);
120
- await shutdown(undefined, true);
120
+ await shutdown(true, false);
121
121
  break;
122
122
 
123
123
  case "ready":
package/src/resolver.mjs CHANGED
@@ -104,7 +104,7 @@ async function findPackage(path) {
104
104
  * Maps import url from node to browser view.
105
105
  * @param {string} name module to resolve
106
106
  * @param {string} base where to start resolving
107
- * @returns {Promise<string>} resolved import url
107
+ * @returns {Promise<string|undefined>} resolved import url
108
108
  */
109
109
  export async function resolveImport(name, base) {
110
110
  if (name.match(/^[\/\.]/)) {