• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

node-opcua / node-opcua / 25273848907
92%

Build:
DEFAULT BRANCH: master
Ran 03 May 2026 08:54AM UTC
Jobs 1
Files 1211
Run time 2min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

03 May 2026 08:05AM UTC coverage: 92.209% (-0.002%) from 92.211%
25273848907

push

github

erossignon
fix(debug): tolerate missing __filename in setDebugFlag

'__filename' is a CommonJS-only global. Under ESM and under browser bundles
(esbuild, webpack, Vite) it is undefined. When setDebugFlag(filename, true) is
called on a non-Node runtime with debug tracing enabled (process.env.DEBUG
set), the old 'filename: __filename' dereferences undefined and the following
debugLogger call throws ReferenceError.

In practice this rarely fires because the surrounding guard short-circuits on
sTraceFlag (process.env.DEBUG) being unset, which is the common browser case.
But any consumer that does enable debug tracing from a non-Node runtime hits
this. The guard substitutes '<browser>' as a log-label fallback when
__filename is missing; the value is only ever used as a log label, so no
functional information is lost.

Zero runtime cost in Node (one typeof check per setDebugFlag call, which is
rare). Full existing test suite passes unchanged.

18485 of 21951 branches covered (84.21%)

0 of 4 new or added lines in 1 file covered. (0.0%)

5 existing lines in 1 file now uncovered.

162198 of 175903 relevant lines covered (92.21%)

468039.88 hits per line

Uncovered Changes

Lines Coverage ∆ File
4
73.23
-0.83% packages/node-opcua-debug/source/make_loggers.ts

Coverage Regressions

Lines Coverage ∆ File
5
83.95
-2.06% packages/node-opcua-client/source/client_session_keepalive_manager.ts
Jobs
ID Job ID Ran Files Coverage
1 25273848907.1 03 May 2026 08:54AM UTC 1211
92.21
GitHub Action Run
Source Files on build 25273848907
  • Tree
  • List 1211
  • Changed 4
  • Source Changed 2
  • Coverage Changed 3
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • Github Actions Build #25273848907
  • fbe6cb8f on github
  • Prev Build on master (#25273556060)
  • Next Build on master (#25273896001)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc