ctx-core 5.32.0 → 5.32.1

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,4 +1,4 @@
1
1
  export declare function is_entry_file_(
2
2
  url:string,
3
3
  entry_file?:string
4
- ):Promise<boolean>
4
+ ):boolean
@@ -1,22 +1,21 @@
1
1
  import { build } from 'esbuild'
2
- import esmock from 'esmock'
3
2
  import { dirname, join, resolve } from 'node:path'
4
3
  import { test } from 'uvu'
5
4
  import { equal } from 'uvu/assert'
6
5
  import { is_entry_file_ as browser_is_entry_file_ } from './index.browser.js'
7
6
  import { is_entry_file_ } from './index.js'
8
- test('is_entry_file_|server', async ()=>{
7
+ test('is_entry_file_|server', ()=>{
9
8
  equal(
10
- await is_entry_file_(import.meta.url, new URL(import.meta.url).pathname),
9
+ is_entry_file_(import.meta.url, new URL(import.meta.url).pathname),
11
10
  true)
12
11
  equal(
13
- await is_entry_file_(
12
+ is_entry_file_(
14
13
  import.meta.url,
15
14
  new URL(import.meta.url).pathname.replace(
16
15
  resolve(process.cwd()) + '/', '')),
17
16
  true)
18
17
  equal(
19
- await is_entry_file_(import.meta.url, '/not/url'),
18
+ is_entry_file_(import.meta.url, '/not/url'),
20
19
  false)
21
20
  })
22
21
  test('is_entry_file_|browser', async ()=>{
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ctx-core",
3
- "version": "5.32.0",
3
+ "version": "5.32.1",
4
4
  "description": "ctx-core core library",
5
5
  "keywords": [
6
6
  "ctx-core",