binary-collections 2.0.5 → 2.0.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bin/bash-dummy +7 -2
- package/bin/clean-nodemodule +7 -2
- package/bin/clean-nodemodules +7 -2
- package/bin/dev +7 -2
- package/bin/empty +7 -2
- package/bin/git-diff.cmd +4 -0
- package/bin/git-fix-encoding +7 -2
- package/bin/git-fix-encoding.cmd +0 -0
- package/bin/git-reduce-size +7 -2
- package/bin/kill-process +7 -2
- package/bin/nodekill +7 -2
- package/bin/nodekill.cmd +0 -0
- package/bin/nodekill.ps1 +0 -0
- package/bin/prod +7 -2
- package/bin/rmfind +7 -2
- package/bin/rmpath +7 -2
- package/bin/rmx +9 -3
- package/bin/submodule +13 -2
- package/bin/submodule-install +7 -2
- package/bin/submodule-remove +7 -2
- package/lib/chunk-3LOB2P54.mjs +202 -0
- package/lib/chunk-4LEXWIIF.mjs +173 -0
- package/lib/chunk-BSD5CIRU.mjs +52 -0
- package/lib/chunk-FB6YIQYR.mjs +42 -0
- package/lib/chunk-JL32QDSH.mjs +20 -0
- package/lib/chunk-OKYLF2MU.mjs +53 -0
- package/lib/chunk-VXZQNLPU.mjs +23 -0
- package/lib/del-gradle.cjs +72 -0
- package/lib/del-gradle.d.mts +2 -0
- package/lib/del-gradle.d.ts +1 -0
- package/lib/del-gradle.js +15 -0
- package/lib/del-gradle.mjs +28 -0
- package/lib/del-node-modules.cjs +72 -0
- package/lib/del-node-modules.d.mts +2 -0
- package/lib/del-node-modules.d.ts +1 -0
- package/lib/del-node-modules.js +11 -15
- package/lib/del-node-modules.mjs +28 -0
- package/lib/del-ps.cjs +93 -0
- package/lib/del-ps.d.mts +2 -0
- package/lib/del-ps.d.ts +1 -0
- package/lib/del-ps.js +31 -0
- package/lib/del-ps.mjs +43 -0
- package/lib/del-yarn-caches.cjs +65 -0
- package/lib/del-yarn-caches.d.mts +2 -0
- package/lib/del-yarn-caches.d.ts +1 -0
- package/lib/del-yarn-caches.js +6 -9
- package/lib/del-yarn-caches.mjs +21 -0
- package/lib/find-node-modules-cli.cjs +59 -0
- package/lib/find-node-modules-cli.d.mts +1 -0
- package/lib/find-node-modules-cli.d.ts +2 -0
- package/lib/find-node-modules-cli.js +3 -0
- package/lib/find-node-modules-cli.mjs +14 -0
- package/lib/find-node-modules.cjs +34 -0
- package/lib/find-node-modules.d.mts +10 -0
- package/lib/find-node-modules.d.ts +9 -0
- package/lib/find-node-modules.js +41 -13
- package/lib/find-node-modules.mjs +7 -0
- package/lib/git-diff.cjs +74 -0
- package/lib/git-diff.d.cts +2 -0
- package/lib/git-diff.d.mts +87 -0
- package/lib/git-diff.d.ts +87 -0
- package/lib/git-diff.mjs +83 -0
- package/lib/git-purge.cjs +91 -0
- package/lib/git-purge.d.mts +2 -0
- package/lib/git-purge.d.ts +1 -0
- package/lib/git-purge.js +59 -0
- package/lib/git-purge.mjs +47 -0
- package/lib/index.cjs +92 -0
- package/lib/index.d.mts +1 -0
- package/lib/index.d.ts +2 -0
- package/lib/index.js +8 -0
- package/lib/index.mjs +18 -0
- package/lib/npm-run-series.cjs +61 -0
- package/lib/npm-run-series.d.mts +1 -0
- package/lib/npm-run-series.d.ts +2 -0
- package/lib/npm-run-series.js +80 -39
- package/lib/npm-run-series.mjs +47 -0
- package/lib/package-resolutions.cjs +28 -0
- package/lib/package-resolutions.d.mts +25 -0
- package/lib/package-resolutions.d.ts +25 -0
- package/lib/package-resolutions.mjs +31 -0
- package/lib/ps/connected-domain.cjs +156 -0
- package/lib/ps/connected-domain.d.mts +3 -0
- package/lib/ps/connected-domain.d.ts +2 -0
- package/lib/ps/connected-domain.js +202 -0
- package/lib/ps/connected-domain.mjs +7 -0
- package/lib/ps/index.cjs +555 -0
- package/lib/ps/index.d.cjs +17 -0
- package/lib/ps/index.d.d.mts +26 -0
- package/lib/ps/index.d.d.ts +26 -0
- package/lib/ps/index.d.mjs +8 -0
- package/lib/ps/index.d.mts +26 -0
- package/lib/ps/index.d.ts +2 -0
- package/lib/ps/index.js +250 -0
- package/lib/ps/index.mjs +203 -0
- package/lib/ps/isWin.cjs +3 -0
- package/lib/ps/isWin.d.mts +3 -0
- package/lib/ps/isWin.d.ts +2 -0
- package/lib/ps/isWin.js +2 -0
- package/lib/ps/isWin.mjs +7 -0
- package/lib/ps/table-parser.cjs +359 -0
- package/lib/ps/table-parser.d.mts +3 -0
- package/lib/ps/table-parser.d.ts +1 -0
- package/lib/ps/table-parser.js +268 -0
- package/lib/ps/table-parser.mjs +8 -0
- package/lib/submodule-install.cjs +118 -0
- package/lib/submodule-install.d.cts +2 -0
- package/lib/submodule-install.d.mts +141 -0
- package/lib/submodule-install.d.ts +141 -0
- package/lib/submodule-install.mjs +116 -0
- package/lib/utils.cjs +35 -0
- package/lib/utils.d.mts +20 -0
- package/lib/utils.d.ts +16 -0
- package/lib/utils.js +42 -28
- package/lib/utils.mjs +7 -0
- package/lib/yarn-reinstall.cjs +42 -0
- package/lib/yarn-reinstall.d.cts +1 -0
- package/lib/yarn-reinstall.d.mts +45 -0
- package/lib/yarn-reinstall.d.ts +45 -0
- package/lib/yarn-reinstall.mjs +50 -0
- package/package.json +80 -38
- package/readme.md +188 -40
- package/src/ps/index.js +285 -0
- package/test/package.json +19 -0
- package/index.js +0 -1
- package/lib/package-resolutions.json +0 -22
package/bin/bash-dummy
CHANGED
|
@@ -14,12 +14,17 @@ SCRIPT_DIR=$(cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd)
|
|
|
14
14
|
SCRIPT=$(realpath "$0")
|
|
15
15
|
SCRIPTPATH=$(dirname "$SCRIPT")
|
|
16
16
|
|
|
17
|
-
|
|
17
|
+
# Detect Cygwin or MinGW
|
|
18
|
+
case "$(uname)" in
|
|
18
19
|
*CYGWIN*)
|
|
19
|
-
basedir
|
|
20
|
+
basedir=$(cygpath -w "$basedir")
|
|
20
21
|
# make cygwin bin as priority
|
|
21
22
|
export PATH="/usr/local/bin:/usr/bin:/bin:/usr/local/sbin:/usr/sbin:/sbin:$PATH"
|
|
22
23
|
;;
|
|
24
|
+
*MINGW*)
|
|
25
|
+
# make mingw bin as priority
|
|
26
|
+
export PATH="/mingw64/bin:/usr/local/bin:/usr/bin:/bin:/usr/local/sbin:/usr/sbin:/sbin:$PATH"
|
|
27
|
+
;;
|
|
23
28
|
esac
|
|
24
29
|
|
|
25
30
|
# parse and export .env file (dotenv)
|
package/bin/clean-nodemodule
CHANGED
|
@@ -14,12 +14,17 @@ SCRIPT_DIR=$(cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd)
|
|
|
14
14
|
SCRIPT=$(realpath "$0")
|
|
15
15
|
SCRIPTPATH=$(dirname "$SCRIPT")
|
|
16
16
|
|
|
17
|
-
|
|
17
|
+
# Detect Cygwin or MinGW
|
|
18
|
+
case "$(uname)" in
|
|
18
19
|
*CYGWIN*)
|
|
19
|
-
basedir
|
|
20
|
+
basedir=$(cygpath -w "$basedir")
|
|
20
21
|
# make cygwin bin as priority
|
|
21
22
|
export PATH="/usr/local/bin:/usr/bin:/bin:/usr/local/sbin:/usr/sbin:/sbin:$PATH"
|
|
22
23
|
;;
|
|
24
|
+
*MINGW*)
|
|
25
|
+
# make mingw bin as priority
|
|
26
|
+
export PATH="/mingw64/bin:/usr/local/bin:/usr/bin:/bin:/usr/local/sbin:/usr/sbin:/sbin:$PATH"
|
|
27
|
+
;;
|
|
23
28
|
esac
|
|
24
29
|
|
|
25
30
|
# parse and export .env file (dotenv)
|
package/bin/clean-nodemodules
CHANGED
|
@@ -14,12 +14,17 @@ SCRIPT_DIR=$(cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd)
|
|
|
14
14
|
SCRIPT=$(realpath "$0")
|
|
15
15
|
SCRIPTPATH=$(dirname "$SCRIPT")
|
|
16
16
|
|
|
17
|
-
|
|
17
|
+
# Detect Cygwin or MinGW
|
|
18
|
+
case "$(uname)" in
|
|
18
19
|
*CYGWIN*)
|
|
19
|
-
basedir
|
|
20
|
+
basedir=$(cygpath -w "$basedir")
|
|
20
21
|
# make cygwin bin as priority
|
|
21
22
|
export PATH="/usr/local/bin:/usr/bin:/bin:/usr/local/sbin:/usr/sbin:/sbin:$PATH"
|
|
22
23
|
;;
|
|
24
|
+
*MINGW*)
|
|
25
|
+
# make mingw bin as priority
|
|
26
|
+
export PATH="/mingw64/bin:/usr/local/bin:/usr/bin:/bin:/usr/local/sbin:/usr/sbin:/sbin:$PATH"
|
|
27
|
+
;;
|
|
23
28
|
esac
|
|
24
29
|
|
|
25
30
|
# parse and export .env file (dotenv)
|
package/bin/dev
CHANGED
|
@@ -14,12 +14,17 @@ SCRIPT_DIR=$(cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd)
|
|
|
14
14
|
SCRIPT=$(realpath "$0")
|
|
15
15
|
SCRIPTPATH=$(dirname "$SCRIPT")
|
|
16
16
|
|
|
17
|
-
|
|
17
|
+
# Detect Cygwin or MinGW
|
|
18
|
+
case "$(uname)" in
|
|
18
19
|
*CYGWIN*)
|
|
19
|
-
basedir
|
|
20
|
+
basedir=$(cygpath -w "$basedir")
|
|
20
21
|
# make cygwin bin as priority
|
|
21
22
|
export PATH="/usr/local/bin:/usr/bin:/bin:/usr/local/sbin:/usr/sbin:/sbin:$PATH"
|
|
22
23
|
;;
|
|
24
|
+
*MINGW*)
|
|
25
|
+
# make mingw bin as priority
|
|
26
|
+
export PATH="/mingw64/bin:/usr/local/bin:/usr/bin:/bin:/usr/local/sbin:/usr/sbin:/sbin:$PATH"
|
|
27
|
+
;;
|
|
23
28
|
esac
|
|
24
29
|
|
|
25
30
|
# parse and export .env file (dotenv)
|
package/bin/empty
CHANGED
|
@@ -14,12 +14,17 @@ SCRIPT_DIR=$(cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd)
|
|
|
14
14
|
SCRIPT=$(realpath "$0")
|
|
15
15
|
SCRIPTPATH=$(dirname "$SCRIPT")
|
|
16
16
|
|
|
17
|
-
|
|
17
|
+
# Detect Cygwin or MinGW
|
|
18
|
+
case "$(uname)" in
|
|
18
19
|
*CYGWIN*)
|
|
19
|
-
basedir
|
|
20
|
+
basedir=$(cygpath -w "$basedir")
|
|
20
21
|
# make cygwin bin as priority
|
|
21
22
|
export PATH="/usr/local/bin:/usr/bin:/bin:/usr/local/sbin:/usr/sbin:/sbin:$PATH"
|
|
22
23
|
;;
|
|
24
|
+
*MINGW*)
|
|
25
|
+
# make mingw bin as priority
|
|
26
|
+
export PATH="/mingw64/bin:/usr/local/bin:/usr/bin:/bin:/usr/local/sbin:/usr/sbin:/sbin:$PATH"
|
|
27
|
+
;;
|
|
23
28
|
esac
|
|
24
29
|
|
|
25
30
|
# parse and export .env file (dotenv)
|
package/bin/git-diff.cmd
ADDED
package/bin/git-fix-encoding
CHANGED
|
@@ -14,12 +14,17 @@ SCRIPT_DIR=$(cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd)
|
|
|
14
14
|
SCRIPT=$(realpath "$0")
|
|
15
15
|
SCRIPTPATH=$(dirname "$SCRIPT")
|
|
16
16
|
|
|
17
|
-
|
|
17
|
+
# Detect Cygwin or MinGW
|
|
18
|
+
case "$(uname)" in
|
|
18
19
|
*CYGWIN*)
|
|
19
|
-
basedir
|
|
20
|
+
basedir=$(cygpath -w "$basedir")
|
|
20
21
|
# make cygwin bin as priority
|
|
21
22
|
export PATH="/usr/local/bin:/usr/bin:/bin:/usr/local/sbin:/usr/sbin:/sbin:$PATH"
|
|
22
23
|
;;
|
|
24
|
+
*MINGW*)
|
|
25
|
+
# make mingw bin as priority
|
|
26
|
+
export PATH="/mingw64/bin:/usr/local/bin:/usr/bin:/bin:/usr/local/sbin:/usr/sbin:/sbin:$PATH"
|
|
27
|
+
;;
|
|
23
28
|
esac
|
|
24
29
|
|
|
25
30
|
# parse and export .env file (dotenv)
|
package/bin/git-fix-encoding.cmd
CHANGED
|
File without changes
|
package/bin/git-reduce-size
CHANGED
|
@@ -14,12 +14,17 @@ SCRIPT_DIR=$(cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd)
|
|
|
14
14
|
SCRIPT=$(realpath "$0")
|
|
15
15
|
SCRIPTPATH=$(dirname "$SCRIPT")
|
|
16
16
|
|
|
17
|
-
|
|
17
|
+
# Detect Cygwin or MinGW
|
|
18
|
+
case "$(uname)" in
|
|
18
19
|
*CYGWIN*)
|
|
19
|
-
basedir
|
|
20
|
+
basedir=$(cygpath -w "$basedir")
|
|
20
21
|
# make cygwin bin as priority
|
|
21
22
|
export PATH="/usr/local/bin:/usr/bin:/bin:/usr/local/sbin:/usr/sbin:/sbin:$PATH"
|
|
22
23
|
;;
|
|
24
|
+
*MINGW*)
|
|
25
|
+
# make mingw bin as priority
|
|
26
|
+
export PATH="/mingw64/bin:/usr/local/bin:/usr/bin:/bin:/usr/local/sbin:/usr/sbin:/sbin:$PATH"
|
|
27
|
+
;;
|
|
23
28
|
esac
|
|
24
29
|
|
|
25
30
|
# parse and export .env file (dotenv)
|
package/bin/kill-process
CHANGED
|
@@ -14,12 +14,17 @@ SCRIPT_DIR=$(cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd)
|
|
|
14
14
|
SCRIPT=$(realpath "$0")
|
|
15
15
|
SCRIPTPATH=$(dirname "$SCRIPT")
|
|
16
16
|
|
|
17
|
-
|
|
17
|
+
# Detect Cygwin or MinGW
|
|
18
|
+
case "$(uname)" in
|
|
18
19
|
*CYGWIN*)
|
|
19
|
-
basedir
|
|
20
|
+
basedir=$(cygpath -w "$basedir")
|
|
20
21
|
# make cygwin bin as priority
|
|
21
22
|
export PATH="/usr/local/bin:/usr/bin:/bin:/usr/local/sbin:/usr/sbin:/sbin:$PATH"
|
|
22
23
|
;;
|
|
24
|
+
*MINGW*)
|
|
25
|
+
# make mingw bin as priority
|
|
26
|
+
export PATH="/mingw64/bin:/usr/local/bin:/usr/bin:/bin:/usr/local/sbin:/usr/sbin:/sbin:$PATH"
|
|
27
|
+
;;
|
|
23
28
|
esac
|
|
24
29
|
|
|
25
30
|
# parse and export .env file (dotenv)
|
package/bin/nodekill
CHANGED
|
@@ -14,12 +14,17 @@ SCRIPT_DIR=$(cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd)
|
|
|
14
14
|
SCRIPT=$(realpath "$0")
|
|
15
15
|
SCRIPTPATH=$(dirname "$SCRIPT")
|
|
16
16
|
|
|
17
|
-
|
|
17
|
+
# Detect Cygwin or MinGW
|
|
18
|
+
case "$(uname)" in
|
|
18
19
|
*CYGWIN*)
|
|
19
|
-
basedir
|
|
20
|
+
basedir=$(cygpath -w "$basedir")
|
|
20
21
|
# make cygwin bin as priority
|
|
21
22
|
export PATH="/usr/local/bin:/usr/bin:/bin:/usr/local/sbin:/usr/sbin:/sbin:$PATH"
|
|
22
23
|
;;
|
|
24
|
+
*MINGW*)
|
|
25
|
+
# make mingw bin as priority
|
|
26
|
+
export PATH="/mingw64/bin:/usr/local/bin:/usr/bin:/bin:/usr/local/sbin:/usr/sbin:/sbin:$PATH"
|
|
27
|
+
;;
|
|
23
28
|
esac
|
|
24
29
|
|
|
25
30
|
# parse and export .env file (dotenv)
|
package/bin/nodekill.cmd
CHANGED
|
File without changes
|
package/bin/nodekill.ps1
CHANGED
|
File without changes
|
package/bin/prod
CHANGED
|
@@ -14,12 +14,17 @@ SCRIPT_DIR=$(cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd)
|
|
|
14
14
|
SCRIPT=$(realpath "$0")
|
|
15
15
|
SCRIPTPATH=$(dirname "$SCRIPT")
|
|
16
16
|
|
|
17
|
-
|
|
17
|
+
# Detect Cygwin or MinGW
|
|
18
|
+
case "$(uname)" in
|
|
18
19
|
*CYGWIN*)
|
|
19
|
-
basedir
|
|
20
|
+
basedir=$(cygpath -w "$basedir")
|
|
20
21
|
# make cygwin bin as priority
|
|
21
22
|
export PATH="/usr/local/bin:/usr/bin:/bin:/usr/local/sbin:/usr/sbin:/sbin:$PATH"
|
|
22
23
|
;;
|
|
24
|
+
*MINGW*)
|
|
25
|
+
# make mingw bin as priority
|
|
26
|
+
export PATH="/mingw64/bin:/usr/local/bin:/usr/bin:/bin:/usr/local/sbin:/usr/sbin:/sbin:$PATH"
|
|
27
|
+
;;
|
|
23
28
|
esac
|
|
24
29
|
|
|
25
30
|
# parse and export .env file (dotenv)
|
package/bin/rmfind
CHANGED
|
@@ -14,12 +14,17 @@ SCRIPT_DIR=$(cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd)
|
|
|
14
14
|
SCRIPT=$(realpath "$0")
|
|
15
15
|
SCRIPTPATH=$(dirname "$SCRIPT")
|
|
16
16
|
|
|
17
|
-
|
|
17
|
+
# Detect Cygwin or MinGW
|
|
18
|
+
case "$(uname)" in
|
|
18
19
|
*CYGWIN*)
|
|
19
|
-
basedir
|
|
20
|
+
basedir=$(cygpath -w "$basedir")
|
|
20
21
|
# make cygwin bin as priority
|
|
21
22
|
export PATH="/usr/local/bin:/usr/bin:/bin:/usr/local/sbin:/usr/sbin:/sbin:$PATH"
|
|
22
23
|
;;
|
|
24
|
+
*MINGW*)
|
|
25
|
+
# make mingw bin as priority
|
|
26
|
+
export PATH="/mingw64/bin:/usr/local/bin:/usr/bin:/bin:/usr/local/sbin:/usr/sbin:/sbin:$PATH"
|
|
27
|
+
;;
|
|
23
28
|
esac
|
|
24
29
|
|
|
25
30
|
# parse and export .env file (dotenv)
|
package/bin/rmpath
CHANGED
|
@@ -14,12 +14,17 @@ SCRIPT_DIR=$(cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd)
|
|
|
14
14
|
SCRIPT=$(realpath "$0")
|
|
15
15
|
SCRIPTPATH=$(dirname "$SCRIPT")
|
|
16
16
|
|
|
17
|
-
|
|
17
|
+
# Detect Cygwin or MinGW
|
|
18
|
+
case "$(uname)" in
|
|
18
19
|
*CYGWIN*)
|
|
19
|
-
basedir
|
|
20
|
+
basedir=$(cygpath -w "$basedir")
|
|
20
21
|
# make cygwin bin as priority
|
|
21
22
|
export PATH="/usr/local/bin:/usr/bin:/bin:/usr/local/sbin:/usr/sbin:/sbin:$PATH"
|
|
22
23
|
;;
|
|
24
|
+
*MINGW*)
|
|
25
|
+
# make mingw bin as priority
|
|
26
|
+
export PATH="/mingw64/bin:/usr/local/bin:/usr/bin:/bin:/usr/local/sbin:/usr/sbin:/sbin:$PATH"
|
|
27
|
+
;;
|
|
23
28
|
esac
|
|
24
29
|
|
|
25
30
|
# parse and export .env file (dotenv)
|
package/bin/rmx
CHANGED
|
@@ -14,12 +14,17 @@ SCRIPT_DIR=$(cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd)
|
|
|
14
14
|
SCRIPT=$(realpath "$0")
|
|
15
15
|
SCRIPTPATH=$(dirname "$SCRIPT")
|
|
16
16
|
|
|
17
|
-
|
|
17
|
+
# Detect Cygwin or MinGW
|
|
18
|
+
case "$(uname)" in
|
|
18
19
|
*CYGWIN*)
|
|
19
|
-
basedir
|
|
20
|
+
basedir=$(cygpath -w "$basedir")
|
|
20
21
|
# make cygwin bin as priority
|
|
21
22
|
export PATH="/usr/local/bin:/usr/bin:/bin:/usr/local/sbin:/usr/sbin:/sbin:$PATH"
|
|
22
23
|
;;
|
|
24
|
+
*MINGW*)
|
|
25
|
+
# make mingw bin as priority
|
|
26
|
+
export PATH="/mingw64/bin:/usr/local/bin:/usr/bin:/bin:/usr/local/sbin:/usr/sbin:/sbin:$PATH"
|
|
27
|
+
;;
|
|
23
28
|
esac
|
|
24
29
|
|
|
25
30
|
# parse and export .env file (dotenv)
|
|
@@ -48,7 +53,8 @@ fi
|
|
|
48
53
|
|
|
49
54
|
rm -rf "$1" &
|
|
50
55
|
|
|
51
|
-
vowels=( a i u e o A I U E O )
|
|
56
|
+
# vowels=( a i u e o A I U E O )
|
|
57
|
+
vowels=( a i u e o A I U E O 0 1 2 3 4 5 6 7 8 9 _ - . )
|
|
52
58
|
for letter in {{a..z},{A..Z}}; do
|
|
53
59
|
for vowel in "${vowels[@]}"; do
|
|
54
60
|
toBeDeleted=( "$1/.${letter}*" "$1/@${letter}*" "$1/${letter}*" "$1/@${letter}${vowel}*" "$1/.${letter}${vowel}*" "$1/${letter}${vowel}*" )
|
package/bin/submodule
CHANGED
|
@@ -14,12 +14,17 @@ SCRIPT_DIR=$(cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd)
|
|
|
14
14
|
SCRIPT=$(realpath "$0")
|
|
15
15
|
SCRIPTPATH=$(dirname "$SCRIPT")
|
|
16
16
|
|
|
17
|
-
|
|
17
|
+
# Detect Cygwin or MinGW
|
|
18
|
+
case "$(uname)" in
|
|
18
19
|
*CYGWIN*)
|
|
19
|
-
basedir
|
|
20
|
+
basedir=$(cygpath -w "$basedir")
|
|
20
21
|
# make cygwin bin as priority
|
|
21
22
|
export PATH="/usr/local/bin:/usr/bin:/bin:/usr/local/sbin:/usr/sbin:/sbin:$PATH"
|
|
22
23
|
;;
|
|
24
|
+
*MINGW*)
|
|
25
|
+
# make mingw bin as priority
|
|
26
|
+
export PATH="/mingw64/bin:/usr/local/bin:/usr/bin:/bin:/usr/local/sbin:/usr/sbin:/sbin:$PATH"
|
|
27
|
+
;;
|
|
23
28
|
esac
|
|
24
29
|
|
|
25
30
|
# parse and export .env file (dotenv)
|
|
@@ -28,6 +33,12 @@ if [ -f ".env" ]; then
|
|
|
28
33
|
export $(egrep -v '^#' .env | xargs)
|
|
29
34
|
fi
|
|
30
35
|
|
|
36
|
+
# parse and export .env file (dotenv)
|
|
37
|
+
if [ -f ".env" ]; then
|
|
38
|
+
# Export the vars in .env into your shell:
|
|
39
|
+
export $(egrep -v '^#' .env | xargs)
|
|
40
|
+
fi
|
|
41
|
+
|
|
31
42
|
# auto clone all submodules, prevent not-matched hash
|
|
32
43
|
# set ACCESS_TOKEN=github_personal_tokens
|
|
33
44
|
# usages: sh folder_this_repo/submodule-install
|
package/bin/submodule-install
CHANGED
|
@@ -14,12 +14,17 @@ SCRIPT_DIR=$(cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd)
|
|
|
14
14
|
SCRIPT=$(realpath "$0")
|
|
15
15
|
SCRIPTPATH=$(dirname "$SCRIPT")
|
|
16
16
|
|
|
17
|
-
|
|
17
|
+
# Detect Cygwin or MinGW
|
|
18
|
+
case "$(uname)" in
|
|
18
19
|
*CYGWIN*)
|
|
19
|
-
basedir
|
|
20
|
+
basedir=$(cygpath -w "$basedir")
|
|
20
21
|
# make cygwin bin as priority
|
|
21
22
|
export PATH="/usr/local/bin:/usr/bin:/bin:/usr/local/sbin:/usr/sbin:/sbin:$PATH"
|
|
22
23
|
;;
|
|
24
|
+
*MINGW*)
|
|
25
|
+
# make mingw bin as priority
|
|
26
|
+
export PATH="/mingw64/bin:/usr/local/bin:/usr/bin:/bin:/usr/local/sbin:/usr/sbin:/sbin:$PATH"
|
|
27
|
+
;;
|
|
23
28
|
esac
|
|
24
29
|
|
|
25
30
|
# parse and export .env file (dotenv)
|
package/bin/submodule-remove
CHANGED
|
@@ -14,12 +14,17 @@ SCRIPT_DIR=$(cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd)
|
|
|
14
14
|
SCRIPT=$(realpath "$0")
|
|
15
15
|
SCRIPTPATH=$(dirname "$SCRIPT")
|
|
16
16
|
|
|
17
|
-
|
|
17
|
+
# Detect Cygwin or MinGW
|
|
18
|
+
case "$(uname)" in
|
|
18
19
|
*CYGWIN*)
|
|
19
|
-
basedir
|
|
20
|
+
basedir=$(cygpath -w "$basedir")
|
|
20
21
|
# make cygwin bin as priority
|
|
21
22
|
export PATH="/usr/local/bin:/usr/bin:/bin:/usr/local/sbin:/usr/sbin:/sbin:$PATH"
|
|
22
23
|
;;
|
|
24
|
+
*MINGW*)
|
|
25
|
+
# make mingw bin as priority
|
|
26
|
+
export PATH="/mingw64/bin:/usr/local/bin:/usr/bin:/bin:/usr/local/sbin:/usr/sbin:/sbin:$PATH"
|
|
27
|
+
;;
|
|
23
28
|
esac
|
|
24
29
|
|
|
25
30
|
# parse and export .env file (dotenv)
|
|
@@ -0,0 +1,202 @@
|
|
|
1
|
+
import { createRequire } from 'module'; const require = createRequire(import.meta.url);
|
|
2
|
+
import {
|
|
3
|
+
require_connected_domain
|
|
4
|
+
} from "./chunk-4LEXWIIF.mjs";
|
|
5
|
+
import {
|
|
6
|
+
init_esm_shims
|
|
7
|
+
} from "./chunk-VXZQNLPU.mjs";
|
|
8
|
+
import {
|
|
9
|
+
__commonJS
|
|
10
|
+
} from "./chunk-FB6YIQYR.mjs";
|
|
11
|
+
|
|
12
|
+
// src/ps/table-parser.js
|
|
13
|
+
var require_table_parser = __commonJS({
|
|
14
|
+
"src/ps/table-parser.js"(exports, module) {
|
|
15
|
+
init_esm_shims();
|
|
16
|
+
var ConnectedDomain = require_connected_domain();
|
|
17
|
+
var EMPTY_EX = /\s/;
|
|
18
|
+
module.exports.parse = function(output) {
|
|
19
|
+
var linesTmp = output.split(/(\r\n)|(\n\r)|\n|\r/);
|
|
20
|
+
var lines = [];
|
|
21
|
+
var titleInfo = {};
|
|
22
|
+
var twoDimArray = [];
|
|
23
|
+
linesTmp.forEach(function(line) {
|
|
24
|
+
if (line && line.trim()) {
|
|
25
|
+
lines.push(line);
|
|
26
|
+
}
|
|
27
|
+
});
|
|
28
|
+
lines.forEach(function(line, index) {
|
|
29
|
+
if (index == 0) {
|
|
30
|
+
var fields = line.split(/\s+/);
|
|
31
|
+
var currentIndex = 0;
|
|
32
|
+
fields.forEach(function(field, idx) {
|
|
33
|
+
if (field) {
|
|
34
|
+
var info = titleInfo[field] = {};
|
|
35
|
+
var indexBegin = line.indexOf(field, currentIndex);
|
|
36
|
+
var indexEnd = currentIndex = indexBegin + field.length;
|
|
37
|
+
if (idx == 0) {
|
|
38
|
+
info.titleBegin = 0;
|
|
39
|
+
} else {
|
|
40
|
+
info.titleBegin = indexBegin;
|
|
41
|
+
}
|
|
42
|
+
if (idx == fields.length - 1) {
|
|
43
|
+
info.titleEnd = line.length - 1;
|
|
44
|
+
} else {
|
|
45
|
+
info.titleEnd = indexEnd;
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
});
|
|
49
|
+
} else {
|
|
50
|
+
twoDimArray[index - 1] = line.split("");
|
|
51
|
+
}
|
|
52
|
+
});
|
|
53
|
+
var connectedDomains = ConnectedDomain(
|
|
54
|
+
twoDimArray,
|
|
55
|
+
function(value) {
|
|
56
|
+
if (EMPTY_EX.test(value)) {
|
|
57
|
+
return -1;
|
|
58
|
+
} else {
|
|
59
|
+
return 1;
|
|
60
|
+
}
|
|
61
|
+
},
|
|
62
|
+
true
|
|
63
|
+
);
|
|
64
|
+
var valuesDomainsVerticalGroups = [];
|
|
65
|
+
connectedDomains.domains.sort(function(a, b) {
|
|
66
|
+
return a.bounding.x - b.bounding.x;
|
|
67
|
+
});
|
|
68
|
+
connectedDomains.domains.forEach(function(domain) {
|
|
69
|
+
if (domain.identifier === 1) {
|
|
70
|
+
var overlapped = false;
|
|
71
|
+
valuesDomainsVerticalGroups.forEach(function(group) {
|
|
72
|
+
var bounding = domain.bounding;
|
|
73
|
+
var left = bounding.x;
|
|
74
|
+
var right = bounding.x + bounding.w;
|
|
75
|
+
if (overlap(left, right, group.begin, group.end)) {
|
|
76
|
+
overlapped = true;
|
|
77
|
+
group.domains.push(domain);
|
|
78
|
+
group.begin = group.begin > left ? left : group.begin;
|
|
79
|
+
group.end = group.end < right ? right : group.end;
|
|
80
|
+
}
|
|
81
|
+
});
|
|
82
|
+
if (!overlapped) {
|
|
83
|
+
valuesDomainsVerticalGroups.push({
|
|
84
|
+
begin: domain.bounding.x,
|
|
85
|
+
end: domain.bounding.x + domain.bounding.w,
|
|
86
|
+
domains: [domain]
|
|
87
|
+
});
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
});
|
|
91
|
+
valuesDomainsVerticalGroups.forEach(function(group) {
|
|
92
|
+
var title = null;
|
|
93
|
+
var info = null;
|
|
94
|
+
var overlapped = false;
|
|
95
|
+
var minimunLeftDistance = null;
|
|
96
|
+
var nearestLeftTitle = null;
|
|
97
|
+
var distance = null;
|
|
98
|
+
for (title in titleInfo) {
|
|
99
|
+
info = titleInfo[title];
|
|
100
|
+
if (group.begin > info.titleBegin) {
|
|
101
|
+
distance = group.begin - info.titleBegin;
|
|
102
|
+
if (!nearestLeftTitle || distance < minimunLeftDistance) {
|
|
103
|
+
nearestLeftTitle = title;
|
|
104
|
+
minimunLeftDistance = distance;
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
if (overlap(group.begin, group.end, info.titleBegin, info.titleEnd)) {
|
|
108
|
+
overlapped = true;
|
|
109
|
+
info.titleBegin = info.titleBegin > group.begin ? group.begin : info.titleBegin;
|
|
110
|
+
info.titleEnd = info.titleEnd < group.end ? group.end : info.titleEnd;
|
|
111
|
+
}
|
|
112
|
+
}
|
|
113
|
+
if (!overlapped && nearestLeftTitle) {
|
|
114
|
+
var nearestTitleField = titleInfo[nearestLeftTitle];
|
|
115
|
+
nearestTitleField.titleBegin = nearestTitleField.titleBegin > group.begin ? group.begin : nearestTitleField.titleBegin;
|
|
116
|
+
nearestTitleField.titleEnd = nearestTitleField.titleEnd < group.end ? group.end : nearestTitleField.titleEnd;
|
|
117
|
+
}
|
|
118
|
+
});
|
|
119
|
+
var result = [];
|
|
120
|
+
lines.forEach(function(line, index) {
|
|
121
|
+
if (index > 0) {
|
|
122
|
+
var lineItem = {};
|
|
123
|
+
var title = null;
|
|
124
|
+
var info = null;
|
|
125
|
+
var value = null;
|
|
126
|
+
for (title in titleInfo) {
|
|
127
|
+
info = titleInfo[title];
|
|
128
|
+
value = line.substring(info.titleBegin, info.titleEnd + 1);
|
|
129
|
+
lineItem[title] = splitValue(value.trim());
|
|
130
|
+
}
|
|
131
|
+
result.push(lineItem);
|
|
132
|
+
}
|
|
133
|
+
});
|
|
134
|
+
return result;
|
|
135
|
+
};
|
|
136
|
+
function overlap(begin1, end1, begin2, end2) {
|
|
137
|
+
return begin1 > begin2 && begin1 < end2 || // 2--1--2--1 or 2--1--1--2
|
|
138
|
+
end1 > begin2 && end1 < end2 || // 1--2--1--2 or 2--1--1--2
|
|
139
|
+
begin1 <= begin2 && end1 >= end2;
|
|
140
|
+
}
|
|
141
|
+
function splitValue(value) {
|
|
142
|
+
var match = value.match(/"/g);
|
|
143
|
+
if (!match || match.length == 1) {
|
|
144
|
+
return value.split(/\s+/);
|
|
145
|
+
} else {
|
|
146
|
+
var result = [];
|
|
147
|
+
var chunk = null;
|
|
148
|
+
var ifInWrappedChunk = false;
|
|
149
|
+
var ifInPureWrappedChunk = false;
|
|
150
|
+
var quotaCount = 0;
|
|
151
|
+
var maxQuotaCount = match.length % 2 == 0 ? match.length : match.length - 1;
|
|
152
|
+
var previousItem = null;
|
|
153
|
+
var values = value.split("");
|
|
154
|
+
values.forEach(function(item, index) {
|
|
155
|
+
if (item !== " ") {
|
|
156
|
+
if (item === '"') {
|
|
157
|
+
if (ifInWrappedChunk === false && quotaCount <= maxQuotaCount) {
|
|
158
|
+
ifInWrappedChunk = true;
|
|
159
|
+
quotaCount++;
|
|
160
|
+
if (previousItem === " " || previousItem === null) {
|
|
161
|
+
ifInPureWrappedChunk = true;
|
|
162
|
+
chunk = "";
|
|
163
|
+
} else {
|
|
164
|
+
chunk += item;
|
|
165
|
+
}
|
|
166
|
+
} else if (ifInWrappedChunk === true) {
|
|
167
|
+
ifInWrappedChunk = false;
|
|
168
|
+
quotaCount++;
|
|
169
|
+
if (ifInPureWrappedChunk === true) {
|
|
170
|
+
ifInPureWrappedChunk = false;
|
|
171
|
+
result.push(chunk);
|
|
172
|
+
chunk = null;
|
|
173
|
+
} else {
|
|
174
|
+
chunk += item;
|
|
175
|
+
}
|
|
176
|
+
}
|
|
177
|
+
} else if (ifInWrappedChunk === false && (previousItem === " " || previousItem === null)) {
|
|
178
|
+
chunk = item;
|
|
179
|
+
} else {
|
|
180
|
+
chunk += item;
|
|
181
|
+
}
|
|
182
|
+
} else if (ifInWrappedChunk) {
|
|
183
|
+
chunk += item;
|
|
184
|
+
} else if (chunk !== null) {
|
|
185
|
+
result.push(chunk);
|
|
186
|
+
chunk = null;
|
|
187
|
+
}
|
|
188
|
+
previousItem = item;
|
|
189
|
+
if (index == values.length - 1 && chunk !== null) {
|
|
190
|
+
result.push(chunk);
|
|
191
|
+
chunk = null;
|
|
192
|
+
}
|
|
193
|
+
});
|
|
194
|
+
return result;
|
|
195
|
+
}
|
|
196
|
+
}
|
|
197
|
+
}
|
|
198
|
+
});
|
|
199
|
+
|
|
200
|
+
export {
|
|
201
|
+
require_table_parser
|
|
202
|
+
};
|