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

gajus / table / 303
100%

Build:
DEFAULT BRANCH: master
Ran 22 Apr 2021 10:16PM UTC
Jobs 2
Files 25
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

pending completion
303

push

travis-ci-com

web-flow
<a href="https://github.com/gajus/table/commit/<a class=hub.com/gajus/table/commit/<a class="double-link" href="https://git"><a class=hub.com/gajus/table/commit/<a class="double-link" href="https://git"><a class=hub.com/gajus/table/commit/66ff66140ac2b0549c588e6f2808ac4218b97c25">66ff66140">&lt;a href=&quot;https://github.com/gajus/table/commit/</a><a class="double-link" href="https://github.com/gajus/table/commit/&lt;a class=&quot;double-link&quot; href=&quot;https://git">&lt;a class=</a>hub.com/gajus/table/commit/66ff66140ac2b0549c588e6f2808ac4218b97c25">66ff66140</a><a href="https://github.com/gajus/table/commit/66ff66140ac2b0549c588e6f2808ac4218b97c25">&lt;a href=&quot;https://github.com/gajus/table/commit/66ff66140ac2b0549c588e6f2808ac4218b97c25&quot;&gt;&amp;quot;&amp;gt;fix: simplify dependencies (#159)

* Removed usage of is-boolean-object

This package was only used once, and incorrectly.
is-boolean-object checks whether the input is `true`, `false`
or an object created with the `Boolean` constructor.
I doubt that this last case was really intended and properly supported
since the Typescript type is `boolean` (so, only true/false) and
the only code that uses the boolean is this one:

```ts
if (useWrapWord) {
```

however, `if (new Boolean(false))` yields `true`.

* Removed `is-number-object` dependency

This library checks whether the input is a number or a Number object
(i.e. created with `new Number(5)`). I never saw anyone using the latter
syntax, and I&amp;amp;#39;m not sure the 17+kB-and-10-files dependency is
really useful.

This is a breaking change since `new Number(5)` will not be allowed
anymore for column width. Does anyone really do that?

This change is in line with the typescript type annotations for the width,
which only allow `number`s to be provided.

* Removed the dependency on `is-string`

The package tests whether the input is a string or a string object
(i.e. created with `new Object(&amp;amp;#39;hello&amp;amp;#39;)`). I&amp;amp;#39;m not sure we should
support the latter syntax, especially since the string is passed
to string-width, which explicitely returns 0 if `typeof` doesn&amp;amp;#... (continued)

123 of 124 branches covered (99.19%)

Branch coverage included in aggregate %.

6 of 6 new or added lines in 3 files covered. (100.0%)

340 of 340 relevant lines covered (100.0%)

144.42 hits per line

Jobs
ID Job ID Ran Files Coverage
1 303.1 22 Apr 2021 10:16PM UTC 0
99.78
Travis Job 303.1
2 303.2 22 Apr 2021 10:18PM UTC 0
99.78
Travis Job 303.2
Source Files on build 303
Detailed source file information is not available for this build.
  • Back to Repo
  • Build #303
  • 66ff6614 on github
  • Prev Build on master (#288)
  • Next Build on master (#307)
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