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

lukechilds / keyv / 521
100%

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

pending completion
521

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 %.

8 of 8 new or added lines in 1 file covered. (100.0%)

53 of 55 relevant lines covered (96.36%)

614.51 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
2
100.0
src/index.js
Jobs
ID Job ID Ran Files Coverage
1 521.1 15 Sep 2020 07:51AM UTC 0
97.65
Travis Job 521.1
2 521.2 15 Sep 2020 07:51AM UTC 0
97.65
Travis Job 521.2
3 521.3 15 Sep 2020 07:51AM UTC 0
97.65
Travis Job 521.3
Source Files on build 521
  • Tree
  • List 1
  • Changed 1
  • Source Changed 1
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • Travis Build #521
  • bf4c3d52 on github
  • Prev Build on master (#516)
  • Next Build on master (#535)
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

© 2025 Coveralls, Inc