Showing
1000 changed files
with
4959 additions
and
0 deletions
Too many changes to show.
To preserve performance only 1000 of 1000+ files are displayed.
index.js
0 → 100644
1 | +const express = require('express') | ||
2 | +const app = express() | ||
3 | +const route = require('./router.js') | ||
4 | +const bodyParser = require('body-parser') | ||
5 | + | ||
6 | +const expressSession = require('express-session'); | ||
7 | +const passport = require('./passport.js') | ||
8 | +const flash = require('connect-flash') | ||
9 | + | ||
10 | +app.set('views', __dirname + '/public') | ||
11 | +app.set('view engine', 'ejs') | ||
12 | + | ||
13 | +app.use(bodyParser.urlencoded({extended:false})) | ||
14 | +app.use(bodyParser.json()) | ||
15 | + | ||
16 | +app.use(passport.initialize()) | ||
17 | +app.use(passport.session()) | ||
18 | +app.use(flash()) | ||
19 | +app.use(expressSession({ | ||
20 | + secret: 'my Key', | ||
21 | + resave: true, | ||
22 | + saveUninitialized:true | ||
23 | +})) | ||
24 | + | ||
25 | +app.use('/', route) | ||
26 | + | ||
27 | +app.listen(3000, () => { | ||
28 | + console.log("3000 port is on!") | ||
29 | +}) | ||
... | \ No newline at end of file | ... | \ No newline at end of file |
node_modules/.bin/ejs
0 → 100644
1 | +#!/bin/sh | ||
2 | +basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')") | ||
3 | + | ||
4 | +case `uname` in | ||
5 | + *CYGWIN*|*MINGW*|*MSYS*) basedir=`cygpath -w "$basedir"`;; | ||
6 | +esac | ||
7 | + | ||
8 | +if [ -x "$basedir/node" ]; then | ||
9 | + exec "$basedir/node" "$basedir/../ejs/bin/cli.js" "$@" | ||
10 | +else | ||
11 | + exec node "$basedir/../ejs/bin/cli.js" "$@" | ||
12 | +fi |
node_modules/.bin/ejs.cmd
0 → 100644
1 | +@ECHO off | ||
2 | +GOTO start | ||
3 | +:find_dp0 | ||
4 | +SET dp0=%~dp0 | ||
5 | +EXIT /b | ||
6 | +:start | ||
7 | +SETLOCAL | ||
8 | +CALL :find_dp0 | ||
9 | + | ||
10 | +IF EXIST "%dp0%\node.exe" ( | ||
11 | + SET "_prog=%dp0%\node.exe" | ||
12 | +) ELSE ( | ||
13 | + SET "_prog=node" | ||
14 | + SET PATHEXT=%PATHEXT:;.JS;=;% | ||
15 | +) | ||
16 | + | ||
17 | +endLocal & goto #_undefined_# 2>NUL || title %COMSPEC% & "%_prog%" "%dp0%\..\ejs\bin\cli.js" %* |
node_modules/.bin/ejs.ps1
0 → 100644
1 | +#!/usr/bin/env pwsh | ||
2 | +$basedir=Split-Path $MyInvocation.MyCommand.Definition -Parent | ||
3 | + | ||
4 | +$exe="" | ||
5 | +if ($PSVersionTable.PSVersion -lt "6.0" -or $IsWindows) { | ||
6 | + # Fix case when both the Windows and Linux builds of Node | ||
7 | + # are installed in the same directory | ||
8 | + $exe=".exe" | ||
9 | +} | ||
10 | +$ret=0 | ||
11 | +if (Test-Path "$basedir/node$exe") { | ||
12 | + # Support pipeline input | ||
13 | + if ($MyInvocation.ExpectingInput) { | ||
14 | + $input | & "$basedir/node$exe" "$basedir/../ejs/bin/cli.js" $args | ||
15 | + } else { | ||
16 | + & "$basedir/node$exe" "$basedir/../ejs/bin/cli.js" $args | ||
17 | + } | ||
18 | + $ret=$LASTEXITCODE | ||
19 | +} else { | ||
20 | + # Support pipeline input | ||
21 | + if ($MyInvocation.ExpectingInput) { | ||
22 | + $input | & "node$exe" "$basedir/../ejs/bin/cli.js" $args | ||
23 | + } else { | ||
24 | + & "node$exe" "$basedir/../ejs/bin/cli.js" $args | ||
25 | + } | ||
26 | + $ret=$LASTEXITCODE | ||
27 | +} | ||
28 | +exit $ret |
node_modules/.bin/is-ci
0 → 100644
1 | +#!/bin/sh | ||
2 | +basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')") | ||
3 | + | ||
4 | +case `uname` in | ||
5 | + *CYGWIN*|*MINGW*|*MSYS*) basedir=`cygpath -w "$basedir"`;; | ||
6 | +esac | ||
7 | + | ||
8 | +if [ -x "$basedir/node" ]; then | ||
9 | + exec "$basedir/node" "$basedir/../is-ci/bin.js" "$@" | ||
10 | +else | ||
11 | + exec node "$basedir/../is-ci/bin.js" "$@" | ||
12 | +fi |
node_modules/.bin/is-ci.cmd
0 → 100644
1 | +@ECHO off | ||
2 | +GOTO start | ||
3 | +:find_dp0 | ||
4 | +SET dp0=%~dp0 | ||
5 | +EXIT /b | ||
6 | +:start | ||
7 | +SETLOCAL | ||
8 | +CALL :find_dp0 | ||
9 | + | ||
10 | +IF EXIST "%dp0%\node.exe" ( | ||
11 | + SET "_prog=%dp0%\node.exe" | ||
12 | +) ELSE ( | ||
13 | + SET "_prog=node" | ||
14 | + SET PATHEXT=%PATHEXT:;.JS;=;% | ||
15 | +) | ||
16 | + | ||
17 | +endLocal & goto #_undefined_# 2>NUL || title %COMSPEC% & "%_prog%" "%dp0%\..\is-ci\bin.js" %* |
node_modules/.bin/is-ci.ps1
0 → 100644
1 | +#!/usr/bin/env pwsh | ||
2 | +$basedir=Split-Path $MyInvocation.MyCommand.Definition -Parent | ||
3 | + | ||
4 | +$exe="" | ||
5 | +if ($PSVersionTable.PSVersion -lt "6.0" -or $IsWindows) { | ||
6 | + # Fix case when both the Windows and Linux builds of Node | ||
7 | + # are installed in the same directory | ||
8 | + $exe=".exe" | ||
9 | +} | ||
10 | +$ret=0 | ||
11 | +if (Test-Path "$basedir/node$exe") { | ||
12 | + # Support pipeline input | ||
13 | + if ($MyInvocation.ExpectingInput) { | ||
14 | + $input | & "$basedir/node$exe" "$basedir/../is-ci/bin.js" $args | ||
15 | + } else { | ||
16 | + & "$basedir/node$exe" "$basedir/../is-ci/bin.js" $args | ||
17 | + } | ||
18 | + $ret=$LASTEXITCODE | ||
19 | +} else { | ||
20 | + # Support pipeline input | ||
21 | + if ($MyInvocation.ExpectingInput) { | ||
22 | + $input | & "node$exe" "$basedir/../is-ci/bin.js" $args | ||
23 | + } else { | ||
24 | + & "node$exe" "$basedir/../is-ci/bin.js" $args | ||
25 | + } | ||
26 | + $ret=$LASTEXITCODE | ||
27 | +} | ||
28 | +exit $ret |
node_modules/.bin/jake
0 → 100644
1 | +#!/bin/sh | ||
2 | +basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')") | ||
3 | + | ||
4 | +case `uname` in | ||
5 | + *CYGWIN*|*MINGW*|*MSYS*) basedir=`cygpath -w "$basedir"`;; | ||
6 | +esac | ||
7 | + | ||
8 | +if [ -x "$basedir/node" ]; then | ||
9 | + exec "$basedir/node" "$basedir/../jake/bin/cli.js" "$@" | ||
10 | +else | ||
11 | + exec node "$basedir/../jake/bin/cli.js" "$@" | ||
12 | +fi |
node_modules/.bin/jake.cmd
0 → 100644
1 | +@ECHO off | ||
2 | +GOTO start | ||
3 | +:find_dp0 | ||
4 | +SET dp0=%~dp0 | ||
5 | +EXIT /b | ||
6 | +:start | ||
7 | +SETLOCAL | ||
8 | +CALL :find_dp0 | ||
9 | + | ||
10 | +IF EXIST "%dp0%\node.exe" ( | ||
11 | + SET "_prog=%dp0%\node.exe" | ||
12 | +) ELSE ( | ||
13 | + SET "_prog=node" | ||
14 | + SET PATHEXT=%PATHEXT:;.JS;=;% | ||
15 | +) | ||
16 | + | ||
17 | +endLocal & goto #_undefined_# 2>NUL || title %COMSPEC% & "%_prog%" "%dp0%\..\jake\bin\cli.js" %* |
node_modules/.bin/jake.ps1
0 → 100644
1 | +#!/usr/bin/env pwsh | ||
2 | +$basedir=Split-Path $MyInvocation.MyCommand.Definition -Parent | ||
3 | + | ||
4 | +$exe="" | ||
5 | +if ($PSVersionTable.PSVersion -lt "6.0" -or $IsWindows) { | ||
6 | + # Fix case when both the Windows and Linux builds of Node | ||
7 | + # are installed in the same directory | ||
8 | + $exe=".exe" | ||
9 | +} | ||
10 | +$ret=0 | ||
11 | +if (Test-Path "$basedir/node$exe") { | ||
12 | + # Support pipeline input | ||
13 | + if ($MyInvocation.ExpectingInput) { | ||
14 | + $input | & "$basedir/node$exe" "$basedir/../jake/bin/cli.js" $args | ||
15 | + } else { | ||
16 | + & "$basedir/node$exe" "$basedir/../jake/bin/cli.js" $args | ||
17 | + } | ||
18 | + $ret=$LASTEXITCODE | ||
19 | +} else { | ||
20 | + # Support pipeline input | ||
21 | + if ($MyInvocation.ExpectingInput) { | ||
22 | + $input | & "node$exe" "$basedir/../jake/bin/cli.js" $args | ||
23 | + } else { | ||
24 | + & "node$exe" "$basedir/../jake/bin/cli.js" $args | ||
25 | + } | ||
26 | + $ret=$LASTEXITCODE | ||
27 | +} | ||
28 | +exit $ret |
node_modules/.bin/mime
0 → 100644
1 | +#!/bin/sh | ||
2 | +basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')") | ||
3 | + | ||
4 | +case `uname` in | ||
5 | + *CYGWIN*|*MINGW*|*MSYS*) basedir=`cygpath -w "$basedir"`;; | ||
6 | +esac | ||
7 | + | ||
8 | +if [ -x "$basedir/node" ]; then | ||
9 | + exec "$basedir/node" "$basedir/../mime/cli.js" "$@" | ||
10 | +else | ||
11 | + exec node "$basedir/../mime/cli.js" "$@" | ||
12 | +fi |
node_modules/.bin/mime.cmd
0 → 100644
1 | +@ECHO off | ||
2 | +GOTO start | ||
3 | +:find_dp0 | ||
4 | +SET dp0=%~dp0 | ||
5 | +EXIT /b | ||
6 | +:start | ||
7 | +SETLOCAL | ||
8 | +CALL :find_dp0 | ||
9 | + | ||
10 | +IF EXIST "%dp0%\node.exe" ( | ||
11 | + SET "_prog=%dp0%\node.exe" | ||
12 | +) ELSE ( | ||
13 | + SET "_prog=node" | ||
14 | + SET PATHEXT=%PATHEXT:;.JS;=;% | ||
15 | +) | ||
16 | + | ||
17 | +endLocal & goto #_undefined_# 2>NUL || title %COMSPEC% & "%_prog%" "%dp0%\..\mime\cli.js" %* |
node_modules/.bin/mime.ps1
0 → 100644
1 | +#!/usr/bin/env pwsh | ||
2 | +$basedir=Split-Path $MyInvocation.MyCommand.Definition -Parent | ||
3 | + | ||
4 | +$exe="" | ||
5 | +if ($PSVersionTable.PSVersion -lt "6.0" -or $IsWindows) { | ||
6 | + # Fix case when both the Windows and Linux builds of Node | ||
7 | + # are installed in the same directory | ||
8 | + $exe=".exe" | ||
9 | +} | ||
10 | +$ret=0 | ||
11 | +if (Test-Path "$basedir/node$exe") { | ||
12 | + # Support pipeline input | ||
13 | + if ($MyInvocation.ExpectingInput) { | ||
14 | + $input | & "$basedir/node$exe" "$basedir/../mime/cli.js" $args | ||
15 | + } else { | ||
16 | + & "$basedir/node$exe" "$basedir/../mime/cli.js" $args | ||
17 | + } | ||
18 | + $ret=$LASTEXITCODE | ||
19 | +} else { | ||
20 | + # Support pipeline input | ||
21 | + if ($MyInvocation.ExpectingInput) { | ||
22 | + $input | & "node$exe" "$basedir/../mime/cli.js" $args | ||
23 | + } else { | ||
24 | + & "node$exe" "$basedir/../mime/cli.js" $args | ||
25 | + } | ||
26 | + $ret=$LASTEXITCODE | ||
27 | +} | ||
28 | +exit $ret |
node_modules/.bin/nodemon
0 → 100644
1 | +#!/bin/sh | ||
2 | +basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')") | ||
3 | + | ||
4 | +case `uname` in | ||
5 | + *CYGWIN*|*MINGW*|*MSYS*) basedir=`cygpath -w "$basedir"`;; | ||
6 | +esac | ||
7 | + | ||
8 | +if [ -x "$basedir/node" ]; then | ||
9 | + exec "$basedir/node" "$basedir/../nodemon/bin/nodemon.js" "$@" | ||
10 | +else | ||
11 | + exec node "$basedir/../nodemon/bin/nodemon.js" "$@" | ||
12 | +fi |
node_modules/.bin/nodemon.cmd
0 → 100644
1 | +@ECHO off | ||
2 | +GOTO start | ||
3 | +:find_dp0 | ||
4 | +SET dp0=%~dp0 | ||
5 | +EXIT /b | ||
6 | +:start | ||
7 | +SETLOCAL | ||
8 | +CALL :find_dp0 | ||
9 | + | ||
10 | +IF EXIST "%dp0%\node.exe" ( | ||
11 | + SET "_prog=%dp0%\node.exe" | ||
12 | +) ELSE ( | ||
13 | + SET "_prog=node" | ||
14 | + SET PATHEXT=%PATHEXT:;.JS;=;% | ||
15 | +) | ||
16 | + | ||
17 | +endLocal & goto #_undefined_# 2>NUL || title %COMSPEC% & "%_prog%" "%dp0%\..\nodemon\bin\nodemon.js" %* |
node_modules/.bin/nodemon.ps1
0 → 100644
1 | +#!/usr/bin/env pwsh | ||
2 | +$basedir=Split-Path $MyInvocation.MyCommand.Definition -Parent | ||
3 | + | ||
4 | +$exe="" | ||
5 | +if ($PSVersionTable.PSVersion -lt "6.0" -or $IsWindows) { | ||
6 | + # Fix case when both the Windows and Linux builds of Node | ||
7 | + # are installed in the same directory | ||
8 | + $exe=".exe" | ||
9 | +} | ||
10 | +$ret=0 | ||
11 | +if (Test-Path "$basedir/node$exe") { | ||
12 | + # Support pipeline input | ||
13 | + if ($MyInvocation.ExpectingInput) { | ||
14 | + $input | & "$basedir/node$exe" "$basedir/../nodemon/bin/nodemon.js" $args | ||
15 | + } else { | ||
16 | + & "$basedir/node$exe" "$basedir/../nodemon/bin/nodemon.js" $args | ||
17 | + } | ||
18 | + $ret=$LASTEXITCODE | ||
19 | +} else { | ||
20 | + # Support pipeline input | ||
21 | + if ($MyInvocation.ExpectingInput) { | ||
22 | + $input | & "node$exe" "$basedir/../nodemon/bin/nodemon.js" $args | ||
23 | + } else { | ||
24 | + & "node$exe" "$basedir/../nodemon/bin/nodemon.js" $args | ||
25 | + } | ||
26 | + $ret=$LASTEXITCODE | ||
27 | +} | ||
28 | +exit $ret |
node_modules/.bin/nodetouch
0 → 100644
1 | +#!/bin/sh | ||
2 | +basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')") | ||
3 | + | ||
4 | +case `uname` in | ||
5 | + *CYGWIN*|*MINGW*|*MSYS*) basedir=`cygpath -w "$basedir"`;; | ||
6 | +esac | ||
7 | + | ||
8 | +if [ -x "$basedir/node" ]; then | ||
9 | + exec "$basedir/node" "$basedir/../touch/bin/nodetouch.js" "$@" | ||
10 | +else | ||
11 | + exec node "$basedir/../touch/bin/nodetouch.js" "$@" | ||
12 | +fi |
node_modules/.bin/nodetouch.cmd
0 → 100644
1 | +@ECHO off | ||
2 | +GOTO start | ||
3 | +:find_dp0 | ||
4 | +SET dp0=%~dp0 | ||
5 | +EXIT /b | ||
6 | +:start | ||
7 | +SETLOCAL | ||
8 | +CALL :find_dp0 | ||
9 | + | ||
10 | +IF EXIST "%dp0%\node.exe" ( | ||
11 | + SET "_prog=%dp0%\node.exe" | ||
12 | +) ELSE ( | ||
13 | + SET "_prog=node" | ||
14 | + SET PATHEXT=%PATHEXT:;.JS;=;% | ||
15 | +) | ||
16 | + | ||
17 | +endLocal & goto #_undefined_# 2>NUL || title %COMSPEC% & "%_prog%" "%dp0%\..\touch\bin\nodetouch.js" %* |
node_modules/.bin/nodetouch.ps1
0 → 100644
1 | +#!/usr/bin/env pwsh | ||
2 | +$basedir=Split-Path $MyInvocation.MyCommand.Definition -Parent | ||
3 | + | ||
4 | +$exe="" | ||
5 | +if ($PSVersionTable.PSVersion -lt "6.0" -or $IsWindows) { | ||
6 | + # Fix case when both the Windows and Linux builds of Node | ||
7 | + # are installed in the same directory | ||
8 | + $exe=".exe" | ||
9 | +} | ||
10 | +$ret=0 | ||
11 | +if (Test-Path "$basedir/node$exe") { | ||
12 | + # Support pipeline input | ||
13 | + if ($MyInvocation.ExpectingInput) { | ||
14 | + $input | & "$basedir/node$exe" "$basedir/../touch/bin/nodetouch.js" $args | ||
15 | + } else { | ||
16 | + & "$basedir/node$exe" "$basedir/../touch/bin/nodetouch.js" $args | ||
17 | + } | ||
18 | + $ret=$LASTEXITCODE | ||
19 | +} else { | ||
20 | + # Support pipeline input | ||
21 | + if ($MyInvocation.ExpectingInput) { | ||
22 | + $input | & "node$exe" "$basedir/../touch/bin/nodetouch.js" $args | ||
23 | + } else { | ||
24 | + & "node$exe" "$basedir/../touch/bin/nodetouch.js" $args | ||
25 | + } | ||
26 | + $ret=$LASTEXITCODE | ||
27 | +} | ||
28 | +exit $ret |
node_modules/.bin/nopt
0 → 100644
1 | +#!/bin/sh | ||
2 | +basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')") | ||
3 | + | ||
4 | +case `uname` in | ||
5 | + *CYGWIN*|*MINGW*|*MSYS*) basedir=`cygpath -w "$basedir"`;; | ||
6 | +esac | ||
7 | + | ||
8 | +if [ -x "$basedir/node" ]; then | ||
9 | + exec "$basedir/node" "$basedir/../nopt/bin/nopt.js" "$@" | ||
10 | +else | ||
11 | + exec node "$basedir/../nopt/bin/nopt.js" "$@" | ||
12 | +fi |
node_modules/.bin/nopt.cmd
0 → 100644
1 | +@ECHO off | ||
2 | +GOTO start | ||
3 | +:find_dp0 | ||
4 | +SET dp0=%~dp0 | ||
5 | +EXIT /b | ||
6 | +:start | ||
7 | +SETLOCAL | ||
8 | +CALL :find_dp0 | ||
9 | + | ||
10 | +IF EXIST "%dp0%\node.exe" ( | ||
11 | + SET "_prog=%dp0%\node.exe" | ||
12 | +) ELSE ( | ||
13 | + SET "_prog=node" | ||
14 | + SET PATHEXT=%PATHEXT:;.JS;=;% | ||
15 | +) | ||
16 | + | ||
17 | +endLocal & goto #_undefined_# 2>NUL || title %COMSPEC% & "%_prog%" "%dp0%\..\nopt\bin\nopt.js" %* |
node_modules/.bin/nopt.ps1
0 → 100644
1 | +#!/usr/bin/env pwsh | ||
2 | +$basedir=Split-Path $MyInvocation.MyCommand.Definition -Parent | ||
3 | + | ||
4 | +$exe="" | ||
5 | +if ($PSVersionTable.PSVersion -lt "6.0" -or $IsWindows) { | ||
6 | + # Fix case when both the Windows and Linux builds of Node | ||
7 | + # are installed in the same directory | ||
8 | + $exe=".exe" | ||
9 | +} | ||
10 | +$ret=0 | ||
11 | +if (Test-Path "$basedir/node$exe") { | ||
12 | + # Support pipeline input | ||
13 | + if ($MyInvocation.ExpectingInput) { | ||
14 | + $input | & "$basedir/node$exe" "$basedir/../nopt/bin/nopt.js" $args | ||
15 | + } else { | ||
16 | + & "$basedir/node$exe" "$basedir/../nopt/bin/nopt.js" $args | ||
17 | + } | ||
18 | + $ret=$LASTEXITCODE | ||
19 | +} else { | ||
20 | + # Support pipeline input | ||
21 | + if ($MyInvocation.ExpectingInput) { | ||
22 | + $input | & "node$exe" "$basedir/../nopt/bin/nopt.js" $args | ||
23 | + } else { | ||
24 | + & "node$exe" "$basedir/../nopt/bin/nopt.js" $args | ||
25 | + } | ||
26 | + $ret=$LASTEXITCODE | ||
27 | +} | ||
28 | +exit $ret |
node_modules/.bin/rc
0 → 100644
1 | +#!/bin/sh | ||
2 | +basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')") | ||
3 | + | ||
4 | +case `uname` in | ||
5 | + *CYGWIN*|*MINGW*|*MSYS*) basedir=`cygpath -w "$basedir"`;; | ||
6 | +esac | ||
7 | + | ||
8 | +if [ -x "$basedir/node" ]; then | ||
9 | + exec "$basedir/node" "$basedir/../rc/cli.js" "$@" | ||
10 | +else | ||
11 | + exec node "$basedir/../rc/cli.js" "$@" | ||
12 | +fi |
node_modules/.bin/rc.cmd
0 → 100644
1 | +@ECHO off | ||
2 | +GOTO start | ||
3 | +:find_dp0 | ||
4 | +SET dp0=%~dp0 | ||
5 | +EXIT /b | ||
6 | +:start | ||
7 | +SETLOCAL | ||
8 | +CALL :find_dp0 | ||
9 | + | ||
10 | +IF EXIST "%dp0%\node.exe" ( | ||
11 | + SET "_prog=%dp0%\node.exe" | ||
12 | +) ELSE ( | ||
13 | + SET "_prog=node" | ||
14 | + SET PATHEXT=%PATHEXT:;.JS;=;% | ||
15 | +) | ||
16 | + | ||
17 | +endLocal & goto #_undefined_# 2>NUL || title %COMSPEC% & "%_prog%" "%dp0%\..\rc\cli.js" %* |
node_modules/.bin/rc.ps1
0 → 100644
1 | +#!/usr/bin/env pwsh | ||
2 | +$basedir=Split-Path $MyInvocation.MyCommand.Definition -Parent | ||
3 | + | ||
4 | +$exe="" | ||
5 | +if ($PSVersionTable.PSVersion -lt "6.0" -or $IsWindows) { | ||
6 | + # Fix case when both the Windows and Linux builds of Node | ||
7 | + # are installed in the same directory | ||
8 | + $exe=".exe" | ||
9 | +} | ||
10 | +$ret=0 | ||
11 | +if (Test-Path "$basedir/node$exe") { | ||
12 | + # Support pipeline input | ||
13 | + if ($MyInvocation.ExpectingInput) { | ||
14 | + $input | & "$basedir/node$exe" "$basedir/../rc/cli.js" $args | ||
15 | + } else { | ||
16 | + & "$basedir/node$exe" "$basedir/../rc/cli.js" $args | ||
17 | + } | ||
18 | + $ret=$LASTEXITCODE | ||
19 | +} else { | ||
20 | + # Support pipeline input | ||
21 | + if ($MyInvocation.ExpectingInput) { | ||
22 | + $input | & "node$exe" "$basedir/../rc/cli.js" $args | ||
23 | + } else { | ||
24 | + & "node$exe" "$basedir/../rc/cli.js" $args | ||
25 | + } | ||
26 | + $ret=$LASTEXITCODE | ||
27 | +} | ||
28 | +exit $ret |
node_modules/.bin/semver
0 → 100644
1 | +#!/bin/sh | ||
2 | +basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')") | ||
3 | + | ||
4 | +case `uname` in | ||
5 | + *CYGWIN*|*MINGW*|*MSYS*) basedir=`cygpath -w "$basedir"`;; | ||
6 | +esac | ||
7 | + | ||
8 | +if [ -x "$basedir/node" ]; then | ||
9 | + exec "$basedir/node" "$basedir/../semver/bin/semver" "$@" | ||
10 | +else | ||
11 | + exec node "$basedir/../semver/bin/semver" "$@" | ||
12 | +fi |
node_modules/.bin/semver.cmd
0 → 100644
1 | +@ECHO off | ||
2 | +GOTO start | ||
3 | +:find_dp0 | ||
4 | +SET dp0=%~dp0 | ||
5 | +EXIT /b | ||
6 | +:start | ||
7 | +SETLOCAL | ||
8 | +CALL :find_dp0 | ||
9 | + | ||
10 | +IF EXIST "%dp0%\node.exe" ( | ||
11 | + SET "_prog=%dp0%\node.exe" | ||
12 | +) ELSE ( | ||
13 | + SET "_prog=node" | ||
14 | + SET PATHEXT=%PATHEXT:;.JS;=;% | ||
15 | +) | ||
16 | + | ||
17 | +endLocal & goto #_undefined_# 2>NUL || title %COMSPEC% & "%_prog%" "%dp0%\..\semver\bin\semver" %* |
node_modules/.bin/semver.ps1
0 → 100644
1 | +#!/usr/bin/env pwsh | ||
2 | +$basedir=Split-Path $MyInvocation.MyCommand.Definition -Parent | ||
3 | + | ||
4 | +$exe="" | ||
5 | +if ($PSVersionTable.PSVersion -lt "6.0" -or $IsWindows) { | ||
6 | + # Fix case when both the Windows and Linux builds of Node | ||
7 | + # are installed in the same directory | ||
8 | + $exe=".exe" | ||
9 | +} | ||
10 | +$ret=0 | ||
11 | +if (Test-Path "$basedir/node$exe") { | ||
12 | + # Support pipeline input | ||
13 | + if ($MyInvocation.ExpectingInput) { | ||
14 | + $input | & "$basedir/node$exe" "$basedir/../semver/bin/semver" $args | ||
15 | + } else { | ||
16 | + & "$basedir/node$exe" "$basedir/../semver/bin/semver" $args | ||
17 | + } | ||
18 | + $ret=$LASTEXITCODE | ||
19 | +} else { | ||
20 | + # Support pipeline input | ||
21 | + if ($MyInvocation.ExpectingInput) { | ||
22 | + $input | & "node$exe" "$basedir/../semver/bin/semver" $args | ||
23 | + } else { | ||
24 | + & "node$exe" "$basedir/../semver/bin/semver" $args | ||
25 | + } | ||
26 | + $ret=$LASTEXITCODE | ||
27 | +} | ||
28 | +exit $ret |
node_modules/.package-lock.json
0 → 100644
This diff is collapsed. Click to expand it.
1 | +/// <reference types="node" /> | ||
2 | +/// <reference lib="es2016" /> | ||
3 | +/// <reference lib="es2017.sharedmemory" /> | ||
4 | +/// <reference lib="esnext.asynciterable" /> | ||
5 | +/// <reference lib="dom" /> | ||
6 | +declare type TypedArray = Int8Array | Uint8Array | Uint8ClampedArray | Int16Array | Uint16Array | Int32Array | Uint32Array | Float32Array | Float64Array; | ||
7 | +declare type Primitive = null | undefined | string | number | boolean | Symbol; | ||
8 | +export interface ArrayLike { | ||
9 | + length: number; | ||
10 | +} | ||
11 | +export interface Class<T = unknown> { | ||
12 | + new (...args: any[]): T; | ||
13 | +} | ||
14 | +declare type DomElement = object & { | ||
15 | + nodeType: 1; | ||
16 | + nodeName: string; | ||
17 | +}; | ||
18 | +declare type NodeStream = object & { | ||
19 | + pipe: Function; | ||
20 | +}; | ||
21 | +export declare const enum TypeName { | ||
22 | + null = "null", | ||
23 | + boolean = "boolean", | ||
24 | + undefined = "undefined", | ||
25 | + string = "string", | ||
26 | + number = "number", | ||
27 | + symbol = "symbol", | ||
28 | + Function = "Function", | ||
29 | + GeneratorFunction = "GeneratorFunction", | ||
30 | + AsyncFunction = "AsyncFunction", | ||
31 | + Observable = "Observable", | ||
32 | + Array = "Array", | ||
33 | + Buffer = "Buffer", | ||
34 | + Object = "Object", | ||
35 | + RegExp = "RegExp", | ||
36 | + Date = "Date", | ||
37 | + Error = "Error", | ||
38 | + Map = "Map", | ||
39 | + Set = "Set", | ||
40 | + WeakMap = "WeakMap", | ||
41 | + WeakSet = "WeakSet", | ||
42 | + Int8Array = "Int8Array", | ||
43 | + Uint8Array = "Uint8Array", | ||
44 | + Uint8ClampedArray = "Uint8ClampedArray", | ||
45 | + Int16Array = "Int16Array", | ||
46 | + Uint16Array = "Uint16Array", | ||
47 | + Int32Array = "Int32Array", | ||
48 | + Uint32Array = "Uint32Array", | ||
49 | + Float32Array = "Float32Array", | ||
50 | + Float64Array = "Float64Array", | ||
51 | + ArrayBuffer = "ArrayBuffer", | ||
52 | + SharedArrayBuffer = "SharedArrayBuffer", | ||
53 | + DataView = "DataView", | ||
54 | + Promise = "Promise", | ||
55 | + URL = "URL" | ||
56 | +} | ||
57 | +declare function is(value: unknown): TypeName; | ||
58 | +declare namespace is { | ||
59 | + const undefined: (value: unknown) => value is undefined; | ||
60 | + const string: (value: unknown) => value is string; | ||
61 | + const number: (value: unknown) => value is number; | ||
62 | + const function_: (value: unknown) => value is Function; | ||
63 | + const null_: (value: unknown) => value is null; | ||
64 | + const class_: (value: unknown) => value is Class<unknown>; | ||
65 | + const boolean: (value: unknown) => value is boolean; | ||
66 | + const symbol: (value: unknown) => value is Symbol; | ||
67 | + const numericString: (value: unknown) => boolean; | ||
68 | + const array: (arg: any) => arg is any[]; | ||
69 | + const buffer: (input: unknown) => input is Buffer; | ||
70 | + const nullOrUndefined: (value: unknown) => value is null | undefined; | ||
71 | + const object: (value: unknown) => value is object; | ||
72 | + const iterable: (value: unknown) => value is IterableIterator<unknown>; | ||
73 | + const asyncIterable: (value: unknown) => value is AsyncIterableIterator<unknown>; | ||
74 | + const generator: (value: unknown) => value is Generator; | ||
75 | + const nativePromise: (value: unknown) => value is Promise<unknown>; | ||
76 | + const promise: (value: unknown) => value is Promise<unknown>; | ||
77 | + const generatorFunction: (value: unknown) => value is GeneratorFunction; | ||
78 | + const asyncFunction: (value: unknown) => value is Function; | ||
79 | + const boundFunction: (value: unknown) => value is Function; | ||
80 | + const regExp: (value: unknown) => value is RegExp; | ||
81 | + const date: (value: unknown) => value is Date; | ||
82 | + const error: (value: unknown) => value is Error; | ||
83 | + const map: (value: unknown) => value is Map<unknown, unknown>; | ||
84 | + const set: (value: unknown) => value is Set<unknown>; | ||
85 | + const weakMap: (value: unknown) => value is WeakMap<object, unknown>; | ||
86 | + const weakSet: (value: unknown) => value is WeakSet<object>; | ||
87 | + const int8Array: (value: unknown) => value is Int8Array; | ||
88 | + const uint8Array: (value: unknown) => value is Uint8Array; | ||
89 | + const uint8ClampedArray: (value: unknown) => value is Uint8ClampedArray; | ||
90 | + const int16Array: (value: unknown) => value is Int16Array; | ||
91 | + const uint16Array: (value: unknown) => value is Uint16Array; | ||
92 | + const int32Array: (value: unknown) => value is Int32Array; | ||
93 | + const uint32Array: (value: unknown) => value is Uint32Array; | ||
94 | + const float32Array: (value: unknown) => value is Float32Array; | ||
95 | + const float64Array: (value: unknown) => value is Float64Array; | ||
96 | + const arrayBuffer: (value: unknown) => value is ArrayBuffer; | ||
97 | + const sharedArrayBuffer: (value: unknown) => value is SharedArrayBuffer; | ||
98 | + const dataView: (value: unknown) => value is DataView; | ||
99 | + const directInstanceOf: <T>(instance: unknown, klass: Class<T>) => instance is T; | ||
100 | + const urlInstance: (value: unknown) => value is URL; | ||
101 | + const urlString: (value: unknown) => boolean; | ||
102 | + const truthy: (value: unknown) => boolean; | ||
103 | + const falsy: (value: unknown) => boolean; | ||
104 | + const nan: (value: unknown) => boolean; | ||
105 | + const primitive: (value: unknown) => value is Primitive; | ||
106 | + const integer: (value: unknown) => value is number; | ||
107 | + const safeInteger: (value: unknown) => value is number; | ||
108 | + const plainObject: (value: unknown) => boolean; | ||
109 | + const typedArray: (value: unknown) => value is TypedArray; | ||
110 | + const arrayLike: (value: unknown) => value is ArrayLike; | ||
111 | + const inRange: (value: number, range: number | number[]) => boolean; | ||
112 | + const domElement: (value: unknown) => value is DomElement; | ||
113 | + const observable: (value: unknown) => boolean; | ||
114 | + const nodeStream: (value: unknown) => value is NodeStream; | ||
115 | + const infinite: (value: unknown) => boolean; | ||
116 | + const even: (value: number) => boolean; | ||
117 | + const odd: (value: number) => boolean; | ||
118 | + const emptyArray: (value: unknown) => boolean; | ||
119 | + const nonEmptyArray: (value: unknown) => boolean; | ||
120 | + const emptyString: (value: unknown) => boolean; | ||
121 | + const nonEmptyString: (value: unknown) => boolean; | ||
122 | + const emptyStringOrWhitespace: (value: unknown) => boolean; | ||
123 | + const emptyObject: (value: unknown) => boolean; | ||
124 | + const nonEmptyObject: (value: unknown) => boolean; | ||
125 | + const emptySet: (value: unknown) => boolean; | ||
126 | + const nonEmptySet: (value: unknown) => boolean; | ||
127 | + const emptyMap: (value: unknown) => boolean; | ||
128 | + const nonEmptyMap: (value: unknown) => boolean; | ||
129 | + const any: (predicate: unknown, ...values: unknown[]) => boolean; | ||
130 | + const all: (predicate: unknown, ...values: unknown[]) => boolean; | ||
131 | +} | ||
132 | +export default is; |
node_modules/@sindresorhus/is/dist/index.js
0 → 100644
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
node_modules/@sindresorhus/is/license
0 → 100644
1 | +MIT License | ||
2 | + | ||
3 | +Copyright (c) Sindre Sorhus <sindresorhus@gmail.com> (sindresorhus.com) | ||
4 | + | ||
5 | +Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: | ||
6 | + | ||
7 | +The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. | ||
8 | + | ||
9 | +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. |
node_modules/@sindresorhus/is/package.json
0 → 100644
1 | +{ | ||
2 | + "name": "@sindresorhus/is", | ||
3 | + "version": "0.14.0", | ||
4 | + "description": "Type check values: `is.string('🦄') //=> true`", | ||
5 | + "license": "MIT", | ||
6 | + "repository": "sindresorhus/is", | ||
7 | + "author": { | ||
8 | + "name": "Sindre Sorhus", | ||
9 | + "email": "sindresorhus@gmail.com", | ||
10 | + "url": "sindresorhus.com" | ||
11 | + }, | ||
12 | + "main": "dist/index.js", | ||
13 | + "engines": { | ||
14 | + "node": ">=6" | ||
15 | + }, | ||
16 | + "scripts": { | ||
17 | + "lint": "tslint --format stylish --project .", | ||
18 | + "build": "del dist && tsc", | ||
19 | + "test": "npm run lint && npm run build && ava dist/tests", | ||
20 | + "prepublish": "npm run build && del dist/tests" | ||
21 | + }, | ||
22 | + "files": [ | ||
23 | + "dist" | ||
24 | + ], | ||
25 | + "keywords": [ | ||
26 | + "type", | ||
27 | + "types", | ||
28 | + "is", | ||
29 | + "check", | ||
30 | + "checking", | ||
31 | + "validate", | ||
32 | + "validation", | ||
33 | + "utility", | ||
34 | + "util", | ||
35 | + "typeof", | ||
36 | + "instanceof", | ||
37 | + "object", | ||
38 | + "assert", | ||
39 | + "assertion", | ||
40 | + "test", | ||
41 | + "kind", | ||
42 | + "primitive", | ||
43 | + "verify", | ||
44 | + "compare" | ||
45 | + ], | ||
46 | + "devDependencies": { | ||
47 | + "@sindresorhus/tsconfig": "^0.1.0", | ||
48 | + "@types/jsdom": "^11.12.0", | ||
49 | + "@types/node": "^10.12.10", | ||
50 | + "@types/tempy": "^0.2.0", | ||
51 | + "@types/zen-observable": "^0.8.0", | ||
52 | + "ava": "^0.25.0", | ||
53 | + "del-cli": "^1.1.0", | ||
54 | + "jsdom": "^11.6.2", | ||
55 | + "rxjs": "^6.3.3", | ||
56 | + "tempy": "^0.2.1", | ||
57 | + "tslint": "^5.9.1", | ||
58 | + "tslint-xo": "^0.10.0", | ||
59 | + "typescript": "^3.2.1", | ||
60 | + "zen-observable": "^0.8.8" | ||
61 | + }, | ||
62 | + "types": "dist/index.d.ts" | ||
63 | +} |
node_modules/@sindresorhus/is/readme.md
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/@szmarczak/http-timer/LICENSE
0 → 100644
1 | +MIT License | ||
2 | + | ||
3 | +Copyright (c) 2018 Szymon Marczak | ||
4 | + | ||
5 | +Permission is hereby granted, free of charge, to any person obtaining a copy | ||
6 | +of this software and associated documentation files (the "Software"), to deal | ||
7 | +in the Software without restriction, including without limitation the rights | ||
8 | +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | ||
9 | +copies of the Software, and to permit persons to whom the Software is | ||
10 | +furnished to do so, subject to the following conditions: | ||
11 | + | ||
12 | +The above copyright notice and this permission notice shall be included in all | ||
13 | +copies or substantial portions of the Software. | ||
14 | + | ||
15 | +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
16 | +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
17 | +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
18 | +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||
19 | +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | ||
20 | +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE | ||
21 | +SOFTWARE. |
node_modules/@szmarczak/http-timer/README.md
0 → 100644
1 | +# http-timer | ||
2 | +> Timings for HTTP requests | ||
3 | + | ||
4 | +[![Build Status](https://travis-ci.org/szmarczak/http-timer.svg?branch=master)](https://travis-ci.org/szmarczak/http-timer) | ||
5 | +[![Coverage Status](https://coveralls.io/repos/github/szmarczak/http-timer/badge.svg?branch=master)](https://coveralls.io/github/szmarczak/http-timer?branch=master) | ||
6 | +[![install size](https://packagephobia.now.sh/badge?p=@szmarczak/http-timer)](https://packagephobia.now.sh/result?p=@szmarczak/http-timer) | ||
7 | + | ||
8 | +Inspired by the [`request` package](https://github.com/request/request). | ||
9 | + | ||
10 | +## Usage | ||
11 | +```js | ||
12 | +'use strict'; | ||
13 | +const https = require('https'); | ||
14 | +const timer = require('@szmarczak/http-timer'); | ||
15 | + | ||
16 | +const request = https.get('https://httpbin.org/anything'); | ||
17 | +const timings = timer(request); | ||
18 | + | ||
19 | +request.on('response', response => { | ||
20 | + response.on('data', () => {}); // Consume the data somehow | ||
21 | + response.on('end', () => { | ||
22 | + console.log(timings); | ||
23 | + }); | ||
24 | +}); | ||
25 | + | ||
26 | +// { start: 1535708511443, | ||
27 | +// socket: 1535708511444, | ||
28 | +// lookup: 1535708511444, | ||
29 | +// connect: 1535708511582, | ||
30 | +// upload: 1535708511887, | ||
31 | +// response: 1535708512037, | ||
32 | +// end: 1535708512040, | ||
33 | +// phases: | ||
34 | +// { wait: 1, | ||
35 | +// dns: 0, | ||
36 | +// tcp: 138, | ||
37 | +// request: 305, | ||
38 | +// firstByte: 150, | ||
39 | +// download: 3, | ||
40 | +// total: 597 } } | ||
41 | +``` | ||
42 | + | ||
43 | +## API | ||
44 | + | ||
45 | +### timer(request) | ||
46 | + | ||
47 | +Returns: `Object` | ||
48 | + | ||
49 | +- `start` - Time when the request started. | ||
50 | +- `socket` - Time when a socket was assigned to the request. | ||
51 | +- `lookup` - Time when the DNS lookup finished. | ||
52 | +- `connect` - Time when the socket successfully connected. | ||
53 | +- `upload` - Time when the request finished uploading. | ||
54 | +- `response` - Time when the request fired the `response` event. | ||
55 | +- `end` - Time when the response fired the `end` event. | ||
56 | +- `error` - Time when the request fired the `error` event. | ||
57 | +- `phases` | ||
58 | + - `wait` - `timings.socket - timings.start` | ||
59 | + - `dns` - `timings.lookup - timings.socket` | ||
60 | + - `tcp` - `timings.connect - timings.lookup` | ||
61 | + - `request` - `timings.upload - timings.connect` | ||
62 | + - `firstByte` - `timings.response - timings.upload` | ||
63 | + - `download` - `timings.end - timings.response` | ||
64 | + - `total` - `timings.end - timings.start` or `timings.error - timings.start` | ||
65 | + | ||
66 | +**Note**: The time is a `number` representing the milliseconds elapsed since the UNIX epoch. | ||
67 | + | ||
68 | +## License | ||
69 | + | ||
70 | +MIT |
1 | +{ | ||
2 | + "name": "@szmarczak/http-timer", | ||
3 | + "version": "1.1.2", | ||
4 | + "description": "Timings for HTTP requests", | ||
5 | + "main": "source", | ||
6 | + "engines": { | ||
7 | + "node": ">=6" | ||
8 | + }, | ||
9 | + "scripts": { | ||
10 | + "test": "xo && nyc ava", | ||
11 | + "coveralls": "nyc report --reporter=text-lcov | coveralls" | ||
12 | + }, | ||
13 | + "files": [ | ||
14 | + "source" | ||
15 | + ], | ||
16 | + "keywords": [ | ||
17 | + "http", | ||
18 | + "https", | ||
19 | + "timer", | ||
20 | + "timings" | ||
21 | + ], | ||
22 | + "repository": { | ||
23 | + "type": "git", | ||
24 | + "url": "git+https://github.com/szmarczak/http-timer.git" | ||
25 | + }, | ||
26 | + "author": "Szymon Marczak", | ||
27 | + "license": "MIT", | ||
28 | + "bugs": { | ||
29 | + "url": "https://github.com/szmarczak/http-timer/issues" | ||
30 | + }, | ||
31 | + "homepage": "https://github.com/szmarczak/http-timer#readme", | ||
32 | + "xo": { | ||
33 | + "rules": { | ||
34 | + "unicorn/filename-case": "camelCase" | ||
35 | + } | ||
36 | + }, | ||
37 | + "devDependencies": { | ||
38 | + "ava": "^0.25.0", | ||
39 | + "coveralls": "^3.0.2", | ||
40 | + "p-event": "^2.1.0", | ||
41 | + "nyc": "^12.0.2", | ||
42 | + "xo": "^0.22.0" | ||
43 | + }, | ||
44 | + "dependencies": { | ||
45 | + "defer-to-connect": "^1.0.1" | ||
46 | + } | ||
47 | +} |
1 | +'use strict'; | ||
2 | +const deferToConnect = require('defer-to-connect'); | ||
3 | + | ||
4 | +module.exports = request => { | ||
5 | + const timings = { | ||
6 | + start: Date.now(), | ||
7 | + socket: null, | ||
8 | + lookup: null, | ||
9 | + connect: null, | ||
10 | + upload: null, | ||
11 | + response: null, | ||
12 | + end: null, | ||
13 | + error: null, | ||
14 | + phases: { | ||
15 | + wait: null, | ||
16 | + dns: null, | ||
17 | + tcp: null, | ||
18 | + request: null, | ||
19 | + firstByte: null, | ||
20 | + download: null, | ||
21 | + total: null | ||
22 | + } | ||
23 | + }; | ||
24 | + | ||
25 | + const handleError = origin => { | ||
26 | + const emit = origin.emit.bind(origin); | ||
27 | + origin.emit = (event, ...args) => { | ||
28 | + // Catches the `error` event | ||
29 | + if (event === 'error') { | ||
30 | + timings.error = Date.now(); | ||
31 | + timings.phases.total = timings.error - timings.start; | ||
32 | + | ||
33 | + origin.emit = emit; | ||
34 | + } | ||
35 | + | ||
36 | + // Saves the original behavior | ||
37 | + return emit(event, ...args); | ||
38 | + }; | ||
39 | + }; | ||
40 | + | ||
41 | + let uploadFinished = false; | ||
42 | + const onUpload = () => { | ||
43 | + timings.upload = Date.now(); | ||
44 | + timings.phases.request = timings.upload - timings.connect; | ||
45 | + }; | ||
46 | + | ||
47 | + handleError(request); | ||
48 | + | ||
49 | + request.once('socket', socket => { | ||
50 | + timings.socket = Date.now(); | ||
51 | + timings.phases.wait = timings.socket - timings.start; | ||
52 | + | ||
53 | + const lookupListener = () => { | ||
54 | + timings.lookup = Date.now(); | ||
55 | + timings.phases.dns = timings.lookup - timings.socket; | ||
56 | + }; | ||
57 | + | ||
58 | + socket.once('lookup', lookupListener); | ||
59 | + | ||
60 | + deferToConnect(socket, () => { | ||
61 | + timings.connect = Date.now(); | ||
62 | + | ||
63 | + if (timings.lookup === null) { | ||
64 | + socket.removeListener('lookup', lookupListener); | ||
65 | + timings.lookup = timings.connect; | ||
66 | + timings.phases.dns = timings.lookup - timings.socket; | ||
67 | + } | ||
68 | + | ||
69 | + timings.phases.tcp = timings.connect - timings.lookup; | ||
70 | + | ||
71 | + if (uploadFinished && !timings.upload) { | ||
72 | + onUpload(); | ||
73 | + } | ||
74 | + }); | ||
75 | + }); | ||
76 | + | ||
77 | + request.once('finish', () => { | ||
78 | + uploadFinished = true; | ||
79 | + | ||
80 | + if (timings.connect) { | ||
81 | + onUpload(); | ||
82 | + } | ||
83 | + }); | ||
84 | + | ||
85 | + request.once('response', response => { | ||
86 | + timings.response = Date.now(); | ||
87 | + timings.phases.firstByte = timings.response - timings.upload; | ||
88 | + | ||
89 | + handleError(response); | ||
90 | + | ||
91 | + response.once('end', () => { | ||
92 | + timings.end = Date.now(); | ||
93 | + timings.phases.download = timings.end - timings.response; | ||
94 | + timings.phases.total = timings.end - timings.start; | ||
95 | + }); | ||
96 | + }); | ||
97 | + | ||
98 | + return timings; | ||
99 | +}; |
node_modules/abbrev/LICENSE
0 → 100644
1 | +This software is dual-licensed under the ISC and MIT licenses. | ||
2 | +You may use this software under EITHER of the following licenses. | ||
3 | + | ||
4 | +---------- | ||
5 | + | ||
6 | +The ISC License | ||
7 | + | ||
8 | +Copyright (c) Isaac Z. Schlueter and Contributors | ||
9 | + | ||
10 | +Permission to use, copy, modify, and/or distribute this software for any | ||
11 | +purpose with or without fee is hereby granted, provided that the above | ||
12 | +copyright notice and this permission notice appear in all copies. | ||
13 | + | ||
14 | +THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES | ||
15 | +WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF | ||
16 | +MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR | ||
17 | +ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES | ||
18 | +WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN | ||
19 | +ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR | ||
20 | +IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. | ||
21 | + | ||
22 | +---------- | ||
23 | + | ||
24 | +Copyright Isaac Z. Schlueter and Contributors | ||
25 | +All rights reserved. | ||
26 | + | ||
27 | +Permission is hereby granted, free of charge, to any person | ||
28 | +obtaining a copy of this software and associated documentation | ||
29 | +files (the "Software"), to deal in the Software without | ||
30 | +restriction, including without limitation the rights to use, | ||
31 | +copy, modify, merge, publish, distribute, sublicense, and/or sell | ||
32 | +copies of the Software, and to permit persons to whom the | ||
33 | +Software is furnished to do so, subject to the following | ||
34 | +conditions: | ||
35 | + | ||
36 | +The above copyright notice and this permission notice shall be | ||
37 | +included in all copies or substantial portions of the Software. | ||
38 | + | ||
39 | +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, | ||
40 | +EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES | ||
41 | +OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND | ||
42 | +NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT | ||
43 | +HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, | ||
44 | +WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING | ||
45 | +FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR | ||
46 | +OTHER DEALINGS IN THE SOFTWARE. |
node_modules/abbrev/README.md
0 → 100644
1 | +# abbrev-js | ||
2 | + | ||
3 | +Just like [ruby's Abbrev](http://apidock.com/ruby/Abbrev). | ||
4 | + | ||
5 | +Usage: | ||
6 | + | ||
7 | + var abbrev = require("abbrev"); | ||
8 | + abbrev("foo", "fool", "folding", "flop"); | ||
9 | + | ||
10 | + // returns: | ||
11 | + { fl: 'flop' | ||
12 | + , flo: 'flop' | ||
13 | + , flop: 'flop' | ||
14 | + , fol: 'folding' | ||
15 | + , fold: 'folding' | ||
16 | + , foldi: 'folding' | ||
17 | + , foldin: 'folding' | ||
18 | + , folding: 'folding' | ||
19 | + , foo: 'foo' | ||
20 | + , fool: 'fool' | ||
21 | + } | ||
22 | + | ||
23 | +This is handy for command-line scripts, or other cases where you want to be able to accept shorthands. |
node_modules/abbrev/abbrev.js
0 → 100644
1 | +module.exports = exports = abbrev.abbrev = abbrev | ||
2 | + | ||
3 | +abbrev.monkeyPatch = monkeyPatch | ||
4 | + | ||
5 | +function monkeyPatch () { | ||
6 | + Object.defineProperty(Array.prototype, 'abbrev', { | ||
7 | + value: function () { return abbrev(this) }, | ||
8 | + enumerable: false, configurable: true, writable: true | ||
9 | + }) | ||
10 | + | ||
11 | + Object.defineProperty(Object.prototype, 'abbrev', { | ||
12 | + value: function () { return abbrev(Object.keys(this)) }, | ||
13 | + enumerable: false, configurable: true, writable: true | ||
14 | + }) | ||
15 | +} | ||
16 | + | ||
17 | +function abbrev (list) { | ||
18 | + if (arguments.length !== 1 || !Array.isArray(list)) { | ||
19 | + list = Array.prototype.slice.call(arguments, 0) | ||
20 | + } | ||
21 | + for (var i = 0, l = list.length, args = [] ; i < l ; i ++) { | ||
22 | + args[i] = typeof list[i] === "string" ? list[i] : String(list[i]) | ||
23 | + } | ||
24 | + | ||
25 | + // sort them lexicographically, so that they're next to their nearest kin | ||
26 | + args = args.sort(lexSort) | ||
27 | + | ||
28 | + // walk through each, seeing how much it has in common with the next and previous | ||
29 | + var abbrevs = {} | ||
30 | + , prev = "" | ||
31 | + for (var i = 0, l = args.length ; i < l ; i ++) { | ||
32 | + var current = args[i] | ||
33 | + , next = args[i + 1] || "" | ||
34 | + , nextMatches = true | ||
35 | + , prevMatches = true | ||
36 | + if (current === next) continue | ||
37 | + for (var j = 0, cl = current.length ; j < cl ; j ++) { | ||
38 | + var curChar = current.charAt(j) | ||
39 | + nextMatches = nextMatches && curChar === next.charAt(j) | ||
40 | + prevMatches = prevMatches && curChar === prev.charAt(j) | ||
41 | + if (!nextMatches && !prevMatches) { | ||
42 | + j ++ | ||
43 | + break | ||
44 | + } | ||
45 | + } | ||
46 | + prev = current | ||
47 | + if (j === cl) { | ||
48 | + abbrevs[current] = current | ||
49 | + continue | ||
50 | + } | ||
51 | + for (var a = current.substr(0, j) ; j <= cl ; j ++) { | ||
52 | + abbrevs[a] = current | ||
53 | + a += current.charAt(j) | ||
54 | + } | ||
55 | + } | ||
56 | + return abbrevs | ||
57 | +} | ||
58 | + | ||
59 | +function lexSort (a, b) { | ||
60 | + return a === b ? 0 : a > b ? 1 : -1 | ||
61 | +} |
node_modules/abbrev/package.json
0 → 100644
1 | +{ | ||
2 | + "name": "abbrev", | ||
3 | + "version": "1.1.1", | ||
4 | + "description": "Like ruby's abbrev module, but in js", | ||
5 | + "author": "Isaac Z. Schlueter <i@izs.me>", | ||
6 | + "main": "abbrev.js", | ||
7 | + "scripts": { | ||
8 | + "test": "tap test.js --100", | ||
9 | + "preversion": "npm test", | ||
10 | + "postversion": "npm publish", | ||
11 | + "postpublish": "git push origin --all; git push origin --tags" | ||
12 | + }, | ||
13 | + "repository": "http://github.com/isaacs/abbrev-js", | ||
14 | + "license": "ISC", | ||
15 | + "devDependencies": { | ||
16 | + "tap": "^10.1" | ||
17 | + }, | ||
18 | + "files": [ | ||
19 | + "abbrev.js" | ||
20 | + ] | ||
21 | +} |
node_modules/accepts/HISTORY.md
0 → 100644
1 | +1.3.7 / 2019-04-29 | ||
2 | +================== | ||
3 | + | ||
4 | + * deps: negotiator@0.6.2 | ||
5 | + - Fix sorting charset, encoding, and language with extra parameters | ||
6 | + | ||
7 | +1.3.6 / 2019-04-28 | ||
8 | +================== | ||
9 | + | ||
10 | + * deps: mime-types@~2.1.24 | ||
11 | + - deps: mime-db@~1.40.0 | ||
12 | + | ||
13 | +1.3.5 / 2018-02-28 | ||
14 | +================== | ||
15 | + | ||
16 | + * deps: mime-types@~2.1.18 | ||
17 | + - deps: mime-db@~1.33.0 | ||
18 | + | ||
19 | +1.3.4 / 2017-08-22 | ||
20 | +================== | ||
21 | + | ||
22 | + * deps: mime-types@~2.1.16 | ||
23 | + - deps: mime-db@~1.29.0 | ||
24 | + | ||
25 | +1.3.3 / 2016-05-02 | ||
26 | +================== | ||
27 | + | ||
28 | + * deps: mime-types@~2.1.11 | ||
29 | + - deps: mime-db@~1.23.0 | ||
30 | + * deps: negotiator@0.6.1 | ||
31 | + - perf: improve `Accept` parsing speed | ||
32 | + - perf: improve `Accept-Charset` parsing speed | ||
33 | + - perf: improve `Accept-Encoding` parsing speed | ||
34 | + - perf: improve `Accept-Language` parsing speed | ||
35 | + | ||
36 | +1.3.2 / 2016-03-08 | ||
37 | +================== | ||
38 | + | ||
39 | + * deps: mime-types@~2.1.10 | ||
40 | + - Fix extension of `application/dash+xml` | ||
41 | + - Update primary extension for `audio/mp4` | ||
42 | + - deps: mime-db@~1.22.0 | ||
43 | + | ||
44 | +1.3.1 / 2016-01-19 | ||
45 | +================== | ||
46 | + | ||
47 | + * deps: mime-types@~2.1.9 | ||
48 | + - deps: mime-db@~1.21.0 | ||
49 | + | ||
50 | +1.3.0 / 2015-09-29 | ||
51 | +================== | ||
52 | + | ||
53 | + * deps: mime-types@~2.1.7 | ||
54 | + - deps: mime-db@~1.19.0 | ||
55 | + * deps: negotiator@0.6.0 | ||
56 | + - Fix including type extensions in parameters in `Accept` parsing | ||
57 | + - Fix parsing `Accept` parameters with quoted equals | ||
58 | + - Fix parsing `Accept` parameters with quoted semicolons | ||
59 | + - Lazy-load modules from main entry point | ||
60 | + - perf: delay type concatenation until needed | ||
61 | + - perf: enable strict mode | ||
62 | + - perf: hoist regular expressions | ||
63 | + - perf: remove closures getting spec properties | ||
64 | + - perf: remove a closure from media type parsing | ||
65 | + - perf: remove property delete from media type parsing | ||
66 | + | ||
67 | +1.2.13 / 2015-09-06 | ||
68 | +=================== | ||
69 | + | ||
70 | + * deps: mime-types@~2.1.6 | ||
71 | + - deps: mime-db@~1.18.0 | ||
72 | + | ||
73 | +1.2.12 / 2015-07-30 | ||
74 | +=================== | ||
75 | + | ||
76 | + * deps: mime-types@~2.1.4 | ||
77 | + - deps: mime-db@~1.16.0 | ||
78 | + | ||
79 | +1.2.11 / 2015-07-16 | ||
80 | +=================== | ||
81 | + | ||
82 | + * deps: mime-types@~2.1.3 | ||
83 | + - deps: mime-db@~1.15.0 | ||
84 | + | ||
85 | +1.2.10 / 2015-07-01 | ||
86 | +=================== | ||
87 | + | ||
88 | + * deps: mime-types@~2.1.2 | ||
89 | + - deps: mime-db@~1.14.0 | ||
90 | + | ||
91 | +1.2.9 / 2015-06-08 | ||
92 | +================== | ||
93 | + | ||
94 | + * deps: mime-types@~2.1.1 | ||
95 | + - perf: fix deopt during mapping | ||
96 | + | ||
97 | +1.2.8 / 2015-06-07 | ||
98 | +================== | ||
99 | + | ||
100 | + * deps: mime-types@~2.1.0 | ||
101 | + - deps: mime-db@~1.13.0 | ||
102 | + * perf: avoid argument reassignment & argument slice | ||
103 | + * perf: avoid negotiator recursive construction | ||
104 | + * perf: enable strict mode | ||
105 | + * perf: remove unnecessary bitwise operator | ||
106 | + | ||
107 | +1.2.7 / 2015-05-10 | ||
108 | +================== | ||
109 | + | ||
110 | + * deps: negotiator@0.5.3 | ||
111 | + - Fix media type parameter matching to be case-insensitive | ||
112 | + | ||
113 | +1.2.6 / 2015-05-07 | ||
114 | +================== | ||
115 | + | ||
116 | + * deps: mime-types@~2.0.11 | ||
117 | + - deps: mime-db@~1.9.1 | ||
118 | + * deps: negotiator@0.5.2 | ||
119 | + - Fix comparing media types with quoted values | ||
120 | + - Fix splitting media types with quoted commas | ||
121 | + | ||
122 | +1.2.5 / 2015-03-13 | ||
123 | +================== | ||
124 | + | ||
125 | + * deps: mime-types@~2.0.10 | ||
126 | + - deps: mime-db@~1.8.0 | ||
127 | + | ||
128 | +1.2.4 / 2015-02-14 | ||
129 | +================== | ||
130 | + | ||
131 | + * Support Node.js 0.6 | ||
132 | + * deps: mime-types@~2.0.9 | ||
133 | + - deps: mime-db@~1.7.0 | ||
134 | + * deps: negotiator@0.5.1 | ||
135 | + - Fix preference sorting to be stable for long acceptable lists | ||
136 | + | ||
137 | +1.2.3 / 2015-01-31 | ||
138 | +================== | ||
139 | + | ||
140 | + * deps: mime-types@~2.0.8 | ||
141 | + - deps: mime-db@~1.6.0 | ||
142 | + | ||
143 | +1.2.2 / 2014-12-30 | ||
144 | +================== | ||
145 | + | ||
146 | + * deps: mime-types@~2.0.7 | ||
147 | + - deps: mime-db@~1.5.0 | ||
148 | + | ||
149 | +1.2.1 / 2014-12-30 | ||
150 | +================== | ||
151 | + | ||
152 | + * deps: mime-types@~2.0.5 | ||
153 | + - deps: mime-db@~1.3.1 | ||
154 | + | ||
155 | +1.2.0 / 2014-12-19 | ||
156 | +================== | ||
157 | + | ||
158 | + * deps: negotiator@0.5.0 | ||
159 | + - Fix list return order when large accepted list | ||
160 | + - Fix missing identity encoding when q=0 exists | ||
161 | + - Remove dynamic building of Negotiator class | ||
162 | + | ||
163 | +1.1.4 / 2014-12-10 | ||
164 | +================== | ||
165 | + | ||
166 | + * deps: mime-types@~2.0.4 | ||
167 | + - deps: mime-db@~1.3.0 | ||
168 | + | ||
169 | +1.1.3 / 2014-11-09 | ||
170 | +================== | ||
171 | + | ||
172 | + * deps: mime-types@~2.0.3 | ||
173 | + - deps: mime-db@~1.2.0 | ||
174 | + | ||
175 | +1.1.2 / 2014-10-14 | ||
176 | +================== | ||
177 | + | ||
178 | + * deps: negotiator@0.4.9 | ||
179 | + - Fix error when media type has invalid parameter | ||
180 | + | ||
181 | +1.1.1 / 2014-09-28 | ||
182 | +================== | ||
183 | + | ||
184 | + * deps: mime-types@~2.0.2 | ||
185 | + - deps: mime-db@~1.1.0 | ||
186 | + * deps: negotiator@0.4.8 | ||
187 | + - Fix all negotiations to be case-insensitive | ||
188 | + - Stable sort preferences of same quality according to client order | ||
189 | + | ||
190 | +1.1.0 / 2014-09-02 | ||
191 | +================== | ||
192 | + | ||
193 | + * update `mime-types` | ||
194 | + | ||
195 | +1.0.7 / 2014-07-04 | ||
196 | +================== | ||
197 | + | ||
198 | + * Fix wrong type returned from `type` when match after unknown extension | ||
199 | + | ||
200 | +1.0.6 / 2014-06-24 | ||
201 | +================== | ||
202 | + | ||
203 | + * deps: negotiator@0.4.7 | ||
204 | + | ||
205 | +1.0.5 / 2014-06-20 | ||
206 | +================== | ||
207 | + | ||
208 | + * fix crash when unknown extension given | ||
209 | + | ||
210 | +1.0.4 / 2014-06-19 | ||
211 | +================== | ||
212 | + | ||
213 | + * use `mime-types` | ||
214 | + | ||
215 | +1.0.3 / 2014-06-11 | ||
216 | +================== | ||
217 | + | ||
218 | + * deps: negotiator@0.4.6 | ||
219 | + - Order by specificity when quality is the same | ||
220 | + | ||
221 | +1.0.2 / 2014-05-29 | ||
222 | +================== | ||
223 | + | ||
224 | + * Fix interpretation when header not in request | ||
225 | + * deps: pin negotiator@0.4.5 | ||
226 | + | ||
227 | +1.0.1 / 2014-01-18 | ||
228 | +================== | ||
229 | + | ||
230 | + * Identity encoding isn't always acceptable | ||
231 | + * deps: negotiator@~0.4.0 | ||
232 | + | ||
233 | +1.0.0 / 2013-12-27 | ||
234 | +================== | ||
235 | + | ||
236 | + * Genesis |
node_modules/accepts/LICENSE
0 → 100644
1 | +(The MIT License) | ||
2 | + | ||
3 | +Copyright (c) 2014 Jonathan Ong <me@jongleberry.com> | ||
4 | +Copyright (c) 2015 Douglas Christopher Wilson <doug@somethingdoug.com> | ||
5 | + | ||
6 | +Permission is hereby granted, free of charge, to any person obtaining | ||
7 | +a copy of this software and associated documentation files (the | ||
8 | +'Software'), to deal in the Software without restriction, including | ||
9 | +without limitation the rights to use, copy, modify, merge, publish, | ||
10 | +distribute, sublicense, and/or sell copies of the Software, and to | ||
11 | +permit persons to whom the Software is furnished to do so, subject to | ||
12 | +the following conditions: | ||
13 | + | ||
14 | +The above copyright notice and this permission notice shall be | ||
15 | +included in all copies or substantial portions of the Software. | ||
16 | + | ||
17 | +THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, | ||
18 | +EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF | ||
19 | +MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. | ||
20 | +IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY | ||
21 | +CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, | ||
22 | +TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE | ||
23 | +SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. |
node_modules/accepts/README.md
0 → 100644
1 | +# accepts | ||
2 | + | ||
3 | +[![NPM Version][npm-version-image]][npm-url] | ||
4 | +[![NPM Downloads][npm-downloads-image]][npm-url] | ||
5 | +[![Node.js Version][node-version-image]][node-version-url] | ||
6 | +[![Build Status][travis-image]][travis-url] | ||
7 | +[![Test Coverage][coveralls-image]][coveralls-url] | ||
8 | + | ||
9 | +Higher level content negotiation based on [negotiator](https://www.npmjs.com/package/negotiator). | ||
10 | +Extracted from [koa](https://www.npmjs.com/package/koa) for general use. | ||
11 | + | ||
12 | +In addition to negotiator, it allows: | ||
13 | + | ||
14 | +- Allows types as an array or arguments list, ie `(['text/html', 'application/json'])` | ||
15 | + as well as `('text/html', 'application/json')`. | ||
16 | +- Allows type shorthands such as `json`. | ||
17 | +- Returns `false` when no types match | ||
18 | +- Treats non-existent headers as `*` | ||
19 | + | ||
20 | +## Installation | ||
21 | + | ||
22 | +This is a [Node.js](https://nodejs.org/en/) module available through the | ||
23 | +[npm registry](https://www.npmjs.com/). Installation is done using the | ||
24 | +[`npm install` command](https://docs.npmjs.com/getting-started/installing-npm-packages-locally): | ||
25 | + | ||
26 | +```sh | ||
27 | +$ npm install accepts | ||
28 | +``` | ||
29 | + | ||
30 | +## API | ||
31 | + | ||
32 | +<!-- eslint-disable no-unused-vars --> | ||
33 | + | ||
34 | +```js | ||
35 | +var accepts = require('accepts') | ||
36 | +``` | ||
37 | + | ||
38 | +### accepts(req) | ||
39 | + | ||
40 | +Create a new `Accepts` object for the given `req`. | ||
41 | + | ||
42 | +#### .charset(charsets) | ||
43 | + | ||
44 | +Return the first accepted charset. If nothing in `charsets` is accepted, | ||
45 | +then `false` is returned. | ||
46 | + | ||
47 | +#### .charsets() | ||
48 | + | ||
49 | +Return the charsets that the request accepts, in the order of the client's | ||
50 | +preference (most preferred first). | ||
51 | + | ||
52 | +#### .encoding(encodings) | ||
53 | + | ||
54 | +Return the first accepted encoding. If nothing in `encodings` is accepted, | ||
55 | +then `false` is returned. | ||
56 | + | ||
57 | +#### .encodings() | ||
58 | + | ||
59 | +Return the encodings that the request accepts, in the order of the client's | ||
60 | +preference (most preferred first). | ||
61 | + | ||
62 | +#### .language(languages) | ||
63 | + | ||
64 | +Return the first accepted language. If nothing in `languages` is accepted, | ||
65 | +then `false` is returned. | ||
66 | + | ||
67 | +#### .languages() | ||
68 | + | ||
69 | +Return the languages that the request accepts, in the order of the client's | ||
70 | +preference (most preferred first). | ||
71 | + | ||
72 | +#### .type(types) | ||
73 | + | ||
74 | +Return the first accepted type (and it is returned as the same text as what | ||
75 | +appears in the `types` array). If nothing in `types` is accepted, then `false` | ||
76 | +is returned. | ||
77 | + | ||
78 | +The `types` array can contain full MIME types or file extensions. Any value | ||
79 | +that is not a full MIME types is passed to `require('mime-types').lookup`. | ||
80 | + | ||
81 | +#### .types() | ||
82 | + | ||
83 | +Return the types that the request accepts, in the order of the client's | ||
84 | +preference (most preferred first). | ||
85 | + | ||
86 | +## Examples | ||
87 | + | ||
88 | +### Simple type negotiation | ||
89 | + | ||
90 | +This simple example shows how to use `accepts` to return a different typed | ||
91 | +respond body based on what the client wants to accept. The server lists it's | ||
92 | +preferences in order and will get back the best match between the client and | ||
93 | +server. | ||
94 | + | ||
95 | +```js | ||
96 | +var accepts = require('accepts') | ||
97 | +var http = require('http') | ||
98 | + | ||
99 | +function app (req, res) { | ||
100 | + var accept = accepts(req) | ||
101 | + | ||
102 | + // the order of this list is significant; should be server preferred order | ||
103 | + switch (accept.type(['json', 'html'])) { | ||
104 | + case 'json': | ||
105 | + res.setHeader('Content-Type', 'application/json') | ||
106 | + res.write('{"hello":"world!"}') | ||
107 | + break | ||
108 | + case 'html': | ||
109 | + res.setHeader('Content-Type', 'text/html') | ||
110 | + res.write('<b>hello, world!</b>') | ||
111 | + break | ||
112 | + default: | ||
113 | + // the fallback is text/plain, so no need to specify it above | ||
114 | + res.setHeader('Content-Type', 'text/plain') | ||
115 | + res.write('hello, world!') | ||
116 | + break | ||
117 | + } | ||
118 | + | ||
119 | + res.end() | ||
120 | +} | ||
121 | + | ||
122 | +http.createServer(app).listen(3000) | ||
123 | +``` | ||
124 | + | ||
125 | +You can test this out with the cURL program: | ||
126 | +```sh | ||
127 | +curl -I -H'Accept: text/html' http://localhost:3000/ | ||
128 | +``` | ||
129 | + | ||
130 | +## License | ||
131 | + | ||
132 | +[MIT](LICENSE) | ||
133 | + | ||
134 | +[coveralls-image]: https://badgen.net/coveralls/c/github/jshttp/accepts/master | ||
135 | +[coveralls-url]: https://coveralls.io/r/jshttp/accepts?branch=master | ||
136 | +[node-version-image]: https://badgen.net/npm/node/accepts | ||
137 | +[node-version-url]: https://nodejs.org/en/download | ||
138 | +[npm-downloads-image]: https://badgen.net/npm/dm/accepts | ||
139 | +[npm-url]: https://npmjs.org/package/accepts | ||
140 | +[npm-version-image]: https://badgen.net/npm/v/accepts | ||
141 | +[travis-image]: https://badgen.net/travis/jshttp/accepts/master | ||
142 | +[travis-url]: https://travis-ci.org/jshttp/accepts |
node_modules/accepts/index.js
0 → 100644
1 | +/*! | ||
2 | + * accepts | ||
3 | + * Copyright(c) 2014 Jonathan Ong | ||
4 | + * Copyright(c) 2015 Douglas Christopher Wilson | ||
5 | + * MIT Licensed | ||
6 | + */ | ||
7 | + | ||
8 | +'use strict' | ||
9 | + | ||
10 | +/** | ||
11 | + * Module dependencies. | ||
12 | + * @private | ||
13 | + */ | ||
14 | + | ||
15 | +var Negotiator = require('negotiator') | ||
16 | +var mime = require('mime-types') | ||
17 | + | ||
18 | +/** | ||
19 | + * Module exports. | ||
20 | + * @public | ||
21 | + */ | ||
22 | + | ||
23 | +module.exports = Accepts | ||
24 | + | ||
25 | +/** | ||
26 | + * Create a new Accepts object for the given req. | ||
27 | + * | ||
28 | + * @param {object} req | ||
29 | + * @public | ||
30 | + */ | ||
31 | + | ||
32 | +function Accepts (req) { | ||
33 | + if (!(this instanceof Accepts)) { | ||
34 | + return new Accepts(req) | ||
35 | + } | ||
36 | + | ||
37 | + this.headers = req.headers | ||
38 | + this.negotiator = new Negotiator(req) | ||
39 | +} | ||
40 | + | ||
41 | +/** | ||
42 | + * Check if the given `type(s)` is acceptable, returning | ||
43 | + * the best match when true, otherwise `undefined`, in which | ||
44 | + * case you should respond with 406 "Not Acceptable". | ||
45 | + * | ||
46 | + * The `type` value may be a single mime type string | ||
47 | + * such as "application/json", the extension name | ||
48 | + * such as "json" or an array `["json", "html", "text/plain"]`. When a list | ||
49 | + * or array is given the _best_ match, if any is returned. | ||
50 | + * | ||
51 | + * Examples: | ||
52 | + * | ||
53 | + * // Accept: text/html | ||
54 | + * this.types('html'); | ||
55 | + * // => "html" | ||
56 | + * | ||
57 | + * // Accept: text/*, application/json | ||
58 | + * this.types('html'); | ||
59 | + * // => "html" | ||
60 | + * this.types('text/html'); | ||
61 | + * // => "text/html" | ||
62 | + * this.types('json', 'text'); | ||
63 | + * // => "json" | ||
64 | + * this.types('application/json'); | ||
65 | + * // => "application/json" | ||
66 | + * | ||
67 | + * // Accept: text/*, application/json | ||
68 | + * this.types('image/png'); | ||
69 | + * this.types('png'); | ||
70 | + * // => undefined | ||
71 | + * | ||
72 | + * // Accept: text/*;q=.5, application/json | ||
73 | + * this.types(['html', 'json']); | ||
74 | + * this.types('html', 'json'); | ||
75 | + * // => "json" | ||
76 | + * | ||
77 | + * @param {String|Array} types... | ||
78 | + * @return {String|Array|Boolean} | ||
79 | + * @public | ||
80 | + */ | ||
81 | + | ||
82 | +Accepts.prototype.type = | ||
83 | +Accepts.prototype.types = function (types_) { | ||
84 | + var types = types_ | ||
85 | + | ||
86 | + // support flattened arguments | ||
87 | + if (types && !Array.isArray(types)) { | ||
88 | + types = new Array(arguments.length) | ||
89 | + for (var i = 0; i < types.length; i++) { | ||
90 | + types[i] = arguments[i] | ||
91 | + } | ||
92 | + } | ||
93 | + | ||
94 | + // no types, return all requested types | ||
95 | + if (!types || types.length === 0) { | ||
96 | + return this.negotiator.mediaTypes() | ||
97 | + } | ||
98 | + | ||
99 | + // no accept header, return first given type | ||
100 | + if (!this.headers.accept) { | ||
101 | + return types[0] | ||
102 | + } | ||
103 | + | ||
104 | + var mimes = types.map(extToMime) | ||
105 | + var accepts = this.negotiator.mediaTypes(mimes.filter(validMime)) | ||
106 | + var first = accepts[0] | ||
107 | + | ||
108 | + return first | ||
109 | + ? types[mimes.indexOf(first)] | ||
110 | + : false | ||
111 | +} | ||
112 | + | ||
113 | +/** | ||
114 | + * Return accepted encodings or best fit based on `encodings`. | ||
115 | + * | ||
116 | + * Given `Accept-Encoding: gzip, deflate` | ||
117 | + * an array sorted by quality is returned: | ||
118 | + * | ||
119 | + * ['gzip', 'deflate'] | ||
120 | + * | ||
121 | + * @param {String|Array} encodings... | ||
122 | + * @return {String|Array} | ||
123 | + * @public | ||
124 | + */ | ||
125 | + | ||
126 | +Accepts.prototype.encoding = | ||
127 | +Accepts.prototype.encodings = function (encodings_) { | ||
128 | + var encodings = encodings_ | ||
129 | + | ||
130 | + // support flattened arguments | ||
131 | + if (encodings && !Array.isArray(encodings)) { | ||
132 | + encodings = new Array(arguments.length) | ||
133 | + for (var i = 0; i < encodings.length; i++) { | ||
134 | + encodings[i] = arguments[i] | ||
135 | + } | ||
136 | + } | ||
137 | + | ||
138 | + // no encodings, return all requested encodings | ||
139 | + if (!encodings || encodings.length === 0) { | ||
140 | + return this.negotiator.encodings() | ||
141 | + } | ||
142 | + | ||
143 | + return this.negotiator.encodings(encodings)[0] || false | ||
144 | +} | ||
145 | + | ||
146 | +/** | ||
147 | + * Return accepted charsets or best fit based on `charsets`. | ||
148 | + * | ||
149 | + * Given `Accept-Charset: utf-8, iso-8859-1;q=0.2, utf-7;q=0.5` | ||
150 | + * an array sorted by quality is returned: | ||
151 | + * | ||
152 | + * ['utf-8', 'utf-7', 'iso-8859-1'] | ||
153 | + * | ||
154 | + * @param {String|Array} charsets... | ||
155 | + * @return {String|Array} | ||
156 | + * @public | ||
157 | + */ | ||
158 | + | ||
159 | +Accepts.prototype.charset = | ||
160 | +Accepts.prototype.charsets = function (charsets_) { | ||
161 | + var charsets = charsets_ | ||
162 | + | ||
163 | + // support flattened arguments | ||
164 | + if (charsets && !Array.isArray(charsets)) { | ||
165 | + charsets = new Array(arguments.length) | ||
166 | + for (var i = 0; i < charsets.length; i++) { | ||
167 | + charsets[i] = arguments[i] | ||
168 | + } | ||
169 | + } | ||
170 | + | ||
171 | + // no charsets, return all requested charsets | ||
172 | + if (!charsets || charsets.length === 0) { | ||
173 | + return this.negotiator.charsets() | ||
174 | + } | ||
175 | + | ||
176 | + return this.negotiator.charsets(charsets)[0] || false | ||
177 | +} | ||
178 | + | ||
179 | +/** | ||
180 | + * Return accepted languages or best fit based on `langs`. | ||
181 | + * | ||
182 | + * Given `Accept-Language: en;q=0.8, es, pt` | ||
183 | + * an array sorted by quality is returned: | ||
184 | + * | ||
185 | + * ['es', 'pt', 'en'] | ||
186 | + * | ||
187 | + * @param {String|Array} langs... | ||
188 | + * @return {Array|String} | ||
189 | + * @public | ||
190 | + */ | ||
191 | + | ||
192 | +Accepts.prototype.lang = | ||
193 | +Accepts.prototype.langs = | ||
194 | +Accepts.prototype.language = | ||
195 | +Accepts.prototype.languages = function (languages_) { | ||
196 | + var languages = languages_ | ||
197 | + | ||
198 | + // support flattened arguments | ||
199 | + if (languages && !Array.isArray(languages)) { | ||
200 | + languages = new Array(arguments.length) | ||
201 | + for (var i = 0; i < languages.length; i++) { | ||
202 | + languages[i] = arguments[i] | ||
203 | + } | ||
204 | + } | ||
205 | + | ||
206 | + // no languages, return all requested languages | ||
207 | + if (!languages || languages.length === 0) { | ||
208 | + return this.negotiator.languages() | ||
209 | + } | ||
210 | + | ||
211 | + return this.negotiator.languages(languages)[0] || false | ||
212 | +} | ||
213 | + | ||
214 | +/** | ||
215 | + * Convert extnames to mime. | ||
216 | + * | ||
217 | + * @param {String} type | ||
218 | + * @return {String} | ||
219 | + * @private | ||
220 | + */ | ||
221 | + | ||
222 | +function extToMime (type) { | ||
223 | + return type.indexOf('/') === -1 | ||
224 | + ? mime.lookup(type) | ||
225 | + : type | ||
226 | +} | ||
227 | + | ||
228 | +/** | ||
229 | + * Check if mime is valid. | ||
230 | + * | ||
231 | + * @param {String} type | ||
232 | + * @return {String} | ||
233 | + * @private | ||
234 | + */ | ||
235 | + | ||
236 | +function validMime (type) { | ||
237 | + return typeof type === 'string' | ||
238 | +} |
node_modules/accepts/package.json
0 → 100644
1 | +{ | ||
2 | + "name": "accepts", | ||
3 | + "description": "Higher-level content negotiation", | ||
4 | + "version": "1.3.7", | ||
5 | + "contributors": [ | ||
6 | + "Douglas Christopher Wilson <doug@somethingdoug.com>", | ||
7 | + "Jonathan Ong <me@jongleberry.com> (http://jongleberry.com)" | ||
8 | + ], | ||
9 | + "license": "MIT", | ||
10 | + "repository": "jshttp/accepts", | ||
11 | + "dependencies": { | ||
12 | + "mime-types": "~2.1.24", | ||
13 | + "negotiator": "0.6.2" | ||
14 | + }, | ||
15 | + "devDependencies": { | ||
16 | + "deep-equal": "1.0.1", | ||
17 | + "eslint": "5.16.0", | ||
18 | + "eslint-config-standard": "12.0.0", | ||
19 | + "eslint-plugin-import": "2.17.2", | ||
20 | + "eslint-plugin-markdown": "1.0.0", | ||
21 | + "eslint-plugin-node": "8.0.1", | ||
22 | + "eslint-plugin-promise": "4.1.1", | ||
23 | + "eslint-plugin-standard": "4.0.0", | ||
24 | + "mocha": "6.1.4", | ||
25 | + "nyc": "14.0.0" | ||
26 | + }, | ||
27 | + "files": [ | ||
28 | + "LICENSE", | ||
29 | + "HISTORY.md", | ||
30 | + "index.js" | ||
31 | + ], | ||
32 | + "engines": { | ||
33 | + "node": ">= 0.6" | ||
34 | + }, | ||
35 | + "scripts": { | ||
36 | + "lint": "eslint --plugin markdown --ext js,md .", | ||
37 | + "test": "mocha --reporter spec --check-leaks --bail test/", | ||
38 | + "test-cov": "nyc --reporter=html --reporter=text npm test", | ||
39 | + "test-travis": "nyc --reporter=text npm test" | ||
40 | + }, | ||
41 | + "keywords": [ | ||
42 | + "content", | ||
43 | + "negotiation", | ||
44 | + "accept", | ||
45 | + "accepts" | ||
46 | + ] | ||
47 | +} |
node_modules/ansi-align/CHANGELOG.md
0 → 100644
1 | +# Changelog | ||
2 | + | ||
3 | +All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines. | ||
4 | + | ||
5 | +### [3.0.1](https://github.com/nexdrew/ansi-align/compare/v3.0.0...v3.0.1) (2021-09-27) | ||
6 | + | ||
7 | + | ||
8 | +### Bug Fixes | ||
9 | + | ||
10 | +* **package:** update string-width to version 4.1.0 ([#52](https://github.com/nexdrew/ansi-align/issues/52)) ([ab5b733](https://github.com/nexdrew/ansi-align/commit/ab5b733b1c30eef87b75e15459f2216db28d7ed3)) | ||
11 | + | ||
12 | +<a name="3.0.0"></a> | ||
13 | +# [3.0.0](https://github.com/nexdrew/ansi-align/compare/v2.0.0...v3.0.0) (2018-12-17) | ||
14 | + | ||
15 | + | ||
16 | +### Bug Fixes | ||
17 | + | ||
18 | +* **package:** update string-width to version 3.0.0 ([#50](https://github.com/nexdrew/ansi-align/issues/50)) ([67f0d8f](https://github.com/nexdrew/ansi-align/commit/67f0d8f)) | ||
19 | + | ||
20 | + | ||
21 | +### BREAKING CHANGES | ||
22 | + | ||
23 | +* **package:** Node 4 no longer supported, please update to Node 6+ or use ansi-align@2.0.0 | ||
24 | + | ||
25 | + | ||
26 | + | ||
27 | +<a name="2.0.0"></a> | ||
28 | +# [2.0.0](https://github.com/nexdrew/ansi-align/compare/v1.1.0...v2.0.0) (2017-05-01) | ||
29 | + | ||
30 | + | ||
31 | +### Features | ||
32 | + | ||
33 | +* ES2015ify, dropping support for Node <4 ([#30](https://github.com/nexdrew/ansi-align/issues/30)) ([7b43f48](https://github.com/nexdrew/ansi-align/commit/7b43f48)) | ||
34 | + | ||
35 | + | ||
36 | +### BREAKING CHANGES | ||
37 | + | ||
38 | +* Node 0.10 or 0.12 no longer supported, please update to Node 4+ or use ansi-align@1.1.0 | ||
39 | + | ||
40 | + | ||
41 | + | ||
42 | +<a name="1.1.0"></a> | ||
43 | +# [1.1.0](https://github.com/nexdrew/ansi-align/compare/v1.0.0...v1.1.0) (2016-06-06) | ||
44 | + | ||
45 | + | ||
46 | +### Features | ||
47 | + | ||
48 | +* support left-alignment as no-op ([#3](https://github.com/nexdrew/ansi-align/issues/3)) ([e581db6](https://github.com/nexdrew/ansi-align/commit/e581db6)) | ||
49 | + | ||
50 | + | ||
51 | + | ||
52 | +<a name="1.0.0"></a> | ||
53 | +# 1.0.0 (2016-04-30) | ||
54 | + | ||
55 | + | ||
56 | +### Features | ||
57 | + | ||
58 | +* initial commit ([1914d90](https://github.com/nexdrew/ansi-align/commit/1914d90)) |
node_modules/ansi-align/LICENSE
0 → 100644
1 | +Copyright (c) 2016, Contributors | ||
2 | + | ||
3 | +Permission to use, copy, modify, and/or distribute this software for any purpose | ||
4 | +with or without fee is hereby granted, provided that the above copyright notice | ||
5 | +and this permission notice appear in all copies. | ||
6 | + | ||
7 | +THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH | ||
8 | +REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND | ||
9 | +FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, | ||
10 | +INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS | ||
11 | +OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER | ||
12 | +TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF | ||
13 | +THIS SOFTWARE. |
node_modules/ansi-align/README.md
0 → 100644
1 | +# ansi-align | ||
2 | + | ||
3 | +> align-text with ANSI support for CLIs | ||
4 | + | ||
5 | +[![Build Status](https://travis-ci.org/nexdrew/ansi-align.svg?branch=master)](https://travis-ci.org/nexdrew/ansi-align) | ||
6 | +[![Coverage Status](https://coveralls.io/repos/github/nexdrew/ansi-align/badge.svg?branch=master)](https://coveralls.io/github/nexdrew/ansi-align?branch=master) | ||
7 | +[![Standard Version](https://img.shields.io/badge/release-standard%20version-brightgreen.svg)](https://github.com/conventional-changelog/standard-version) | ||
8 | +[![Greenkeeper badge](https://badges.greenkeeper.io/nexdrew/ansi-align.svg)](https://greenkeeper.io/) | ||
9 | + | ||
10 | +Easily center- or right- align a block of text, carefully ignoring ANSI escape codes. | ||
11 | + | ||
12 | +E.g. turn this: | ||
13 | + | ||
14 | +<img width="281" alt="ansi text block no alignment :(" src="https://cloud.githubusercontent.com/assets/1929625/14937509/7c3076dc-0ed7-11e6-8c16-4f6a4ccc8346.png"> | ||
15 | + | ||
16 | +Into this: | ||
17 | + | ||
18 | +<img width="278" alt="ansi text block center aligned!" src="https://cloud.githubusercontent.com/assets/1929625/14937510/7c3ca0b0-0ed7-11e6-8f0a-541ca39b6e0a.png"> | ||
19 | + | ||
20 | +## Install | ||
21 | + | ||
22 | +```sh | ||
23 | +npm install --save ansi-align | ||
24 | +``` | ||
25 | + | ||
26 | +```js | ||
27 | +var ansiAlign = require('ansi-align') | ||
28 | +``` | ||
29 | + | ||
30 | +## API | ||
31 | + | ||
32 | +### `ansiAlign(text, [opts])` | ||
33 | + | ||
34 | +Align the given text per the line with the greatest [`string-width`](https://github.com/sindresorhus/string-width), returning a new string (or array). | ||
35 | + | ||
36 | +#### Arguments | ||
37 | + | ||
38 | +- `text`: required, string or array | ||
39 | + | ||
40 | + The text to align. If a string is given, it will be split using either the `opts.split` value or `'\n'` by default. If an array is given, a different array of modified strings will be returned. | ||
41 | + | ||
42 | +- `opts`: optional, object | ||
43 | + | ||
44 | + Options to change behavior, see below. | ||
45 | + | ||
46 | +#### Options | ||
47 | + | ||
48 | +- `opts.align`: string, default `'center'` | ||
49 | + | ||
50 | + The alignment mode. Use `'center'` for center-alignment, `'right'` for right-alignment, or `'left'` for left-alignment. Note that the given `text` is assumed to be left-aligned already, so specifying `align: 'left'` just returns the `text` as is (no-op). | ||
51 | + | ||
52 | +- `opts.split`: string or RegExp, default `'\n'` | ||
53 | + | ||
54 | + The separator to use when splitting the text. Only used if text is given as a string. | ||
55 | + | ||
56 | +- `opts.pad`: string, default `' '` | ||
57 | + | ||
58 | + The value used to left-pad (prepend to) lines of lesser width. Will be repeated as necessary to adjust alignment to the line with the greatest width. | ||
59 | + | ||
60 | +### `ansiAlign.center(text)` | ||
61 | + | ||
62 | +Alias for `ansiAlign(text, { align: 'center' })`. | ||
63 | + | ||
64 | +### `ansiAlign.right(text)` | ||
65 | + | ||
66 | +Alias for `ansiAlign(text, { align: 'right' })`. | ||
67 | + | ||
68 | +### `ansiAlign.left(text)` | ||
69 | + | ||
70 | +Alias for `ansiAlign(text, { align: 'left' })`, which is a no-op. | ||
71 | + | ||
72 | +## Similar Packages | ||
73 | + | ||
74 | +- [`center-align`](https://github.com/jonschlinkert/center-align): Very close to this package, except it doesn't support ANSI codes. | ||
75 | +- [`left-pad`](https://github.com/camwest/left-pad): Great for left-padding but does not support center alignment or ANSI codes. | ||
76 | +- Pretty much anything by the [chalk](https://github.com/chalk) team | ||
77 | + | ||
78 | +## License | ||
79 | + | ||
80 | +ISC © Contributors |
node_modules/ansi-align/index.js
0 → 100644
1 | +'use strict' | ||
2 | + | ||
3 | +const stringWidth = require('string-width') | ||
4 | + | ||
5 | +function ansiAlign (text, opts) { | ||
6 | + if (!text) return text | ||
7 | + | ||
8 | + opts = opts || {} | ||
9 | + const align = opts.align || 'center' | ||
10 | + | ||
11 | + // short-circuit `align: 'left'` as no-op | ||
12 | + if (align === 'left') return text | ||
13 | + | ||
14 | + const split = opts.split || '\n' | ||
15 | + const pad = opts.pad || ' ' | ||
16 | + const widthDiffFn = align !== 'right' ? halfDiff : fullDiff | ||
17 | + | ||
18 | + let returnString = false | ||
19 | + if (!Array.isArray(text)) { | ||
20 | + returnString = true | ||
21 | + text = String(text).split(split) | ||
22 | + } | ||
23 | + | ||
24 | + let width | ||
25 | + let maxWidth = 0 | ||
26 | + text = text.map(function (str) { | ||
27 | + str = String(str) | ||
28 | + width = stringWidth(str) | ||
29 | + maxWidth = Math.max(width, maxWidth) | ||
30 | + return { | ||
31 | + str, | ||
32 | + width | ||
33 | + } | ||
34 | + }).map(function (obj) { | ||
35 | + return new Array(widthDiffFn(maxWidth, obj.width) + 1).join(pad) + obj.str | ||
36 | + }) | ||
37 | + | ||
38 | + return returnString ? text.join(split) : text | ||
39 | +} | ||
40 | + | ||
41 | +ansiAlign.left = function left (text) { | ||
42 | + return ansiAlign(text, { align: 'left' }) | ||
43 | +} | ||
44 | + | ||
45 | +ansiAlign.center = function center (text) { | ||
46 | + return ansiAlign(text, { align: 'center' }) | ||
47 | +} | ||
48 | + | ||
49 | +ansiAlign.right = function right (text) { | ||
50 | + return ansiAlign(text, { align: 'right' }) | ||
51 | +} | ||
52 | + | ||
53 | +module.exports = ansiAlign | ||
54 | + | ||
55 | +function halfDiff (maxWidth, curWidth) { | ||
56 | + return Math.floor((maxWidth - curWidth) / 2) | ||
57 | +} | ||
58 | + | ||
59 | +function fullDiff (maxWidth, curWidth) { | ||
60 | + return maxWidth - curWidth | ||
61 | +} |
node_modules/ansi-align/package.json
0 → 100644
1 | +{ | ||
2 | + "name": "ansi-align", | ||
3 | + "version": "3.0.1", | ||
4 | + "description": "align-text with ANSI support for CLIs", | ||
5 | + "main": "index.js", | ||
6 | + "scripts": { | ||
7 | + "pretest": "standard", | ||
8 | + "test": "nyc ava", | ||
9 | + "coverage": "nyc report --reporter=text-lcov | coveralls", | ||
10 | + "release": "standard-version" | ||
11 | + }, | ||
12 | + "files": [ | ||
13 | + "index.js" | ||
14 | + ], | ||
15 | + "repository": { | ||
16 | + "type": "git", | ||
17 | + "url": "git+https://github.com/nexdrew/ansi-align.git" | ||
18 | + }, | ||
19 | + "keywords": [ | ||
20 | + "ansi", | ||
21 | + "align", | ||
22 | + "cli", | ||
23 | + "center", | ||
24 | + "pad" | ||
25 | + ], | ||
26 | + "author": "nexdrew", | ||
27 | + "license": "ISC", | ||
28 | + "bugs": { | ||
29 | + "url": "https://github.com/nexdrew/ansi-align/issues" | ||
30 | + }, | ||
31 | + "homepage": "https://github.com/nexdrew/ansi-align#readme", | ||
32 | + "dependencies": { | ||
33 | + "string-width": "^4.1.0" | ||
34 | + }, | ||
35 | + "devDependencies": { | ||
36 | + "ava": "^2.0.0", | ||
37 | + "chalk": "^2.4.2", | ||
38 | + "coveralls": "^3.0.3", | ||
39 | + "nyc": "^14.0.0", | ||
40 | + "standard": "^14.0.0", | ||
41 | + "standard-version": "^7.0.0" | ||
42 | + } | ||
43 | +} |
node_modules/ansi-regex/index.d.ts
0 → 100644
1 | +declare namespace ansiRegex { | ||
2 | + interface Options { | ||
3 | + /** | ||
4 | + Match only the first ANSI escape. | ||
5 | + | ||
6 | + @default false | ||
7 | + */ | ||
8 | + onlyFirst: boolean; | ||
9 | + } | ||
10 | +} | ||
11 | + | ||
12 | +/** | ||
13 | +Regular expression for matching ANSI escape codes. | ||
14 | + | ||
15 | +@example | ||
16 | +``` | ||
17 | +import ansiRegex = require('ansi-regex'); | ||
18 | + | ||
19 | +ansiRegex().test('\u001B[4mcake\u001B[0m'); | ||
20 | +//=> true | ||
21 | + | ||
22 | +ansiRegex().test('cake'); | ||
23 | +//=> false | ||
24 | + | ||
25 | +'\u001B[4mcake\u001B[0m'.match(ansiRegex()); | ||
26 | +//=> ['\u001B[4m', '\u001B[0m'] | ||
27 | + | ||
28 | +'\u001B[4mcake\u001B[0m'.match(ansiRegex({onlyFirst: true})); | ||
29 | +//=> ['\u001B[4m'] | ||
30 | + | ||
31 | +'\u001B]8;;https://github.com\u0007click\u001B]8;;\u0007'.match(ansiRegex()); | ||
32 | +//=> ['\u001B]8;;https://github.com\u0007', '\u001B]8;;\u0007'] | ||
33 | +``` | ||
34 | +*/ | ||
35 | +declare function ansiRegex(options?: ansiRegex.Options): RegExp; | ||
36 | + | ||
37 | +export = ansiRegex; |
node_modules/ansi-regex/index.js
0 → 100644
1 | +'use strict'; | ||
2 | + | ||
3 | +module.exports = ({onlyFirst = false} = {}) => { | ||
4 | + const pattern = [ | ||
5 | + '[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)', | ||
6 | + '(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-ntqry=><~]))' | ||
7 | + ].join('|'); | ||
8 | + | ||
9 | + return new RegExp(pattern, onlyFirst ? undefined : 'g'); | ||
10 | +}; |
node_modules/ansi-regex/license
0 → 100644
1 | +MIT License | ||
2 | + | ||
3 | +Copyright (c) Sindre Sorhus <sindresorhus@gmail.com> (sindresorhus.com) | ||
4 | + | ||
5 | +Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: | ||
6 | + | ||
7 | +The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. | ||
8 | + | ||
9 | +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. |
node_modules/ansi-regex/package.json
0 → 100644
1 | +{ | ||
2 | + "name": "ansi-regex", | ||
3 | + "version": "5.0.1", | ||
4 | + "description": "Regular expression for matching ANSI escape codes", | ||
5 | + "license": "MIT", | ||
6 | + "repository": "chalk/ansi-regex", | ||
7 | + "author": { | ||
8 | + "name": "Sindre Sorhus", | ||
9 | + "email": "sindresorhus@gmail.com", | ||
10 | + "url": "sindresorhus.com" | ||
11 | + }, | ||
12 | + "engines": { | ||
13 | + "node": ">=8" | ||
14 | + }, | ||
15 | + "scripts": { | ||
16 | + "test": "xo && ava && tsd", | ||
17 | + "view-supported": "node fixtures/view-codes.js" | ||
18 | + }, | ||
19 | + "files": [ | ||
20 | + "index.js", | ||
21 | + "index.d.ts" | ||
22 | + ], | ||
23 | + "keywords": [ | ||
24 | + "ansi", | ||
25 | + "styles", | ||
26 | + "color", | ||
27 | + "colour", | ||
28 | + "colors", | ||
29 | + "terminal", | ||
30 | + "console", | ||
31 | + "cli", | ||
32 | + "string", | ||
33 | + "tty", | ||
34 | + "escape", | ||
35 | + "formatting", | ||
36 | + "rgb", | ||
37 | + "256", | ||
38 | + "shell", | ||
39 | + "xterm", | ||
40 | + "command-line", | ||
41 | + "text", | ||
42 | + "regex", | ||
43 | + "regexp", | ||
44 | + "re", | ||
45 | + "match", | ||
46 | + "test", | ||
47 | + "find", | ||
48 | + "pattern" | ||
49 | + ], | ||
50 | + "devDependencies": { | ||
51 | + "ava": "^2.4.0", | ||
52 | + "tsd": "^0.9.0", | ||
53 | + "xo": "^0.25.3" | ||
54 | + } | ||
55 | +} |
node_modules/ansi-regex/readme.md
0 → 100644
1 | +# ansi-regex | ||
2 | + | ||
3 | +> Regular expression for matching [ANSI escape codes](https://en.wikipedia.org/wiki/ANSI_escape_code) | ||
4 | + | ||
5 | + | ||
6 | +## Install | ||
7 | + | ||
8 | +``` | ||
9 | +$ npm install ansi-regex | ||
10 | +``` | ||
11 | + | ||
12 | + | ||
13 | +## Usage | ||
14 | + | ||
15 | +```js | ||
16 | +const ansiRegex = require('ansi-regex'); | ||
17 | + | ||
18 | +ansiRegex().test('\u001B[4mcake\u001B[0m'); | ||
19 | +//=> true | ||
20 | + | ||
21 | +ansiRegex().test('cake'); | ||
22 | +//=> false | ||
23 | + | ||
24 | +'\u001B[4mcake\u001B[0m'.match(ansiRegex()); | ||
25 | +//=> ['\u001B[4m', '\u001B[0m'] | ||
26 | + | ||
27 | +'\u001B[4mcake\u001B[0m'.match(ansiRegex({onlyFirst: true})); | ||
28 | +//=> ['\u001B[4m'] | ||
29 | + | ||
30 | +'\u001B]8;;https://github.com\u0007click\u001B]8;;\u0007'.match(ansiRegex()); | ||
31 | +//=> ['\u001B]8;;https://github.com\u0007', '\u001B]8;;\u0007'] | ||
32 | +``` | ||
33 | + | ||
34 | + | ||
35 | +## API | ||
36 | + | ||
37 | +### ansiRegex(options?) | ||
38 | + | ||
39 | +Returns a regex for matching ANSI escape codes. | ||
40 | + | ||
41 | +#### options | ||
42 | + | ||
43 | +Type: `object` | ||
44 | + | ||
45 | +##### onlyFirst | ||
46 | + | ||
47 | +Type: `boolean`<br> | ||
48 | +Default: `false` *(Matches any ANSI escape codes in a string)* | ||
49 | + | ||
50 | +Match only the first ANSI escape. | ||
51 | + | ||
52 | + | ||
53 | +## FAQ | ||
54 | + | ||
55 | +### Why do you test for codes not in the ECMA 48 standard? | ||
56 | + | ||
57 | +Some of the codes we run as a test are codes that we acquired finding various lists of non-standard or manufacturer specific codes. We test for both standard and non-standard codes, as most of them follow the same or similar format and can be safely matched in strings without the risk of removing actual string content. There are a few non-standard control codes that do not follow the traditional format (i.e. they end in numbers) thus forcing us to exclude them from the test because we cannot reliably match them. | ||
58 | + | ||
59 | +On the historical side, those ECMA standards were established in the early 90's whereas the VT100, for example, was designed in the mid/late 70's. At that point in time, control codes were still pretty ungoverned and engineers used them for a multitude of things, namely to activate hardware ports that may have been proprietary. Somewhere else you see a similar 'anarchy' of codes is in the x86 architecture for processors; there are a ton of "interrupts" that can mean different things on certain brands of processors, most of which have been phased out. | ||
60 | + | ||
61 | + | ||
62 | +## Maintainers | ||
63 | + | ||
64 | +- [Sindre Sorhus](https://github.com/sindresorhus) | ||
65 | +- [Josh Junon](https://github.com/qix-) | ||
66 | + | ||
67 | + | ||
68 | +--- | ||
69 | + | ||
70 | +<div align="center"> | ||
71 | + <b> | ||
72 | + <a href="https://tidelift.com/subscription/pkg/npm-ansi-regex?utm_source=npm-ansi-regex&utm_medium=referral&utm_campaign=readme">Get professional support for this package with a Tidelift subscription</a> | ||
73 | + </b> | ||
74 | + <br> | ||
75 | + <sub> | ||
76 | + Tidelift helps make open source sustainable for maintainers while giving companies<br>assurances about security, maintenance, and licensing for their dependencies. | ||
77 | + </sub> | ||
78 | +</div> |
node_modules/ansi-styles/index.js
0 → 100644
1 | +'use strict'; | ||
2 | +const colorConvert = require('color-convert'); | ||
3 | + | ||
4 | +const wrapAnsi16 = (fn, offset) => function () { | ||
5 | + const code = fn.apply(colorConvert, arguments); | ||
6 | + return `\u001B[${code + offset}m`; | ||
7 | +}; | ||
8 | + | ||
9 | +const wrapAnsi256 = (fn, offset) => function () { | ||
10 | + const code = fn.apply(colorConvert, arguments); | ||
11 | + return `\u001B[${38 + offset};5;${code}m`; | ||
12 | +}; | ||
13 | + | ||
14 | +const wrapAnsi16m = (fn, offset) => function () { | ||
15 | + const rgb = fn.apply(colorConvert, arguments); | ||
16 | + return `\u001B[${38 + offset};2;${rgb[0]};${rgb[1]};${rgb[2]}m`; | ||
17 | +}; | ||
18 | + | ||
19 | +function assembleStyles() { | ||
20 | + const codes = new Map(); | ||
21 | + const styles = { | ||
22 | + modifier: { | ||
23 | + reset: [0, 0], | ||
24 | + // 21 isn't widely supported and 22 does the same thing | ||
25 | + bold: [1, 22], | ||
26 | + dim: [2, 22], | ||
27 | + italic: [3, 23], | ||
28 | + underline: [4, 24], | ||
29 | + inverse: [7, 27], | ||
30 | + hidden: [8, 28], | ||
31 | + strikethrough: [9, 29] | ||
32 | + }, | ||
33 | + color: { | ||
34 | + black: [30, 39], | ||
35 | + red: [31, 39], | ||
36 | + green: [32, 39], | ||
37 | + yellow: [33, 39], | ||
38 | + blue: [34, 39], | ||
39 | + magenta: [35, 39], | ||
40 | + cyan: [36, 39], | ||
41 | + white: [37, 39], | ||
42 | + gray: [90, 39], | ||
43 | + | ||
44 | + // Bright color | ||
45 | + redBright: [91, 39], | ||
46 | + greenBright: [92, 39], | ||
47 | + yellowBright: [93, 39], | ||
48 | + blueBright: [94, 39], | ||
49 | + magentaBright: [95, 39], | ||
50 | + cyanBright: [96, 39], | ||
51 | + whiteBright: [97, 39] | ||
52 | + }, | ||
53 | + bgColor: { | ||
54 | + bgBlack: [40, 49], | ||
55 | + bgRed: [41, 49], | ||
56 | + bgGreen: [42, 49], | ||
57 | + bgYellow: [43, 49], | ||
58 | + bgBlue: [44, 49], | ||
59 | + bgMagenta: [45, 49], | ||
60 | + bgCyan: [46, 49], | ||
61 | + bgWhite: [47, 49], | ||
62 | + | ||
63 | + // Bright color | ||
64 | + bgBlackBright: [100, 49], | ||
65 | + bgRedBright: [101, 49], | ||
66 | + bgGreenBright: [102, 49], | ||
67 | + bgYellowBright: [103, 49], | ||
68 | + bgBlueBright: [104, 49], | ||
69 | + bgMagentaBright: [105, 49], | ||
70 | + bgCyanBright: [106, 49], | ||
71 | + bgWhiteBright: [107, 49] | ||
72 | + } | ||
73 | + }; | ||
74 | + | ||
75 | + // Fix humans | ||
76 | + styles.color.grey = styles.color.gray; | ||
77 | + | ||
78 | + for (const groupName of Object.keys(styles)) { | ||
79 | + const group = styles[groupName]; | ||
80 | + | ||
81 | + for (const styleName of Object.keys(group)) { | ||
82 | + const style = group[styleName]; | ||
83 | + | ||
84 | + styles[styleName] = { | ||
85 | + open: `\u001B[${style[0]}m`, | ||
86 | + close: `\u001B[${style[1]}m` | ||
87 | + }; | ||
88 | + | ||
89 | + group[styleName] = styles[styleName]; | ||
90 | + | ||
91 | + codes.set(style[0], style[1]); | ||
92 | + } | ||
93 | + | ||
94 | + Object.defineProperty(styles, groupName, { | ||
95 | + value: group, | ||
96 | + enumerable: false | ||
97 | + }); | ||
98 | + | ||
99 | + Object.defineProperty(styles, 'codes', { | ||
100 | + value: codes, | ||
101 | + enumerable: false | ||
102 | + }); | ||
103 | + } | ||
104 | + | ||
105 | + const ansi2ansi = n => n; | ||
106 | + const rgb2rgb = (r, g, b) => [r, g, b]; | ||
107 | + | ||
108 | + styles.color.close = '\u001B[39m'; | ||
109 | + styles.bgColor.close = '\u001B[49m'; | ||
110 | + | ||
111 | + styles.color.ansi = { | ||
112 | + ansi: wrapAnsi16(ansi2ansi, 0) | ||
113 | + }; | ||
114 | + styles.color.ansi256 = { | ||
115 | + ansi256: wrapAnsi256(ansi2ansi, 0) | ||
116 | + }; | ||
117 | + styles.color.ansi16m = { | ||
118 | + rgb: wrapAnsi16m(rgb2rgb, 0) | ||
119 | + }; | ||
120 | + | ||
121 | + styles.bgColor.ansi = { | ||
122 | + ansi: wrapAnsi16(ansi2ansi, 10) | ||
123 | + }; | ||
124 | + styles.bgColor.ansi256 = { | ||
125 | + ansi256: wrapAnsi256(ansi2ansi, 10) | ||
126 | + }; | ||
127 | + styles.bgColor.ansi16m = { | ||
128 | + rgb: wrapAnsi16m(rgb2rgb, 10) | ||
129 | + }; | ||
130 | + | ||
131 | + for (let key of Object.keys(colorConvert)) { | ||
132 | + if (typeof colorConvert[key] !== 'object') { | ||
133 | + continue; | ||
134 | + } | ||
135 | + | ||
136 | + const suite = colorConvert[key]; | ||
137 | + | ||
138 | + if (key === 'ansi16') { | ||
139 | + key = 'ansi'; | ||
140 | + } | ||
141 | + | ||
142 | + if ('ansi16' in suite) { | ||
143 | + styles.color.ansi[key] = wrapAnsi16(suite.ansi16, 0); | ||
144 | + styles.bgColor.ansi[key] = wrapAnsi16(suite.ansi16, 10); | ||
145 | + } | ||
146 | + | ||
147 | + if ('ansi256' in suite) { | ||
148 | + styles.color.ansi256[key] = wrapAnsi256(suite.ansi256, 0); | ||
149 | + styles.bgColor.ansi256[key] = wrapAnsi256(suite.ansi256, 10); | ||
150 | + } | ||
151 | + | ||
152 | + if ('rgb' in suite) { | ||
153 | + styles.color.ansi16m[key] = wrapAnsi16m(suite.rgb, 0); | ||
154 | + styles.bgColor.ansi16m[key] = wrapAnsi16m(suite.rgb, 10); | ||
155 | + } | ||
156 | + } | ||
157 | + | ||
158 | + return styles; | ||
159 | +} | ||
160 | + | ||
161 | +// Make the export immutable | ||
162 | +Object.defineProperty(module, 'exports', { | ||
163 | + enumerable: true, | ||
164 | + get: assembleStyles | ||
165 | +}); |
node_modules/ansi-styles/license
0 → 100644
1 | +MIT License | ||
2 | + | ||
3 | +Copyright (c) Sindre Sorhus <sindresorhus@gmail.com> (sindresorhus.com) | ||
4 | + | ||
5 | +Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: | ||
6 | + | ||
7 | +The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. | ||
8 | + | ||
9 | +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. |
node_modules/ansi-styles/package.json
0 → 100644
1 | +{ | ||
2 | + "name": "ansi-styles", | ||
3 | + "version": "3.2.1", | ||
4 | + "description": "ANSI escape codes for styling strings in the terminal", | ||
5 | + "license": "MIT", | ||
6 | + "repository": "chalk/ansi-styles", | ||
7 | + "author": { | ||
8 | + "name": "Sindre Sorhus", | ||
9 | + "email": "sindresorhus@gmail.com", | ||
10 | + "url": "sindresorhus.com" | ||
11 | + }, | ||
12 | + "engines": { | ||
13 | + "node": ">=4" | ||
14 | + }, | ||
15 | + "scripts": { | ||
16 | + "test": "xo && ava", | ||
17 | + "screenshot": "svg-term --command='node screenshot' --out=screenshot.svg --padding=3 --width=55 --height=3 --at=1000 --no-cursor" | ||
18 | + }, | ||
19 | + "files": [ | ||
20 | + "index.js" | ||
21 | + ], | ||
22 | + "keywords": [ | ||
23 | + "ansi", | ||
24 | + "styles", | ||
25 | + "color", | ||
26 | + "colour", | ||
27 | + "colors", | ||
28 | + "terminal", | ||
29 | + "console", | ||
30 | + "cli", | ||
31 | + "string", | ||
32 | + "tty", | ||
33 | + "escape", | ||
34 | + "formatting", | ||
35 | + "rgb", | ||
36 | + "256", | ||
37 | + "shell", | ||
38 | + "xterm", | ||
39 | + "log", | ||
40 | + "logging", | ||
41 | + "command-line", | ||
42 | + "text" | ||
43 | + ], | ||
44 | + "dependencies": { | ||
45 | + "color-convert": "^1.9.0" | ||
46 | + }, | ||
47 | + "devDependencies": { | ||
48 | + "ava": "*", | ||
49 | + "babel-polyfill": "^6.23.0", | ||
50 | + "svg-term-cli": "^2.1.1", | ||
51 | + "xo": "*" | ||
52 | + }, | ||
53 | + "ava": { | ||
54 | + "require": "babel-polyfill" | ||
55 | + } | ||
56 | +} |
node_modules/ansi-styles/readme.md
0 → 100644
1 | +# ansi-styles [![Build Status](https://travis-ci.org/chalk/ansi-styles.svg?branch=master)](https://travis-ci.org/chalk/ansi-styles) | ||
2 | + | ||
3 | +> [ANSI escape codes](http://en.wikipedia.org/wiki/ANSI_escape_code#Colors_and_Styles) for styling strings in the terminal | ||
4 | + | ||
5 | +You probably want the higher-level [chalk](https://github.com/chalk/chalk) module for styling your strings. | ||
6 | + | ||
7 | +<img src="https://cdn.rawgit.com/chalk/ansi-styles/8261697c95bf34b6c7767e2cbe9941a851d59385/screenshot.svg" width="900"> | ||
8 | + | ||
9 | + | ||
10 | +## Install | ||
11 | + | ||
12 | +``` | ||
13 | +$ npm install ansi-styles | ||
14 | +``` | ||
15 | + | ||
16 | + | ||
17 | +## Usage | ||
18 | + | ||
19 | +```js | ||
20 | +const style = require('ansi-styles'); | ||
21 | + | ||
22 | +console.log(`${style.green.open}Hello world!${style.green.close}`); | ||
23 | + | ||
24 | + | ||
25 | +// Color conversion between 16/256/truecolor | ||
26 | +// NOTE: If conversion goes to 16 colors or 256 colors, the original color | ||
27 | +// may be degraded to fit that color palette. This means terminals | ||
28 | +// that do not support 16 million colors will best-match the | ||
29 | +// original color. | ||
30 | +console.log(style.bgColor.ansi.hsl(120, 80, 72) + 'Hello world!' + style.bgColor.close); | ||
31 | +console.log(style.color.ansi256.rgb(199, 20, 250) + 'Hello world!' + style.color.close); | ||
32 | +console.log(style.color.ansi16m.hex('#ABCDEF') + 'Hello world!' + style.color.close); | ||
33 | +``` | ||
34 | + | ||
35 | +## API | ||
36 | + | ||
37 | +Each style has an `open` and `close` property. | ||
38 | + | ||
39 | + | ||
40 | +## Styles | ||
41 | + | ||
42 | +### Modifiers | ||
43 | + | ||
44 | +- `reset` | ||
45 | +- `bold` | ||
46 | +- `dim` | ||
47 | +- `italic` *(Not widely supported)* | ||
48 | +- `underline` | ||
49 | +- `inverse` | ||
50 | +- `hidden` | ||
51 | +- `strikethrough` *(Not widely supported)* | ||
52 | + | ||
53 | +### Colors | ||
54 | + | ||
55 | +- `black` | ||
56 | +- `red` | ||
57 | +- `green` | ||
58 | +- `yellow` | ||
59 | +- `blue` | ||
60 | +- `magenta` | ||
61 | +- `cyan` | ||
62 | +- `white` | ||
63 | +- `gray` ("bright black") | ||
64 | +- `redBright` | ||
65 | +- `greenBright` | ||
66 | +- `yellowBright` | ||
67 | +- `blueBright` | ||
68 | +- `magentaBright` | ||
69 | +- `cyanBright` | ||
70 | +- `whiteBright` | ||
71 | + | ||
72 | +### Background colors | ||
73 | + | ||
74 | +- `bgBlack` | ||
75 | +- `bgRed` | ||
76 | +- `bgGreen` | ||
77 | +- `bgYellow` | ||
78 | +- `bgBlue` | ||
79 | +- `bgMagenta` | ||
80 | +- `bgCyan` | ||
81 | +- `bgWhite` | ||
82 | +- `bgBlackBright` | ||
83 | +- `bgRedBright` | ||
84 | +- `bgGreenBright` | ||
85 | +- `bgYellowBright` | ||
86 | +- `bgBlueBright` | ||
87 | +- `bgMagentaBright` | ||
88 | +- `bgCyanBright` | ||
89 | +- `bgWhiteBright` | ||
90 | + | ||
91 | + | ||
92 | +## Advanced usage | ||
93 | + | ||
94 | +By default, you get a map of styles, but the styles are also available as groups. They are non-enumerable so they don't show up unless you access them explicitly. This makes it easier to expose only a subset in a higher-level module. | ||
95 | + | ||
96 | +- `style.modifier` | ||
97 | +- `style.color` | ||
98 | +- `style.bgColor` | ||
99 | + | ||
100 | +###### Example | ||
101 | + | ||
102 | +```js | ||
103 | +console.log(style.color.green.open); | ||
104 | +``` | ||
105 | + | ||
106 | +Raw escape codes (i.e. without the CSI escape prefix `\u001B[` and render mode postfix `m`) are available under `style.codes`, which returns a `Map` with the open codes as keys and close codes as values. | ||
107 | + | ||
108 | +###### Example | ||
109 | + | ||
110 | +```js | ||
111 | +console.log(style.codes.get(36)); | ||
112 | +//=> 39 | ||
113 | +``` | ||
114 | + | ||
115 | + | ||
116 | +## [256 / 16 million (TrueColor) support](https://gist.github.com/XVilka/8346728) | ||
117 | + | ||
118 | +`ansi-styles` uses the [`color-convert`](https://github.com/Qix-/color-convert) package to allow for converting between various colors and ANSI escapes, with support for 256 and 16 million colors. | ||
119 | + | ||
120 | +To use these, call the associated conversion function with the intended output, for example: | ||
121 | + | ||
122 | +```js | ||
123 | +style.color.ansi.rgb(100, 200, 15); // RGB to 16 color ansi foreground code | ||
124 | +style.bgColor.ansi.rgb(100, 200, 15); // RGB to 16 color ansi background code | ||
125 | + | ||
126 | +style.color.ansi256.hsl(120, 100, 60); // HSL to 256 color ansi foreground code | ||
127 | +style.bgColor.ansi256.hsl(120, 100, 60); // HSL to 256 color ansi foreground code | ||
128 | + | ||
129 | +style.color.ansi16m.hex('#C0FFEE'); // Hex (RGB) to 16 million color foreground code | ||
130 | +style.bgColor.ansi16m.hex('#C0FFEE'); // Hex (RGB) to 16 million color background code | ||
131 | +``` | ||
132 | + | ||
133 | + | ||
134 | +## Related | ||
135 | + | ||
136 | +- [ansi-escapes](https://github.com/sindresorhus/ansi-escapes) - ANSI escape codes for manipulating the terminal | ||
137 | + | ||
138 | + | ||
139 | +## Maintainers | ||
140 | + | ||
141 | +- [Sindre Sorhus](https://github.com/sindresorhus) | ||
142 | +- [Josh Junon](https://github.com/qix-) | ||
143 | + | ||
144 | + | ||
145 | +## License | ||
146 | + | ||
147 | +MIT |
node_modules/anymatch/LICENSE
0 → 100644
1 | +The ISC License | ||
2 | + | ||
3 | +Copyright (c) 2019 Elan Shanker, Paul Miller (https://paulmillr.com) | ||
4 | + | ||
5 | +Permission to use, copy, modify, and/or distribute this software for any | ||
6 | +purpose with or without fee is hereby granted, provided that the above | ||
7 | +copyright notice and this permission notice appear in all copies. | ||
8 | + | ||
9 | +THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES | ||
10 | +WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF | ||
11 | +MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR | ||
12 | +ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES | ||
13 | +WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN | ||
14 | +ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR | ||
15 | +IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. |
node_modules/anymatch/README.md
0 → 100644
1 | +anymatch [![Build Status](https://travis-ci.org/micromatch/anymatch.svg?branch=master)](https://travis-ci.org/micromatch/anymatch) [![Coverage Status](https://img.shields.io/coveralls/micromatch/anymatch.svg?branch=master)](https://coveralls.io/r/micromatch/anymatch?branch=master) | ||
2 | +====== | ||
3 | +Javascript module to match a string against a regular expression, glob, string, | ||
4 | +or function that takes the string as an argument and returns a truthy or falsy | ||
5 | +value. The matcher can also be an array of any or all of these. Useful for | ||
6 | +allowing a very flexible user-defined config to define things like file paths. | ||
7 | + | ||
8 | +__Note: This module has Bash-parity, please be aware that Windows-style backslashes are not supported as separators. See https://github.com/micromatch/micromatch#backslashes for more information.__ | ||
9 | + | ||
10 | + | ||
11 | +Usage | ||
12 | +----- | ||
13 | +```sh | ||
14 | +npm install anymatch | ||
15 | +``` | ||
16 | + | ||
17 | +#### anymatch(matchers, testString, [returnIndex], [options]) | ||
18 | +* __matchers__: (_Array|String|RegExp|Function_) | ||
19 | +String to be directly matched, string with glob patterns, regular expression | ||
20 | +test, function that takes the testString as an argument and returns a truthy | ||
21 | +value if it should be matched, or an array of any number and mix of these types. | ||
22 | +* __testString__: (_String|Array_) The string to test against the matchers. If | ||
23 | +passed as an array, the first element of the array will be used as the | ||
24 | +`testString` for non-function matchers, while the entire array will be applied | ||
25 | +as the arguments for function matchers. | ||
26 | +* __options__: (_Object_ [optional]_) Any of the [picomatch](https://github.com/micromatch/picomatch#options) options. | ||
27 | + * __returnIndex__: (_Boolean [optional]_) If true, return the array index of | ||
28 | +the first matcher that that testString matched, or -1 if no match, instead of a | ||
29 | +boolean result. | ||
30 | + | ||
31 | +```js | ||
32 | +const anymatch = require('anymatch'); | ||
33 | + | ||
34 | +const matchers = [ 'path/to/file.js', 'path/anyjs/**/*.js', /foo.js$/, string => string.includes('bar') && string.length > 10 ] ; | ||
35 | + | ||
36 | +anymatch(matchers, 'path/to/file.js'); // true | ||
37 | +anymatch(matchers, 'path/anyjs/baz.js'); // true | ||
38 | +anymatch(matchers, 'path/to/foo.js'); // true | ||
39 | +anymatch(matchers, 'path/to/bar.js'); // true | ||
40 | +anymatch(matchers, 'bar.js'); // false | ||
41 | + | ||
42 | +// returnIndex = true | ||
43 | +anymatch(matchers, 'foo.js', {returnIndex: true}); // 2 | ||
44 | +anymatch(matchers, 'path/anyjs/foo.js', {returnIndex: true}); // 1 | ||
45 | + | ||
46 | +// any picomatc | ||
47 | + | ||
48 | +// using globs to match directories and their children | ||
49 | +anymatch('node_modules', 'node_modules'); // true | ||
50 | +anymatch('node_modules', 'node_modules/somelib/index.js'); // false | ||
51 | +anymatch('node_modules/**', 'node_modules/somelib/index.js'); // true | ||
52 | +anymatch('node_modules/**', '/absolute/path/to/node_modules/somelib/index.js'); // false | ||
53 | +anymatch('**/node_modules/**', '/absolute/path/to/node_modules/somelib/index.js'); // true | ||
54 | + | ||
55 | +const matcher = anymatch(matchers); | ||
56 | +['foo.js', 'bar.js'].filter(matcher); // [ 'foo.js' ] | ||
57 | +anymatch master* ❯ | ||
58 | + | ||
59 | +``` | ||
60 | + | ||
61 | +#### anymatch(matchers) | ||
62 | +You can also pass in only your matcher(s) to get a curried function that has | ||
63 | +already been bound to the provided matching criteria. This can be used as an | ||
64 | +`Array#filter` callback. | ||
65 | + | ||
66 | +```js | ||
67 | +var matcher = anymatch(matchers); | ||
68 | + | ||
69 | +matcher('path/to/file.js'); // true | ||
70 | +matcher('path/anyjs/baz.js', true); // 1 | ||
71 | + | ||
72 | +['foo.js', 'bar.js'].filter(matcher); // ['foo.js'] | ||
73 | +``` | ||
74 | + | ||
75 | +Changelog | ||
76 | +---------- | ||
77 | +[See release notes page on GitHub](https://github.com/micromatch/anymatch/releases) | ||
78 | + | ||
79 | +- **v3.0:** Removed `startIndex` and `endIndex` arguments. Node 8.x-only. | ||
80 | +- **v2.0:** [micromatch](https://github.com/jonschlinkert/micromatch) moves away from minimatch-parity and inline with Bash. This includes handling backslashes differently (see https://github.com/micromatch/micromatch#backslashes for more information). | ||
81 | +- **v1.2:** anymatch uses [micromatch](https://github.com/jonschlinkert/micromatch) | ||
82 | +for glob pattern matching. Issues with glob pattern matching should be | ||
83 | +reported directly to the [micromatch issue tracker](https://github.com/jonschlinkert/micromatch/issues). | ||
84 | + | ||
85 | +License | ||
86 | +------- | ||
87 | +[ISC](https://raw.github.com/micromatch/anymatch/master/LICENSE) |
node_modules/anymatch/index.d.ts
0 → 100644
1 | +type AnymatchFn = (testString: string) => boolean; | ||
2 | +type AnymatchPattern = string|RegExp|AnymatchFn; | ||
3 | +type AnymatchMatcher = AnymatchPattern|AnymatchPattern[] | ||
4 | +type AnymatchTester = { | ||
5 | + (testString: string|any[], returnIndex: true): number; | ||
6 | + (testString: string|any[]): boolean; | ||
7 | +} | ||
8 | + | ||
9 | +type PicomatchOptions = {dot: boolean}; | ||
10 | + | ||
11 | +declare const anymatch: { | ||
12 | + (matchers: AnymatchMatcher): AnymatchTester; | ||
13 | + (matchers: AnymatchMatcher, testString: string|any[], returnIndex: true | PicomatchOptions): number; | ||
14 | + (matchers: AnymatchMatcher, testString: string|any[]): boolean; | ||
15 | +} | ||
16 | + | ||
17 | +export {AnymatchMatcher as Matcher} | ||
18 | +export {AnymatchTester as Tester} | ||
19 | +export default anymatch |
node_modules/anymatch/index.js
0 → 100644
1 | +'use strict'; | ||
2 | + | ||
3 | +Object.defineProperty(exports, "__esModule", { value: true }); | ||
4 | + | ||
5 | +const picomatch = require('picomatch'); | ||
6 | +const normalizePath = require('normalize-path'); | ||
7 | + | ||
8 | +/** | ||
9 | + * @typedef {(testString: string) => boolean} AnymatchFn | ||
10 | + * @typedef {string|RegExp|AnymatchFn} AnymatchPattern | ||
11 | + * @typedef {AnymatchPattern|AnymatchPattern[]} AnymatchMatcher | ||
12 | + */ | ||
13 | +const BANG = '!'; | ||
14 | +const DEFAULT_OPTIONS = {returnIndex: false}; | ||
15 | +const arrify = (item) => Array.isArray(item) ? item : [item]; | ||
16 | + | ||
17 | +/** | ||
18 | + * @param {AnymatchPattern} matcher | ||
19 | + * @param {object} options | ||
20 | + * @returns {AnymatchFn} | ||
21 | + */ | ||
22 | +const createPattern = (matcher, options) => { | ||
23 | + if (typeof matcher === 'function') { | ||
24 | + return matcher; | ||
25 | + } | ||
26 | + if (typeof matcher === 'string') { | ||
27 | + const glob = picomatch(matcher, options); | ||
28 | + return (string) => matcher === string || glob(string); | ||
29 | + } | ||
30 | + if (matcher instanceof RegExp) { | ||
31 | + return (string) => matcher.test(string); | ||
32 | + } | ||
33 | + return (string) => false; | ||
34 | +}; | ||
35 | + | ||
36 | +/** | ||
37 | + * @param {Array<Function>} patterns | ||
38 | + * @param {Array<Function>} negPatterns | ||
39 | + * @param {String|Array} args | ||
40 | + * @param {Boolean} returnIndex | ||
41 | + * @returns {boolean|number} | ||
42 | + */ | ||
43 | +const matchPatterns = (patterns, negPatterns, args, returnIndex) => { | ||
44 | + const isList = Array.isArray(args); | ||
45 | + const _path = isList ? args[0] : args; | ||
46 | + if (!isList && typeof _path !== 'string') { | ||
47 | + throw new TypeError('anymatch: second argument must be a string: got ' + | ||
48 | + Object.prototype.toString.call(_path)) | ||
49 | + } | ||
50 | + const path = normalizePath(_path); | ||
51 | + | ||
52 | + for (let index = 0; index < negPatterns.length; index++) { | ||
53 | + const nglob = negPatterns[index]; | ||
54 | + if (nglob(path)) { | ||
55 | + return returnIndex ? -1 : false; | ||
56 | + } | ||
57 | + } | ||
58 | + | ||
59 | + const applied = isList && [path].concat(args.slice(1)); | ||
60 | + for (let index = 0; index < patterns.length; index++) { | ||
61 | + const pattern = patterns[index]; | ||
62 | + if (isList ? pattern(...applied) : pattern(path)) { | ||
63 | + return returnIndex ? index : true; | ||
64 | + } | ||
65 | + } | ||
66 | + | ||
67 | + return returnIndex ? -1 : false; | ||
68 | +}; | ||
69 | + | ||
70 | +/** | ||
71 | + * @param {AnymatchMatcher} matchers | ||
72 | + * @param {Array|string} testString | ||
73 | + * @param {object} options | ||
74 | + * @returns {boolean|number|Function} | ||
75 | + */ | ||
76 | +const anymatch = (matchers, testString, options = DEFAULT_OPTIONS) => { | ||
77 | + if (matchers == null) { | ||
78 | + throw new TypeError('anymatch: specify first argument'); | ||
79 | + } | ||
80 | + const opts = typeof options === 'boolean' ? {returnIndex: options} : options; | ||
81 | + const returnIndex = opts.returnIndex || false; | ||
82 | + | ||
83 | + // Early cache for matchers. | ||
84 | + const mtchers = arrify(matchers); | ||
85 | + const negatedGlobs = mtchers | ||
86 | + .filter(item => typeof item === 'string' && item.charAt(0) === BANG) | ||
87 | + .map(item => item.slice(1)) | ||
88 | + .map(item => picomatch(item, opts)); | ||
89 | + const patterns = mtchers | ||
90 | + .filter(item => typeof item !== 'string' || (typeof item === 'string' && item.charAt(0) !== BANG)) | ||
91 | + .map(matcher => createPattern(matcher, opts)); | ||
92 | + | ||
93 | + if (testString == null) { | ||
94 | + return (testString, ri = false) => { | ||
95 | + const returnIndex = typeof ri === 'boolean' ? ri : false; | ||
96 | + return matchPatterns(patterns, negatedGlobs, testString, returnIndex); | ||
97 | + } | ||
98 | + } | ||
99 | + | ||
100 | + return matchPatterns(patterns, negatedGlobs, testString, returnIndex); | ||
101 | +}; | ||
102 | + | ||
103 | +anymatch.default = anymatch; | ||
104 | +module.exports = anymatch; |
node_modules/anymatch/package.json
0 → 100644
1 | +{ | ||
2 | + "name": "anymatch", | ||
3 | + "version": "3.1.2", | ||
4 | + "description": "Matches strings against configurable strings, globs, regular expressions, and/or functions", | ||
5 | + "files": [ | ||
6 | + "index.js", | ||
7 | + "index.d.ts" | ||
8 | + ], | ||
9 | + "dependencies": { | ||
10 | + "normalize-path": "^3.0.0", | ||
11 | + "picomatch": "^2.0.4" | ||
12 | + }, | ||
13 | + "author": { | ||
14 | + "name": "Elan Shanker", | ||
15 | + "url": "https://github.com/es128" | ||
16 | + }, | ||
17 | + "license": "ISC", | ||
18 | + "homepage": "https://github.com/micromatch/anymatch", | ||
19 | + "repository": { | ||
20 | + "type": "git", | ||
21 | + "url": "https://github.com/micromatch/anymatch" | ||
22 | + }, | ||
23 | + "keywords": [ | ||
24 | + "match", | ||
25 | + "any", | ||
26 | + "string", | ||
27 | + "file", | ||
28 | + "fs", | ||
29 | + "list", | ||
30 | + "glob", | ||
31 | + "regex", | ||
32 | + "regexp", | ||
33 | + "regular", | ||
34 | + "expression", | ||
35 | + "function" | ||
36 | + ], | ||
37 | + "scripts": { | ||
38 | + "test": "nyc mocha", | ||
39 | + "mocha": "mocha" | ||
40 | + }, | ||
41 | + "devDependencies": { | ||
42 | + "mocha": "^6.1.3", | ||
43 | + "nyc": "^14.0.0" | ||
44 | + }, | ||
45 | + "engines": { | ||
46 | + "node": ">= 8" | ||
47 | + } | ||
48 | +} |
node_modules/array-flatten/LICENSE
0 → 100644
1 | +The MIT License (MIT) | ||
2 | + | ||
3 | +Copyright (c) 2014 Blake Embrey (hello@blakeembrey.com) | ||
4 | + | ||
5 | +Permission is hereby granted, free of charge, to any person obtaining a copy | ||
6 | +of this software and associated documentation files (the "Software"), to deal | ||
7 | +in the Software without restriction, including without limitation the rights | ||
8 | +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | ||
9 | +copies of the Software, and to permit persons to whom the Software is | ||
10 | +furnished to do so, subject to the following conditions: | ||
11 | + | ||
12 | +The above copyright notice and this permission notice shall be included in | ||
13 | +all copies or substantial portions of the Software. | ||
14 | + | ||
15 | +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
16 | +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
17 | +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
18 | +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||
19 | +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | ||
20 | +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN | ||
21 | +THE SOFTWARE. |
node_modules/array-flatten/README.md
0 → 100644
1 | +# Array Flatten | ||
2 | + | ||
3 | +[![NPM version][npm-image]][npm-url] | ||
4 | +[![NPM downloads][downloads-image]][downloads-url] | ||
5 | +[![Build status][travis-image]][travis-url] | ||
6 | +[![Test coverage][coveralls-image]][coveralls-url] | ||
7 | + | ||
8 | +> Flatten an array of nested arrays into a single flat array. Accepts an optional depth. | ||
9 | + | ||
10 | +## Installation | ||
11 | + | ||
12 | +``` | ||
13 | +npm install array-flatten --save | ||
14 | +``` | ||
15 | + | ||
16 | +## Usage | ||
17 | + | ||
18 | +```javascript | ||
19 | +var flatten = require('array-flatten') | ||
20 | + | ||
21 | +flatten([1, [2, [3, [4, [5], 6], 7], 8], 9]) | ||
22 | +//=> [1, 2, 3, 4, 5, 6, 7, 8, 9] | ||
23 | + | ||
24 | +flatten([1, [2, [3, [4, [5], 6], 7], 8], 9], 2) | ||
25 | +//=> [1, 2, 3, [4, [5], 6], 7, 8, 9] | ||
26 | + | ||
27 | +(function () { | ||
28 | + flatten(arguments) //=> [1, 2, 3] | ||
29 | +})(1, [2, 3]) | ||
30 | +``` | ||
31 | + | ||
32 | +## License | ||
33 | + | ||
34 | +MIT | ||
35 | + | ||
36 | +[npm-image]: https://img.shields.io/npm/v/array-flatten.svg?style=flat | ||
37 | +[npm-url]: https://npmjs.org/package/array-flatten | ||
38 | +[downloads-image]: https://img.shields.io/npm/dm/array-flatten.svg?style=flat | ||
39 | +[downloads-url]: https://npmjs.org/package/array-flatten | ||
40 | +[travis-image]: https://img.shields.io/travis/blakeembrey/array-flatten.svg?style=flat | ||
41 | +[travis-url]: https://travis-ci.org/blakeembrey/array-flatten | ||
42 | +[coveralls-image]: https://img.shields.io/coveralls/blakeembrey/array-flatten.svg?style=flat | ||
43 | +[coveralls-url]: https://coveralls.io/r/blakeembrey/array-flatten?branch=master |
node_modules/array-flatten/array-flatten.js
0 → 100644
1 | +'use strict' | ||
2 | + | ||
3 | +/** | ||
4 | + * Expose `arrayFlatten`. | ||
5 | + */ | ||
6 | +module.exports = arrayFlatten | ||
7 | + | ||
8 | +/** | ||
9 | + * Recursive flatten function with depth. | ||
10 | + * | ||
11 | + * @param {Array} array | ||
12 | + * @param {Array} result | ||
13 | + * @param {Number} depth | ||
14 | + * @return {Array} | ||
15 | + */ | ||
16 | +function flattenWithDepth (array, result, depth) { | ||
17 | + for (var i = 0; i < array.length; i++) { | ||
18 | + var value = array[i] | ||
19 | + | ||
20 | + if (depth > 0 && Array.isArray(value)) { | ||
21 | + flattenWithDepth(value, result, depth - 1) | ||
22 | + } else { | ||
23 | + result.push(value) | ||
24 | + } | ||
25 | + } | ||
26 | + | ||
27 | + return result | ||
28 | +} | ||
29 | + | ||
30 | +/** | ||
31 | + * Recursive flatten function. Omitting depth is slightly faster. | ||
32 | + * | ||
33 | + * @param {Array} array | ||
34 | + * @param {Array} result | ||
35 | + * @return {Array} | ||
36 | + */ | ||
37 | +function flattenForever (array, result) { | ||
38 | + for (var i = 0; i < array.length; i++) { | ||
39 | + var value = array[i] | ||
40 | + | ||
41 | + if (Array.isArray(value)) { | ||
42 | + flattenForever(value, result) | ||
43 | + } else { | ||
44 | + result.push(value) | ||
45 | + } | ||
46 | + } | ||
47 | + | ||
48 | + return result | ||
49 | +} | ||
50 | + | ||
51 | +/** | ||
52 | + * Flatten an array, with the ability to define a depth. | ||
53 | + * | ||
54 | + * @param {Array} array | ||
55 | + * @param {Number} depth | ||
56 | + * @return {Array} | ||
57 | + */ | ||
58 | +function arrayFlatten (array, depth) { | ||
59 | + if (depth == null) { | ||
60 | + return flattenForever(array, []) | ||
61 | + } | ||
62 | + | ||
63 | + return flattenWithDepth(array, [], depth) | ||
64 | +} |
node_modules/array-flatten/package.json
0 → 100644
1 | +{ | ||
2 | + "name": "array-flatten", | ||
3 | + "version": "1.1.1", | ||
4 | + "description": "Flatten an array of nested arrays into a single flat array", | ||
5 | + "main": "array-flatten.js", | ||
6 | + "files": [ | ||
7 | + "array-flatten.js", | ||
8 | + "LICENSE" | ||
9 | + ], | ||
10 | + "scripts": { | ||
11 | + "test": "istanbul cover _mocha -- -R spec" | ||
12 | + }, | ||
13 | + "repository": { | ||
14 | + "type": "git", | ||
15 | + "url": "git://github.com/blakeembrey/array-flatten.git" | ||
16 | + }, | ||
17 | + "keywords": [ | ||
18 | + "array", | ||
19 | + "flatten", | ||
20 | + "arguments", | ||
21 | + "depth" | ||
22 | + ], | ||
23 | + "author": { | ||
24 | + "name": "Blake Embrey", | ||
25 | + "email": "hello@blakeembrey.com", | ||
26 | + "url": "http://blakeembrey.me" | ||
27 | + }, | ||
28 | + "license": "MIT", | ||
29 | + "bugs": { | ||
30 | + "url": "https://github.com/blakeembrey/array-flatten/issues" | ||
31 | + }, | ||
32 | + "homepage": "https://github.com/blakeembrey/array-flatten", | ||
33 | + "devDependencies": { | ||
34 | + "istanbul": "^0.3.13", | ||
35 | + "mocha": "^2.2.4", | ||
36 | + "pre-commit": "^1.0.7", | ||
37 | + "standard": "^3.7.3" | ||
38 | + } | ||
39 | +} |
node_modules/async/.travis.yml
0 → 100644
node_modules/async/LICENSE
0 → 100644
1 | +Copyright (c) 2010-2014 Caolan McMahon | ||
2 | + | ||
3 | +Permission is hereby granted, free of charge, to any person obtaining a copy | ||
4 | +of this software and associated documentation files (the "Software"), to deal | ||
5 | +in the Software without restriction, including without limitation the rights | ||
6 | +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | ||
7 | +copies of the Software, and to permit persons to whom the Software is | ||
8 | +furnished to do so, subject to the following conditions: | ||
9 | + | ||
10 | +The above copyright notice and this permission notice shall be included in | ||
11 | +all copies or substantial portions of the Software. | ||
12 | + | ||
13 | +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
14 | +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
15 | +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
16 | +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||
17 | +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | ||
18 | +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN | ||
19 | +THE SOFTWARE. |
node_modules/async/README.md
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/async/bower.json
0 → 100644
1 | +{ | ||
2 | + "name": "async", | ||
3 | + "description": "Higher-order functions and common patterns for asynchronous code", | ||
4 | + "version": "0.9.2", | ||
5 | + "main": "lib/async.js", | ||
6 | + "keywords": [ | ||
7 | + "async", | ||
8 | + "callback", | ||
9 | + "utility", | ||
10 | + "module" | ||
11 | + ], | ||
12 | + "license": "MIT", | ||
13 | + "repository": { | ||
14 | + "type": "git", | ||
15 | + "url": "https://github.com/caolan/async.git" | ||
16 | + }, | ||
17 | + "devDependencies": { | ||
18 | + "nodeunit": ">0.0.0", | ||
19 | + "uglify-js": "1.2.x", | ||
20 | + "nodelint": ">0.0.0", | ||
21 | + "lodash": ">=2.4.1" | ||
22 | + }, | ||
23 | + "moduleType": [ | ||
24 | + "amd", | ||
25 | + "globals", | ||
26 | + "node" | ||
27 | + ], | ||
28 | + "ignore": [ | ||
29 | + "**/.*", | ||
30 | + "node_modules", | ||
31 | + "bower_components", | ||
32 | + "test", | ||
33 | + "tests" | ||
34 | + ], | ||
35 | + "authors": [ | ||
36 | + "Caolan McMahon" | ||
37 | + ] | ||
38 | +} | ||
... | \ No newline at end of file | ... | \ No newline at end of file |
node_modules/async/component.json
0 → 100644
1 | +{ | ||
2 | + "name": "async", | ||
3 | + "description": "Higher-order functions and common patterns for asynchronous code", | ||
4 | + "version": "0.9.2", | ||
5 | + "keywords": [ | ||
6 | + "async", | ||
7 | + "callback", | ||
8 | + "utility", | ||
9 | + "module" | ||
10 | + ], | ||
11 | + "license": "MIT", | ||
12 | + "repository": "caolan/async", | ||
13 | + "scripts": [ | ||
14 | + "lib/async.js" | ||
15 | + ] | ||
16 | +} | ||
... | \ No newline at end of file | ... | \ No newline at end of file |
node_modules/async/lib/async.js
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/async/package.json
0 → 100644
1 | +{ | ||
2 | + "name": "async", | ||
3 | + "description": "Higher-order functions and common patterns for asynchronous code", | ||
4 | + "main": "lib/async.js", | ||
5 | + "author": "Caolan McMahon", | ||
6 | + "version": "0.9.2", | ||
7 | + "keywords": [ | ||
8 | + "async", | ||
9 | + "callback", | ||
10 | + "utility", | ||
11 | + "module" | ||
12 | + ], | ||
13 | + "repository": { | ||
14 | + "type": "git", | ||
15 | + "url": "https://github.com/caolan/async.git" | ||
16 | + }, | ||
17 | + "bugs": { | ||
18 | + "url": "https://github.com/caolan/async/issues" | ||
19 | + }, | ||
20 | + "license": "MIT", | ||
21 | + "devDependencies": { | ||
22 | + "nodeunit": ">0.0.0", | ||
23 | + "uglify-js": "1.2.x", | ||
24 | + "nodelint": ">0.0.0", | ||
25 | + "lodash": ">=2.4.1" | ||
26 | + }, | ||
27 | + "jam": { | ||
28 | + "main": "lib/async.js", | ||
29 | + "include": [ | ||
30 | + "lib/async.js", | ||
31 | + "README.md", | ||
32 | + "LICENSE" | ||
33 | + ], | ||
34 | + "categories": [ | ||
35 | + "Utilities" | ||
36 | + ] | ||
37 | + }, | ||
38 | + "scripts": { | ||
39 | + "test": "nodeunit test/test-async.js" | ||
40 | + }, | ||
41 | + "spm": { | ||
42 | + "main": "lib/async.js" | ||
43 | + }, | ||
44 | + "volo": { | ||
45 | + "main": "lib/async.js", | ||
46 | + "ignore": [ | ||
47 | + "**/.*", | ||
48 | + "node_modules", | ||
49 | + "bower_components", | ||
50 | + "test", | ||
51 | + "tests" | ||
52 | + ] | ||
53 | + } | ||
54 | +} | ||
... | \ No newline at end of file | ... | \ No newline at end of file |
1 | +#!/usr/bin/env node | ||
2 | + | ||
3 | +// This should probably be its own module but complaints about bower/etc. | ||
4 | +// support keep coming up and I'd rather just enable the workflow here for now | ||
5 | +// and figure out where this should live later. -- @beaugunderson | ||
6 | + | ||
7 | +var fs = require('fs'); | ||
8 | +var _ = require('lodash'); | ||
9 | + | ||
10 | +var packageJson = require('../package.json'); | ||
11 | + | ||
12 | +var IGNORES = ['**/.*', 'node_modules', 'bower_components', 'test', 'tests']; | ||
13 | +var INCLUDES = ['lib/async.js', 'README.md', 'LICENSE']; | ||
14 | +var REPOSITORY_NAME = 'caolan/async'; | ||
15 | + | ||
16 | +packageJson.jam = { | ||
17 | + main: packageJson.main, | ||
18 | + include: INCLUDES, | ||
19 | + categories: ['Utilities'] | ||
20 | +}; | ||
21 | + | ||
22 | +packageJson.spm = { | ||
23 | + main: packageJson.main | ||
24 | +}; | ||
25 | + | ||
26 | +packageJson.volo = { | ||
27 | + main: packageJson.main, | ||
28 | + ignore: IGNORES | ||
29 | +}; | ||
30 | + | ||
31 | +var bowerSpecific = { | ||
32 | + moduleType: ['amd', 'globals', 'node'], | ||
33 | + ignore: IGNORES, | ||
34 | + authors: [packageJson.author] | ||
35 | +}; | ||
36 | + | ||
37 | +var bowerInclude = ['name', 'description', 'version', 'main', 'keywords', | ||
38 | + 'license', 'homepage', 'repository', 'devDependencies']; | ||
39 | + | ||
40 | +var componentSpecific = { | ||
41 | + repository: REPOSITORY_NAME, | ||
42 | + scripts: [packageJson.main] | ||
43 | +}; | ||
44 | + | ||
45 | +var componentInclude = ['name', 'description', 'version', 'keywords', | ||
46 | + 'license']; | ||
47 | + | ||
48 | +var bowerJson = _.merge({}, _.pick(packageJson, bowerInclude), bowerSpecific); | ||
49 | +var componentJson = _.merge({}, _.pick(packageJson, componentInclude), componentSpecific); | ||
50 | + | ||
51 | +fs.writeFileSync('./bower.json', JSON.stringify(bowerJson, null, 2)); | ||
52 | +fs.writeFileSync('./component.json', JSON.stringify(componentJson, null, 2)); | ||
53 | +fs.writeFileSync('./package.json', JSON.stringify(packageJson, null, 2)); |
node_modules/balanced-match/LICENSE.md
0 → 100644
1 | +(MIT) | ||
2 | + | ||
3 | +Copyright (c) 2013 Julian Gruber <julian@juliangruber.com> | ||
4 | + | ||
5 | +Permission is hereby granted, free of charge, to any person obtaining a copy of | ||
6 | +this software and associated documentation files (the "Software"), to deal in | ||
7 | +the Software without restriction, including without limitation the rights to | ||
8 | +use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies | ||
9 | +of the Software, and to permit persons to whom the Software is furnished to do | ||
10 | +so, subject to the following conditions: | ||
11 | + | ||
12 | +The above copyright notice and this permission notice shall be included in all | ||
13 | +copies or substantial portions of the Software. | ||
14 | + | ||
15 | +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
16 | +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
17 | +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
18 | +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||
19 | +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | ||
20 | +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE | ||
21 | +SOFTWARE. |
node_modules/balanced-match/README.md
0 → 100644
1 | +# balanced-match | ||
2 | + | ||
3 | +Match balanced string pairs, like `{` and `}` or `<b>` and `</b>`. Supports regular expressions as well! | ||
4 | + | ||
5 | +[![build status](https://secure.travis-ci.org/juliangruber/balanced-match.svg)](http://travis-ci.org/juliangruber/balanced-match) | ||
6 | +[![downloads](https://img.shields.io/npm/dm/balanced-match.svg)](https://www.npmjs.org/package/balanced-match) | ||
7 | + | ||
8 | +[![testling badge](https://ci.testling.com/juliangruber/balanced-match.png)](https://ci.testling.com/juliangruber/balanced-match) | ||
9 | + | ||
10 | +## Example | ||
11 | + | ||
12 | +Get the first matching pair of braces: | ||
13 | + | ||
14 | +```js | ||
15 | +var balanced = require('balanced-match'); | ||
16 | + | ||
17 | +console.log(balanced('{', '}', 'pre{in{nested}}post')); | ||
18 | +console.log(balanced('{', '}', 'pre{first}between{second}post')); | ||
19 | +console.log(balanced(/\s+\{\s+/, /\s+\}\s+/, 'pre { in{nest} } post')); | ||
20 | +``` | ||
21 | + | ||
22 | +The matches are: | ||
23 | + | ||
24 | +```bash | ||
25 | +$ node example.js | ||
26 | +{ start: 3, end: 14, pre: 'pre', body: 'in{nested}', post: 'post' } | ||
27 | +{ start: 3, | ||
28 | + end: 9, | ||
29 | + pre: 'pre', | ||
30 | + body: 'first', | ||
31 | + post: 'between{second}post' } | ||
32 | +{ start: 3, end: 17, pre: 'pre', body: 'in{nest}', post: 'post' } | ||
33 | +``` | ||
34 | + | ||
35 | +## API | ||
36 | + | ||
37 | +### var m = balanced(a, b, str) | ||
38 | + | ||
39 | +For the first non-nested matching pair of `a` and `b` in `str`, return an | ||
40 | +object with those keys: | ||
41 | + | ||
42 | +* **start** the index of the first match of `a` | ||
43 | +* **end** the index of the matching `b` | ||
44 | +* **pre** the preamble, `a` and `b` not included | ||
45 | +* **body** the match, `a` and `b` not included | ||
46 | +* **post** the postscript, `a` and `b` not included | ||
47 | + | ||
48 | +If there's no match, `undefined` will be returned. | ||
49 | + | ||
50 | +If the `str` contains more `a` than `b` / there are unmatched pairs, the first match that was closed will be used. For example, `{{a}` will match `['{', 'a', '']` and `{a}}` will match `['', 'a', '}']`. | ||
51 | + | ||
52 | +### var r = balanced.range(a, b, str) | ||
53 | + | ||
54 | +For the first non-nested matching pair of `a` and `b` in `str`, return an | ||
55 | +array with indexes: `[ <a index>, <b index> ]`. | ||
56 | + | ||
57 | +If there's no match, `undefined` will be returned. | ||
58 | + | ||
59 | +If the `str` contains more `a` than `b` / there are unmatched pairs, the first match that was closed will be used. For example, `{{a}` will match `[ 1, 3 ]` and `{a}}` will match `[0, 2]`. | ||
60 | + | ||
61 | +## Installation | ||
62 | + | ||
63 | +With [npm](https://npmjs.org) do: | ||
64 | + | ||
65 | +```bash | ||
66 | +npm install balanced-match | ||
67 | +``` | ||
68 | + | ||
69 | +## Security contact information | ||
70 | + | ||
71 | +To report a security vulnerability, please use the | ||
72 | +[Tidelift security contact](https://tidelift.com/security). | ||
73 | +Tidelift will coordinate the fix and disclosure. | ||
74 | + | ||
75 | +## License | ||
76 | + | ||
77 | +(MIT) | ||
78 | + | ||
79 | +Copyright (c) 2013 Julian Gruber <julian@juliangruber.com> | ||
80 | + | ||
81 | +Permission is hereby granted, free of charge, to any person obtaining a copy of | ||
82 | +this software and associated documentation files (the "Software"), to deal in | ||
83 | +the Software without restriction, including without limitation the rights to | ||
84 | +use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies | ||
85 | +of the Software, and to permit persons to whom the Software is furnished to do | ||
86 | +so, subject to the following conditions: | ||
87 | + | ||
88 | +The above copyright notice and this permission notice shall be included in all | ||
89 | +copies or substantial portions of the Software. | ||
90 | + | ||
91 | +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
92 | +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
93 | +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
94 | +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||
95 | +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | ||
96 | +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE | ||
97 | +SOFTWARE. |
node_modules/balanced-match/index.js
0 → 100644
1 | +'use strict'; | ||
2 | +module.exports = balanced; | ||
3 | +function balanced(a, b, str) { | ||
4 | + if (a instanceof RegExp) a = maybeMatch(a, str); | ||
5 | + if (b instanceof RegExp) b = maybeMatch(b, str); | ||
6 | + | ||
7 | + var r = range(a, b, str); | ||
8 | + | ||
9 | + return r && { | ||
10 | + start: r[0], | ||
11 | + end: r[1], | ||
12 | + pre: str.slice(0, r[0]), | ||
13 | + body: str.slice(r[0] + a.length, r[1]), | ||
14 | + post: str.slice(r[1] + b.length) | ||
15 | + }; | ||
16 | +} | ||
17 | + | ||
18 | +function maybeMatch(reg, str) { | ||
19 | + var m = str.match(reg); | ||
20 | + return m ? m[0] : null; | ||
21 | +} | ||
22 | + | ||
23 | +balanced.range = range; | ||
24 | +function range(a, b, str) { | ||
25 | + var begs, beg, left, right, result; | ||
26 | + var ai = str.indexOf(a); | ||
27 | + var bi = str.indexOf(b, ai + 1); | ||
28 | + var i = ai; | ||
29 | + | ||
30 | + if (ai >= 0 && bi > 0) { | ||
31 | + if(a===b) { | ||
32 | + return [ai, bi]; | ||
33 | + } | ||
34 | + begs = []; | ||
35 | + left = str.length; | ||
36 | + | ||
37 | + while (i >= 0 && !result) { | ||
38 | + if (i == ai) { | ||
39 | + begs.push(i); | ||
40 | + ai = str.indexOf(a, i + 1); | ||
41 | + } else if (begs.length == 1) { | ||
42 | + result = [ begs.pop(), bi ]; | ||
43 | + } else { | ||
44 | + beg = begs.pop(); | ||
45 | + if (beg < left) { | ||
46 | + left = beg; | ||
47 | + right = bi; | ||
48 | + } | ||
49 | + | ||
50 | + bi = str.indexOf(b, i + 1); | ||
51 | + } | ||
52 | + | ||
53 | + i = ai < bi && ai >= 0 ? ai : bi; | ||
54 | + } | ||
55 | + | ||
56 | + if (begs.length) { | ||
57 | + result = [ left, right ]; | ||
58 | + } | ||
59 | + } | ||
60 | + | ||
61 | + return result; | ||
62 | +} |
node_modules/balanced-match/package.json
0 → 100644
1 | +{ | ||
2 | + "name": "balanced-match", | ||
3 | + "description": "Match balanced character pairs, like \"{\" and \"}\"", | ||
4 | + "version": "1.0.2", | ||
5 | + "repository": { | ||
6 | + "type": "git", | ||
7 | + "url": "git://github.com/juliangruber/balanced-match.git" | ||
8 | + }, | ||
9 | + "homepage": "https://github.com/juliangruber/balanced-match", | ||
10 | + "main": "index.js", | ||
11 | + "scripts": { | ||
12 | + "test": "tape test/test.js", | ||
13 | + "bench": "matcha test/bench.js" | ||
14 | + }, | ||
15 | + "devDependencies": { | ||
16 | + "matcha": "^0.7.0", | ||
17 | + "tape": "^4.6.0" | ||
18 | + }, | ||
19 | + "keywords": [ | ||
20 | + "match", | ||
21 | + "regexp", | ||
22 | + "test", | ||
23 | + "balanced", | ||
24 | + "parse" | ||
25 | + ], | ||
26 | + "author": { | ||
27 | + "name": "Julian Gruber", | ||
28 | + "email": "mail@juliangruber.com", | ||
29 | + "url": "http://juliangruber.com" | ||
30 | + }, | ||
31 | + "license": "MIT", | ||
32 | + "testling": { | ||
33 | + "files": "test/*.js", | ||
34 | + "browsers": [ | ||
35 | + "ie/8..latest", | ||
36 | + "firefox/20..latest", | ||
37 | + "firefox/nightly", | ||
38 | + "chrome/25..latest", | ||
39 | + "chrome/canary", | ||
40 | + "opera/12..latest", | ||
41 | + "opera/next", | ||
42 | + "safari/5.1..latest", | ||
43 | + "ipad/6.0..latest", | ||
44 | + "iphone/6.0..latest", | ||
45 | + "android-browser/4.2..latest" | ||
46 | + ] | ||
47 | + } | ||
48 | +} |
1 | +[ | ||
2 | + "3dm", | ||
3 | + "3ds", | ||
4 | + "3g2", | ||
5 | + "3gp", | ||
6 | + "7z", | ||
7 | + "a", | ||
8 | + "aac", | ||
9 | + "adp", | ||
10 | + "ai", | ||
11 | + "aif", | ||
12 | + "aiff", | ||
13 | + "alz", | ||
14 | + "ape", | ||
15 | + "apk", | ||
16 | + "appimage", | ||
17 | + "ar", | ||
18 | + "arj", | ||
19 | + "asf", | ||
20 | + "au", | ||
21 | + "avi", | ||
22 | + "bak", | ||
23 | + "baml", | ||
24 | + "bh", | ||
25 | + "bin", | ||
26 | + "bk", | ||
27 | + "bmp", | ||
28 | + "btif", | ||
29 | + "bz2", | ||
30 | + "bzip2", | ||
31 | + "cab", | ||
32 | + "caf", | ||
33 | + "cgm", | ||
34 | + "class", | ||
35 | + "cmx", | ||
36 | + "cpio", | ||
37 | + "cr2", | ||
38 | + "cur", | ||
39 | + "dat", | ||
40 | + "dcm", | ||
41 | + "deb", | ||
42 | + "dex", | ||
43 | + "djvu", | ||
44 | + "dll", | ||
45 | + "dmg", | ||
46 | + "dng", | ||
47 | + "doc", | ||
48 | + "docm", | ||
49 | + "docx", | ||
50 | + "dot", | ||
51 | + "dotm", | ||
52 | + "dra", | ||
53 | + "DS_Store", | ||
54 | + "dsk", | ||
55 | + "dts", | ||
56 | + "dtshd", | ||
57 | + "dvb", | ||
58 | + "dwg", | ||
59 | + "dxf", | ||
60 | + "ecelp4800", | ||
61 | + "ecelp7470", | ||
62 | + "ecelp9600", | ||
63 | + "egg", | ||
64 | + "eol", | ||
65 | + "eot", | ||
66 | + "epub", | ||
67 | + "exe", | ||
68 | + "f4v", | ||
69 | + "fbs", | ||
70 | + "fh", | ||
71 | + "fla", | ||
72 | + "flac", | ||
73 | + "flatpak", | ||
74 | + "fli", | ||
75 | + "flv", | ||
76 | + "fpx", | ||
77 | + "fst", | ||
78 | + "fvt", | ||
79 | + "g3", | ||
80 | + "gh", | ||
81 | + "gif", | ||
82 | + "graffle", | ||
83 | + "gz", | ||
84 | + "gzip", | ||
85 | + "h261", | ||
86 | + "h263", | ||
87 | + "h264", | ||
88 | + "icns", | ||
89 | + "ico", | ||
90 | + "ief", | ||
91 | + "img", | ||
92 | + "ipa", | ||
93 | + "iso", | ||
94 | + "jar", | ||
95 | + "jpeg", | ||
96 | + "jpg", | ||
97 | + "jpgv", | ||
98 | + "jpm", | ||
99 | + "jxr", | ||
100 | + "key", | ||
101 | + "ktx", | ||
102 | + "lha", | ||
103 | + "lib", | ||
104 | + "lvp", | ||
105 | + "lz", | ||
106 | + "lzh", | ||
107 | + "lzma", | ||
108 | + "lzo", | ||
109 | + "m3u", | ||
110 | + "m4a", | ||
111 | + "m4v", | ||
112 | + "mar", | ||
113 | + "mdi", | ||
114 | + "mht", | ||
115 | + "mid", | ||
116 | + "midi", | ||
117 | + "mj2", | ||
118 | + "mka", | ||
119 | + "mkv", | ||
120 | + "mmr", | ||
121 | + "mng", | ||
122 | + "mobi", | ||
123 | + "mov", | ||
124 | + "movie", | ||
125 | + "mp3", | ||
126 | + "mp4", | ||
127 | + "mp4a", | ||
128 | + "mpeg", | ||
129 | + "mpg", | ||
130 | + "mpga", | ||
131 | + "mxu", | ||
132 | + "nef", | ||
133 | + "npx", | ||
134 | + "numbers", | ||
135 | + "nupkg", | ||
136 | + "o", | ||
137 | + "odp", | ||
138 | + "ods", | ||
139 | + "odt", | ||
140 | + "oga", | ||
141 | + "ogg", | ||
142 | + "ogv", | ||
143 | + "otf", | ||
144 | + "ott", | ||
145 | + "pages", | ||
146 | + "pbm", | ||
147 | + "pcx", | ||
148 | + "pdb", | ||
149 | + "pdf", | ||
150 | + "pea", | ||
151 | + "pgm", | ||
152 | + "pic", | ||
153 | + "png", | ||
154 | + "pnm", | ||
155 | + "pot", | ||
156 | + "potm", | ||
157 | + "potx", | ||
158 | + "ppa", | ||
159 | + "ppam", | ||
160 | + "ppm", | ||
161 | + "pps", | ||
162 | + "ppsm", | ||
163 | + "ppsx", | ||
164 | + "ppt", | ||
165 | + "pptm", | ||
166 | + "pptx", | ||
167 | + "psd", | ||
168 | + "pya", | ||
169 | + "pyc", | ||
170 | + "pyo", | ||
171 | + "pyv", | ||
172 | + "qt", | ||
173 | + "rar", | ||
174 | + "ras", | ||
175 | + "raw", | ||
176 | + "resources", | ||
177 | + "rgb", | ||
178 | + "rip", | ||
179 | + "rlc", | ||
180 | + "rmf", | ||
181 | + "rmvb", | ||
182 | + "rpm", | ||
183 | + "rtf", | ||
184 | + "rz", | ||
185 | + "s3m", | ||
186 | + "s7z", | ||
187 | + "scpt", | ||
188 | + "sgi", | ||
189 | + "shar", | ||
190 | + "snap", | ||
191 | + "sil", | ||
192 | + "sketch", | ||
193 | + "slk", | ||
194 | + "smv", | ||
195 | + "snk", | ||
196 | + "so", | ||
197 | + "stl", | ||
198 | + "suo", | ||
199 | + "sub", | ||
200 | + "swf", | ||
201 | + "tar", | ||
202 | + "tbz", | ||
203 | + "tbz2", | ||
204 | + "tga", | ||
205 | + "tgz", | ||
206 | + "thmx", | ||
207 | + "tif", | ||
208 | + "tiff", | ||
209 | + "tlz", | ||
210 | + "ttc", | ||
211 | + "ttf", | ||
212 | + "txz", | ||
213 | + "udf", | ||
214 | + "uvh", | ||
215 | + "uvi", | ||
216 | + "uvm", | ||
217 | + "uvp", | ||
218 | + "uvs", | ||
219 | + "uvu", | ||
220 | + "viv", | ||
221 | + "vob", | ||
222 | + "war", | ||
223 | + "wav", | ||
224 | + "wax", | ||
225 | + "wbmp", | ||
226 | + "wdp", | ||
227 | + "weba", | ||
228 | + "webm", | ||
229 | + "webp", | ||
230 | + "whl", | ||
231 | + "wim", | ||
232 | + "wm", | ||
233 | + "wma", | ||
234 | + "wmv", | ||
235 | + "wmx", | ||
236 | + "woff", | ||
237 | + "woff2", | ||
238 | + "wrm", | ||
239 | + "wvx", | ||
240 | + "xbm", | ||
241 | + "xif", | ||
242 | + "xla", | ||
243 | + "xlam", | ||
244 | + "xls", | ||
245 | + "xlsb", | ||
246 | + "xlsm", | ||
247 | + "xlsx", | ||
248 | + "xlt", | ||
249 | + "xltm", | ||
250 | + "xltx", | ||
251 | + "xm", | ||
252 | + "xmind", | ||
253 | + "xpi", | ||
254 | + "xpm", | ||
255 | + "xwd", | ||
256 | + "xz", | ||
257 | + "z", | ||
258 | + "zip", | ||
259 | + "zipx" | ||
260 | +] |
node_modules/binary-extensions/index.d.ts
0 → 100644
node_modules/binary-extensions/index.js
0 → 100644
1 | +module.exports = require('./binary-extensions.json'); |
node_modules/binary-extensions/license
0 → 100644
1 | +MIT License | ||
2 | + | ||
3 | +Copyright (c) 2019 Sindre Sorhus <sindresorhus@gmail.com> (https://sindresorhus.com), Paul Miller (https://paulmillr.com) | ||
4 | + | ||
5 | +Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: | ||
6 | + | ||
7 | +The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. | ||
8 | + | ||
9 | +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. |
node_modules/binary-extensions/package.json
0 → 100644
1 | +{ | ||
2 | + "name": "binary-extensions", | ||
3 | + "version": "2.2.0", | ||
4 | + "description": "List of binary file extensions", | ||
5 | + "license": "MIT", | ||
6 | + "repository": "sindresorhus/binary-extensions", | ||
7 | + "author": { | ||
8 | + "name": "Sindre Sorhus", | ||
9 | + "email": "sindresorhus@gmail.com", | ||
10 | + "url": "sindresorhus.com" | ||
11 | + }, | ||
12 | + "engines": { | ||
13 | + "node": ">=8" | ||
14 | + }, | ||
15 | + "scripts": { | ||
16 | + "test": "xo && ava && tsd" | ||
17 | + }, | ||
18 | + "files": [ | ||
19 | + "index.js", | ||
20 | + "index.d.ts", | ||
21 | + "binary-extensions.json", | ||
22 | + "binary-extensions.json.d.ts" | ||
23 | + ], | ||
24 | + "keywords": [ | ||
25 | + "binary", | ||
26 | + "extensions", | ||
27 | + "extension", | ||
28 | + "file", | ||
29 | + "json", | ||
30 | + "list", | ||
31 | + "array" | ||
32 | + ], | ||
33 | + "devDependencies": { | ||
34 | + "ava": "^1.4.1", | ||
35 | + "tsd": "^0.7.2", | ||
36 | + "xo": "^0.24.0" | ||
37 | + } | ||
38 | +} |
node_modules/binary-extensions/readme.md
0 → 100644
1 | +# binary-extensions | ||
2 | + | ||
3 | +> List of binary file extensions | ||
4 | + | ||
5 | +The list is just a [JSON file](binary-extensions.json) and can be used anywhere. | ||
6 | + | ||
7 | + | ||
8 | +## Install | ||
9 | + | ||
10 | +``` | ||
11 | +$ npm install binary-extensions | ||
12 | +``` | ||
13 | + | ||
14 | + | ||
15 | +## Usage | ||
16 | + | ||
17 | +```js | ||
18 | +const binaryExtensions = require('binary-extensions'); | ||
19 | + | ||
20 | +console.log(binaryExtensions); | ||
21 | +//=> ['3ds', '3g2', …] | ||
22 | +``` | ||
23 | + | ||
24 | + | ||
25 | +## Related | ||
26 | + | ||
27 | +- [is-binary-path](https://github.com/sindresorhus/is-binary-path) - Check if a filepath is a binary file | ||
28 | +- [text-extensions](https://github.com/sindresorhus/text-extensions) - List of text file extensions | ||
29 | + | ||
30 | + | ||
31 | +--- | ||
32 | + | ||
33 | +<div align="center"> | ||
34 | + <b> | ||
35 | + <a href="https://tidelift.com/subscription/pkg/npm-binary-extensions?utm_source=npm-binary-extensions&utm_medium=referral&utm_campaign=readme">Get professional support for this package with a Tidelift subscription</a> | ||
36 | + </b> | ||
37 | + <br> | ||
38 | + <sub> | ||
39 | + Tidelift helps make open source sustainable for maintainers while giving companies<br>assurances about security, maintenance, and licensing for their dependencies. | ||
40 | + </sub> | ||
41 | +</div> |
node_modules/body-parser/HISTORY.md
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/body-parser/LICENSE
0 → 100644
1 | +(The MIT License) | ||
2 | + | ||
3 | +Copyright (c) 2014 Jonathan Ong <me@jongleberry.com> | ||
4 | +Copyright (c) 2014-2015 Douglas Christopher Wilson <doug@somethingdoug.com> | ||
5 | + | ||
6 | +Permission is hereby granted, free of charge, to any person obtaining | ||
7 | +a copy of this software and associated documentation files (the | ||
8 | +'Software'), to deal in the Software without restriction, including | ||
9 | +without limitation the rights to use, copy, modify, merge, publish, | ||
10 | +distribute, sublicense, and/or sell copies of the Software, and to | ||
11 | +permit persons to whom the Software is furnished to do so, subject to | ||
12 | +the following conditions: | ||
13 | + | ||
14 | +The above copyright notice and this permission notice shall be | ||
15 | +included in all copies or substantial portions of the Software. | ||
16 | + | ||
17 | +THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, | ||
18 | +EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF | ||
19 | +MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. | ||
20 | +IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY | ||
21 | +CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, | ||
22 | +TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE | ||
23 | +SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. |
node_modules/body-parser/README.md
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/body-parser/index.js
0 → 100644
1 | +/*! | ||
2 | + * body-parser | ||
3 | + * Copyright(c) 2014-2015 Douglas Christopher Wilson | ||
4 | + * MIT Licensed | ||
5 | + */ | ||
6 | + | ||
7 | +'use strict' | ||
8 | + | ||
9 | +/** | ||
10 | + * Module dependencies. | ||
11 | + * @private | ||
12 | + */ | ||
13 | + | ||
14 | +var deprecate = require('depd')('body-parser') | ||
15 | + | ||
16 | +/** | ||
17 | + * Cache of loaded parsers. | ||
18 | + * @private | ||
19 | + */ | ||
20 | + | ||
21 | +var parsers = Object.create(null) | ||
22 | + | ||
23 | +/** | ||
24 | + * @typedef Parsers | ||
25 | + * @type {function} | ||
26 | + * @property {function} json | ||
27 | + * @property {function} raw | ||
28 | + * @property {function} text | ||
29 | + * @property {function} urlencoded | ||
30 | + */ | ||
31 | + | ||
32 | +/** | ||
33 | + * Module exports. | ||
34 | + * @type {Parsers} | ||
35 | + */ | ||
36 | + | ||
37 | +exports = module.exports = deprecate.function(bodyParser, | ||
38 | + 'bodyParser: use individual json/urlencoded middlewares') | ||
39 | + | ||
40 | +/** | ||
41 | + * JSON parser. | ||
42 | + * @public | ||
43 | + */ | ||
44 | + | ||
45 | +Object.defineProperty(exports, 'json', { | ||
46 | + configurable: true, | ||
47 | + enumerable: true, | ||
48 | + get: createParserGetter('json') | ||
49 | +}) | ||
50 | + | ||
51 | +/** | ||
52 | + * Raw parser. | ||
53 | + * @public | ||
54 | + */ | ||
55 | + | ||
56 | +Object.defineProperty(exports, 'raw', { | ||
57 | + configurable: true, | ||
58 | + enumerable: true, | ||
59 | + get: createParserGetter('raw') | ||
60 | +}) | ||
61 | + | ||
62 | +/** | ||
63 | + * Text parser. | ||
64 | + * @public | ||
65 | + */ | ||
66 | + | ||
67 | +Object.defineProperty(exports, 'text', { | ||
68 | + configurable: true, | ||
69 | + enumerable: true, | ||
70 | + get: createParserGetter('text') | ||
71 | +}) | ||
72 | + | ||
73 | +/** | ||
74 | + * URL-encoded parser. | ||
75 | + * @public | ||
76 | + */ | ||
77 | + | ||
78 | +Object.defineProperty(exports, 'urlencoded', { | ||
79 | + configurable: true, | ||
80 | + enumerable: true, | ||
81 | + get: createParserGetter('urlencoded') | ||
82 | +}) | ||
83 | + | ||
84 | +/** | ||
85 | + * Create a middleware to parse json and urlencoded bodies. | ||
86 | + * | ||
87 | + * @param {object} [options] | ||
88 | + * @return {function} | ||
89 | + * @deprecated | ||
90 | + * @public | ||
91 | + */ | ||
92 | + | ||
93 | +function bodyParser (options) { | ||
94 | + var opts = {} | ||
95 | + | ||
96 | + // exclude type option | ||
97 | + if (options) { | ||
98 | + for (var prop in options) { | ||
99 | + if (prop !== 'type') { | ||
100 | + opts[prop] = options[prop] | ||
101 | + } | ||
102 | + } | ||
103 | + } | ||
104 | + | ||
105 | + var _urlencoded = exports.urlencoded(opts) | ||
106 | + var _json = exports.json(opts) | ||
107 | + | ||
108 | + return function bodyParser (req, res, next) { | ||
109 | + _json(req, res, function (err) { | ||
110 | + if (err) return next(err) | ||
111 | + _urlencoded(req, res, next) | ||
112 | + }) | ||
113 | + } | ||
114 | +} | ||
115 | + | ||
116 | +/** | ||
117 | + * Create a getter for loading a parser. | ||
118 | + * @private | ||
119 | + */ | ||
120 | + | ||
121 | +function createParserGetter (name) { | ||
122 | + return function get () { | ||
123 | + return loadParser(name) | ||
124 | + } | ||
125 | +} | ||
126 | + | ||
127 | +/** | ||
128 | + * Load a parser module. | ||
129 | + * @private | ||
130 | + */ | ||
131 | + | ||
132 | +function loadParser (parserName) { | ||
133 | + var parser = parsers[parserName] | ||
134 | + | ||
135 | + if (parser !== undefined) { | ||
136 | + return parser | ||
137 | + } | ||
138 | + | ||
139 | + // this uses a switch for static require analysis | ||
140 | + switch (parserName) { | ||
141 | + case 'json': | ||
142 | + parser = require('./lib/types/json') | ||
143 | + break | ||
144 | + case 'raw': | ||
145 | + parser = require('./lib/types/raw') | ||
146 | + break | ||
147 | + case 'text': | ||
148 | + parser = require('./lib/types/text') | ||
149 | + break | ||
150 | + case 'urlencoded': | ||
151 | + parser = require('./lib/types/urlencoded') | ||
152 | + break | ||
153 | + } | ||
154 | + | ||
155 | + // store to prevent invoking require() | ||
156 | + return (parsers[parserName] = parser) | ||
157 | +} |
node_modules/body-parser/lib/read.js
0 → 100644
1 | +/*! | ||
2 | + * body-parser | ||
3 | + * Copyright(c) 2014-2015 Douglas Christopher Wilson | ||
4 | + * MIT Licensed | ||
5 | + */ | ||
6 | + | ||
7 | +'use strict' | ||
8 | + | ||
9 | +/** | ||
10 | + * Module dependencies. | ||
11 | + * @private | ||
12 | + */ | ||
13 | + | ||
14 | +var createError = require('http-errors') | ||
15 | +var getBody = require('raw-body') | ||
16 | +var iconv = require('iconv-lite') | ||
17 | +var onFinished = require('on-finished') | ||
18 | +var zlib = require('zlib') | ||
19 | + | ||
20 | +/** | ||
21 | + * Module exports. | ||
22 | + */ | ||
23 | + | ||
24 | +module.exports = read | ||
25 | + | ||
26 | +/** | ||
27 | + * Read a request into a buffer and parse. | ||
28 | + * | ||
29 | + * @param {object} req | ||
30 | + * @param {object} res | ||
31 | + * @param {function} next | ||
32 | + * @param {function} parse | ||
33 | + * @param {function} debug | ||
34 | + * @param {object} options | ||
35 | + * @private | ||
36 | + */ | ||
37 | + | ||
38 | +function read (req, res, next, parse, debug, options) { | ||
39 | + var length | ||
40 | + var opts = options | ||
41 | + var stream | ||
42 | + | ||
43 | + // flag as parsed | ||
44 | + req._body = true | ||
45 | + | ||
46 | + // read options | ||
47 | + var encoding = opts.encoding !== null | ||
48 | + ? opts.encoding | ||
49 | + : null | ||
50 | + var verify = opts.verify | ||
51 | + | ||
52 | + try { | ||
53 | + // get the content stream | ||
54 | + stream = contentstream(req, debug, opts.inflate) | ||
55 | + length = stream.length | ||
56 | + stream.length = undefined | ||
57 | + } catch (err) { | ||
58 | + return next(err) | ||
59 | + } | ||
60 | + | ||
61 | + // set raw-body options | ||
62 | + opts.length = length | ||
63 | + opts.encoding = verify | ||
64 | + ? null | ||
65 | + : encoding | ||
66 | + | ||
67 | + // assert charset is supported | ||
68 | + if (opts.encoding === null && encoding !== null && !iconv.encodingExists(encoding)) { | ||
69 | + return next(createError(415, 'unsupported charset "' + encoding.toUpperCase() + '"', { | ||
70 | + charset: encoding.toLowerCase(), | ||
71 | + type: 'charset.unsupported' | ||
72 | + })) | ||
73 | + } | ||
74 | + | ||
75 | + // read body | ||
76 | + debug('read body') | ||
77 | + getBody(stream, opts, function (error, body) { | ||
78 | + if (error) { | ||
79 | + var _error | ||
80 | + | ||
81 | + if (error.type === 'encoding.unsupported') { | ||
82 | + // echo back charset | ||
83 | + _error = createError(415, 'unsupported charset "' + encoding.toUpperCase() + '"', { | ||
84 | + charset: encoding.toLowerCase(), | ||
85 | + type: 'charset.unsupported' | ||
86 | + }) | ||
87 | + } else { | ||
88 | + // set status code on error | ||
89 | + _error = createError(400, error) | ||
90 | + } | ||
91 | + | ||
92 | + // read off entire request | ||
93 | + stream.resume() | ||
94 | + onFinished(req, function onfinished () { | ||
95 | + next(createError(400, _error)) | ||
96 | + }) | ||
97 | + return | ||
98 | + } | ||
99 | + | ||
100 | + // verify | ||
101 | + if (verify) { | ||
102 | + try { | ||
103 | + debug('verify body') | ||
104 | + verify(req, res, body, encoding) | ||
105 | + } catch (err) { | ||
106 | + next(createError(403, err, { | ||
107 | + body: body, | ||
108 | + type: err.type || 'entity.verify.failed' | ||
109 | + })) | ||
110 | + return | ||
111 | + } | ||
112 | + } | ||
113 | + | ||
114 | + // parse | ||
115 | + var str = body | ||
116 | + try { | ||
117 | + debug('parse body') | ||
118 | + str = typeof body !== 'string' && encoding !== null | ||
119 | + ? iconv.decode(body, encoding) | ||
120 | + : body | ||
121 | + req.body = parse(str) | ||
122 | + } catch (err) { | ||
123 | + next(createError(400, err, { | ||
124 | + body: str, | ||
125 | + type: err.type || 'entity.parse.failed' | ||
126 | + })) | ||
127 | + return | ||
128 | + } | ||
129 | + | ||
130 | + next() | ||
131 | + }) | ||
132 | +} | ||
133 | + | ||
134 | +/** | ||
135 | + * Get the content stream of the request. | ||
136 | + * | ||
137 | + * @param {object} req | ||
138 | + * @param {function} debug | ||
139 | + * @param {boolean} [inflate=true] | ||
140 | + * @return {object} | ||
141 | + * @api private | ||
142 | + */ | ||
143 | + | ||
144 | +function contentstream (req, debug, inflate) { | ||
145 | + var encoding = (req.headers['content-encoding'] || 'identity').toLowerCase() | ||
146 | + var length = req.headers['content-length'] | ||
147 | + var stream | ||
148 | + | ||
149 | + debug('content-encoding "%s"', encoding) | ||
150 | + | ||
151 | + if (inflate === false && encoding !== 'identity') { | ||
152 | + throw createError(415, 'content encoding unsupported', { | ||
153 | + encoding: encoding, | ||
154 | + type: 'encoding.unsupported' | ||
155 | + }) | ||
156 | + } | ||
157 | + | ||
158 | + switch (encoding) { | ||
159 | + case 'deflate': | ||
160 | + stream = zlib.createInflate() | ||
161 | + debug('inflate body') | ||
162 | + req.pipe(stream) | ||
163 | + break | ||
164 | + case 'gzip': | ||
165 | + stream = zlib.createGunzip() | ||
166 | + debug('gunzip body') | ||
167 | + req.pipe(stream) | ||
168 | + break | ||
169 | + case 'identity': | ||
170 | + stream = req | ||
171 | + stream.length = length | ||
172 | + break | ||
173 | + default: | ||
174 | + throw createError(415, 'unsupported content encoding "' + encoding + '"', { | ||
175 | + encoding: encoding, | ||
176 | + type: 'encoding.unsupported' | ||
177 | + }) | ||
178 | + } | ||
179 | + | ||
180 | + return stream | ||
181 | +} |
node_modules/body-parser/lib/types/json.js
0 → 100644
1 | +/*! | ||
2 | + * body-parser | ||
3 | + * Copyright(c) 2014 Jonathan Ong | ||
4 | + * Copyright(c) 2014-2015 Douglas Christopher Wilson | ||
5 | + * MIT Licensed | ||
6 | + */ | ||
7 | + | ||
8 | +'use strict' | ||
9 | + | ||
10 | +/** | ||
11 | + * Module dependencies. | ||
12 | + * @private | ||
13 | + */ | ||
14 | + | ||
15 | +var bytes = require('bytes') | ||
16 | +var contentType = require('content-type') | ||
17 | +var createError = require('http-errors') | ||
18 | +var debug = require('debug')('body-parser:json') | ||
19 | +var read = require('../read') | ||
20 | +var typeis = require('type-is') | ||
21 | + | ||
22 | +/** | ||
23 | + * Module exports. | ||
24 | + */ | ||
25 | + | ||
26 | +module.exports = json | ||
27 | + | ||
28 | +/** | ||
29 | + * RegExp to match the first non-space in a string. | ||
30 | + * | ||
31 | + * Allowed whitespace is defined in RFC 7159: | ||
32 | + * | ||
33 | + * ws = *( | ||
34 | + * %x20 / ; Space | ||
35 | + * %x09 / ; Horizontal tab | ||
36 | + * %x0A / ; Line feed or New line | ||
37 | + * %x0D ) ; Carriage return | ||
38 | + */ | ||
39 | + | ||
40 | +var FIRST_CHAR_REGEXP = /^[\x20\x09\x0a\x0d]*(.)/ // eslint-disable-line no-control-regex | ||
41 | + | ||
42 | +/** | ||
43 | + * Create a middleware to parse JSON bodies. | ||
44 | + * | ||
45 | + * @param {object} [options] | ||
46 | + * @return {function} | ||
47 | + * @public | ||
48 | + */ | ||
49 | + | ||
50 | +function json (options) { | ||
51 | + var opts = options || {} | ||
52 | + | ||
53 | + var limit = typeof opts.limit !== 'number' | ||
54 | + ? bytes.parse(opts.limit || '100kb') | ||
55 | + : opts.limit | ||
56 | + var inflate = opts.inflate !== false | ||
57 | + var reviver = opts.reviver | ||
58 | + var strict = opts.strict !== false | ||
59 | + var type = opts.type || 'application/json' | ||
60 | + var verify = opts.verify || false | ||
61 | + | ||
62 | + if (verify !== false && typeof verify !== 'function') { | ||
63 | + throw new TypeError('option verify must be function') | ||
64 | + } | ||
65 | + | ||
66 | + // create the appropriate type checking function | ||
67 | + var shouldParse = typeof type !== 'function' | ||
68 | + ? typeChecker(type) | ||
69 | + : type | ||
70 | + | ||
71 | + function parse (body) { | ||
72 | + if (body.length === 0) { | ||
73 | + // special-case empty json body, as it's a common client-side mistake | ||
74 | + // TODO: maybe make this configurable or part of "strict" option | ||
75 | + return {} | ||
76 | + } | ||
77 | + | ||
78 | + if (strict) { | ||
79 | + var first = firstchar(body) | ||
80 | + | ||
81 | + if (first !== '{' && first !== '[') { | ||
82 | + debug('strict violation') | ||
83 | + throw createStrictSyntaxError(body, first) | ||
84 | + } | ||
85 | + } | ||
86 | + | ||
87 | + try { | ||
88 | + debug('parse json') | ||
89 | + return JSON.parse(body, reviver) | ||
90 | + } catch (e) { | ||
91 | + throw normalizeJsonSyntaxError(e, { | ||
92 | + message: e.message, | ||
93 | + stack: e.stack | ||
94 | + }) | ||
95 | + } | ||
96 | + } | ||
97 | + | ||
98 | + return function jsonParser (req, res, next) { | ||
99 | + if (req._body) { | ||
100 | + debug('body already parsed') | ||
101 | + next() | ||
102 | + return | ||
103 | + } | ||
104 | + | ||
105 | + req.body = req.body || {} | ||
106 | + | ||
107 | + // skip requests without bodies | ||
108 | + if (!typeis.hasBody(req)) { | ||
109 | + debug('skip empty body') | ||
110 | + next() | ||
111 | + return | ||
112 | + } | ||
113 | + | ||
114 | + debug('content-type %j', req.headers['content-type']) | ||
115 | + | ||
116 | + // determine if request should be parsed | ||
117 | + if (!shouldParse(req)) { | ||
118 | + debug('skip parsing') | ||
119 | + next() | ||
120 | + return | ||
121 | + } | ||
122 | + | ||
123 | + // assert charset per RFC 7159 sec 8.1 | ||
124 | + var charset = getCharset(req) || 'utf-8' | ||
125 | + if (charset.substr(0, 4) !== 'utf-') { | ||
126 | + debug('invalid charset') | ||
127 | + next(createError(415, 'unsupported charset "' + charset.toUpperCase() + '"', { | ||
128 | + charset: charset, | ||
129 | + type: 'charset.unsupported' | ||
130 | + })) | ||
131 | + return | ||
132 | + } | ||
133 | + | ||
134 | + // read | ||
135 | + read(req, res, next, parse, debug, { | ||
136 | + encoding: charset, | ||
137 | + inflate: inflate, | ||
138 | + limit: limit, | ||
139 | + verify: verify | ||
140 | + }) | ||
141 | + } | ||
142 | +} | ||
143 | + | ||
144 | +/** | ||
145 | + * Create strict violation syntax error matching native error. | ||
146 | + * | ||
147 | + * @param {string} str | ||
148 | + * @param {string} char | ||
149 | + * @return {Error} | ||
150 | + * @private | ||
151 | + */ | ||
152 | + | ||
153 | +function createStrictSyntaxError (str, char) { | ||
154 | + var index = str.indexOf(char) | ||
155 | + var partial = str.substring(0, index) + '#' | ||
156 | + | ||
157 | + try { | ||
158 | + JSON.parse(partial); /* istanbul ignore next */ throw new SyntaxError('strict violation') | ||
159 | + } catch (e) { | ||
160 | + return normalizeJsonSyntaxError(e, { | ||
161 | + message: e.message.replace('#', char), | ||
162 | + stack: e.stack | ||
163 | + }) | ||
164 | + } | ||
165 | +} | ||
166 | + | ||
167 | +/** | ||
168 | + * Get the first non-whitespace character in a string. | ||
169 | + * | ||
170 | + * @param {string} str | ||
171 | + * @return {function} | ||
172 | + * @private | ||
173 | + */ | ||
174 | + | ||
175 | +function firstchar (str) { | ||
176 | + return FIRST_CHAR_REGEXP.exec(str)[1] | ||
177 | +} | ||
178 | + | ||
179 | +/** | ||
180 | + * Get the charset of a request. | ||
181 | + * | ||
182 | + * @param {object} req | ||
183 | + * @api private | ||
184 | + */ | ||
185 | + | ||
186 | +function getCharset (req) { | ||
187 | + try { | ||
188 | + return (contentType.parse(req).parameters.charset || '').toLowerCase() | ||
189 | + } catch (e) { | ||
190 | + return undefined | ||
191 | + } | ||
192 | +} | ||
193 | + | ||
194 | +/** | ||
195 | + * Normalize a SyntaxError for JSON.parse. | ||
196 | + * | ||
197 | + * @param {SyntaxError} error | ||
198 | + * @param {object} obj | ||
199 | + * @return {SyntaxError} | ||
200 | + */ | ||
201 | + | ||
202 | +function normalizeJsonSyntaxError (error, obj) { | ||
203 | + var keys = Object.getOwnPropertyNames(error) | ||
204 | + | ||
205 | + for (var i = 0; i < keys.length; i++) { | ||
206 | + var key = keys[i] | ||
207 | + if (key !== 'stack' && key !== 'message') { | ||
208 | + delete error[key] | ||
209 | + } | ||
210 | + } | ||
211 | + | ||
212 | + // replace stack before message for Node.js 0.10 and below | ||
213 | + error.stack = obj.stack.replace(error.message, obj.message) | ||
214 | + error.message = obj.message | ||
215 | + | ||
216 | + return error | ||
217 | +} | ||
218 | + | ||
219 | +/** | ||
220 | + * Get the simple type checker. | ||
221 | + * | ||
222 | + * @param {string} type | ||
223 | + * @return {function} | ||
224 | + */ | ||
225 | + | ||
226 | +function typeChecker (type) { | ||
227 | + return function checkType (req) { | ||
228 | + return Boolean(typeis(req, type)) | ||
229 | + } | ||
230 | +} |
node_modules/body-parser/lib/types/raw.js
0 → 100644
1 | +/*! | ||
2 | + * body-parser | ||
3 | + * Copyright(c) 2014-2015 Douglas Christopher Wilson | ||
4 | + * MIT Licensed | ||
5 | + */ | ||
6 | + | ||
7 | +'use strict' | ||
8 | + | ||
9 | +/** | ||
10 | + * Module dependencies. | ||
11 | + */ | ||
12 | + | ||
13 | +var bytes = require('bytes') | ||
14 | +var debug = require('debug')('body-parser:raw') | ||
15 | +var read = require('../read') | ||
16 | +var typeis = require('type-is') | ||
17 | + | ||
18 | +/** | ||
19 | + * Module exports. | ||
20 | + */ | ||
21 | + | ||
22 | +module.exports = raw | ||
23 | + | ||
24 | +/** | ||
25 | + * Create a middleware to parse raw bodies. | ||
26 | + * | ||
27 | + * @param {object} [options] | ||
28 | + * @return {function} | ||
29 | + * @api public | ||
30 | + */ | ||
31 | + | ||
32 | +function raw (options) { | ||
33 | + var opts = options || {} | ||
34 | + | ||
35 | + var inflate = opts.inflate !== false | ||
36 | + var limit = typeof opts.limit !== 'number' | ||
37 | + ? bytes.parse(opts.limit || '100kb') | ||
38 | + : opts.limit | ||
39 | + var type = opts.type || 'application/octet-stream' | ||
40 | + var verify = opts.verify || false | ||
41 | + | ||
42 | + if (verify !== false && typeof verify !== 'function') { | ||
43 | + throw new TypeError('option verify must be function') | ||
44 | + } | ||
45 | + | ||
46 | + // create the appropriate type checking function | ||
47 | + var shouldParse = typeof type !== 'function' | ||
48 | + ? typeChecker(type) | ||
49 | + : type | ||
50 | + | ||
51 | + function parse (buf) { | ||
52 | + return buf | ||
53 | + } | ||
54 | + | ||
55 | + return function rawParser (req, res, next) { | ||
56 | + if (req._body) { | ||
57 | + debug('body already parsed') | ||
58 | + next() | ||
59 | + return | ||
60 | + } | ||
61 | + | ||
62 | + req.body = req.body || {} | ||
63 | + | ||
64 | + // skip requests without bodies | ||
65 | + if (!typeis.hasBody(req)) { | ||
66 | + debug('skip empty body') | ||
67 | + next() | ||
68 | + return | ||
69 | + } | ||
70 | + | ||
71 | + debug('content-type %j', req.headers['content-type']) | ||
72 | + | ||
73 | + // determine if request should be parsed | ||
74 | + if (!shouldParse(req)) { | ||
75 | + debug('skip parsing') | ||
76 | + next() | ||
77 | + return | ||
78 | + } | ||
79 | + | ||
80 | + // read | ||
81 | + read(req, res, next, parse, debug, { | ||
82 | + encoding: null, | ||
83 | + inflate: inflate, | ||
84 | + limit: limit, | ||
85 | + verify: verify | ||
86 | + }) | ||
87 | + } | ||
88 | +} | ||
89 | + | ||
90 | +/** | ||
91 | + * Get the simple type checker. | ||
92 | + * | ||
93 | + * @param {string} type | ||
94 | + * @return {function} | ||
95 | + */ | ||
96 | + | ||
97 | +function typeChecker (type) { | ||
98 | + return function checkType (req) { | ||
99 | + return Boolean(typeis(req, type)) | ||
100 | + } | ||
101 | +} |
node_modules/body-parser/lib/types/text.js
0 → 100644
1 | +/*! | ||
2 | + * body-parser | ||
3 | + * Copyright(c) 2014-2015 Douglas Christopher Wilson | ||
4 | + * MIT Licensed | ||
5 | + */ | ||
6 | + | ||
7 | +'use strict' | ||
8 | + | ||
9 | +/** | ||
10 | + * Module dependencies. | ||
11 | + */ | ||
12 | + | ||
13 | +var bytes = require('bytes') | ||
14 | +var contentType = require('content-type') | ||
15 | +var debug = require('debug')('body-parser:text') | ||
16 | +var read = require('../read') | ||
17 | +var typeis = require('type-is') | ||
18 | + | ||
19 | +/** | ||
20 | + * Module exports. | ||
21 | + */ | ||
22 | + | ||
23 | +module.exports = text | ||
24 | + | ||
25 | +/** | ||
26 | + * Create a middleware to parse text bodies. | ||
27 | + * | ||
28 | + * @param {object} [options] | ||
29 | + * @return {function} | ||
30 | + * @api public | ||
31 | + */ | ||
32 | + | ||
33 | +function text (options) { | ||
34 | + var opts = options || {} | ||
35 | + | ||
36 | + var defaultCharset = opts.defaultCharset || 'utf-8' | ||
37 | + var inflate = opts.inflate !== false | ||
38 | + var limit = typeof opts.limit !== 'number' | ||
39 | + ? bytes.parse(opts.limit || '100kb') | ||
40 | + : opts.limit | ||
41 | + var type = opts.type || 'text/plain' | ||
42 | + var verify = opts.verify || false | ||
43 | + | ||
44 | + if (verify !== false && typeof verify !== 'function') { | ||
45 | + throw new TypeError('option verify must be function') | ||
46 | + } | ||
47 | + | ||
48 | + // create the appropriate type checking function | ||
49 | + var shouldParse = typeof type !== 'function' | ||
50 | + ? typeChecker(type) | ||
51 | + : type | ||
52 | + | ||
53 | + function parse (buf) { | ||
54 | + return buf | ||
55 | + } | ||
56 | + | ||
57 | + return function textParser (req, res, next) { | ||
58 | + if (req._body) { | ||
59 | + debug('body already parsed') | ||
60 | + next() | ||
61 | + return | ||
62 | + } | ||
63 | + | ||
64 | + req.body = req.body || {} | ||
65 | + | ||
66 | + // skip requests without bodies | ||
67 | + if (!typeis.hasBody(req)) { | ||
68 | + debug('skip empty body') | ||
69 | + next() | ||
70 | + return | ||
71 | + } | ||
72 | + | ||
73 | + debug('content-type %j', req.headers['content-type']) | ||
74 | + | ||
75 | + // determine if request should be parsed | ||
76 | + if (!shouldParse(req)) { | ||
77 | + debug('skip parsing') | ||
78 | + next() | ||
79 | + return | ||
80 | + } | ||
81 | + | ||
82 | + // get charset | ||
83 | + var charset = getCharset(req) || defaultCharset | ||
84 | + | ||
85 | + // read | ||
86 | + read(req, res, next, parse, debug, { | ||
87 | + encoding: charset, | ||
88 | + inflate: inflate, | ||
89 | + limit: limit, | ||
90 | + verify: verify | ||
91 | + }) | ||
92 | + } | ||
93 | +} | ||
94 | + | ||
95 | +/** | ||
96 | + * Get the charset of a request. | ||
97 | + * | ||
98 | + * @param {object} req | ||
99 | + * @api private | ||
100 | + */ | ||
101 | + | ||
102 | +function getCharset (req) { | ||
103 | + try { | ||
104 | + return (contentType.parse(req).parameters.charset || '').toLowerCase() | ||
105 | + } catch (e) { | ||
106 | + return undefined | ||
107 | + } | ||
108 | +} | ||
109 | + | ||
110 | +/** | ||
111 | + * Get the simple type checker. | ||
112 | + * | ||
113 | + * @param {string} type | ||
114 | + * @return {function} | ||
115 | + */ | ||
116 | + | ||
117 | +function typeChecker (type) { | ||
118 | + return function checkType (req) { | ||
119 | + return Boolean(typeis(req, type)) | ||
120 | + } | ||
121 | +} |
1 | +/*! | ||
2 | + * body-parser | ||
3 | + * Copyright(c) 2014 Jonathan Ong | ||
4 | + * Copyright(c) 2014-2015 Douglas Christopher Wilson | ||
5 | + * MIT Licensed | ||
6 | + */ | ||
7 | + | ||
8 | +'use strict' | ||
9 | + | ||
10 | +/** | ||
11 | + * Module dependencies. | ||
12 | + * @private | ||
13 | + */ | ||
14 | + | ||
15 | +var bytes = require('bytes') | ||
16 | +var contentType = require('content-type') | ||
17 | +var createError = require('http-errors') | ||
18 | +var debug = require('debug')('body-parser:urlencoded') | ||
19 | +var deprecate = require('depd')('body-parser') | ||
20 | +var read = require('../read') | ||
21 | +var typeis = require('type-is') | ||
22 | + | ||
23 | +/** | ||
24 | + * Module exports. | ||
25 | + */ | ||
26 | + | ||
27 | +module.exports = urlencoded | ||
28 | + | ||
29 | +/** | ||
30 | + * Cache of parser modules. | ||
31 | + */ | ||
32 | + | ||
33 | +var parsers = Object.create(null) | ||
34 | + | ||
35 | +/** | ||
36 | + * Create a middleware to parse urlencoded bodies. | ||
37 | + * | ||
38 | + * @param {object} [options] | ||
39 | + * @return {function} | ||
40 | + * @public | ||
41 | + */ | ||
42 | + | ||
43 | +function urlencoded (options) { | ||
44 | + var opts = options || {} | ||
45 | + | ||
46 | + // notice because option default will flip in next major | ||
47 | + if (opts.extended === undefined) { | ||
48 | + deprecate('undefined extended: provide extended option') | ||
49 | + } | ||
50 | + | ||
51 | + var extended = opts.extended !== false | ||
52 | + var inflate = opts.inflate !== false | ||
53 | + var limit = typeof opts.limit !== 'number' | ||
54 | + ? bytes.parse(opts.limit || '100kb') | ||
55 | + : opts.limit | ||
56 | + var type = opts.type || 'application/x-www-form-urlencoded' | ||
57 | + var verify = opts.verify || false | ||
58 | + | ||
59 | + if (verify !== false && typeof verify !== 'function') { | ||
60 | + throw new TypeError('option verify must be function') | ||
61 | + } | ||
62 | + | ||
63 | + // create the appropriate query parser | ||
64 | + var queryparse = extended | ||
65 | + ? extendedparser(opts) | ||
66 | + : simpleparser(opts) | ||
67 | + | ||
68 | + // create the appropriate type checking function | ||
69 | + var shouldParse = typeof type !== 'function' | ||
70 | + ? typeChecker(type) | ||
71 | + : type | ||
72 | + | ||
73 | + function parse (body) { | ||
74 | + return body.length | ||
75 | + ? queryparse(body) | ||
76 | + : {} | ||
77 | + } | ||
78 | + | ||
79 | + return function urlencodedParser (req, res, next) { | ||
80 | + if (req._body) { | ||
81 | + debug('body already parsed') | ||
82 | + next() | ||
83 | + return | ||
84 | + } | ||
85 | + | ||
86 | + req.body = req.body || {} | ||
87 | + | ||
88 | + // skip requests without bodies | ||
89 | + if (!typeis.hasBody(req)) { | ||
90 | + debug('skip empty body') | ||
91 | + next() | ||
92 | + return | ||
93 | + } | ||
94 | + | ||
95 | + debug('content-type %j', req.headers['content-type']) | ||
96 | + | ||
97 | + // determine if request should be parsed | ||
98 | + if (!shouldParse(req)) { | ||
99 | + debug('skip parsing') | ||
100 | + next() | ||
101 | + return | ||
102 | + } | ||
103 | + | ||
104 | + // assert charset | ||
105 | + var charset = getCharset(req) || 'utf-8' | ||
106 | + if (charset !== 'utf-8') { | ||
107 | + debug('invalid charset') | ||
108 | + next(createError(415, 'unsupported charset "' + charset.toUpperCase() + '"', { | ||
109 | + charset: charset, | ||
110 | + type: 'charset.unsupported' | ||
111 | + })) | ||
112 | + return | ||
113 | + } | ||
114 | + | ||
115 | + // read | ||
116 | + read(req, res, next, parse, debug, { | ||
117 | + debug: debug, | ||
118 | + encoding: charset, | ||
119 | + inflate: inflate, | ||
120 | + limit: limit, | ||
121 | + verify: verify | ||
122 | + }) | ||
123 | + } | ||
124 | +} | ||
125 | + | ||
126 | +/** | ||
127 | + * Get the extended query parser. | ||
128 | + * | ||
129 | + * @param {object} options | ||
130 | + */ | ||
131 | + | ||
132 | +function extendedparser (options) { | ||
133 | + var parameterLimit = options.parameterLimit !== undefined | ||
134 | + ? options.parameterLimit | ||
135 | + : 1000 | ||
136 | + var parse = parser('qs') | ||
137 | + | ||
138 | + if (isNaN(parameterLimit) || parameterLimit < 1) { | ||
139 | + throw new TypeError('option parameterLimit must be a positive number') | ||
140 | + } | ||
141 | + | ||
142 | + if (isFinite(parameterLimit)) { | ||
143 | + parameterLimit = parameterLimit | 0 | ||
144 | + } | ||
145 | + | ||
146 | + return function queryparse (body) { | ||
147 | + var paramCount = parameterCount(body, parameterLimit) | ||
148 | + | ||
149 | + if (paramCount === undefined) { | ||
150 | + debug('too many parameters') | ||
151 | + throw createError(413, 'too many parameters', { | ||
152 | + type: 'parameters.too.many' | ||
153 | + }) | ||
154 | + } | ||
155 | + | ||
156 | + var arrayLimit = Math.max(100, paramCount) | ||
157 | + | ||
158 | + debug('parse extended urlencoding') | ||
159 | + return parse(body, { | ||
160 | + allowPrototypes: true, | ||
161 | + arrayLimit: arrayLimit, | ||
162 | + depth: Infinity, | ||
163 | + parameterLimit: parameterLimit | ||
164 | + }) | ||
165 | + } | ||
166 | +} | ||
167 | + | ||
168 | +/** | ||
169 | + * Get the charset of a request. | ||
170 | + * | ||
171 | + * @param {object} req | ||
172 | + * @api private | ||
173 | + */ | ||
174 | + | ||
175 | +function getCharset (req) { | ||
176 | + try { | ||
177 | + return (contentType.parse(req).parameters.charset || '').toLowerCase() | ||
178 | + } catch (e) { | ||
179 | + return undefined | ||
180 | + } | ||
181 | +} | ||
182 | + | ||
183 | +/** | ||
184 | + * Count the number of parameters, stopping once limit reached | ||
185 | + * | ||
186 | + * @param {string} body | ||
187 | + * @param {number} limit | ||
188 | + * @api private | ||
189 | + */ | ||
190 | + | ||
191 | +function parameterCount (body, limit) { | ||
192 | + var count = 0 | ||
193 | + var index = 0 | ||
194 | + | ||
195 | + while ((index = body.indexOf('&', index)) !== -1) { | ||
196 | + count++ | ||
197 | + index++ | ||
198 | + | ||
199 | + if (count === limit) { | ||
200 | + return undefined | ||
201 | + } | ||
202 | + } | ||
203 | + | ||
204 | + return count | ||
205 | +} | ||
206 | + | ||
207 | +/** | ||
208 | + * Get parser for module name dynamically. | ||
209 | + * | ||
210 | + * @param {string} name | ||
211 | + * @return {function} | ||
212 | + * @api private | ||
213 | + */ | ||
214 | + | ||
215 | +function parser (name) { | ||
216 | + var mod = parsers[name] | ||
217 | + | ||
218 | + if (mod !== undefined) { | ||
219 | + return mod.parse | ||
220 | + } | ||
221 | + | ||
222 | + // this uses a switch for static require analysis | ||
223 | + switch (name) { | ||
224 | + case 'qs': | ||
225 | + mod = require('qs') | ||
226 | + break | ||
227 | + case 'querystring': | ||
228 | + mod = require('querystring') | ||
229 | + break | ||
230 | + } | ||
231 | + | ||
232 | + // store to prevent invoking require() | ||
233 | + parsers[name] = mod | ||
234 | + | ||
235 | + return mod.parse | ||
236 | +} | ||
237 | + | ||
238 | +/** | ||
239 | + * Get the simple query parser. | ||
240 | + * | ||
241 | + * @param {object} options | ||
242 | + */ | ||
243 | + | ||
244 | +function simpleparser (options) { | ||
245 | + var parameterLimit = options.parameterLimit !== undefined | ||
246 | + ? options.parameterLimit | ||
247 | + : 1000 | ||
248 | + var parse = parser('querystring') | ||
249 | + | ||
250 | + if (isNaN(parameterLimit) || parameterLimit < 1) { | ||
251 | + throw new TypeError('option parameterLimit must be a positive number') | ||
252 | + } | ||
253 | + | ||
254 | + if (isFinite(parameterLimit)) { | ||
255 | + parameterLimit = parameterLimit | 0 | ||
256 | + } | ||
257 | + | ||
258 | + return function queryparse (body) { | ||
259 | + var paramCount = parameterCount(body, parameterLimit) | ||
260 | + | ||
261 | + if (paramCount === undefined) { | ||
262 | + debug('too many parameters') | ||
263 | + throw createError(413, 'too many parameters', { | ||
264 | + type: 'parameters.too.many' | ||
265 | + }) | ||
266 | + } | ||
267 | + | ||
268 | + debug('parse urlencoding') | ||
269 | + return parse(body, undefined, undefined, { maxKeys: parameterLimit }) | ||
270 | + } | ||
271 | +} | ||
272 | + | ||
273 | +/** | ||
274 | + * Get the simple type checker. | ||
275 | + * | ||
276 | + * @param {string} type | ||
277 | + * @return {function} | ||
278 | + */ | ||
279 | + | ||
280 | +function typeChecker (type) { | ||
281 | + return function checkType (req) { | ||
282 | + return Boolean(typeis(req, type)) | ||
283 | + } | ||
284 | +} |
node_modules/body-parser/package.json
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/boxen/index.d.ts
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/boxen/index.js
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/boxen/license
0 → 100644
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
node_modules/boxen/package.json
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/boxen/readme.md
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/brace-expansion/LICENSE
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/brace-expansion/README.md
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/brace-expansion/index.js
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/brace-expansion/package.json
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/braces/CHANGELOG.md
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/braces/LICENSE
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/braces/README.md
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/braces/index.js
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/braces/lib/compile.js
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/braces/lib/constants.js
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/braces/lib/expand.js
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/braces/lib/parse.js
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/braces/lib/stringify.js
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/braces/lib/utils.js
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/braces/package.json
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/bytes/History.md
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/bytes/LICENSE
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/bytes/Readme.md
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/bytes/index.js
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/bytes/package.json
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/cacheable-request/LICENSE
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/cacheable-request/README.md
0 → 100644
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
node_modules/cacheable-request/package.json
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/cacheable-request/src/index.js
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/camelcase/index.d.ts
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/camelcase/index.js
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/camelcase/license
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/camelcase/package.json
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/camelcase/readme.md
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/chalk/index.js
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/chalk/index.js.flow
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/chalk/license
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/chalk/package.json
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/chalk/readme.md
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/chalk/templates.js
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/chalk/types/index.d.ts
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/chokidar/LICENSE
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/chokidar/README.md
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/chokidar/index.js
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/chokidar/lib/constants.js
0 → 100644
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
node_modules/chokidar/lib/nodefs-handler.js
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/chokidar/package.json
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/chokidar/types/index.d.ts
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/ci-info/CHANGELOG.md
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/ci-info/LICENSE
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/ci-info/README.md
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/ci-info/index.js
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/ci-info/package.json
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/ci-info/vendors.json
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/cli-boxes/boxes.json
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/cli-boxes/index.d.ts
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/cli-boxes/index.js
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/cli-boxes/license
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/cli-boxes/package.json
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/cli-boxes/readme.md
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/clone-response/LICENSE
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/clone-response/README.md
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/clone-response/package.json
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/clone-response/src/index.js
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/color-convert/CHANGELOG.md
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/color-convert/LICENSE
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/color-convert/README.md
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/color-convert/conversions.js
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/color-convert/index.js
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/color-convert/package.json
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/color-convert/route.js
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/color-name/.eslintrc.json
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/color-name/.npmignore
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/color-name/LICENSE
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/color-name/README.md
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/color-name/index.js
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/color-name/package.json
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/color-name/test.js
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/concat-map/.travis.yml
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/concat-map/LICENSE
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/concat-map/README.markdown
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/concat-map/example/map.js
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/concat-map/index.js
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/concat-map/package.json
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/concat-map/test/map.js
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/configstore/index.js
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/configstore/license
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/configstore/package.json
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/configstore/readme.md
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/connect-flash/.travis.yml
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/connect-flash/LICENSE
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/connect-flash/README.md
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/connect-flash/lib/flash.js
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/connect-flash/lib/index.js
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/connect-flash/package.json
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/content-disposition/HISTORY.md
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/content-disposition/LICENSE
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/content-disposition/README.md
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/content-disposition/index.js
0 → 100644
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
node_modules/content-type/HISTORY.md
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/content-type/LICENSE
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/content-type/README.md
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/content-type/index.js
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/content-type/package.json
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/cookie-signature/.npmignore
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/cookie-signature/History.md
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/cookie-signature/Readme.md
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/cookie-signature/index.js
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/cookie-signature/package.json
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/cookie/HISTORY.md
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/cookie/LICENSE
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/cookie/README.md
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/cookie/index.js
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/cookie/package.json
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/crypto-random-string/index.d.ts
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/crypto-random-string/index.js
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/crypto-random-string/license
0 → 100644
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
node_modules/crypto-random-string/readme.md
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/debug/.coveralls.yml
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/debug/.eslintrc
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/debug/.npmignore
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/debug/.travis.yml
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/debug/CHANGELOG.md
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/debug/LICENSE
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/debug/Makefile
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/debug/README.md
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/debug/component.json
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/debug/karma.conf.js
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/debug/node.js
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/debug/package.json
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/debug/src/browser.js
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/debug/src/debug.js
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/debug/src/index.js
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/debug/src/inspector-log.js
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/debug/src/node.js
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/decompress-response/index.js
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/decompress-response/license
0 → 100644
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
node_modules/decompress-response/readme.md
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/deep-extend/CHANGELOG.md
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/deep-extend/LICENSE
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/deep-extend/README.md
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/deep-extend/index.js
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/deep-extend/lib/deep-extend.js
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/deep-extend/package.json
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/defer-to-connect/LICENSE
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/defer-to-connect/README.md
0 → 100644
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
node_modules/defer-to-connect/dist/index.js
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/defer-to-connect/package.json
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/depd/History.md
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/depd/LICENSE
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/depd/Readme.md
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/depd/index.js
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/depd/lib/browser/index.js
0 → 100644
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
node_modules/depd/lib/compat/index.js
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/depd/package.json
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/destroy/LICENSE
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/destroy/README.md
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/destroy/index.js
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/destroy/package.json
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/dot-prop/index.d.ts
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/dot-prop/index.js
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/dot-prop/license
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/dot-prop/package.json
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/dot-prop/readme.md
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/duplexer3/LICENSE.md
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/duplexer3/README.md
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/duplexer3/index.js
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/duplexer3/package.json
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/ee-first/LICENSE
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/ee-first/README.md
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/ee-first/index.js
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/ee-first/package.json
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/ejs/LICENSE
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/ejs/README.md
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/ejs/bin/cli.js
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/ejs/ejs.js
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/ejs/ejs.min.js
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/ejs/jakefile.js
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/ejs/lib/ejs.js
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/ejs/lib/utils.js
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/ejs/package.json
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/ejs/usage.txt
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/emoji-regex/LICENSE-MIT.txt
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/emoji-regex/README.md
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/emoji-regex/es2015/index.js
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/emoji-regex/es2015/text.js
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/emoji-regex/index.d.ts
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/emoji-regex/index.js
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/emoji-regex/package.json
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/emoji-regex/text.js
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/encodeurl/HISTORY.md
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/encodeurl/LICENSE
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/encodeurl/README.md
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/encodeurl/index.js
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/encodeurl/package.json
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/end-of-stream/LICENSE
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/end-of-stream/README.md
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/end-of-stream/index.js
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/end-of-stream/package.json
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/escape-goat/index.d.ts
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/escape-goat/index.js
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/escape-goat/license
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/escape-goat/package.json
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/escape-goat/readme.md
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/escape-html/LICENSE
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/escape-html/Readme.md
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/escape-html/index.js
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/escape-html/package.json
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/escape-string-regexp/index.js
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/escape-string-regexp/license
0 → 100644
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
node_modules/escape-string-regexp/readme.md
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/etag/HISTORY.md
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/etag/LICENSE
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/etag/README.md
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/etag/index.js
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/etag/package.json
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/express-session/HISTORY.md
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/express-session/LICENSE
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/express-session/README.md
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/express-session/index.js
0 → 100644
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
node_modules/express-session/package.json
0 → 100644
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
node_modules/express/History.md
0 → 100644
This diff could not be displayed because it is too large.
node_modules/express/LICENSE
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/express/Readme.md
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/express/index.js
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/express/lib/application.js
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/express/lib/express.js
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/express/lib/middleware/init.js
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/express/lib/middleware/query.js
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/express/lib/request.js
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/express/lib/response.js
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/express/lib/router/index.js
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/express/lib/router/layer.js
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/express/lib/router/route.js
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/express/lib/utils.js
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/express/lib/view.js
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/express/package.json
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/filelist/README.md
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/filelist/index.d.ts
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/filelist/index.js
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/filelist/jakefile.js
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/filelist/package.json
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/fill-range/LICENSE
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/fill-range/README.md
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/fill-range/index.js
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/fill-range/package.json
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/finalhandler/HISTORY.md
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/finalhandler/LICENSE
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/finalhandler/README.md
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/finalhandler/index.js
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/finalhandler/package.json
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/forwarded/HISTORY.md
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/forwarded/LICENSE
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/forwarded/README.md
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/forwarded/index.js
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/forwarded/package.json
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/fresh/HISTORY.md
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/fresh/LICENSE
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/fresh/README.md
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/fresh/index.js
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/fresh/package.json
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/get-stream/buffer-stream.js
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/get-stream/index.js
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/get-stream/license
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/get-stream/package.json
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/get-stream/readme.md
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/glob-parent/CHANGELOG.md
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/glob-parent/LICENSE
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/glob-parent/README.md
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/glob-parent/index.js
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/glob-parent/package.json
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/global-dirs/index.d.ts
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/global-dirs/index.js
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/global-dirs/license
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/global-dirs/package.json
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/global-dirs/readme.md
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/got/license
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/got/package.json
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/got/readme.md
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/got/source/as-promise.js
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/got/source/as-stream.js
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/got/source/create.js
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/got/source/errors.js
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/got/source/get-response.js
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/got/source/index.js
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/got/source/known-hook-events.js
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/got/source/merge.js
0 → 100644
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
node_modules/got/source/progress.js
0 → 100644
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
node_modules/got/source/utils/deep-freeze.js
0 → 100644
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
node_modules/got/source/utils/timed-out.js
0 → 100644
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
node_modules/graceful-fs/LICENSE
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/graceful-fs/README.md
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/graceful-fs/clone.js
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/graceful-fs/graceful-fs.js
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/graceful-fs/legacy-streams.js
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/graceful-fs/package.json
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/graceful-fs/polyfills.js
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/has-flag/index.js
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/has-flag/license
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/has-flag/package.json
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/has-flag/readme.md
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/has-yarn/index.d.ts
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/has-yarn/index.js
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/has-yarn/license
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/has-yarn/package.json
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/has-yarn/readme.md
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/http-cache-semantics/LICENSE
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/http-cache-semantics/README.md
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/http-cache-semantics/index.js
0 → 100644
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
node_modules/http-errors/HISTORY.md
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/http-errors/LICENSE
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/http-errors/README.md
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/http-errors/index.js
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/http-errors/package.json
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/iconv-lite/Changelog.md
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/iconv-lite/LICENSE
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/iconv-lite/README.md
0 → 100644
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
node_modules/iconv-lite/encodings/index.js
0 → 100644
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
node_modules/iconv-lite/encodings/utf16.js
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/iconv-lite/encodings/utf7.js
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/iconv-lite/lib/bom-handling.js
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/iconv-lite/lib/extend-node.js
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/iconv-lite/lib/index.d.ts
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/iconv-lite/lib/index.js
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/iconv-lite/lib/streams.js
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/iconv-lite/package.json
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/ignore-by-default/LICENSE
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/ignore-by-default/README.md
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/ignore-by-default/index.js
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/ignore-by-default/package.json
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/import-lazy/index.js
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/import-lazy/license
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/import-lazy/package.json
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/import-lazy/readme.md
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/imurmurhash/README.md
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/imurmurhash/imurmurhash.js
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/imurmurhash/imurmurhash.min.js
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/imurmurhash/package.json
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/inherits/LICENSE
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/inherits/README.md
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/inherits/inherits.js
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/inherits/inherits_browser.js
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/inherits/package.json
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/ini/LICENSE
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/ini/README.md
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/ini/ini.js
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/ini/package.json
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/ipaddr.js/LICENSE
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/ipaddr.js/README.md
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/ipaddr.js/ipaddr.min.js
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/ipaddr.js/lib/ipaddr.js
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/ipaddr.js/lib/ipaddr.js.d.ts
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/ipaddr.js/package.json
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/is-binary-path/index.d.ts
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/is-binary-path/index.js
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/is-binary-path/license
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/is-binary-path/package.json
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/is-binary-path/readme.md
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/is-ci/CHANGELOG.md
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/is-ci/LICENSE
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/is-ci/README.md
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/is-ci/bin.js
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/is-ci/index.js
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/is-ci/package.json
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/is-extglob/LICENSE
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/is-extglob/README.md
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/is-extglob/index.js
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/is-extglob/package.json
0 → 100644
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
node_modules/is-fullwidth-code-point/license
0 → 100644
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
node_modules/is-glob/LICENSE
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/is-glob/README.md
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/is-glob/index.js
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/is-glob/package.json
0 → 100644
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
node_modules/is-installed-globally/index.js
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/is-installed-globally/license
0 → 100644
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
node_modules/is-installed-globally/readme.md
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/is-npm/index.d.ts
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/is-npm/index.js
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/is-npm/license
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/is-npm/package.json
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/is-npm/readme.md
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/is-number/LICENSE
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/is-number/README.md
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/is-number/index.js
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/is-number/package.json
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/is-obj/index.d.ts
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/is-obj/index.js
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/is-obj/license
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/is-obj/package.json
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/is-obj/readme.md
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/is-path-inside/index.d.ts
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/is-path-inside/index.js
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/is-path-inside/license
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/is-path-inside/package.json
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/is-path-inside/readme.md
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/is-typedarray/LICENSE.md
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/is-typedarray/README.md
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/is-typedarray/index.js
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/is-typedarray/package.json
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/is-typedarray/test.js
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/is-yarn-global/.travis.yml
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/is-yarn-global/LICENSE
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/is-yarn-global/README.md
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/is-yarn-global/index.js
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/is-yarn-global/package.json
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/jake/Makefile
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/jake/README.md
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/jake/bin/bash_completion.sh
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/jake/bin/cli.js
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/jake/jakefile.js
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/jake/lib/api.js
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/jake/lib/jake.js
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/jake/lib/loader.js
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/jake/lib/namespace.js
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/jake/lib/package_task.js
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/jake/lib/parseargs.js
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/jake/lib/program.js
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/jake/lib/publish_task.js
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/jake/lib/rule.js
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/jake/lib/task/directory_task.js
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/jake/lib/task/file_task.js
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/jake/lib/task/index.js
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/jake/lib/task/task.js
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/jake/lib/test_task.js
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/jake/lib/utils/file.js
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/jake/lib/utils/index.js
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/jake/lib/utils/logger.js
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/jake/package.json
0 → 100644
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
node_modules/jake/test/integration/file.js
0 → 100644
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
node_modules/jake/test/integration/rule.js
0 → 100644
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
node_modules/jake/test/unit/jakefile.js
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/jake/test/unit/namespace.js
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/jake/test/unit/parseargs.js
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/jake/usage.txt
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/json-buffer/.npmignore
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/json-buffer/.travis.yml
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/json-buffer/LICENSE
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/json-buffer/README.md
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/json-buffer/index.js
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/json-buffer/package.json
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/json-buffer/test/index.js
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/keyv/LICENSE
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/keyv/README.md
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/keyv/package.json
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/keyv/src/index.js
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/latest-version/index.d.ts
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/latest-version/index.js
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/latest-version/license
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/latest-version/package.json
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/latest-version/readme.md
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/lowercase-keys/index.js
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/lowercase-keys/license
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/lowercase-keys/package.json
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/lowercase-keys/readme.md
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/lru-cache/LICENSE
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/lru-cache/README.md
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/lru-cache/index.js
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/lru-cache/package.json
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/make-dir/index.d.ts
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/make-dir/index.js
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/make-dir/license
0 → 100644
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
node_modules/make-dir/package.json
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/make-dir/readme.md
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/media-typer/HISTORY.md
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/media-typer/LICENSE
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/media-typer/README.md
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/media-typer/index.js
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/media-typer/package.json
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/merge-descriptors/HISTORY.md
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/merge-descriptors/LICENSE
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/merge-descriptors/README.md
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/merge-descriptors/index.js
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/merge-descriptors/package.json
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/methods/HISTORY.md
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/methods/LICENSE
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/methods/README.md
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/methods/index.js
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/methods/package.json
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/mime-db/HISTORY.md
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/mime-db/LICENSE
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/mime-db/README.md
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/mime-db/db.json
0 → 100644
This diff could not be displayed because it is too large.
node_modules/mime-db/index.js
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/mime-db/package.json
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/mime-types/HISTORY.md
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/mime-types/LICENSE
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/mime-types/README.md
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/mime-types/index.js
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/mime-types/package.json
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/mime/.npmignore
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/mime/CHANGELOG.md
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/mime/LICENSE
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/mime/README.md
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/mime/cli.js
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/mime/mime.js
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/mime/package.json
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/mime/src/build.js
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/mime/src/test.js
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/mime/types.json
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/mimic-response/index.js
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/mimic-response/license
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/mimic-response/package.json
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/mimic-response/readme.md
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/minimatch/LICENSE
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/minimatch/README.md
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/minimatch/minimatch.js
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/minimatch/package.json
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/minimist/.travis.yml
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/minimist/LICENSE
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/minimist/example/parse.js
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/minimist/index.js
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/minimist/package.json
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/minimist/readme.markdown
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/minimist/test/all_bool.js
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/minimist/test/bool.js
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/minimist/test/dash.js
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/minimist/test/default_bool.js
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/minimist/test/dotted.js
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/minimist/test/kv_short.js
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/minimist/test/long.js
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/minimist/test/num.js
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/minimist/test/parse.js
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/minimist/test/parse_modified.js
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/minimist/test/proto.js
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/minimist/test/short.js
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/minimist/test/stop_early.js
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/minimist/test/unknown.js
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/minimist/test/whitespace.js
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/ms/index.js
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/ms/license.md
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/ms/package.json
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/ms/readme.md
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/negotiator/HISTORY.md
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/negotiator/LICENSE
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/negotiator/README.md
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/negotiator/index.js
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/negotiator/lib/charset.js
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/negotiator/lib/encoding.js
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/negotiator/lib/language.js
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/negotiator/lib/mediaType.js
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/negotiator/package.json
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/nodemon/.eslintrc.json
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/nodemon/.jshintrc
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/nodemon/.releaserc
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/nodemon/.travis.yml
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/nodemon/LICENSE
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/nodemon/README.md
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/nodemon/bin/nodemon.js
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/nodemon/bin/postinstall.js
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/nodemon/bin/windows-kill.exe
0 → 100644
No preview for this file type
node_modules/nodemon/commitlint.config.js
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/nodemon/doc/cli/authors.txt
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/nodemon/doc/cli/config.txt
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/nodemon/doc/cli/help.txt
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/nodemon/doc/cli/logo.txt
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/nodemon/doc/cli/options.txt
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/nodemon/doc/cli/topics.txt
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/nodemon/doc/cli/usage.txt
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/nodemon/doc/cli/whoami.txt
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/nodemon/lib/cli/index.js
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/nodemon/lib/cli/parse.js
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/nodemon/lib/config/command.js
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/nodemon/lib/config/defaults.js
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/nodemon/lib/config/exec.js
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/nodemon/lib/config/index.js
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/nodemon/lib/config/load.js
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/nodemon/lib/help/index.js
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/nodemon/lib/index.js
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/nodemon/lib/monitor/index.js
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/nodemon/lib/monitor/match.js
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/nodemon/lib/monitor/run.js
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/nodemon/lib/monitor/signals.js
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/nodemon/lib/monitor/watch.js
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/nodemon/lib/nodemon.js
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/nodemon/lib/rules/add.js
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/nodemon/lib/rules/index.js
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/nodemon/lib/rules/parse.js
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/nodemon/lib/spawn.js
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/nodemon/lib/utils/bus.js
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/nodemon/lib/utils/clone.js
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/nodemon/lib/utils/colour.js
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/nodemon/lib/utils/index.js
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/nodemon/lib/utils/log.js
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/nodemon/lib/utils/merge.js
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/nodemon/lib/version.js
0 → 100644
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
node_modules/nodemon/package.json
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/nopt/.npmignore
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/nopt/LICENSE
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/nopt/README.md
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/nopt/bin/nopt.js
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/nopt/examples/my-program.js
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/nopt/lib/nopt.js
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/nopt/package.json
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/normalize-path/LICENSE
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/normalize-path/README.md
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/normalize-path/index.js
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/normalize-path/package.json
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/normalize-url/index.d.ts
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/normalize-url/index.js
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/normalize-url/license
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/normalize-url/package.json
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/normalize-url/readme.md
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/on-finished/HISTORY.md
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/on-finished/LICENSE
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/on-finished/README.md
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/on-finished/index.js
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/on-finished/package.json
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/on-headers/HISTORY.md
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/on-headers/LICENSE
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/on-headers/README.md
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/on-headers/index.js
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/on-headers/package.json
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/once/LICENSE
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/once/README.md
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/once/once.js
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/once/package.json
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/p-cancelable/index.d.ts
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/p-cancelable/index.js
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/p-cancelable/license
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/p-cancelable/package.json
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/p-cancelable/readme.md
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/package-json/index.d.ts
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/package-json/index.js
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/package-json/license
0 → 100644
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
node_modules/package-json/package.json
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/package-json/readme.md
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/parseurl/HISTORY.md
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/parseurl/LICENSE
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/parseurl/README.md
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/parseurl/index.js
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/parseurl/package.json
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/passport-local/LICENSE
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/passport-local/README.md
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/passport-local/lib/index.js
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/passport-local/lib/strategy.js
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/passport-local/lib/utils.js
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/passport-local/package.json
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/passport-strategy/.jshintrc
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/passport-strategy/.travis.yml
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/passport-strategy/LICENSE
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/passport-strategy/README.md
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/passport-strategy/lib/index.js
0 → 100644
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
node_modules/passport-strategy/package.json
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/passport/LICENSE
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/passport/README.md
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/passport/lib/authenticator.js
0 → 100644
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
node_modules/passport/lib/http/request.js
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/passport/lib/index.js
0 → 100644
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
node_modules/passport/lib/sessionmanager.js
0 → 100644
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
node_modules/passport/package.json
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/path-to-regexp/History.md
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/path-to-regexp/LICENSE
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/path-to-regexp/Readme.md
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/path-to-regexp/index.js
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/path-to-regexp/package.json
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/pause/.npmignore
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/pause/History.md
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/pause/Makefile
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/pause/Readme.md
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/pause/index.js
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/pause/package.json
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/picomatch/CHANGELOG.md
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/picomatch/LICENSE
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/picomatch/README.md
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/picomatch/index.js
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/picomatch/lib/constants.js
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/picomatch/lib/parse.js
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/picomatch/lib/picomatch.js
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/picomatch/lib/scan.js
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/picomatch/lib/utils.js
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/picomatch/package.json
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/prepend-http/index.js
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/prepend-http/license
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/prepend-http/package.json
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/prepend-http/readme.md
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/proxy-addr/HISTORY.md
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/proxy-addr/LICENSE
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/proxy-addr/README.md
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/proxy-addr/index.js
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/proxy-addr/package.json
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/pstree.remy/.travis.yml
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/pstree.remy/LICENSE
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/pstree.remy/README.md
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/pstree.remy/lib/index.js
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/pstree.remy/lib/tree.js
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/pstree.remy/lib/utils.js
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/pstree.remy/package.json
0 → 100644
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
node_modules/pstree.remy/tests/fixtures/out1
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/pstree.remy/tests/fixtures/out2
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/pstree.remy/tests/index.test.js
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/pump/.travis.yml
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/pump/LICENSE
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/pump/README.md
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/pump/index.js
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/pump/package.json
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/pump/test-browser.js
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/pump/test-node.js
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/pupa/index.d.ts
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/pupa/index.js
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/pupa/license
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/pupa/package.json
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/pupa/readme.md
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/qs/.editorconfig
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/qs/.eslintignore
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/qs/.eslintrc
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/qs/CHANGELOG.md
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/qs/LICENSE
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/qs/README.md
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/qs/dist/qs.js
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/qs/lib/formats.js
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/qs/lib/index.js
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/qs/lib/parse.js
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/qs/lib/stringify.js
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/qs/lib/utils.js
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/qs/package.json
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/qs/test/.eslintrc
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/qs/test/index.js
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/qs/test/parse.js
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/qs/test/stringify.js
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/qs/test/utils.js
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/random-bytes/HISTORY.md
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/random-bytes/LICENSE
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/random-bytes/README.md
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/random-bytes/index.js
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/random-bytes/package.json
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/range-parser/HISTORY.md
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/range-parser/LICENSE
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/range-parser/README.md
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/range-parser/index.js
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/range-parser/package.json
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/raw-body/HISTORY.md
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/raw-body/LICENSE
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/raw-body/README.md
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/raw-body/index.d.ts
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/raw-body/index.js
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/raw-body/package.json
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/rc/LICENSE.APACHE2
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/rc/LICENSE.BSD
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/rc/LICENSE.MIT
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/rc/README.md
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/rc/browser.js
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/rc/cli.js
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/rc/index.js
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/rc/lib/utils.js
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/rc/node_modules/ini/LICENSE
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/rc/node_modules/ini/README.md
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/rc/node_modules/ini/ini.js
0 → 100644
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
node_modules/rc/package.json
0 → 100644
This diff is collapsed. Click to expand it.
node_modules/rc/test/ini.js
0 → 100644
This diff is collapsed. Click to expand it.
-
Please register or login to post a comment