Package: node-tshy
Version: 1.0.0-2
Severity: serious
Justification: autopkgtest fails
X-Debbugs-Cc: [email protected]

autopkgtest "require" fails. Either this package is not usable via
"import" and then debtan/tests/require-SKIP should contain 'tshy',
either the package must embed the "src" directory according to the logs:


#   Testing tshy: file:///tmp/autopkgtest.tkDria/autopkgtest_tmp/test.mjs:1
import TMP from 'tshy';console.log('Import succeeds')
       ^^^
SyntaxError: The requested module 'tshy' does not provide an export named 
'default'
    at ModuleJob._instantiate (node:internal/modules/esm/module_job:226:21)
    at async ModuleJob.run (node:internal/modules/esm/module_job:335:5)
    at async onImport.tracePromise.__proto__ 
(node:internal/modules/esm/loader:665:26)
    at async asyncRunEntryPointWithESMLoader 
(node:internal/modules/run_main:117:5)

Node.js v22.22.0
not ok
#   Testing tshy without default export: node:fs:1597
  const result = binding.readdir(
                         ^

Error: ENOENT: no such file or directory, scandir 'src'
    at readdirSync (node:fs:1597:26)
    at getSources (file:///usr/share/nodejs/tshy/dist/esm/sources.js:6:21)
    at file:///usr/share/nodejs/tshy/dist/esm/sources.js:17:25
    at ModuleJob.run (node:internal/modules/esm/module_job:343:25)
    at async onImport.tracePromise.__proto__ 
(node:internal/modules/esm/loader:665:26)
    at async asyncRunEntryPointWithESMLoader 
(node:internal/modules/run_main:117:5) {
  errno: -2,
  code: 'ENOENT',
  syscall: 'scandir',
  path: 'src'
}

Reply via email to