ctx-core 7.2.1 → 7.2.2

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.
@@ -37,7 +37,7 @@ export function file_exists__waitfor(
37
37
  } catch (err) {
38
38
  if (
39
39
  err.code !== 'ENOENT'
40
- && !err.message?.include('ENOENT')
40
+ && !err.message?.includes('ENOENT')
41
41
  ) {
42
42
  throw err
43
43
  }
@@ -17,6 +17,14 @@ test('file_exists_ + file_exists__waitfor|server', async ()=>{
17
17
  await unlink(tempfile_path)
18
18
  }
19
19
  })
20
+ test('file_exists__waitfor|bun error', async ()=>{
21
+ let count = 0
22
+ await file_exists__waitfor(()=>{
23
+ ++count
24
+ if (count < 5) throw Error('error: ENOENT reading /some/file.js')
25
+ return true
26
+ })
27
+ })
20
28
  test('file_exists__waitfor|server|cancel', async ()=>{
21
29
  const tempfile_path = await tempfile_path_()
22
30
  equal(await file_exists_(tempfile_path), false)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ctx-core",
3
- "version": "7.2.1",
3
+ "version": "7.2.2",
4
4
  "description": "ctx-core core library",
5
5
  "keywords": [
6
6
  "ctx-core",