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

lukechilds / keyv / 521 / 2
100%
master: 100%

Build:
DEFAULT BRANCH: master
Ran 15 Sep 2020 07:51AM UTC
Files 1
Run time 0s
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

15 Sep 2020 07:49AM UTC coverage: 97.647% (-2.4%) from 100.0%
521.2

push

travis-ci

web-flow
Remove dynamic require (#119)

* Remove dynamic require

I'm using this module (through npm.im/got) for a serverless function and I'm getting this warning:

```
3:31:45 PM: WARNING in ../node_modules/keyv/src/index.js 18:14-40
3:31:45 PM: Critical dependency: the request of a dependency is an expression
3:31:45 PM:  @ ../node_modules/cacheable-request/src/index.js
3:31:45 PM:  @ ../node_modules/got/dist/source/core/index.js
3:31:45 PM:  @ ../node_modules/got/dist/source/create.js
3:31:45 PM:  @ ../node_modules/got/dist/source/index.js
3:31:45 PM:  @ ./api.js
```

It's not technically a problem, but it is an annoyance and I'd love to avoid the warning.

This simply removes the dynamic require for static and lazy requires. Just a refactor. No functionality change here.

* fix constructor call

30 of 30 branches covered (100.0%)

Branch coverage included in aggregate %.

53 of 55 relevant lines covered (96.36%)

204.84 hits per line

Source Files on job 521.2
  • Tree
  • List 0
  • Changed 1
  • Source Changed 1
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Build 485
  • Travis Job 521.2
  • bf4c3d52 on github
  • Prev Job for on master (#516.1)
  • Next Job for on master (#535.1)
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