@zenfs/core 2.5.3 → 2.5.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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zenfs/core",
3
- "version": "2.5.3",
3
+ "version": "2.5.4",
4
4
  "description": "A filesystem, anywhere",
5
5
  "funding": {
6
6
  "type": "individual",
@@ -15,7 +15,7 @@
15
15
  ],
16
16
  "bin": {
17
17
  "make-index": "scripts/make-index.js",
18
- "zenfs-test": "scripts/test.ts",
18
+ "zenfs-test": "scripts/test.js",
19
19
  "zci": "scripts/ci-cli.js"
20
20
  },
21
21
  "files": [
@@ -149,8 +149,11 @@ mkdirSync(options.coverage, { recursive: true });
149
149
 
150
150
  /**
151
151
  * Generate the command used to run the tests
152
+ * @param {string} profileName
153
+ * @param {...string} rest
154
+ * @returns {string}
152
155
  */
153
- function makeCommand(profileName: string, ...rest: string[]): string {
156
+ function makeCommand(profileName, ...rest) {
154
157
  const command = [
155
158
  'tsx --trace-deprecation',
156
159
  options.inspect ? '--inspect' : '',
@@ -168,7 +171,10 @@ function makeCommand(profileName: string, ...rest: string[]): string {
168
171
  return command;
169
172
  }
170
173
 
171
- function duration(ms: number) {
174
+ /**
175
+ * @param {number} ms
176
+ */
177
+ function duration(ms) {
172
178
  ms = Math.round(ms);
173
179
  let unit = 'ms';
174
180
 
@@ -182,14 +188,18 @@ function duration(ms: number) {
182
188
 
183
189
  const nRuns = Number.isSafeInteger(parseInt(options.runs)) ? parseInt(options.runs) : 1;
184
190
 
185
- interface RunTestOptions {
186
- name: string;
187
- args: string[];
188
- statusName?: string;
189
- shouldSkip?(): boolean;
190
- }
191
+ /**
192
+ * @typedef {object} RunTestOptions
193
+ * @property {string} name
194
+ * @property {string[]} args
195
+ * @property {string} [statusName]
196
+ * @property {() => boolean} [shouldSkip]
197
+ */
191
198
 
192
- async function runTests(config: RunTestOptions) {
199
+ /**
200
+ * @param {RunTestOptions} config
201
+ */
202
+ async function runTests(config) {
193
203
  const statusName = config.statusName || config.name;
194
204
 
195
205
  const command = makeCommand(config.name, ...config.args);