Skip to content

Commit

Permalink
Merge branch 'release/v0.8.2'
Browse files Browse the repository at this point in the history
  • Loading branch information
MarkGriffiths committed Dec 11, 2018
2 parents 8f27da9 + 0492de1 commit 6916e21
Show file tree
Hide file tree
Showing 8 changed files with 8,170 additions and 7,130 deletions.
6 changes: 3 additions & 3 deletions bin/truwrap
Original file line number Diff line number Diff line change
Expand Up @@ -324,14 +324,14 @@ class Image {
if (fs.statSync(file).isFile()) {
return file;
}
} catch (err) {
switch (err.code) {
} catch (error) {
switch (error.code) {
case 'ENOENT':
console.warn('Warning:', `${file} not found.`);
break;

default:
console.error(err);
console.error(error);
}

return broken;
Expand Down
6 changes: 3 additions & 3 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -319,14 +319,14 @@ class Image {
if (fs.statSync(file).isFile()) {
return file;
}
} catch (err) {
switch (err.code) {
} catch (error) {
switch (error.code) {
case 'ENOENT':
console.warn('Warning:', `${file} not found.`);
break;

default:
console.error(err);
console.error(error);
}

return broken;
Expand Down
6 changes: 3 additions & 3 deletions index.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -313,14 +313,14 @@ class Image {
if (statSync(file).isFile()) {
return file;
}
} catch (err) {
switch (err.code) {
} catch (error) {
switch (error.code) {
case 'ENOENT':
console.warn('Warning:', `${file} not found.`);
break;

default:
console.error(err);
console.error(error);
}

return broken;
Expand Down
15,226 changes: 8,133 additions & 7,093 deletions package-lock.json

Large diffs are not rendered by default.

44 changes: 22 additions & 22 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "truwrap",
"version": "0.8.1",
"version": "0.8.2",
"description": "Smarter terminal text wrapping (handles 24bit color)",
"author": "Mark Griffiths <mark@thebespokepixel.com> (http://thebespokepixel.com/)",
"main": "index.js",
Expand Down Expand Up @@ -30,42 +30,42 @@
"coverage": "nyc ava && nyc report --reporter=lcov --report-dir test/coverage; open test/coverage/lcov-report/index.html"
},
"devDependencies": {
"@babel/core": "^7.0.0-beta.51",
"@babel/preset-env": "^7.0.0-beta.51",
"@babel/core": "^7.2.0",
"@babel/preset-env": "^7.2.0",
"ava": "^0.25.0",
"babel-plugin-lodash": "^3.3.4",
"documentation": "^8.0.0",
"documentation-theme-bespoke": "^0.3.5",
"documentation": "^9.0.0",
"documentation-theme-bespoke": "^0.4.3",
"gulp": "^4.0.0",
"gulp-better-rollup": "^3.2.1",
"gulp-better-rollup": "^3.4.0",
"gulp-chmod": "^2.0.0",
"gulp-rename": "^1.3.0",
"gulp-rename": "^1.4.0",
"gulp-strip-comments": "^2.5.2",
"nyc": "^12.0.2",
"rollup-plugin-babel": "^4.0.0-beta.5",
"rollup-plugin-babel": "^4.0.3",
"semver-regex": "^2.0.0",
"shelljs": "^0.8.2",
"xo": "^0.21.1"
"shelljs": "^0.8.3",
"xo": "^0.23.0"
},
"dependencies": {
"@thebespokepixel/meta": "^0.2.2",
"@thebespokepixel/n-selector": "^0.2.0",
"@thebespokepixel/string": "^0.5.1",
"ansi-regex": "^3.0.0",
"@thebespokepixel/meta": "^0.2.3",
"@thebespokepixel/n-selector": "^0.2.1",
"@thebespokepixel/string": "^0.5.2",
"ansi-regex": "^4.0.0",
"columnify": "^1.5.4",
"common-tags": "^1.8.0",
"deep-assign": "^2.0.0",
"es6-promisify": "^6.0.0",
"deep-assign": "^3.0.0",
"es6-promisify": "^6.0.1",
"get-stdin": "^6.0.0",
"lodash": "^4.17.10",
"os-locale": "^2.1.0",
"lodash": "^4.17.11",
"os-locale": "^3.0.1",
"read-pkg-up": "^4.0.0",
"semver": "^5.5.0",
"semver": "^5.6.0",
"term-ng": "^0.8.1",
"trucolor": "^0.6.10",
"trucolor": "^0.7.1",
"update-notifier": "^2.5.0",
"verbosity": "^0.9.1",
"yargs": "^11.0.0"
"verbosity": "^0.10.0",
"yargs": "^12.0.1"
},
"engines": {
"node": ">=8.0"
Expand Down
2 changes: 1 addition & 1 deletion src/cli/main.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/* ────────────╮
│ truwrap CLI │
╰─────────────┴─────────────────────────────────────────────────────────────── */
/* eslint unicorn/no-process-exit:0 */
/* eslint unicorn/no-process-exit:0,quotes:0 */

import {format} from 'util'

Expand Down
6 changes: 3 additions & 3 deletions src/lib/classes/image.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,13 +44,13 @@ class Image {
if (statSync(file).isFile()) {
return file
}
} catch (err) {
switch (err.code) {
} catch (error) {
switch (error.code) {
case 'ENOENT':
console.warn('Warning:', `${file} not found.`)
break
default:
console.error(err)
console.error(error)
}
return broken
}
Expand Down
4 changes: 2 additions & 2 deletions test/module.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,15 +17,15 @@ test(`Module version '${pkg.version}' is semver.`, t => {
t.truthy(semverRegex().test(metadata.version()))
})

test(`Returns renderer.`, t => {
test('Returns renderer.', t => {
const tw = truwrap({
left: 4,
right: 4
})
t.truthy(tw.write && tw.end)
})

test.cb(`Consumes stream.`, t => {
test.cb('Consumes stream.', t => {
const tw = truwrap({
left: 4,
width: 24,
Expand Down

0 comments on commit 6916e21

Please sign in to comment.