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

silvermine / lambda-express
93%
master: 99%

Build:
Build:
LAST BUILD BRANCH: MatheusBaldi/improve-fake-events-creation
DEFAULT BRANCH: master
Repo Added 08 Feb 2019 01:30AM UTC
Files 19
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

LAST BUILD ON BRANCH response-mime-types
branch: response-mime-types
CHANGE BRANCH
x
Reset
  • response-mime-types
  • MatheusBaldi/improve-fake-events-creation
  • MatheusBaldi/prevent-badly-formed-commit-messages
  • MatheusBaldi/remove-is-error
  • badly-encoded-path-param
  • caching
  • changelog-v0.3.1
  • commit-messages-and-changelogs
  • expose-body
  • fix-build
  • fix-mime-lookup
  • fix-x-forwarded-host
  • fix_44_redirect_body
  • fix_misc_typos
  • jbrupbacher/upgrade-typescript
  • jrthomer/add-test
  • jrthomer/add-tests
  • jrthomer/fix-urls
  • jrthomer/handle-bad-queries
  • jrthomer/log-levels
  • jrthomer/shared-caches
  • js-safeguard-response-header-values
  • json-cookies-tests
  • jsonp_upgrades
  • lambda-types-upgrade
  • master
  • minor-fixes
  • npm-audit
  • npm-audit-fix
  • npm_prepare
  • older-path-to-regexp
  • promise_support
  • router-reuse
  • routing
  • test-formatting
  • test-markdown-formatting
  • test-refactor
  • ts-eslint-upgrades
  • tslib-peer
  • v0.2.0
  • v0.3.0

pending completion
17

Pull #4

travis-ci-com

web-flow
Add mime-type lookup to Response.type(...)

The documentation said it was supposed to do mime type lookup for you
(e.g. `type('.html') => 'text/html'`), but that was unimplemented.

Rather than add a dependency on the `mime` package, we have pulled in
the "lite" database used by that package. We did this to reduce the
package size. The `mime` package, even though it doesn't have any
dependencies, is fairly large because of the additional more
full-featured database that it includes.  Since it's those additional
(rarely-used) types are unlikely to be needed, and we're trying to keep
our `@silvermine/lambda-express` package size small, we just imported
the "lite" database and wrote our own wrapper for it. The MIT licensing
made this acceptable to do.
Pull Request #4: Add mime-type lookup to Response.type(...)

133 of 137 branches covered (97.08%)

Branch coverage included in aggregate %.

13 of 13 new or added lines in 2 files covered. (100.0%)

230 of 253 relevant lines covered (90.91%)

1096.88 hits per line

Relevant lines Covered
Build:
Build:
253 RELEVANT LINES 230 COVERED LINES
1096.88 HITS PER LINE
Source Files on response-mime-types
  • List 0
  • Changed 4
  • Source Changed 1
  • Coverage Changed 4
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses

Recent builds

Builds Branch Commit Type Ran Committer Via Coverage
17 response-mime-types Add mime-type lookup to Response.type(...) The documentation said it was supposed to do mime type lookup for you (e.g. `type('.html') => 'text/html'`), but that was unimplemented. Rather than add a dependency on the `mime` package, we have pulle... Pull #4 13 Feb 2019 03:22AM UTC web-flow travis-ci-com pending completion  
16 response-mime-types Add mime-type lookup to Response.type(...) The documentation said it was supposed to do mime type lookup for you (e.g. `type('.html') => 'text/html'`), but that was unimplemented. Rather than add a dependency on the `mime` package, we have pulle... push 13 Feb 2019 03:21AM UTC jthomerson travis-ci-com pending completion  
See All Builds (236)
  • Repo on GitHub
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