유병우

Update modules

Showing 1000 changed files with 2355 additions and 26 deletions

Too many changes to show.

To preserve performance only 1000 of 1000+ files are displayed.

...@@ -11,10 +11,10 @@ module.exports ={ ...@@ -11,10 +11,10 @@ module.exports ={
11 option.setName('레이드') 11 option.setName('레이드')
12 .setDescription('군단장 레이드 이름') 12 .setDescription('군단장 레이드 이름')
13 .setRequired(true) 13 .setRequired(true)
14 - .addChoices({ name: "발탄", value: "발탄"}) 14 + .addChoice("발탄", "발탄")
15 - .addChoices({ name: "비아키스", value: "비아키스"}) 15 + .addChoice("비아키스", "비아키스")
16 - .addChoices({ name: "쿠크세이튼", value: "쿠크세이튼"}) 16 + .addChoice("쿠크세이튼", "쿠크세이튼")
17 - .addChoices({ name: "아브렐슈드", value: "아브렐슈드"})), 17 + .addChoice("아브렐슈드", "아브렐슈드")),
18 async execute(interaction){ 18 async execute(interaction){
19 const rade_name = interaction.options.getString('레이드'); 19 const rade_name = interaction.options.getString('레이드');
20 20
......
...@@ -12,28 +12,28 @@ module.exports ={ ...@@ -12,28 +12,28 @@ module.exports ={
12 option.setName('클래스') 12 option.setName('클래스')
13 .setDescription('각인 정보를 알고싶은 직업') 13 .setDescription('각인 정보를 알고싶은 직업')
14 .setRequired(true) 14 .setRequired(true)
15 - .addChoices({ name: '디스트로이어', value: '디스트로이어'}) 15 + .addChoice('디스트로이어', '디스트로이어')
16 - .addChoices({ name: '버서커', value: '버서커'}) 16 + .addChoice('버서커', '버서커')
17 - .addChoices({ name: '워로드', value: '워로드'}) 17 + .addChoice('워로드', '워로드')
18 - .addChoices({ name: '홀리나이트', value: '홀리나이트'}) 18 + .addChoice('홀리나이트', '홀리나이트')
19 - .addChoices({ name: '기공사', value: '기공사'}) 19 + .addChoice('기공사', '기공사')
20 - .addChoices({ name: '배틀마스터', value: '배틀마스터'}) 20 + .addChoice('배틀마스터', '배틀마스터')
21 - .addChoices({ name: '스트라이커', value: '스트라이커'}) 21 + .addChoice('스트라이커', '스트라이커')
22 - .addChoices({ name: '인파이터', value: '인파이터'}) 22 + .addChoice('인파이터', '인파이터')
23 - .addChoices({ name: '창술사', value: '창술사'}) 23 + .addChoice('창술사', '창술사')
24 - .addChoices({ name: '건슬리어', value: '건슬리어'}) 24 + .addChoice('건슬리어', '건슬리어')
25 - .addChoices({ name: '데빌헌터', value: '데빌헌터'}) 25 + .addChoice('데빌헌터', '데빌헌터')
26 - .addChoices({ name: '블래스터', value: '블래스터'}) 26 + .addChoice('블래스터', '블래스터')
27 - .addChoices({ name: '스카우터', value: '스카우터'}) 27 + .addChoice('스카우터', '스카우터')
28 - .addChoices({ name: '호크아이', value: '호크아이'}) 28 + .addChoice('호크아이', '호크아이')
29 - .addChoices({ name: '바드', value: '바드'}) 29 + .addChoice('바드', '바드')
30 - .addChoices({ name: '서머너', value: '서머너'}) 30 + .addChoice('서머너', '서머너')
31 - .addChoices({ name: '소서리스', value: '소서리스'}) 31 + .addChoice('소서리스', '소서리스')
32 - .addChoices({ name: '아르카나', value: '아르카나'}) 32 + .addChoice('아르카나', '아르카나')
33 - .addChoices({ name: '데모닉', value: '데모닉'}) 33 + .addChoice('데모닉', '데모닉')
34 - .addChoices({ name: '리퍼', value: '리퍼'}) 34 + .addChoice('리퍼', '리퍼')
35 - .addChoices({ name: '블레이드', value: '블레이드'}) 35 + .addChoice('블레이드', '블레이드')
36 - .addChoices({ name: '도화가', value: '도화가'})), 36 + .addChoice('도화가', '도화가')),
37 async execute(interaction){ 37 async execute(interaction){
38 const class_name = interaction.options.getString('클래스'); 38 const class_name = interaction.options.getString('클래스');
39 39
......
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/../color-support/bin.js" "$@"
10 +else
11 + exec node "$basedir/../color-support/bin.js" "$@"
12 +fi
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%\..\color-support\bin.js" %*
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/../color-support/bin.js" $args
15 + } else {
16 + & "$basedir/node$exe" "$basedir/../color-support/bin.js" $args
17 + }
18 + $ret=$LASTEXITCODE
19 +} else {
20 + # Support pipeline input
21 + if ($MyInvocation.ExpectingInput) {
22 + $input | & "node$exe" "$basedir/../color-support/bin.js" $args
23 + } else {
24 + & "node$exe" "$basedir/../color-support/bin.js" $args
25 + }
26 + $ret=$LASTEXITCODE
27 +}
28 +exit $ret
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 +exec "$basedir/../@npmcli/installed-package-contents/index.js" "$@"
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 +"%dp0%\..\@npmcli\installed-package-contents\index.js" %*
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 +# Support pipeline input
11 +if ($MyInvocation.ExpectingInput) {
12 + $input | & "$basedir/../@npmcli/installed-package-contents/index.js" $args
13 +} else {
14 + & "$basedir/../@npmcli/installed-package-contents/index.js" $args
15 +}
16 +exit $LASTEXITCODE
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
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" %*
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
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/../js-yaml/bin/js-yaml.js" "$@"
10 +else
11 + exec node "$basedir/../js-yaml/bin/js-yaml.js" "$@"
12 +fi
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%\..\js-yaml\bin\js-yaml.js" %*
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/../js-yaml/bin/js-yaml.js" $args
15 + } else {
16 + & "$basedir/node$exe" "$basedir/../js-yaml/bin/js-yaml.js" $args
17 + }
18 + $ret=$LASTEXITCODE
19 +} else {
20 + # Support pipeline input
21 + if ($MyInvocation.ExpectingInput) {
22 + $input | & "node$exe" "$basedir/../js-yaml/bin/js-yaml.js" $args
23 + } else {
24 + & "node$exe" "$basedir/../js-yaml/bin/js-yaml.js" $args
25 + }
26 + $ret=$LASTEXITCODE
27 +}
28 +exit $ret
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/../json5/lib/cli.js" "$@"
10 +else
11 + exec node "$basedir/../json5/lib/cli.js" "$@"
12 +fi
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%\..\json5\lib\cli.js" %*
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/../json5/lib/cli.js" $args
15 + } else {
16 + & "$basedir/node$exe" "$basedir/../json5/lib/cli.js" $args
17 + }
18 + $ret=$LASTEXITCODE
19 +} else {
20 + # Support pipeline input
21 + if ($MyInvocation.ExpectingInput) {
22 + $input | & "node$exe" "$basedir/../json5/lib/cli.js" $args
23 + } else {
24 + & "node$exe" "$basedir/../json5/lib/cli.js" $args
25 + }
26 + $ret=$LASTEXITCODE
27 +}
28 +exit $ret
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/../mkdirp/bin/cmd.js" "$@"
10 +else
11 + exec node "$basedir/../mkdirp/bin/cmd.js" "$@"
12 +fi
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%\..\mkdirp\bin\cmd.js" %*
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/../mkdirp/bin/cmd.js" $args
15 + } else {
16 + & "$basedir/node$exe" "$basedir/../mkdirp/bin/cmd.js" $args
17 + }
18 + $ret=$LASTEXITCODE
19 +} else {
20 + # Support pipeline input
21 + if ($MyInvocation.ExpectingInput) {
22 + $input | & "node$exe" "$basedir/../mkdirp/bin/cmd.js" $args
23 + } else {
24 + & "node$exe" "$basedir/../mkdirp/bin/cmd.js" $args
25 + }
26 + $ret=$LASTEXITCODE
27 +}
28 +exit $ret
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/../npm-check-updates/build/src/bin/cli.js" "$@"
10 +else
11 + exec node "$basedir/../npm-check-updates/build/src/bin/cli.js" "$@"
12 +fi
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%\..\npm-check-updates\build\src\bin\cli.js" %*
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/../npm-check-updates/build/src/bin/cli.js" $args
15 + } else {
16 + & "$basedir/node$exe" "$basedir/../npm-check-updates/build/src/bin/cli.js" $args
17 + }
18 + $ret=$LASTEXITCODE
19 +} else {
20 + # Support pipeline input
21 + if ($MyInvocation.ExpectingInput) {
22 + $input | & "node$exe" "$basedir/../npm-check-updates/build/src/bin/cli.js" $args
23 + } else {
24 + & "node$exe" "$basedir/../npm-check-updates/build/src/bin/cli.js" $args
25 + }
26 + $ret=$LASTEXITCODE
27 +}
28 +exit $ret
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/../node-gyp/bin/node-gyp.js" "$@"
10 +else
11 + exec node "$basedir/../node-gyp/bin/node-gyp.js" "$@"
12 +fi
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%\..\node-gyp\bin\node-gyp.js" %*
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/../node-gyp/bin/node-gyp.js" $args
15 + } else {
16 + & "$basedir/node$exe" "$basedir/../node-gyp/bin/node-gyp.js" $args
17 + }
18 + $ret=$LASTEXITCODE
19 +} else {
20 + # Support pipeline input
21 + if ($MyInvocation.ExpectingInput) {
22 + $input | & "node$exe" "$basedir/../node-gyp/bin/node-gyp.js" $args
23 + } else {
24 + & "node$exe" "$basedir/../node-gyp/bin/node-gyp.js" $args
25 + }
26 + $ret=$LASTEXITCODE
27 +}
28 +exit $ret
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/../which/bin/node-which" "$@"
10 +else
11 + exec node "$basedir/../which/bin/node-which" "$@"
12 +fi
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%\..\which\bin\node-which" %*
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/../which/bin/node-which" $args
15 + } else {
16 + & "$basedir/node$exe" "$basedir/../which/bin/node-which" $args
17 + }
18 + $ret=$LASTEXITCODE
19 +} else {
20 + # Support pipeline input
21 + if ($MyInvocation.ExpectingInput) {
22 + $input | & "node$exe" "$basedir/../which/bin/node-which" $args
23 + } else {
24 + & "node$exe" "$basedir/../which/bin/node-which" $args
25 + }
26 + $ret=$LASTEXITCODE
27 +}
28 +exit $ret
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
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" %*
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
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/../npm-check-updates/build/src/bin/cli.js" "$@"
10 +else
11 + exec node "$basedir/../npm-check-updates/build/src/bin/cli.js" "$@"
12 +fi
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%\..\npm-check-updates\build\src\bin\cli.js" %*
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/../npm-check-updates/build/src/bin/cli.js" $args
15 + } else {
16 + & "$basedir/node$exe" "$basedir/../npm-check-updates/build/src/bin/cli.js" $args
17 + }
18 + $ret=$LASTEXITCODE
19 +} else {
20 + # Support pipeline input
21 + if ($MyInvocation.ExpectingInput) {
22 + $input | & "node$exe" "$basedir/../npm-check-updates/build/src/bin/cli.js" $args
23 + } else {
24 + & "node$exe" "$basedir/../npm-check-updates/build/src/bin/cli.js" $args
25 + }
26 + $ret=$LASTEXITCODE
27 +}
28 +exit $ret
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/../npm-packlist/bin/index.js" "$@"
10 +else
11 + exec node "$basedir/../npm-packlist/bin/index.js" "$@"
12 +fi
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%\..\npm-packlist\bin\index.js" %*
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/../npm-packlist/bin/index.js" $args
15 + } else {
16 + & "$basedir/node$exe" "$basedir/../npm-packlist/bin/index.js" $args
17 + }
18 + $ret=$LASTEXITCODE
19 +} else {
20 + # Support pipeline input
21 + if ($MyInvocation.ExpectingInput) {
22 + $input | & "node$exe" "$basedir/../npm-packlist/bin/index.js" $args
23 + } else {
24 + & "node$exe" "$basedir/../npm-packlist/bin/index.js" $args
25 + }
26 + $ret=$LASTEXITCODE
27 +}
28 +exit $ret
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/../pacote/lib/bin.js" "$@"
10 +else
11 + exec node "$basedir/../pacote/lib/bin.js" "$@"
12 +fi
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%\..\pacote\lib\bin.js" %*
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/../pacote/lib/bin.js" $args
15 + } else {
16 + & "$basedir/node$exe" "$basedir/../pacote/lib/bin.js" $args
17 + }
18 + $ret=$LASTEXITCODE
19 +} else {
20 + # Support pipeline input
21 + if ($MyInvocation.ExpectingInput) {
22 + $input | & "node$exe" "$basedir/../pacote/lib/bin.js" $args
23 + } else {
24 + & "node$exe" "$basedir/../pacote/lib/bin.js" $args
25 + }
26 + $ret=$LASTEXITCODE
27 +}
28 +exit $ret
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/../parse-github-url/cli.js" "$@"
10 +else
11 + exec node "$basedir/../parse-github-url/cli.js" "$@"
12 +fi
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%\..\parse-github-url\cli.js" %*
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/../parse-github-url/cli.js" $args
15 + } else {
16 + & "$basedir/node$exe" "$basedir/../parse-github-url/cli.js" $args
17 + }
18 + $ret=$LASTEXITCODE
19 +} else {
20 + # Support pipeline input
21 + if ($MyInvocation.ExpectingInput) {
22 + $input | & "node$exe" "$basedir/../parse-github-url/cli.js" $args
23 + } else {
24 + & "node$exe" "$basedir/../parse-github-url/cli.js" $args
25 + }
26 + $ret=$LASTEXITCODE
27 +}
28 +exit $ret
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
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" %*
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
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.js" "$@"
10 +else
11 + exec node "$basedir/../semver/bin/semver.js" "$@"
12 +fi
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.js" %*
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.js" $args
15 + } else {
16 + & "$basedir/node$exe" "$basedir/../semver/bin/semver.js" $args
17 + }
18 + $ret=$LASTEXITCODE
19 +} else {
20 + # Support pipeline input
21 + if ($MyInvocation.ExpectingInput) {
22 + $input | & "node$exe" "$basedir/../semver/bin/semver.js" $args
23 + } else {
24 + & "node$exe" "$basedir/../semver/bin/semver.js" $args
25 + }
26 + $ret=$LASTEXITCODE
27 +}
28 +exit $ret
This diff could not be displayed because it is too large.
1 +The MIT License (MIT)
2 +
3 +Copyright © 2020-2022 Michael Garvin
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.
10 +
1 +# @gar/promisify
2 +
3 +### Promisify an entire object or class instance
4 +
5 +This module leverages es6 Proxy and Reflect to promisify every function in an
6 +object or class instance.
7 +
8 +It assumes the callback that the function is expecting is the last
9 +parameter, and that it is an error-first callback with only one value,
10 +i.e. `(err, value) => ...`. This mirrors node's `util.promisify` method.
11 +
12 +In order that you can use it as a one-stop-shop for all your promisify
13 +needs, you can also pass it a function. That function will be
14 +promisified as normal using node's built-in `util.promisify` method.
15 +
16 +[node's custom promisified
17 +functions](https://nodejs.org/api/util.html#util_custom_promisified_functions)
18 +will also be mirrored, further allowing this to be a drop-in replacement
19 +for the built-in `util.promisify`.
20 +
21 +### Examples
22 +
23 +Promisify an entire object
24 +
25 +```javascript
26 +
27 +const promisify = require('@gar/promisify')
28 +
29 +class Foo {
30 + constructor (attr) {
31 + this.attr = attr
32 + }
33 +
34 + double (input, cb) {
35 + cb(null, input * 2)
36 + }
37 +
38 +const foo = new Foo('baz')
39 +const promisified = promisify(foo)
40 +
41 +console.log(promisified.attr)
42 +console.log(await promisified.double(1024))
43 +```
44 +
45 +Promisify a function
46 +
47 +```javascript
48 +
49 +const promisify = require('@gar/promisify')
50 +
51 +function foo (a, cb) {
52 + if (a !== 'bad') {
53 + return cb(null, 'ok')
54 + }
55 + return cb('not ok')
56 +}
57 +
58 +const promisified = promisify(foo)
59 +
60 +// This will resolve to 'ok'
61 +promisified('good')
62 +
63 +// this will reject
64 +promisified('bad')
65 +```
1 +'use strict'
2 +
3 +const { promisify } = require('util')
4 +
5 +const handler = {
6 + get: function (target, prop, receiver) {
7 + if (typeof target[prop] !== 'function') {
8 + return target[prop]
9 + }
10 + if (target[prop][promisify.custom]) {
11 + return function () {
12 + return Reflect.get(target, prop, receiver)[promisify.custom].apply(target, arguments)
13 + }
14 + }
15 + return function () {
16 + return new Promise((resolve, reject) => {
17 + Reflect.get(target, prop, receiver).apply(target, [...arguments, function (err, result) {
18 + if (err) {
19 + return reject(err)
20 + }
21 + resolve(result)
22 + }])
23 + })
24 + }
25 + }
26 +}
27 +
28 +module.exports = function (thingToPromisify) {
29 + if (typeof thingToPromisify === 'function') {
30 + return promisify(thingToPromisify)
31 + }
32 + if (typeof thingToPromisify === 'object') {
33 + return new Proxy(thingToPromisify, handler)
34 + }
35 + throw new TypeError('Can only promisify functions or objects')
36 +}
1 +{
2 + "name": "@gar/promisify",
3 + "version": "1.1.3",
4 + "description": "Promisify an entire class or object",
5 + "main": "index.js",
6 + "repository": {
7 + "type": "git",
8 + "url": "https://github.com/wraithgar/gar-promisify.git"
9 + },
10 + "scripts": {
11 + "lint": "standard",
12 + "lint:fix": "standard --fix",
13 + "test": "lab -a @hapi/code -t 100",
14 + "posttest": "npm run lint"
15 + },
16 + "files": [
17 + "index.js"
18 + ],
19 + "keywords": [
20 + "promisify",
21 + "all",
22 + "class",
23 + "object"
24 + ],
25 + "author": "Gar <gar+npm@danger.computer>",
26 + "license": "MIT",
27 + "devDependencies": {
28 + "@hapi/code": "^8.0.1",
29 + "@hapi/lab": "^24.1.0",
30 + "standard": "^16.0.3"
31 + }
32 +}
1 +The MIT License (MIT)
2 +
3 +Copyright (c) Denis Malinochkin
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.
1 +# @nodelib/fs.scandir
2 +
3 +> List files and directories inside the specified directory.
4 +
5 +## :bulb: Highlights
6 +
7 +The package is aimed at obtaining information about entries in the directory.
8 +
9 +* :moneybag: Returns useful information: `name`, `path`, `dirent` and `stats` (optional).
10 +* :gear: On Node.js 10.10+ uses the mechanism without additional calls to determine the entry type. See [`old` and `modern` mode](#old-and-modern-mode).
11 +* :link: Can safely work with broken symbolic links.
12 +
13 +## Install
14 +
15 +```console
16 +npm install @nodelib/fs.scandir
17 +```
18 +
19 +## Usage
20 +
21 +```ts
22 +import * as fsScandir from '@nodelib/fs.scandir';
23 +
24 +fsScandir.scandir('path', (error, stats) => { /* … */ });
25 +```
26 +
27 +## API
28 +
29 +### .scandir(path, [optionsOrSettings], callback)
30 +
31 +Returns an array of plain objects ([`Entry`](#entry)) with information about entry for provided path with standard callback-style.
32 +
33 +```ts
34 +fsScandir.scandir('path', (error, entries) => { /* … */ });
35 +fsScandir.scandir('path', {}, (error, entries) => { /* … */ });
36 +fsScandir.scandir('path', new fsScandir.Settings(), (error, entries) => { /* … */ });
37 +```
38 +
39 +### .scandirSync(path, [optionsOrSettings])
40 +
41 +Returns an array of plain objects ([`Entry`](#entry)) with information about entry for provided path.
42 +
43 +```ts
44 +const entries = fsScandir.scandirSync('path');
45 +const entries = fsScandir.scandirSync('path', {});
46 +const entries = fsScandir.scandirSync(('path', new fsScandir.Settings());
47 +```
48 +
49 +#### path
50 +
51 +* Required: `true`
52 +* Type: `string | Buffer | URL`
53 +
54 +A path to a file. If a URL is provided, it must use the `file:` protocol.
55 +
56 +#### optionsOrSettings
57 +
58 +* Required: `false`
59 +* Type: `Options | Settings`
60 +* Default: An instance of `Settings` class
61 +
62 +An [`Options`](#options) object or an instance of [`Settings`](#settingsoptions) class.
63 +
64 +> :book: When you pass a plain object, an instance of the `Settings` class will be created automatically. If you plan to call the method frequently, use a pre-created instance of the `Settings` class.
65 +
66 +### Settings([options])
67 +
68 +A class of full settings of the package.
69 +
70 +```ts
71 +const settings = new fsScandir.Settings({ followSymbolicLinks: false });
72 +
73 +const entries = fsScandir.scandirSync('path', settings);
74 +```
75 +
76 +## Entry
77 +
78 +* `name` — The name of the entry (`unknown.txt`).
79 +* `path` — The path of the entry relative to call directory (`root/unknown.txt`).
80 +* `dirent` — An instance of [`fs.Dirent`](./src/types/index.ts) class. On Node.js below 10.10 will be emulated by [`DirentFromStats`](./src/utils/fs.ts) class.
81 +* `stats` (optional) — An instance of `fs.Stats` class.
82 +
83 +For example, the `scandir` call for `tools` directory with one directory inside:
84 +
85 +```ts
86 +{
87 + dirent: Dirent { name: 'typedoc', /* … */ },
88 + name: 'typedoc',
89 + path: 'tools/typedoc'
90 +}
91 +```
92 +
93 +## Options
94 +
95 +### stats
96 +
97 +* Type: `boolean`
98 +* Default: `false`
99 +
100 +Adds an instance of `fs.Stats` class to the [`Entry`](#entry).
101 +
102 +> :book: Always use `fs.readdir` without the `withFileTypes` option. ??TODO??
103 +
104 +### followSymbolicLinks
105 +
106 +* Type: `boolean`
107 +* Default: `false`
108 +
109 +Follow symbolic links or not. Call `fs.stat` on symbolic link if `true`.
110 +
111 +### `throwErrorOnBrokenSymbolicLink`
112 +
113 +* Type: `boolean`
114 +* Default: `true`
115 +
116 +Throw an error when symbolic link is broken if `true` or safely use `lstat` call if `false`.
117 +
118 +### `pathSegmentSeparator`
119 +
120 +* Type: `string`
121 +* Default: `path.sep`
122 +
123 +By default, this package uses the correct path separator for your OS (`\` on Windows, `/` on Unix-like systems). But you can set this option to any separator character(s) that you want to use instead.
124 +
125 +### `fs`
126 +
127 +* Type: [`FileSystemAdapter`](./src/adapters/fs.ts)
128 +* Default: A default FS methods
129 +
130 +By default, the built-in Node.js module (`fs`) is used to work with the file system. You can replace any method with your own.
131 +
132 +```ts
133 +interface FileSystemAdapter {
134 + lstat?: typeof fs.lstat;
135 + stat?: typeof fs.stat;
136 + lstatSync?: typeof fs.lstatSync;
137 + statSync?: typeof fs.statSync;
138 + readdir?: typeof fs.readdir;
139 + readdirSync?: typeof fs.readdirSync;
140 +}
141 +
142 +const settings = new fsScandir.Settings({
143 + fs: { lstat: fakeLstat }
144 +});
145 +```
146 +
147 +## `old` and `modern` mode
148 +
149 +This package has two modes that are used depending on the environment and parameters of use.
150 +
151 +### old
152 +
153 +* Node.js below `10.10` or when the `stats` option is enabled
154 +
155 +When working in the old mode, the directory is read first (`fs.readdir`), then the type of entries is determined (`fs.lstat` and/or `fs.stat` for symbolic links).
156 +
157 +### modern
158 +
159 +* Node.js 10.10+ and the `stats` option is disabled
160 +
161 +In the modern mode, reading the directory (`fs.readdir` with the `withFileTypes` option) is combined with obtaining information about its entries. An additional call for symbolic links (`fs.stat`) is still present.
162 +
163 +This mode makes fewer calls to the file system. It's faster.
164 +
165 +## Changelog
166 +
167 +See the [Releases section of our GitHub project](https://github.com/nodelib/nodelib/releases) for changelog for each release version.
168 +
169 +## License
170 +
171 +This software is released under the terms of the MIT license.
1 +import type * as fsStat from '@nodelib/fs.stat';
2 +import type { Dirent, ErrnoException } from '../types';
3 +export interface ReaddirAsynchronousMethod {
4 + (filepath: string, options: {
5 + withFileTypes: true;
6 + }, callback: (error: ErrnoException | null, files: Dirent[]) => void): void;
7 + (filepath: string, callback: (error: ErrnoException | null, files: string[]) => void): void;
8 +}
9 +export interface ReaddirSynchronousMethod {
10 + (filepath: string, options: {
11 + withFileTypes: true;
12 + }): Dirent[];
13 + (filepath: string): string[];
14 +}
15 +export declare type FileSystemAdapter = fsStat.FileSystemAdapter & {
16 + readdir: ReaddirAsynchronousMethod;
17 + readdirSync: ReaddirSynchronousMethod;
18 +};
19 +export declare const FILE_SYSTEM_ADAPTER: FileSystemAdapter;
20 +export declare function createFileSystemAdapter(fsMethods?: Partial<FileSystemAdapter>): FileSystemAdapter;
1 +"use strict";
2 +Object.defineProperty(exports, "__esModule", { value: true });
3 +exports.createFileSystemAdapter = exports.FILE_SYSTEM_ADAPTER = void 0;
4 +const fs = require("fs");
5 +exports.FILE_SYSTEM_ADAPTER = {
6 + lstat: fs.lstat,
7 + stat: fs.stat,
8 + lstatSync: fs.lstatSync,
9 + statSync: fs.statSync,
10 + readdir: fs.readdir,
11 + readdirSync: fs.readdirSync
12 +};
13 +function createFileSystemAdapter(fsMethods) {
14 + if (fsMethods === undefined) {
15 + return exports.FILE_SYSTEM_ADAPTER;
16 + }
17 + return Object.assign(Object.assign({}, exports.FILE_SYSTEM_ADAPTER), fsMethods);
18 +}
19 +exports.createFileSystemAdapter = createFileSystemAdapter;
1 +/**
2 + * IS `true` for Node.js 10.10 and greater.
3 + */
4 +export declare const IS_SUPPORT_READDIR_WITH_FILE_TYPES: boolean;
1 +"use strict";
2 +Object.defineProperty(exports, "__esModule", { value: true });
3 +exports.IS_SUPPORT_READDIR_WITH_FILE_TYPES = void 0;
4 +const NODE_PROCESS_VERSION_PARTS = process.versions.node.split('.');
5 +if (NODE_PROCESS_VERSION_PARTS[0] === undefined || NODE_PROCESS_VERSION_PARTS[1] === undefined) {
6 + throw new Error(`Unexpected behavior. The 'process.versions.node' variable has invalid value: ${process.versions.node}`);
7 +}
8 +const MAJOR_VERSION = Number.parseInt(NODE_PROCESS_VERSION_PARTS[0], 10);
9 +const MINOR_VERSION = Number.parseInt(NODE_PROCESS_VERSION_PARTS[1], 10);
10 +const SUPPORTED_MAJOR_VERSION = 10;
11 +const SUPPORTED_MINOR_VERSION = 10;
12 +const IS_MATCHED_BY_MAJOR = MAJOR_VERSION > SUPPORTED_MAJOR_VERSION;
13 +const IS_MATCHED_BY_MAJOR_AND_MINOR = MAJOR_VERSION === SUPPORTED_MAJOR_VERSION && MINOR_VERSION >= SUPPORTED_MINOR_VERSION;
14 +/**
15 + * IS `true` for Node.js 10.10 and greater.
16 + */
17 +exports.IS_SUPPORT_READDIR_WITH_FILE_TYPES = IS_MATCHED_BY_MAJOR || IS_MATCHED_BY_MAJOR_AND_MINOR;
1 +import type { FileSystemAdapter, ReaddirAsynchronousMethod, ReaddirSynchronousMethod } from './adapters/fs';
2 +import * as async from './providers/async';
3 +import Settings, { Options } from './settings';
4 +import type { Dirent, Entry } from './types';
5 +declare type AsyncCallback = async.AsyncCallback;
6 +declare function scandir(path: string, callback: AsyncCallback): void;
7 +declare function scandir(path: string, optionsOrSettings: Options | Settings, callback: AsyncCallback): void;
8 +declare namespace scandir {
9 + function __promisify__(path: string, optionsOrSettings?: Options | Settings): Promise<Entry[]>;
10 +}
11 +declare function scandirSync(path: string, optionsOrSettings?: Options | Settings): Entry[];
12 +export { scandir, scandirSync, Settings, AsyncCallback, Dirent, Entry, FileSystemAdapter, ReaddirAsynchronousMethod, ReaddirSynchronousMethod, Options };
1 +"use strict";
2 +Object.defineProperty(exports, "__esModule", { value: true });
3 +exports.Settings = exports.scandirSync = exports.scandir = void 0;
4 +const async = require("./providers/async");
5 +const sync = require("./providers/sync");
6 +const settings_1 = require("./settings");
7 +exports.Settings = settings_1.default;
8 +function scandir(path, optionsOrSettingsOrCallback, callback) {
9 + if (typeof optionsOrSettingsOrCallback === 'function') {
10 + async.read(path, getSettings(), optionsOrSettingsOrCallback);
11 + return;
12 + }
13 + async.read(path, getSettings(optionsOrSettingsOrCallback), callback);
14 +}
15 +exports.scandir = scandir;
16 +function scandirSync(path, optionsOrSettings) {
17 + const settings = getSettings(optionsOrSettings);
18 + return sync.read(path, settings);
19 +}
20 +exports.scandirSync = scandirSync;
21 +function getSettings(settingsOrOptions = {}) {
22 + if (settingsOrOptions instanceof settings_1.default) {
23 + return settingsOrOptions;
24 + }
25 + return new settings_1.default(settingsOrOptions);
26 +}
1 +/// <reference types="node" />
2 +import type Settings from '../settings';
3 +import type { Entry } from '../types';
4 +export declare type AsyncCallback = (error: NodeJS.ErrnoException, entries: Entry[]) => void;
5 +export declare function read(directory: string, settings: Settings, callback: AsyncCallback): void;
6 +export declare function readdirWithFileTypes(directory: string, settings: Settings, callback: AsyncCallback): void;
7 +export declare function readdir(directory: string, settings: Settings, callback: AsyncCallback): void;
1 +"use strict";
2 +Object.defineProperty(exports, "__esModule", { value: true });
3 +exports.readdir = exports.readdirWithFileTypes = exports.read = void 0;
4 +const fsStat = require("@nodelib/fs.stat");
5 +const rpl = require("run-parallel");
6 +const constants_1 = require("../constants");
7 +const utils = require("../utils");
8 +const common = require("./common");
9 +function read(directory, settings, callback) {
10 + if (!settings.stats && constants_1.IS_SUPPORT_READDIR_WITH_FILE_TYPES) {
11 + readdirWithFileTypes(directory, settings, callback);
12 + return;
13 + }
14 + readdir(directory, settings, callback);
15 +}
16 +exports.read = read;
17 +function readdirWithFileTypes(directory, settings, callback) {
18 + settings.fs.readdir(directory, { withFileTypes: true }, (readdirError, dirents) => {
19 + if (readdirError !== null) {
20 + callFailureCallback(callback, readdirError);
21 + return;
22 + }
23 + const entries = dirents.map((dirent) => ({
24 + dirent,
25 + name: dirent.name,
26 + path: common.joinPathSegments(directory, dirent.name, settings.pathSegmentSeparator)
27 + }));
28 + if (!settings.followSymbolicLinks) {
29 + callSuccessCallback(callback, entries);
30 + return;
31 + }
32 + const tasks = entries.map((entry) => makeRplTaskEntry(entry, settings));
33 + rpl(tasks, (rplError, rplEntries) => {
34 + if (rplError !== null) {
35 + callFailureCallback(callback, rplError);
36 + return;
37 + }
38 + callSuccessCallback(callback, rplEntries);
39 + });
40 + });
41 +}
42 +exports.readdirWithFileTypes = readdirWithFileTypes;
43 +function makeRplTaskEntry(entry, settings) {
44 + return (done) => {
45 + if (!entry.dirent.isSymbolicLink()) {
46 + done(null, entry);
47 + return;
48 + }
49 + settings.fs.stat(entry.path, (statError, stats) => {
50 + if (statError !== null) {
51 + if (settings.throwErrorOnBrokenSymbolicLink) {
52 + done(statError);
53 + return;
54 + }
55 + done(null, entry);
56 + return;
57 + }
58 + entry.dirent = utils.fs.createDirentFromStats(entry.name, stats);
59 + done(null, entry);
60 + });
61 + };
62 +}
63 +function readdir(directory, settings, callback) {
64 + settings.fs.readdir(directory, (readdirError, names) => {
65 + if (readdirError !== null) {
66 + callFailureCallback(callback, readdirError);
67 + return;
68 + }
69 + const tasks = names.map((name) => {
70 + const path = common.joinPathSegments(directory, name, settings.pathSegmentSeparator);
71 + return (done) => {
72 + fsStat.stat(path, settings.fsStatSettings, (error, stats) => {
73 + if (error !== null) {
74 + done(error);
75 + return;
76 + }
77 + const entry = {
78 + name,
79 + path,
80 + dirent: utils.fs.createDirentFromStats(name, stats)
81 + };
82 + if (settings.stats) {
83 + entry.stats = stats;
84 + }
85 + done(null, entry);
86 + });
87 + };
88 + });
89 + rpl(tasks, (rplError, entries) => {
90 + if (rplError !== null) {
91 + callFailureCallback(callback, rplError);
92 + return;
93 + }
94 + callSuccessCallback(callback, entries);
95 + });
96 + });
97 +}
98 +exports.readdir = readdir;
99 +function callFailureCallback(callback, error) {
100 + callback(error);
101 +}
102 +function callSuccessCallback(callback, result) {
103 + callback(null, result);
104 +}
1 +export declare function joinPathSegments(a: string, b: string, separator: string): string;
1 +"use strict";
2 +Object.defineProperty(exports, "__esModule", { value: true });
3 +exports.joinPathSegments = void 0;
4 +function joinPathSegments(a, b, separator) {
5 + /**
6 + * The correct handling of cases when the first segment is a root (`/`, `C:/`) or UNC path (`//?/C:/`).
7 + */
8 + if (a.endsWith(separator)) {
9 + return a + b;
10 + }
11 + return a + separator + b;
12 +}
13 +exports.joinPathSegments = joinPathSegments;
1 +import type Settings from '../settings';
2 +import type { Entry } from '../types';
3 +export declare function read(directory: string, settings: Settings): Entry[];
4 +export declare function readdirWithFileTypes(directory: string, settings: Settings): Entry[];
5 +export declare function readdir(directory: string, settings: Settings): Entry[];
1 +"use strict";
2 +Object.defineProperty(exports, "__esModule", { value: true });
3 +exports.readdir = exports.readdirWithFileTypes = exports.read = void 0;
4 +const fsStat = require("@nodelib/fs.stat");
5 +const constants_1 = require("../constants");
6 +const utils = require("../utils");
7 +const common = require("./common");
8 +function read(directory, settings) {
9 + if (!settings.stats && constants_1.IS_SUPPORT_READDIR_WITH_FILE_TYPES) {
10 + return readdirWithFileTypes(directory, settings);
11 + }
12 + return readdir(directory, settings);
13 +}
14 +exports.read = read;
15 +function readdirWithFileTypes(directory, settings) {
16 + const dirents = settings.fs.readdirSync(directory, { withFileTypes: true });
17 + return dirents.map((dirent) => {
18 + const entry = {
19 + dirent,
20 + name: dirent.name,
21 + path: common.joinPathSegments(directory, dirent.name, settings.pathSegmentSeparator)
22 + };
23 + if (entry.dirent.isSymbolicLink() && settings.followSymbolicLinks) {
24 + try {
25 + const stats = settings.fs.statSync(entry.path);
26 + entry.dirent = utils.fs.createDirentFromStats(entry.name, stats);
27 + }
28 + catch (error) {
29 + if (settings.throwErrorOnBrokenSymbolicLink) {
30 + throw error;
31 + }
32 + }
33 + }
34 + return entry;
35 + });
36 +}
37 +exports.readdirWithFileTypes = readdirWithFileTypes;
38 +function readdir(directory, settings) {
39 + const names = settings.fs.readdirSync(directory);
40 + return names.map((name) => {
41 + const entryPath = common.joinPathSegments(directory, name, settings.pathSegmentSeparator);
42 + const stats = fsStat.statSync(entryPath, settings.fsStatSettings);
43 + const entry = {
44 + name,
45 + path: entryPath,
46 + dirent: utils.fs.createDirentFromStats(name, stats)
47 + };
48 + if (settings.stats) {
49 + entry.stats = stats;
50 + }
51 + return entry;
52 + });
53 +}
54 +exports.readdir = readdir;
1 +import * as fsStat from '@nodelib/fs.stat';
2 +import * as fs from './adapters/fs';
3 +export interface Options {
4 + followSymbolicLinks?: boolean;
5 + fs?: Partial<fs.FileSystemAdapter>;
6 + pathSegmentSeparator?: string;
7 + stats?: boolean;
8 + throwErrorOnBrokenSymbolicLink?: boolean;
9 +}
10 +export default class Settings {
11 + private readonly _options;
12 + readonly followSymbolicLinks: boolean;
13 + readonly fs: fs.FileSystemAdapter;
14 + readonly pathSegmentSeparator: string;
15 + readonly stats: boolean;
16 + readonly throwErrorOnBrokenSymbolicLink: boolean;
17 + readonly fsStatSettings: fsStat.Settings;
18 + constructor(_options?: Options);
19 + private _getValue;
20 +}
1 +"use strict";
2 +Object.defineProperty(exports, "__esModule", { value: true });
3 +const path = require("path");
4 +const fsStat = require("@nodelib/fs.stat");
5 +const fs = require("./adapters/fs");
6 +class Settings {
7 + constructor(_options = {}) {
8 + this._options = _options;
9 + this.followSymbolicLinks = this._getValue(this._options.followSymbolicLinks, false);
10 + this.fs = fs.createFileSystemAdapter(this._options.fs);
11 + this.pathSegmentSeparator = this._getValue(this._options.pathSegmentSeparator, path.sep);
12 + this.stats = this._getValue(this._options.stats, false);
13 + this.throwErrorOnBrokenSymbolicLink = this._getValue(this._options.throwErrorOnBrokenSymbolicLink, true);
14 + this.fsStatSettings = new fsStat.Settings({
15 + followSymbolicLink: this.followSymbolicLinks,
16 + fs: this.fs,
17 + throwErrorOnBrokenSymbolicLink: this.throwErrorOnBrokenSymbolicLink
18 + });
19 + }
20 + _getValue(option, value) {
21 + return option !== null && option !== void 0 ? option : value;
22 + }
23 +}
24 +exports.default = Settings;
1 +/// <reference types="node" />
2 +import type * as fs from 'fs';
3 +export interface Entry {
4 + dirent: Dirent;
5 + name: string;
6 + path: string;
7 + stats?: Stats;
8 +}
9 +export declare type Stats = fs.Stats;
10 +export declare type ErrnoException = NodeJS.ErrnoException;
11 +export interface Dirent {
12 + isBlockDevice: () => boolean;
13 + isCharacterDevice: () => boolean;
14 + isDirectory: () => boolean;
15 + isFIFO: () => boolean;
16 + isFile: () => boolean;
17 + isSocket: () => boolean;
18 + isSymbolicLink: () => boolean;
19 + name: string;
20 +}
1 +"use strict";
2 +Object.defineProperty(exports, "__esModule", { value: true });
1 +import type { Dirent, Stats } from '../types';
2 +export declare function createDirentFromStats(name: string, stats: Stats): Dirent;
1 +"use strict";
2 +Object.defineProperty(exports, "__esModule", { value: true });
3 +exports.createDirentFromStats = void 0;
4 +class DirentFromStats {
5 + constructor(name, stats) {
6 + this.name = name;
7 + this.isBlockDevice = stats.isBlockDevice.bind(stats);
8 + this.isCharacterDevice = stats.isCharacterDevice.bind(stats);
9 + this.isDirectory = stats.isDirectory.bind(stats);
10 + this.isFIFO = stats.isFIFO.bind(stats);
11 + this.isFile = stats.isFile.bind(stats);
12 + this.isSocket = stats.isSocket.bind(stats);
13 + this.isSymbolicLink = stats.isSymbolicLink.bind(stats);
14 + }
15 +}
16 +function createDirentFromStats(name, stats) {
17 + return new DirentFromStats(name, stats);
18 +}
19 +exports.createDirentFromStats = createDirentFromStats;
1 +import * as fs from './fs';
2 +export { fs };
1 +"use strict";
2 +Object.defineProperty(exports, "__esModule", { value: true });
3 +exports.fs = void 0;
4 +const fs = require("./fs");
5 +exports.fs = fs;
1 +{
2 + "name": "@nodelib/fs.scandir",
3 + "version": "2.1.5",
4 + "description": "List files and directories inside the specified directory",
5 + "license": "MIT",
6 + "repository": "https://github.com/nodelib/nodelib/tree/master/packages/fs/fs.scandir",
7 + "keywords": [
8 + "NodeLib",
9 + "fs",
10 + "FileSystem",
11 + "file system",
12 + "scandir",
13 + "readdir",
14 + "dirent"
15 + ],
16 + "engines": {
17 + "node": ">= 8"
18 + },
19 + "files": [
20 + "out/**",
21 + "!out/**/*.map",
22 + "!out/**/*.spec.*"
23 + ],
24 + "main": "out/index.js",
25 + "typings": "out/index.d.ts",
26 + "scripts": {
27 + "clean": "rimraf {tsconfig.tsbuildinfo,out}",
28 + "lint": "eslint \"src/**/*.ts\" --cache",
29 + "compile": "tsc -b .",
30 + "compile:watch": "tsc -p . --watch --sourceMap",
31 + "test": "mocha \"out/**/*.spec.js\" -s 0",
32 + "build": "npm run clean && npm run compile && npm run lint && npm test",
33 + "watch": "npm run clean && npm run compile:watch"
34 + },
35 + "dependencies": {
36 + "@nodelib/fs.stat": "2.0.5",
37 + "run-parallel": "^1.1.9"
38 + },
39 + "devDependencies": {
40 + "@nodelib/fs.macchiato": "1.0.4",
41 + "@types/run-parallel": "^1.1.0"
42 + },
43 + "gitHead": "d6a7960d5281d3dd5f8e2efba49bb552d090f562"
44 +}
1 +The MIT License (MIT)
2 +
3 +Copyright (c) Denis Malinochkin
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.
1 +# @nodelib/fs.stat
2 +
3 +> Get the status of a file with some features.
4 +
5 +## :bulb: Highlights
6 +
7 +Wrapper around standard method `fs.lstat` and `fs.stat` with some features.
8 +
9 +* :beginner: Normally follows symbolic link.
10 +* :gear: Can safely work with broken symbolic link.
11 +
12 +## Install
13 +
14 +```console
15 +npm install @nodelib/fs.stat
16 +```
17 +
18 +## Usage
19 +
20 +```ts
21 +import * as fsStat from '@nodelib/fs.stat';
22 +
23 +fsStat.stat('path', (error, stats) => { /* … */ });
24 +```
25 +
26 +## API
27 +
28 +### .stat(path, [optionsOrSettings], callback)
29 +
30 +Returns an instance of `fs.Stats` class for provided path with standard callback-style.
31 +
32 +```ts
33 +fsStat.stat('path', (error, stats) => { /* … */ });
34 +fsStat.stat('path', {}, (error, stats) => { /* … */ });
35 +fsStat.stat('path', new fsStat.Settings(), (error, stats) => { /* … */ });
36 +```
37 +
38 +### .statSync(path, [optionsOrSettings])
39 +
40 +Returns an instance of `fs.Stats` class for provided path.
41 +
42 +```ts
43 +const stats = fsStat.stat('path');
44 +const stats = fsStat.stat('path', {});
45 +const stats = fsStat.stat('path', new fsStat.Settings());
46 +```
47 +
48 +#### path
49 +
50 +* Required: `true`
51 +* Type: `string | Buffer | URL`
52 +
53 +A path to a file. If a URL is provided, it must use the `file:` protocol.
54 +
55 +#### optionsOrSettings
56 +
57 +* Required: `false`
58 +* Type: `Options | Settings`
59 +* Default: An instance of `Settings` class
60 +
61 +An [`Options`](#options) object or an instance of [`Settings`](#settings) class.
62 +
63 +> :book: When you pass a plain object, an instance of the `Settings` class will be created automatically. If you plan to call the method frequently, use a pre-created instance of the `Settings` class.
64 +
65 +### Settings([options])
66 +
67 +A class of full settings of the package.
68 +
69 +```ts
70 +const settings = new fsStat.Settings({ followSymbolicLink: false });
71 +
72 +const stats = fsStat.stat('path', settings);
73 +```
74 +
75 +## Options
76 +
77 +### `followSymbolicLink`
78 +
79 +* Type: `boolean`
80 +* Default: `true`
81 +
82 +Follow symbolic link or not. Call `fs.stat` on symbolic link if `true`.
83 +
84 +### `markSymbolicLink`
85 +
86 +* Type: `boolean`
87 +* Default: `false`
88 +
89 +Mark symbolic link by setting the return value of `isSymbolicLink` function to always `true` (even after `fs.stat`).
90 +
91 +> :book: Can be used if you want to know what is hidden behind a symbolic link, but still continue to know that it is a symbolic link.
92 +
93 +### `throwErrorOnBrokenSymbolicLink`
94 +
95 +* Type: `boolean`
96 +* Default: `true`
97 +
98 +Throw an error when symbolic link is broken if `true` or safely return `lstat` call if `false`.
99 +
100 +### `fs`
101 +
102 +* Type: [`FileSystemAdapter`](./src/adapters/fs.ts)
103 +* Default: A default FS methods
104 +
105 +By default, the built-in Node.js module (`fs`) is used to work with the file system. You can replace any method with your own.
106 +
107 +```ts
108 +interface FileSystemAdapter {
109 + lstat?: typeof fs.lstat;
110 + stat?: typeof fs.stat;
111 + lstatSync?: typeof fs.lstatSync;
112 + statSync?: typeof fs.statSync;
113 +}
114 +
115 +const settings = new fsStat.Settings({
116 + fs: { lstat: fakeLstat }
117 +});
118 +```
119 +
120 +## Changelog
121 +
122 +See the [Releases section of our GitHub project](https://github.com/nodelib/nodelib/releases) for changelog for each release version.
123 +
124 +## License
125 +
126 +This software is released under the terms of the MIT license.
1 +/// <reference types="node" />
2 +import * as fs from 'fs';
3 +import type { ErrnoException } from '../types';
4 +export declare type StatAsynchronousMethod = (path: string, callback: (error: ErrnoException | null, stats: fs.Stats) => void) => void;
5 +export declare type StatSynchronousMethod = (path: string) => fs.Stats;
6 +export interface FileSystemAdapter {
7 + lstat: StatAsynchronousMethod;
8 + stat: StatAsynchronousMethod;
9 + lstatSync: StatSynchronousMethod;
10 + statSync: StatSynchronousMethod;
11 +}
12 +export declare const FILE_SYSTEM_ADAPTER: FileSystemAdapter;
13 +export declare function createFileSystemAdapter(fsMethods?: Partial<FileSystemAdapter>): FileSystemAdapter;
1 +"use strict";
2 +Object.defineProperty(exports, "__esModule", { value: true });
3 +exports.createFileSystemAdapter = exports.FILE_SYSTEM_ADAPTER = void 0;
4 +const fs = require("fs");
5 +exports.FILE_SYSTEM_ADAPTER = {
6 + lstat: fs.lstat,
7 + stat: fs.stat,
8 + lstatSync: fs.lstatSync,
9 + statSync: fs.statSync
10 +};
11 +function createFileSystemAdapter(fsMethods) {
12 + if (fsMethods === undefined) {
13 + return exports.FILE_SYSTEM_ADAPTER;
14 + }
15 + return Object.assign(Object.assign({}, exports.FILE_SYSTEM_ADAPTER), fsMethods);
16 +}
17 +exports.createFileSystemAdapter = createFileSystemAdapter;
1 +import type { FileSystemAdapter, StatAsynchronousMethod, StatSynchronousMethod } from './adapters/fs';
2 +import * as async from './providers/async';
3 +import Settings, { Options } from './settings';
4 +import type { Stats } from './types';
5 +declare type AsyncCallback = async.AsyncCallback;
6 +declare function stat(path: string, callback: AsyncCallback): void;
7 +declare function stat(path: string, optionsOrSettings: Options | Settings, callback: AsyncCallback): void;
8 +declare namespace stat {
9 + function __promisify__(path: string, optionsOrSettings?: Options | Settings): Promise<Stats>;
10 +}
11 +declare function statSync(path: string, optionsOrSettings?: Options | Settings): Stats;
12 +export { Settings, stat, statSync, AsyncCallback, FileSystemAdapter, StatAsynchronousMethod, StatSynchronousMethod, Options, Stats };
1 +"use strict";
2 +Object.defineProperty(exports, "__esModule", { value: true });
3 +exports.statSync = exports.stat = exports.Settings = void 0;
4 +const async = require("./providers/async");
5 +const sync = require("./providers/sync");
6 +const settings_1 = require("./settings");
7 +exports.Settings = settings_1.default;
8 +function stat(path, optionsOrSettingsOrCallback, callback) {
9 + if (typeof optionsOrSettingsOrCallback === 'function') {
10 + async.read(path, getSettings(), optionsOrSettingsOrCallback);
11 + return;
12 + }
13 + async.read(path, getSettings(optionsOrSettingsOrCallback), callback);
14 +}
15 +exports.stat = stat;
16 +function statSync(path, optionsOrSettings) {
17 + const settings = getSettings(optionsOrSettings);
18 + return sync.read(path, settings);
19 +}
20 +exports.statSync = statSync;
21 +function getSettings(settingsOrOptions = {}) {
22 + if (settingsOrOptions instanceof settings_1.default) {
23 + return settingsOrOptions;
24 + }
25 + return new settings_1.default(settingsOrOptions);
26 +}
1 +import type Settings from '../settings';
2 +import type { ErrnoException, Stats } from '../types';
3 +export declare type AsyncCallback = (error: ErrnoException, stats: Stats) => void;
4 +export declare function read(path: string, settings: Settings, callback: AsyncCallback): void;
1 +"use strict";
2 +Object.defineProperty(exports, "__esModule", { value: true });
3 +exports.read = void 0;
4 +function read(path, settings, callback) {
5 + settings.fs.lstat(path, (lstatError, lstat) => {
6 + if (lstatError !== null) {
7 + callFailureCallback(callback, lstatError);
8 + return;
9 + }
10 + if (!lstat.isSymbolicLink() || !settings.followSymbolicLink) {
11 + callSuccessCallback(callback, lstat);
12 + return;
13 + }
14 + settings.fs.stat(path, (statError, stat) => {
15 + if (statError !== null) {
16 + if (settings.throwErrorOnBrokenSymbolicLink) {
17 + callFailureCallback(callback, statError);
18 + return;
19 + }
20 + callSuccessCallback(callback, lstat);
21 + return;
22 + }
23 + if (settings.markSymbolicLink) {
24 + stat.isSymbolicLink = () => true;
25 + }
26 + callSuccessCallback(callback, stat);
27 + });
28 + });
29 +}
30 +exports.read = read;
31 +function callFailureCallback(callback, error) {
32 + callback(error);
33 +}
34 +function callSuccessCallback(callback, result) {
35 + callback(null, result);
36 +}
1 +import type Settings from '../settings';
2 +import type { Stats } from '../types';
3 +export declare function read(path: string, settings: Settings): Stats;
1 +"use strict";
2 +Object.defineProperty(exports, "__esModule", { value: true });
3 +exports.read = void 0;
4 +function read(path, settings) {
5 + const lstat = settings.fs.lstatSync(path);
6 + if (!lstat.isSymbolicLink() || !settings.followSymbolicLink) {
7 + return lstat;
8 + }
9 + try {
10 + const stat = settings.fs.statSync(path);
11 + if (settings.markSymbolicLink) {
12 + stat.isSymbolicLink = () => true;
13 + }
14 + return stat;
15 + }
16 + catch (error) {
17 + if (!settings.throwErrorOnBrokenSymbolicLink) {
18 + return lstat;
19 + }
20 + throw error;
21 + }
22 +}
23 +exports.read = read;
1 +import * as fs from './adapters/fs';
2 +export interface Options {
3 + followSymbolicLink?: boolean;
4 + fs?: Partial<fs.FileSystemAdapter>;
5 + markSymbolicLink?: boolean;
6 + throwErrorOnBrokenSymbolicLink?: boolean;
7 +}
8 +export default class Settings {
9 + private readonly _options;
10 + readonly followSymbolicLink: boolean;
11 + readonly fs: fs.FileSystemAdapter;
12 + readonly markSymbolicLink: boolean;
13 + readonly throwErrorOnBrokenSymbolicLink: boolean;
14 + constructor(_options?: Options);
15 + private _getValue;
16 +}
1 +"use strict";
2 +Object.defineProperty(exports, "__esModule", { value: true });
3 +const fs = require("./adapters/fs");
4 +class Settings {
5 + constructor(_options = {}) {
6 + this._options = _options;
7 + this.followSymbolicLink = this._getValue(this._options.followSymbolicLink, true);
8 + this.fs = fs.createFileSystemAdapter(this._options.fs);
9 + this.markSymbolicLink = this._getValue(this._options.markSymbolicLink, false);
10 + this.throwErrorOnBrokenSymbolicLink = this._getValue(this._options.throwErrorOnBrokenSymbolicLink, true);
11 + }
12 + _getValue(option, value) {
13 + return option !== null && option !== void 0 ? option : value;
14 + }
15 +}
16 +exports.default = Settings;
1 +/// <reference types="node" />
2 +import type * as fs from 'fs';
3 +export declare type Stats = fs.Stats;
4 +export declare type ErrnoException = NodeJS.ErrnoException;
1 +"use strict";
2 +Object.defineProperty(exports, "__esModule", { value: true });
1 +{
2 + "name": "@nodelib/fs.stat",
3 + "version": "2.0.5",
4 + "description": "Get the status of a file with some features",
5 + "license": "MIT",
6 + "repository": "https://github.com/nodelib/nodelib/tree/master/packages/fs/fs.stat",
7 + "keywords": [
8 + "NodeLib",
9 + "fs",
10 + "FileSystem",
11 + "file system",
12 + "stat"
13 + ],
14 + "engines": {
15 + "node": ">= 8"
16 + },
17 + "files": [
18 + "out/**",
19 + "!out/**/*.map",
20 + "!out/**/*.spec.*"
21 + ],
22 + "main": "out/index.js",
23 + "typings": "out/index.d.ts",
24 + "scripts": {
25 + "clean": "rimraf {tsconfig.tsbuildinfo,out}",
26 + "lint": "eslint \"src/**/*.ts\" --cache",
27 + "compile": "tsc -b .",
28 + "compile:watch": "tsc -p . --watch --sourceMap",
29 + "test": "mocha \"out/**/*.spec.js\" -s 0",
30 + "build": "npm run clean && npm run compile && npm run lint && npm test",
31 + "watch": "npm run clean && npm run compile:watch"
32 + },
33 + "devDependencies": {
34 + "@nodelib/fs.macchiato": "1.0.4"
35 + },
36 + "gitHead": "d6a7960d5281d3dd5f8e2efba49bb552d090f562"
37 +}
1 +The MIT License (MIT)
2 +
3 +Copyright (c) Denis Malinochkin
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.
1 +# @nodelib/fs.walk
2 +
3 +> A library for efficiently walking a directory recursively.
4 +
5 +## :bulb: Highlights
6 +
7 +* :moneybag: Returns useful information: `name`, `path`, `dirent` and `stats` (optional).
8 +* :rocket: On Node.js 10.10+ uses the mechanism without additional calls to determine the entry type for performance reasons. See [`old` and `modern` mode](https://github.com/nodelib/nodelib/blob/master/packages/fs/fs.scandir/README.md#old-and-modern-mode).
9 +* :gear: Built-in directories/files and error filtering system.
10 +* :link: Can safely work with broken symbolic links.
11 +
12 +## Install
13 +
14 +```console
15 +npm install @nodelib/fs.walk
16 +```
17 +
18 +## Usage
19 +
20 +```ts
21 +import * as fsWalk from '@nodelib/fs.walk';
22 +
23 +fsWalk.walk('path', (error, entries) => { /* … */ });
24 +```
25 +
26 +## API
27 +
28 +### .walk(path, [optionsOrSettings], callback)
29 +
30 +Reads the directory recursively and asynchronously. Requires a callback function.
31 +
32 +> :book: If you want to use the Promise API, use `util.promisify`.
33 +
34 +```ts
35 +fsWalk.walk('path', (error, entries) => { /* … */ });
36 +fsWalk.walk('path', {}, (error, entries) => { /* … */ });
37 +fsWalk.walk('path', new fsWalk.Settings(), (error, entries) => { /* … */ });
38 +```
39 +
40 +### .walkStream(path, [optionsOrSettings])
41 +
42 +Reads the directory recursively and asynchronously. [Readable Stream](https://nodejs.org/dist/latest-v12.x/docs/api/stream.html#stream_readable_streams) is used as a provider.
43 +
44 +```ts
45 +const stream = fsWalk.walkStream('path');
46 +const stream = fsWalk.walkStream('path', {});
47 +const stream = fsWalk.walkStream('path', new fsWalk.Settings());
48 +```
49 +
50 +### .walkSync(path, [optionsOrSettings])
51 +
52 +Reads the directory recursively and synchronously. Returns an array of entries.
53 +
54 +```ts
55 +const entries = fsWalk.walkSync('path');
56 +const entries = fsWalk.walkSync('path', {});
57 +const entries = fsWalk.walkSync('path', new fsWalk.Settings());
58 +```
59 +
60 +#### path
61 +
62 +* Required: `true`
63 +* Type: `string | Buffer | URL`
64 +
65 +A path to a file. If a URL is provided, it must use the `file:` protocol.
66 +
67 +#### optionsOrSettings
68 +
69 +* Required: `false`
70 +* Type: `Options | Settings`
71 +* Default: An instance of `Settings` class
72 +
73 +An [`Options`](#options) object or an instance of [`Settings`](#settings) class.
74 +
75 +> :book: When you pass a plain object, an instance of the `Settings` class will be created automatically. If you plan to call the method frequently, use a pre-created instance of the `Settings` class.
76 +
77 +### Settings([options])
78 +
79 +A class of full settings of the package.
80 +
81 +```ts
82 +const settings = new fsWalk.Settings({ followSymbolicLinks: true });
83 +
84 +const entries = fsWalk.walkSync('path', settings);
85 +```
86 +
87 +## Entry
88 +
89 +* `name` — The name of the entry (`unknown.txt`).
90 +* `path` — The path of the entry relative to call directory (`root/unknown.txt`).
91 +* `dirent` — An instance of [`fs.Dirent`](./src/types/index.ts) class.
92 +* [`stats`] — An instance of `fs.Stats` class.
93 +
94 +## Options
95 +
96 +### basePath
97 +
98 +* Type: `string`
99 +* Default: `undefined`
100 +
101 +By default, all paths are built relative to the root path. You can use this option to set custom root path.
102 +
103 +In the example below we read the files from the `root` directory, but in the results the root path will be `custom`.
104 +
105 +```ts
106 +fsWalk.walkSync('root'); // → ['root/file.txt']
107 +fsWalk.walkSync('root', { basePath: 'custom' }); // → ['custom/file.txt']
108 +```
109 +
110 +### concurrency
111 +
112 +* Type: `number`
113 +* Default: `Infinity`
114 +
115 +The maximum number of concurrent calls to `fs.readdir`.
116 +
117 +> :book: The higher the number, the higher performance and the load on the File System. If you want to read in quiet mode, set the value to `4 * os.cpus().length` (4 is default size of [thread pool work scheduling](http://docs.libuv.org/en/v1.x/threadpool.html#thread-pool-work-scheduling)).
118 +
119 +### deepFilter
120 +
121 +* Type: [`DeepFilterFunction`](./src/settings.ts)
122 +* Default: `undefined`
123 +
124 +A function that indicates whether the directory will be read deep or not.
125 +
126 +```ts
127 +// Skip all directories that starts with `node_modules`
128 +const filter: DeepFilterFunction = (entry) => !entry.path.startsWith('node_modules');
129 +```
130 +
131 +### entryFilter
132 +
133 +* Type: [`EntryFilterFunction`](./src/settings.ts)
134 +* Default: `undefined`
135 +
136 +A function that indicates whether the entry will be included to results or not.
137 +
138 +```ts
139 +// Exclude all `.js` files from results
140 +const filter: EntryFilterFunction = (entry) => !entry.name.endsWith('.js');
141 +```
142 +
143 +### errorFilter
144 +
145 +* Type: [`ErrorFilterFunction`](./src/settings.ts)
146 +* Default: `undefined`
147 +
148 +A function that allows you to skip errors that occur when reading directories.
149 +
150 +For example, you can skip `ENOENT` errors if required:
151 +
152 +```ts
153 +// Skip all ENOENT errors
154 +const filter: ErrorFilterFunction = (error) => error.code == 'ENOENT';
155 +```
156 +
157 +### stats
158 +
159 +* Type: `boolean`
160 +* Default: `false`
161 +
162 +Adds an instance of `fs.Stats` class to the [`Entry`](#entry).
163 +
164 +> :book: Always use `fs.readdir` with additional `fs.lstat/fs.stat` calls to determine the entry type.
165 +
166 +### followSymbolicLinks
167 +
168 +* Type: `boolean`
169 +* Default: `false`
170 +
171 +Follow symbolic links or not. Call `fs.stat` on symbolic link if `true`.
172 +
173 +### `throwErrorOnBrokenSymbolicLink`
174 +
175 +* Type: `boolean`
176 +* Default: `true`
177 +
178 +Throw an error when symbolic link is broken if `true` or safely return `lstat` call if `false`.
179 +
180 +### `pathSegmentSeparator`
181 +
182 +* Type: `string`
183 +* Default: `path.sep`
184 +
185 +By default, this package uses the correct path separator for your OS (`\` on Windows, `/` on Unix-like systems). But you can set this option to any separator character(s) that you want to use instead.
186 +
187 +### `fs`
188 +
189 +* Type: `FileSystemAdapter`
190 +* Default: A default FS methods
191 +
192 +By default, the built-in Node.js module (`fs`) is used to work with the file system. You can replace any method with your own.
193 +
194 +```ts
195 +interface FileSystemAdapter {
196 + lstat: typeof fs.lstat;
197 + stat: typeof fs.stat;
198 + lstatSync: typeof fs.lstatSync;
199 + statSync: typeof fs.statSync;
200 + readdir: typeof fs.readdir;
201 + readdirSync: typeof fs.readdirSync;
202 +}
203 +
204 +const settings = new fsWalk.Settings({
205 + fs: { lstat: fakeLstat }
206 +});
207 +```
208 +
209 +## Changelog
210 +
211 +See the [Releases section of our GitHub project](https://github.com/nodelib/nodelib/releases) for changelog for each release version.
212 +
213 +## License
214 +
215 +This software is released under the terms of the MIT license.
1 +/// <reference types="node" />
2 +import type { Readable } from 'stream';
3 +import type { Dirent, FileSystemAdapter } from '@nodelib/fs.scandir';
4 +import { AsyncCallback } from './providers/async';
5 +import Settings, { DeepFilterFunction, EntryFilterFunction, ErrorFilterFunction, Options } from './settings';
6 +import type { Entry } from './types';
7 +declare function walk(directory: string, callback: AsyncCallback): void;
8 +declare function walk(directory: string, optionsOrSettings: Options | Settings, callback: AsyncCallback): void;
9 +declare namespace walk {
10 + function __promisify__(directory: string, optionsOrSettings?: Options | Settings): Promise<Entry[]>;
11 +}
12 +declare function walkSync(directory: string, optionsOrSettings?: Options | Settings): Entry[];
13 +declare function walkStream(directory: string, optionsOrSettings?: Options | Settings): Readable;
14 +export { walk, walkSync, walkStream, Settings, AsyncCallback, Dirent, Entry, FileSystemAdapter, Options, DeepFilterFunction, EntryFilterFunction, ErrorFilterFunction };
1 +"use strict";
2 +Object.defineProperty(exports, "__esModule", { value: true });
3 +exports.Settings = exports.walkStream = exports.walkSync = exports.walk = void 0;
4 +const async_1 = require("./providers/async");
5 +const stream_1 = require("./providers/stream");
6 +const sync_1 = require("./providers/sync");
7 +const settings_1 = require("./settings");
8 +exports.Settings = settings_1.default;
9 +function walk(directory, optionsOrSettingsOrCallback, callback) {
10 + if (typeof optionsOrSettingsOrCallback === 'function') {
11 + new async_1.default(directory, getSettings()).read(optionsOrSettingsOrCallback);
12 + return;
13 + }
14 + new async_1.default(directory, getSettings(optionsOrSettingsOrCallback)).read(callback);
15 +}
16 +exports.walk = walk;
17 +function walkSync(directory, optionsOrSettings) {
18 + const settings = getSettings(optionsOrSettings);
19 + const provider = new sync_1.default(directory, settings);
20 + return provider.read();
21 +}
22 +exports.walkSync = walkSync;
23 +function walkStream(directory, optionsOrSettings) {
24 + const settings = getSettings(optionsOrSettings);
25 + const provider = new stream_1.default(directory, settings);
26 + return provider.read();
27 +}
28 +exports.walkStream = walkStream;
29 +function getSettings(settingsOrOptions = {}) {
30 + if (settingsOrOptions instanceof settings_1.default) {
31 + return settingsOrOptions;
32 + }
33 + return new settings_1.default(settingsOrOptions);
34 +}
1 +import AsyncReader from '../readers/async';
2 +import type Settings from '../settings';
3 +import type { Entry, Errno } from '../types';
4 +export declare type AsyncCallback = (error: Errno, entries: Entry[]) => void;
5 +export default class AsyncProvider {
6 + private readonly _root;
7 + private readonly _settings;
8 + protected readonly _reader: AsyncReader;
9 + private readonly _storage;
10 + constructor(_root: string, _settings: Settings);
11 + read(callback: AsyncCallback): void;
12 +}
1 +"use strict";
2 +Object.defineProperty(exports, "__esModule", { value: true });
3 +const async_1 = require("../readers/async");
4 +class AsyncProvider {
5 + constructor(_root, _settings) {
6 + this._root = _root;
7 + this._settings = _settings;
8 + this._reader = new async_1.default(this._root, this._settings);
9 + this._storage = [];
10 + }
11 + read(callback) {
12 + this._reader.onError((error) => {
13 + callFailureCallback(callback, error);
14 + });
15 + this._reader.onEntry((entry) => {
16 + this._storage.push(entry);
17 + });
18 + this._reader.onEnd(() => {
19 + callSuccessCallback(callback, this._storage);
20 + });
21 + this._reader.read();
22 + }
23 +}
24 +exports.default = AsyncProvider;
25 +function callFailureCallback(callback, error) {
26 + callback(error);
27 +}
28 +function callSuccessCallback(callback, entries) {
29 + callback(null, entries);
30 +}
1 +import AsyncProvider from './async';
2 +import StreamProvider from './stream';
3 +import SyncProvider from './sync';
4 +export { AsyncProvider, StreamProvider, SyncProvider };
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.
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.
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.
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.
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 could not be displayed because it is too large.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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 could not be displayed because it is too large.
This diff is collapsed. Click to expand it.
This diff could not be displayed because it is too large.
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.
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.
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.