browser-ava 2.3.6 → 2.3.8

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 (3) hide show
  1. package/LICENSE +1 -1
  2. package/README.md +44 -15
  3. package/package.json +8 -8
package/LICENSE CHANGED
@@ -1,4 +1,4 @@
1
- Copyright (C) 2021-2024 by arlac77
1
+ Copyright (C) 2021-2025 by arlac77
2
2
 
3
3
  Permission to use, copy, modify, and/or distribute this software for any
4
4
  purpose with or without fee is hereby granted.
package/README.md CHANGED
@@ -1,5 +1,5 @@
1
1
  [![npm](https://img.shields.io/npm/v/browser-ava.svg)](https://www.npmjs.com/package/browser-ava)
2
- [![License](https://img.shields.io/badge/License-BSD%203--Clause-blue.svg)](https://spdx.org/licenses/0BSD.html)
2
+ [![License](https://img.shields.io/badge/License-0BSD-blue.svg)](https://spdx.org/licenses/0BSD.html)
3
3
  [![bundlejs](https://deno.bundlejs.com/?q=browser-ava\&badge=detailed)](https://bundlejs.com/?q=browser-ava)
4
4
  [![downloads](http://img.shields.io/npm/dm/browser-ava.svg?style=flat-square)](https://npmjs.org/package/browser-ava)
5
5
  [![GitHub Issues](https://img.shields.io/github/issues/arlac77/browser-ava.svg?style=flat-square)](https://github.com/arlac77/browser-ava/issues)
@@ -35,32 +35,61 @@ browser-ava --webkit --chromium --firefox tests/*.mjs
35
35
 
36
36
  ### Table of Contents
37
37
 
38
- * [testModules](#testmodules)
39
- * [test](#test)
40
- * [Parameters](#parameters)
41
38
  * [pluralize](#pluralize)
39
+ * [Parameters](#parameters)
40
+ * [utf8EncodingOptions](#utf8encodingoptions)
41
+ * [importsConditionOrder](#importsconditionorder)
42
+ * [exportsConditionOrder](#exportsconditionorder)
43
+ * [resolveExports](#resolveexports)
42
44
  * [Parameters](#parameters-1)
45
+ * [resolveImport](#resolveimport)
46
+ * [Parameters](#parameters-2)
47
+
48
+ ## pluralize
49
+
50
+ Pluralize subjects
51
+
52
+ ### Parameters
53
+
54
+ * `word` **[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)** subject to be pluralized
55
+ * `number` **[number](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Number)** if > 1 pluralize otherwize keep subject alone
56
+
57
+ Returns **[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)** pluralized subject if number > 1
43
58
 
44
- ## testModules
59
+ ## utf8EncodingOptions
45
60
 
46
- Holds all tests
61
+ Type: BufferEncoding
47
62
 
48
- ## test
63
+ ## importsConditionOrder
49
64
 
50
- Collect all tests into testModules
65
+ * **See**: {<https://nodejs.org/dist/latest/docs/api/packages.html#imports}>
66
+
67
+ Order in which imports are searched
68
+
69
+ ## exportsConditionOrder
70
+
71
+ * **See**: {<https://nodejs.org/dist/latest/docs/api/packages.html#exports}>
72
+
73
+ Order in which exports are searched
74
+
75
+ ## resolveExports
76
+
77
+ Find module inside a package.
51
78
 
52
79
  ### Parameters
53
80
 
54
- * `body` &#x20;
55
- * `args` **...any**&#x20;
81
+ * `parts` **[Array](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Array)<[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)>**&#x20;
82
+ * `pkg` **[Object](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Object)** decoded package.json content
56
83
 
57
- ## pluralize
84
+ Returns **([string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String) | [undefined](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/undefined))** module file name relative to package
58
85
 
59
- Pluralize subjects
86
+ ## resolveImport
87
+
88
+ Maps import url from node to browser view.
60
89
 
61
90
  ### Parameters
62
91
 
63
- * `word` **[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)** subject to be pluralized
64
- * `number` **[number](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Number)** if > 1 pluralize otherwize keep subject alone
92
+ * `name` **[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)** module to resolve
93
+ * `base` **[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)** where to start resolving
65
94
 
66
- Returns **[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)** pluralized subject if number > 1
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
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "browser-ava",
3
- "version": "2.3.6",
3
+ "version": "2.3.8",
4
4
  "publishConfig": {
5
5
  "access": "public",
6
6
  "provenance": true
@@ -30,15 +30,15 @@
30
30
  "test": "node --run test:ava",
31
31
  "test:ava": "ava --timeout 4m tests/*-ava.mjs tests/*-ava-node.mjs",
32
32
  "cover": "c8 -x 'tests/**/*' --temp-directory build/tmp ava --timeout 4m tests/*-ava.mjs tests/*-ava-node.mjs && c8 report -r lcov -o build/coverage --temp-directory build/tmp",
33
- "docs": "documentation readme --section=API ./src/**/*.mjs",
33
+ "docs": "documentation readme --section=API ./src**/*.mjs",
34
34
  "lint": "node --run lint:docs",
35
- "lint:docs": "documentation lint ./src/**/*.mjs"
35
+ "lint:docs": "documentation lint ./src**/*.mjs"
36
36
  },
37
37
  "dependencies": {
38
38
  "@koa/cors": "^5.0.0",
39
39
  "chalk": "^5.4.1",
40
- "commander": "^12.1.0",
41
- "es-module-lexer": "^1.5.4",
40
+ "commander": "^13.1.0",
41
+ "es-module-lexer": "^1.6.0",
42
42
  "globby": "^14.0.2",
43
43
  "koa": "^2.15.3",
44
44
  "koa-static": "^5.0.0",
@@ -46,15 +46,15 @@
46
46
  "ws": "^8.18.0"
47
47
  },
48
48
  "devDependencies": {
49
- "@types/node": "^22.10.2",
49
+ "@types/node": "^22.10.7",
50
50
  "ava": "^6.2.0",
51
51
  "c8": "^10.1.3",
52
52
  "documentation": "^14.0.3",
53
53
  "execa": "^9.5.2",
54
- "semantic-release": "^24.2.0"
54
+ "semantic-release": "^24.2.1"
55
55
  },
56
56
  "engines": {
57
- "node": ">=22.12.0",
57
+ "node": ">=22.13.0",
58
58
  "bun": ">=1.1"
59
59
  },
60
60
  "repository": {