guess-js-deps-bash 0.1.57 → 0.1.58
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/guess-js-deps.sh +3 -3
- package/package.json +1 -1
package/guess-js-deps.sh
CHANGED
|
@@ -141,8 +141,7 @@ function find_imports_in_project () {
|
|
|
141
141
|
local IMPORTS=()
|
|
142
142
|
readarray -t IMPORTS < <(
|
|
143
143
|
scan_all_scannable_files_in_project \
|
|
144
|
-
| guess_unique_stdin_dep_types
|
|
145
|
-
| cut -sf 1-3)
|
|
144
|
+
| guess_unique_stdin_dep_types 1-3)
|
|
146
145
|
progress 'done.'
|
|
147
146
|
|
|
148
147
|
[ -n "${IMPORTS[0]}" ] || return 3$(
|
|
@@ -720,7 +719,8 @@ function guess_one_dep_type () {
|
|
|
720
719
|
|
|
721
720
|
|
|
722
721
|
function guess_unique_stdin_dep_types () {
|
|
723
|
-
|
|
722
|
+
local FIELDS="${1:-1-}"; shift
|
|
723
|
+
csort -u | with_stdin_args guess_dep_types | cut -sf "$FIELDS" | csort -Vu
|
|
724
724
|
}
|
|
725
725
|
|
|
726
726
|
|
package/package.json
CHANGED