Skip to content

Commit

Permalink
Update Dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
MarkGriffiths committed Feb 23, 2019
1 parent 5d45f8f commit 9d19ad4
Show file tree
Hide file tree
Showing 7 changed files with 323 additions and 780 deletions.
9 changes: 4 additions & 5 deletions bin/termng
Expand Up @@ -62,11 +62,9 @@ const homepage = "https://github.com/MarkGriffiths/term-ng#readme";
const devDependencies = {
"@babel/core": "^7.3.3",
"@babel/preset-env": "^7.3.1",
acorn: "^6.1.0",
ava: "^1.2.1",
"babel-plugin-lodash": "^3.3.4",
documentation: "^9.1.1",
"documentation-theme-bespoke": "^0.4.11",
"documentation-theme-bespoke": "^0.5.2",
gulp: "^4.0.0",
"gulp-better-rollup": "^3.4.0",
"gulp-chmod": "^2.0.0",
Expand Down Expand Up @@ -172,8 +170,9 @@ var pkg = {
};

const itermSession = process.env.ITERM_SESSION_ID && process.env.ITERM_SESSION_ID.indexOf(':') > 0;
const termColor = process.env.TERM_COLOR && process.env.TERM_COLOR.indexOf('16m') >= 0;
const has16m = itermSession || termColor;
const colorTermTruecolor = process.env.COLORTERM && process.env.COLORTERM.indexOf('truecolor') >= 0;
const termColor16m = process.env.TERM_COLOR && process.env.TERM_COLOR.indexOf('16m') >= 0;
const has16m = itermSession || colorTermTruecolor || termColor16m;

if (has16m && !/-color/.test(process.argv.join(''))) {
process.argv.splice(2, 0, '--color=16m');
Expand Down
44 changes: 15 additions & 29 deletions docs/index.html
Expand Up @@ -3,12 +3,12 @@
<head>
<meta charset="utf-8" />
<title>term-ng 1.0.1 | Documentation</title>
<meta name='description' content='Terminal/$TERM feature snooping and whitelisting'>
<meta name="viewport" content="width=device-width,initial-scale=1">
<link href="assets/css/ace.min.css" rel="stylesheet">
<link href="assets/fonts/TypoPRO-Hack/TypoPRO-Hack.css" type="text/css" rel="stylesheet" />
<link href="assets/fonts/TypoPRO-FiraSans/TypoPRO-FiraSans.css" type="text/css" rel="stylesheet" />
<link href="assets/css/style.css" type="text/css" rel="stylesheet" />
<meta name='description' content='Terminal/$TERM feature snooping and whitelisting'>
</head>
<body class='documentation m0'>
<div class="flex">
Expand Down Expand Up @@ -266,7 +266,7 @@ <h3 class='left m0 panel-title' id='termng'>
</h3>


<a class='pl3 pr1 right rounded github' href='https://MarkGriffiths@github.com/MarkGriffiths/term-ng/blob/72e2d91bcd45ffd32c31c991159e90dbb89c4e85/src/index.js#L103-L162'>
<a class='pl3 pr1 right rounded github' href='https://MarkGriffiths@github.com/MarkGriffiths/term-ng/blob/5d45f8fb18d7afc33d2a2c11de15ea4f0560ce09/src/index.js#L104-L163'>
<span>src/index.js</span>
</a>

Expand All @@ -276,9 +276,7 @@ <h3 class='left m0 panel-title' id='termng'>
<p>Terminal features.</p>



<div class='pre p1 bg-darken-1 mt0 rounded signature'>termNG</div>

<div class='pre p1 bg-darken-1 mt0 rounded signature'>termNG</div>



Expand Down Expand Up @@ -317,7 +315,7 @@ <h3 class='left m0 panel-title' id='termng'>
<div class='clearfix'>


<a class='pl3 pr1 right rounded github' href='https://MarkGriffiths@github.com/MarkGriffiths/term-ng/blob/72e2d91bcd45ffd32c31c991159e90dbb89c4e85/src/index.js#L112-L118'>
<a class='pl3 pr1 right rounded github' href='https://MarkGriffiths@github.com/MarkGriffiths/term-ng/blob/5d45f8fb18d7afc33d2a2c11de15ea4f0560ce09/src/index.js#L113-L119'>
<span>src/index.js</span>
</a>

Expand All @@ -327,9 +325,7 @@ <h3 class='left m0 panel-title' id='termng'>
<p>Supported terminal color depth.</p>



<div class='pre p1 bg-darken-1 mt0 rounded signature'>color</div>

<div class='pre p1 bg-darken-1 mt0 rounded signature'>color</div>

<p>
Type:
Expand Down Expand Up @@ -412,7 +408,7 @@ <h3 class='left m0 panel-title' id='termng'>
<div class='clearfix'>


<a class='pl3 pr1 right rounded github' href='https://MarkGriffiths@github.com/MarkGriffiths/term-ng/blob/72e2d91bcd45ffd32c31c991159e90dbb89c4e85/src/index.js#L125-L125'>
<a class='pl3 pr1 right rounded github' href='https://MarkGriffiths@github.com/MarkGriffiths/term-ng/blob/5d45f8fb18d7afc33d2a2c11de15ea4f0560ce09/src/index.js#L126-L126'>
<span>src/index.js</span>
</a>

Expand All @@ -422,9 +418,7 @@ <h3 class='left m0 panel-title' id='termng'>
<p>Does the terminal support inline images?</p>



<div class='pre p1 bg-darken-1 mt0 rounded signature'>images</div>

<div class='pre p1 bg-darken-1 mt0 rounded signature'>images</div>

<p>
Type:
Expand Down Expand Up @@ -481,7 +475,7 @@ <h3 class='left m0 panel-title' id='termng'>
<div class='clearfix'>


<a class='pl3 pr1 right rounded github' href='https://MarkGriffiths@github.com/MarkGriffiths/term-ng/blob/72e2d91bcd45ffd32c31c991159e90dbb89c4e85/src/index.js#L132-L132'>
<a class='pl3 pr1 right rounded github' href='https://MarkGriffiths@github.com/MarkGriffiths/term-ng/blob/5d45f8fb18d7afc33d2a2c11de15ea4f0560ce09/src/index.js#L133-L133'>
<span>src/index.js</span>
</a>

Expand All @@ -491,9 +485,7 @@ <h3 class='left m0 panel-title' id='termng'>
<p>Does the terminal support audio?</p>



<div class='pre p1 bg-darken-1 mt0 rounded signature'>audio</div>

<div class='pre p1 bg-darken-1 mt0 rounded signature'>audio</div>

<p>
Type:
Expand Down Expand Up @@ -550,7 +542,7 @@ <h3 class='left m0 panel-title' id='termng'>
<div class='clearfix'>


<a class='pl3 pr1 right rounded github' href='https://MarkGriffiths@github.com/MarkGriffiths/term-ng/blob/72e2d91bcd45ffd32c31c991159e90dbb89c4e85/src/index.js#L141-L144'>
<a class='pl3 pr1 right rounded github' href='https://MarkGriffiths@github.com/MarkGriffiths/term-ng/blob/5d45f8fb18d7afc33d2a2c11de15ea4f0560ce09/src/index.js#L142-L145'>
<span>src/index.js</span>
</a>

Expand All @@ -560,9 +552,7 @@ <h3 class='left m0 panel-title' id='termng'>
<p>Terminal font character set.</p>



<div class='pre p1 bg-darken-1 mt0 rounded signature'>font</div>

<div class='pre p1 bg-darken-1 mt0 rounded signature'>font</div>

<p>
Type:
Expand Down Expand Up @@ -638,7 +628,7 @@ <h3 class='left m0 panel-title' id='termng'>
<div class='clearfix'>


<a class='pl3 pr1 right rounded github' href='https://MarkGriffiths@github.com/MarkGriffiths/term-ng/blob/72e2d91bcd45ffd32c31c991159e90dbb89c4e85/src/index.js#L153-L156'>
<a class='pl3 pr1 right rounded github' href='https://MarkGriffiths@github.com/MarkGriffiths/term-ng/blob/5d45f8fb18d7afc33d2a2c11de15ea4f0560ce09/src/index.js#L154-L157'>
<span>src/index.js</span>
</a>

Expand All @@ -648,9 +638,7 @@ <h3 class='left m0 panel-title' id='termng'>
<p>Termcap support</p>



<div class='pre p1 bg-darken-1 mt0 rounded signature'>termcap</div>

<div class='pre p1 bg-darken-1 mt0 rounded signature'>termcap</div>

<p>
Type:
Expand Down Expand Up @@ -726,7 +714,7 @@ <h3 class='left m0 panel-title' id='termng'>
<div class='clearfix'>


<a class='pl3 pr1 right rounded github' href='https://MarkGriffiths@github.com/MarkGriffiths/term-ng/blob/72e2d91bcd45ffd32c31c991159e90dbb89c4e85/src/index.js#L161-L161'>
<a class='pl3 pr1 right rounded github' href='https://MarkGriffiths@github.com/MarkGriffiths/term-ng/blob/5d45f8fb18d7afc33d2a2c11de15ea4f0560ce09/src/index.js#L162-L162'>
<span>src/index.js</span>
</a>

Expand All @@ -736,9 +724,7 @@ <h3 class='left m0 panel-title' id='termng'>
<p>Name of running terminal software, i.e. 'iTerm.app'</p>



<div class='pre p1 bg-darken-1 mt0 rounded signature'>software</div>

<div class='pre p1 bg-darken-1 mt0 rounded signature'>software</div>

<p>
Type:
Expand Down
5 changes: 3 additions & 2 deletions index.js
@@ -1,8 +1,9 @@
'use strict';

const itermSession = process.env.ITERM_SESSION_ID && process.env.ITERM_SESSION_ID.indexOf(':') > 0;
const termColor = process.env.TERM_COLOR && process.env.TERM_COLOR.indexOf('16m') >= 0;
const has16m = itermSession || termColor;
const colorTermTruecolor = process.env.COLORTERM && process.env.COLORTERM.indexOf('truecolor') >= 0;
const termColor16m = process.env.TERM_COLOR && process.env.TERM_COLOR.indexOf('16m') >= 0;
const has16m = itermSession || colorTermTruecolor || termColor16m;

if (has16m && !/-color/.test(process.argv.join(''))) {
process.argv.splice(2, 0, '--color=16m');
Expand Down
5 changes: 3 additions & 2 deletions index.mjs
@@ -1,6 +1,7 @@
const itermSession = process.env.ITERM_SESSION_ID && process.env.ITERM_SESSION_ID.indexOf(':') > 0;
const termColor = process.env.TERM_COLOR && process.env.TERM_COLOR.indexOf('16m') >= 0;
const has16m = itermSession || termColor;
const colorTermTruecolor = process.env.COLORTERM && process.env.COLORTERM.indexOf('truecolor') >= 0;
const termColor16m = process.env.TERM_COLOR && process.env.TERM_COLOR.indexOf('16m') >= 0;
const has16m = itermSession || colorTermTruecolor || termColor16m;

if (has16m && !/-color/.test(process.argv.join(''))) {
process.argv.splice(2, 0, '--color=16m');
Expand Down

0 comments on commit 9d19ad4

Please sign in to comment.