@zowe/cli 8.37.0 → 8.37.1

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.
Files changed (644) hide show
  1. package/lib/zosfiles/edit/Edit.utils.d.ts.map +1 -1
  2. package/lib/zosfiles/edit/Edit.utils.js +5 -1
  3. package/lib/zosfiles/edit/Edit.utils.js.map +1 -1
  4. package/node_modules/@zowe/core-for-zowe-sdk/package.json +3 -3
  5. package/node_modules/@zowe/imperative/lib/imperative/src/config/cmd/report-env/EnvItems.d.ts +1 -1
  6. package/node_modules/@zowe/imperative/lib/imperative/src/config/cmd/report-env/EnvItems.d.ts.map +1 -1
  7. package/node_modules/@zowe/imperative/lib/imperative/src/config/cmd/report-env/EnvItems.js +10 -12
  8. package/node_modules/@zowe/imperative/lib/imperative/src/config/cmd/report-env/EnvItems.js.map +1 -1
  9. package/node_modules/@zowe/imperative/lib/imperative/src/config/cmd/report-env/EnvQuery.d.ts.map +1 -1
  10. package/node_modules/@zowe/imperative/lib/imperative/src/config/cmd/report-env/EnvQuery.js +1 -4
  11. package/node_modules/@zowe/imperative/lib/imperative/src/config/cmd/report-env/EnvQuery.js.map +1 -1
  12. package/node_modules/@zowe/imperative/package.json +1 -1
  13. package/node_modules/@zowe/imperative/web-help/package-lock.json +58 -58
  14. package/node_modules/@zowe/provisioning-for-zowe-sdk/package.json +4 -4
  15. package/node_modules/@zowe/zos-console-for-zowe-sdk/package.json +4 -4
  16. package/node_modules/@zowe/zos-files-for-zowe-sdk/package.json +5 -5
  17. package/node_modules/@zowe/zos-jobs-for-zowe-sdk/package.json +5 -5
  18. package/node_modules/@zowe/zos-logs-for-zowe-sdk/package.json +4 -4
  19. package/node_modules/@zowe/zos-tso-for-zowe-sdk/package.json +5 -5
  20. package/node_modules/@zowe/zos-uss-for-zowe-sdk/package.json +3 -3
  21. package/node_modules/@zowe/zos-workflows-for-zowe-sdk/package.json +5 -5
  22. package/node_modules/@zowe/zosmf-for-zowe-sdk/package.json +4 -4
  23. package/node_modules/buildcheck/.eslintrc.js +5 -0
  24. package/node_modules/buildcheck/.github/workflows/ci.yml +72 -0
  25. package/node_modules/buildcheck/.github/workflows/lint.yml +23 -0
  26. package/node_modules/buildcheck/.npmignore +3 -0
  27. package/node_modules/{@zowe/zos-files-for-zowe-sdk/node_modules/brace-expansion → buildcheck}/LICENSE +10 -14
  28. package/node_modules/buildcheck/README.md +106 -0
  29. package/node_modules/buildcheck/deps/Find-VisualStudio.cs +250 -0
  30. package/node_modules/buildcheck/lib/findvs.js +345 -0
  31. package/node_modules/buildcheck/lib/index.js +738 -0
  32. package/node_modules/buildcheck/package.json +36 -0
  33. package/node_modules/buildcheck/test/test.js +8 -0
  34. package/node_modules/cpu-features/.eslintrc.js +5 -0
  35. package/node_modules/cpu-features/.github/workflows/ci.yml +68 -0
  36. package/node_modules/cpu-features/.github/workflows/lint.yml +27 -0
  37. package/node_modules/cpu-features/LICENSE +19 -0
  38. package/node_modules/cpu-features/README.md +59 -0
  39. package/node_modules/cpu-features/binding.gyp +16 -0
  40. package/node_modules/cpu-features/buildcheck.gypi +19 -0
  41. package/node_modules/cpu-features/buildcheck.js +32 -0
  42. package/node_modules/cpu-features/deps/cpu_features/.clang-format +4 -0
  43. package/node_modules/cpu-features/deps/cpu_features/.dockerignore +31 -0
  44. package/node_modules/cpu-features/deps/cpu_features/.github/workflows/Dockerfile +5 -0
  45. package/node_modules/cpu-features/deps/cpu_features/.github/workflows/aarch64_linux_cmake.yml +30 -0
  46. package/node_modules/cpu-features/deps/cpu_features/.github/workflows/amd64_freebsd_cmake.yml +22 -0
  47. package/node_modules/cpu-features/deps/cpu_features/.github/workflows/amd64_linux_bazel.yml +26 -0
  48. package/node_modules/cpu-features/deps/cpu_features/.github/workflows/amd64_linux_cmake.yml +31 -0
  49. package/node_modules/cpu-features/deps/cpu_features/.github/workflows/amd64_macos_cmake.yml +43 -0
  50. package/node_modules/cpu-features/deps/cpu_features/.github/workflows/amd64_windows_cmake.yml +25 -0
  51. package/node_modules/cpu-features/deps/cpu_features/.github/workflows/arm_linux_cmake.yml +31 -0
  52. package/node_modules/cpu-features/deps/cpu_features/.github/workflows/clang_format.yml +24 -0
  53. package/node_modules/cpu-features/deps/cpu_features/.github/workflows/mips_linux_cmake.yml +30 -0
  54. package/node_modules/cpu-features/deps/cpu_features/.github/workflows/power_linux_cmake.yml +29 -0
  55. package/node_modules/cpu-features/deps/cpu_features/.github/workflows/riscv_linux_cmake.yml +28 -0
  56. package/node_modules/cpu-features/deps/cpu_features/.github/workflows/s390x_linux_cmake.yml +27 -0
  57. package/node_modules/cpu-features/deps/cpu_features/.grenrc.yml +21 -0
  58. package/node_modules/cpu-features/deps/cpu_features/BUILD.bazel +329 -0
  59. package/node_modules/cpu-features/deps/cpu_features/CMakeLists.txt +261 -0
  60. package/node_modules/cpu-features/deps/cpu_features/CONTRIBUTING.md +23 -0
  61. package/node_modules/cpu-features/deps/cpu_features/LICENSE +230 -0
  62. package/node_modules/cpu-features/deps/cpu_features/README.md +272 -0
  63. package/node_modules/cpu-features/deps/cpu_features/WORKSPACE +19 -0
  64. package/node_modules/cpu-features/deps/cpu_features/bazel/ci/README.md +5 -0
  65. package/node_modules/cpu-features/deps/cpu_features/bazel/platforms.bzl +11 -0
  66. package/node_modules/cpu-features/deps/cpu_features/cmake/CpuFeaturesConfig.cmake.in +3 -0
  67. package/node_modules/cpu-features/deps/cpu_features/cmake/CpuFeaturesNdkCompatConfig.cmake.in +3 -0
  68. package/node_modules/cpu-features/deps/cpu_features/cmake/README.md +30 -0
  69. package/node_modules/cpu-features/deps/cpu_features/cmake/ci/Makefile +252 -0
  70. package/node_modules/cpu-features/deps/cpu_features/cmake/ci/README.md +40 -0
  71. package/node_modules/cpu-features/deps/cpu_features/cmake/ci/doc/docker.dot +64 -0
  72. package/node_modules/cpu-features/deps/cpu_features/cmake/ci/doc/docker.svg +312 -0
  73. package/node_modules/cpu-features/deps/cpu_features/cmake/ci/doc/generate_image.sh +7 -0
  74. package/node_modules/cpu-features/deps/cpu_features/cmake/ci/docker/amd64/Dockerfile +48 -0
  75. package/node_modules/cpu-features/deps/cpu_features/cmake/ci/docker/toolchain/Dockerfile +34 -0
  76. package/node_modules/cpu-features/deps/cpu_features/cmake/ci/sample/CMakeLists.txt +22 -0
  77. package/node_modules/cpu-features/deps/cpu_features/cmake/ci/sample/main.cpp +11 -0
  78. package/node_modules/cpu-features/deps/cpu_features/cmake/ci/vagrant/freebsd/Vagrantfile +107 -0
  79. package/node_modules/cpu-features/deps/cpu_features/cmake/googletest.CMakeLists.txt.in +15 -0
  80. package/node_modules/cpu-features/deps/cpu_features/cpu_features.gyp +104 -0
  81. package/node_modules/cpu-features/deps/cpu_features/include/cpu_features_cache_info.h +54 -0
  82. package/node_modules/cpu-features/deps/cpu_features/include/cpu_features_macros.h +384 -0
  83. package/node_modules/cpu-features/deps/cpu_features/include/cpuinfo_aarch64.h +259 -0
  84. package/node_modules/cpu-features/deps/cpu_features/include/cpuinfo_arm.h +121 -0
  85. package/node_modules/cpu-features/deps/cpu_features/include/cpuinfo_mips.h +74 -0
  86. package/node_modules/cpu-features/deps/cpu_features/include/cpuinfo_ppc.h +149 -0
  87. package/node_modules/cpu-features/deps/cpu_features/include/cpuinfo_riscv.h +72 -0
  88. package/node_modules/cpu-features/deps/cpu_features/include/cpuinfo_s390x.h +108 -0
  89. package/node_modules/cpu-features/deps/cpu_features/include/cpuinfo_x86.h +288 -0
  90. package/node_modules/cpu-features/deps/cpu_features/include/internal/bit_utils.h +40 -0
  91. package/node_modules/cpu-features/deps/cpu_features/include/internal/cpuid_x86.h +37 -0
  92. package/node_modules/cpu-features/deps/cpu_features/include/internal/filesystem.h +39 -0
  93. package/node_modules/cpu-features/deps/cpu_features/include/internal/hwcaps.h +240 -0
  94. package/node_modules/cpu-features/deps/cpu_features/include/internal/stack_line_reader.h +49 -0
  95. package/node_modules/cpu-features/deps/cpu_features/include/internal/string_view.h +110 -0
  96. package/node_modules/cpu-features/deps/cpu_features/include/internal/windows_utils.h +70 -0
  97. package/node_modules/cpu-features/deps/cpu_features/ndk_compat/CMakeLists.txt +60 -0
  98. package/node_modules/cpu-features/deps/cpu_features/ndk_compat/README.md +4 -0
  99. package/node_modules/cpu-features/deps/cpu_features/ndk_compat/cpu-features.c +205 -0
  100. package/node_modules/cpu-features/deps/cpu_features/ndk_compat/cpu-features.h +320 -0
  101. package/node_modules/cpu-features/deps/cpu_features/ndk_compat/ndk-compat-test.c +12 -0
  102. package/node_modules/cpu-features/deps/cpu_features/patches/0001-Add-Apple-Silicon-Support.patch +456 -0
  103. package/node_modules/cpu-features/deps/cpu_features/scripts/generate_badges.d +165 -0
  104. package/node_modules/cpu-features/deps/cpu_features/scripts/make_release.sh +75 -0
  105. package/node_modules/cpu-features/deps/cpu_features/scripts/run_integration.sh +490 -0
  106. package/node_modules/cpu-features/deps/cpu_features/scripts/test_integration.sh +79 -0
  107. package/node_modules/cpu-features/deps/cpu_features/src/copy.inl +19 -0
  108. package/node_modules/cpu-features/deps/cpu_features/src/define_introspection.inl +86 -0
  109. package/node_modules/cpu-features/deps/cpu_features/src/define_introspection_and_hwcaps.inl +26 -0
  110. package/node_modules/cpu-features/deps/cpu_features/src/equals.inl +22 -0
  111. package/node_modules/cpu-features/deps/cpu_features/src/filesystem.c +62 -0
  112. package/node_modules/cpu-features/deps/cpu_features/src/hwcaps.c +169 -0
  113. package/node_modules/cpu-features/deps/cpu_features/src/impl_aarch64__base_implementation.inl +88 -0
  114. package/node_modules/cpu-features/deps/cpu_features/src/impl_aarch64_linux_or_android.c +79 -0
  115. package/node_modules/cpu-features/deps/cpu_features/src/impl_aarch64_macos_or_iphone.c +82 -0
  116. package/node_modules/cpu-features/deps/cpu_features/src/impl_aarch64_windows.c +138 -0
  117. package/node_modules/cpu-features/deps/cpu_features/src/impl_arm_linux_or_android.c +212 -0
  118. package/node_modules/cpu-features/deps/cpu_features/src/impl_mips_linux_or_android.c +93 -0
  119. package/node_modules/cpu-features/deps/cpu_features/src/impl_ppc_linux.c +163 -0
  120. package/node_modules/cpu-features/deps/cpu_features/src/impl_riscv_linux.c +111 -0
  121. package/node_modules/cpu-features/deps/cpu_features/src/impl_s390x_linux.c +120 -0
  122. package/node_modules/cpu-features/deps/cpu_features/src/impl_x86__base_implementation.inl +2055 -0
  123. package/node_modules/cpu-features/deps/cpu_features/src/impl_x86_freebsd.c +68 -0
  124. package/node_modules/cpu-features/deps/cpu_features/src/impl_x86_linux_or_android.c +58 -0
  125. package/node_modules/cpu-features/deps/cpu_features/src/impl_x86_macos.c +57 -0
  126. package/node_modules/cpu-features/deps/cpu_features/src/impl_x86_windows.c +58 -0
  127. package/node_modules/cpu-features/deps/cpu_features/src/stack_line_reader.c +132 -0
  128. package/node_modules/cpu-features/deps/cpu_features/src/string_view.c +192 -0
  129. package/node_modules/cpu-features/deps/cpu_features/src/utils/list_cpu_features.c +461 -0
  130. package/node_modules/cpu-features/deps/cpu_features/test/CMakeLists.txt +114 -0
  131. package/node_modules/cpu-features/deps/cpu_features/test/bit_utils_test.cc +53 -0
  132. package/node_modules/cpu-features/deps/cpu_features/test/cpuinfo_aarch64_test.cc +396 -0
  133. package/node_modules/cpu-features/deps/cpu_features/test/cpuinfo_arm_test.cc +384 -0
  134. package/node_modules/cpu-features/deps/cpu_features/test/cpuinfo_mips_test.cc +176 -0
  135. package/node_modules/cpu-features/deps/cpu_features/test/cpuinfo_ppc_test.cc +131 -0
  136. package/node_modules/cpu-features/deps/cpu_features/test/cpuinfo_riscv_test.cc +180 -0
  137. package/node_modules/cpu-features/deps/cpu_features/test/cpuinfo_s390x_test.cc +82 -0
  138. package/node_modules/cpu-features/deps/cpu_features/test/cpuinfo_x86_test.cc +1729 -0
  139. package/node_modules/cpu-features/deps/cpu_features/test/filesystem_for_testing.cc +103 -0
  140. package/node_modules/cpu-features/deps/cpu_features/test/filesystem_for_testing.h +61 -0
  141. package/node_modules/cpu-features/deps/cpu_features/test/hwcaps_for_testing.cc +52 -0
  142. package/node_modules/cpu-features/deps/cpu_features/test/hwcaps_for_testing.h +31 -0
  143. package/node_modules/cpu-features/deps/cpu_features/test/stack_line_reader_test.cc +132 -0
  144. package/node_modules/cpu-features/deps/cpu_features/test/string_view_test.cc +202 -0
  145. package/node_modules/cpu-features/lib/index.js +5 -0
  146. package/node_modules/cpu-features/package.json +40 -0
  147. package/node_modules/cpu-features/src/binding.cc +151 -0
  148. package/node_modules/cpu-features/test/test.js +12 -0
  149. package/node_modules/{@zowe/imperative → cross-spawn}/node_modules/which/README.md +16 -13
  150. package/node_modules/{@zowe/imperative → cross-spawn/node_modules/which}/node_modules/isexe/LICENSE +1 -1
  151. package/node_modules/cross-spawn/node_modules/which/node_modules/isexe/README.md +51 -0
  152. package/node_modules/cross-spawn/node_modules/which/node_modules/isexe/package.json +31 -0
  153. package/node_modules/cross-spawn/node_modules/which/package.json +43 -0
  154. package/node_modules/isexe/LICENSE +1 -1
  155. package/node_modules/isexe/README.md +40 -17
  156. package/node_modules/isexe/package.json +79 -14
  157. package/node_modules/which/README.md +13 -16
  158. package/node_modules/which/package.json +34 -20
  159. package/package.json +13 -13
  160. package/node_modules/@zowe/imperative/node_modules/isexe/README.md +0 -74
  161. package/node_modules/@zowe/imperative/node_modules/isexe/package.json +0 -96
  162. package/node_modules/@zowe/imperative/node_modules/which/package.json +0 -57
  163. package/node_modules/@zowe/secrets-for-zowe-sdk/prebuilds/keyring.darwin-arm64.node +0 -0
  164. package/node_modules/@zowe/secrets-for-zowe-sdk/prebuilds/keyring.darwin-x64.node +0 -0
  165. package/node_modules/@zowe/secrets-for-zowe-sdk/prebuilds/keyring.linux-arm-gnueabihf.node +0 -0
  166. package/node_modules/@zowe/secrets-for-zowe-sdk/prebuilds/keyring.linux-arm64-gnu.node +0 -0
  167. package/node_modules/@zowe/secrets-for-zowe-sdk/prebuilds/keyring.linux-arm64-musl.node +0 -0
  168. package/node_modules/@zowe/secrets-for-zowe-sdk/prebuilds/keyring.linux-ia32-gnu.node +0 -0
  169. package/node_modules/@zowe/secrets-for-zowe-sdk/prebuilds/keyring.linux-x64-gnu.node +0 -0
  170. package/node_modules/@zowe/secrets-for-zowe-sdk/prebuilds/keyring.linux-x64-musl.node +0 -0
  171. package/node_modules/@zowe/secrets-for-zowe-sdk/prebuilds/keyring.win32-arm64-msvc.node +0 -0
  172. package/node_modules/@zowe/secrets-for-zowe-sdk/prebuilds/keyring.win32-ia32-msvc.node +0 -0
  173. package/node_modules/@zowe/secrets-for-zowe-sdk/prebuilds/keyring.win32-x64-msvc.node +0 -0
  174. package/node_modules/@zowe/zos-files-for-zowe-sdk/node_modules/balanced-match/LICENSE.md +0 -23
  175. package/node_modules/@zowe/zos-files-for-zowe-sdk/node_modules/balanced-match/README.md +0 -57
  176. package/node_modules/@zowe/zos-files-for-zowe-sdk/node_modules/balanced-match/dist/commonjs/index.d.ts +0 -9
  177. package/node_modules/@zowe/zos-files-for-zowe-sdk/node_modules/balanced-match/dist/commonjs/index.d.ts.map +0 -1
  178. package/node_modules/@zowe/zos-files-for-zowe-sdk/node_modules/balanced-match/dist/commonjs/index.js +0 -59
  179. package/node_modules/@zowe/zos-files-for-zowe-sdk/node_modules/balanced-match/dist/commonjs/index.js.map +0 -1
  180. package/node_modules/@zowe/zos-files-for-zowe-sdk/node_modules/balanced-match/dist/esm/index.d.ts +0 -9
  181. package/node_modules/@zowe/zos-files-for-zowe-sdk/node_modules/balanced-match/dist/esm/index.d.ts.map +0 -1
  182. package/node_modules/@zowe/zos-files-for-zowe-sdk/node_modules/balanced-match/dist/esm/index.js +0 -54
  183. package/node_modules/@zowe/zos-files-for-zowe-sdk/node_modules/balanced-match/dist/esm/index.js.map +0 -1
  184. package/node_modules/@zowe/zos-files-for-zowe-sdk/node_modules/balanced-match/package.json +0 -68
  185. package/node_modules/@zowe/zos-files-for-zowe-sdk/node_modules/brace-expansion/README.md +0 -105
  186. package/node_modules/@zowe/zos-files-for-zowe-sdk/node_modules/brace-expansion/dist/commonjs/index.d.ts +0 -8
  187. package/node_modules/@zowe/zos-files-for-zowe-sdk/node_modules/brace-expansion/dist/commonjs/index.d.ts.map +0 -1
  188. package/node_modules/@zowe/zos-files-for-zowe-sdk/node_modules/brace-expansion/dist/commonjs/index.js +0 -289
  189. package/node_modules/@zowe/zos-files-for-zowe-sdk/node_modules/brace-expansion/dist/commonjs/index.js.map +0 -1
  190. package/node_modules/@zowe/zos-files-for-zowe-sdk/node_modules/brace-expansion/dist/commonjs/package.json +0 -3
  191. package/node_modules/@zowe/zos-files-for-zowe-sdk/node_modules/brace-expansion/dist/esm/index.d.ts +0 -8
  192. package/node_modules/@zowe/zos-files-for-zowe-sdk/node_modules/brace-expansion/dist/esm/index.d.ts.map +0 -1
  193. package/node_modules/@zowe/zos-files-for-zowe-sdk/node_modules/brace-expansion/dist/esm/index.js +0 -285
  194. package/node_modules/@zowe/zos-files-for-zowe-sdk/node_modules/brace-expansion/dist/esm/index.js.map +0 -1
  195. package/node_modules/@zowe/zos-files-for-zowe-sdk/node_modules/brace-expansion/dist/esm/package.json +0 -3
  196. package/node_modules/@zowe/zos-files-for-zowe-sdk/node_modules/brace-expansion/package.json +0 -64
  197. package/node_modules/@zowe/zos-files-for-zowe-sdk/node_modules/minimatch/LICENSE.md +0 -55
  198. package/node_modules/@zowe/zos-files-for-zowe-sdk/node_modules/minimatch/README.md +0 -528
  199. package/node_modules/@zowe/zos-files-for-zowe-sdk/node_modules/minimatch/dist/commonjs/assert-valid-pattern.d.ts +0 -2
  200. package/node_modules/@zowe/zos-files-for-zowe-sdk/node_modules/minimatch/dist/commonjs/assert-valid-pattern.d.ts.map +0 -1
  201. package/node_modules/@zowe/zos-files-for-zowe-sdk/node_modules/minimatch/dist/commonjs/assert-valid-pattern.js +0 -14
  202. package/node_modules/@zowe/zos-files-for-zowe-sdk/node_modules/minimatch/dist/commonjs/assert-valid-pattern.js.map +0 -1
  203. package/node_modules/@zowe/zos-files-for-zowe-sdk/node_modules/minimatch/dist/commonjs/ast.d.ts +0 -22
  204. package/node_modules/@zowe/zos-files-for-zowe-sdk/node_modules/minimatch/dist/commonjs/ast.d.ts.map +0 -1
  205. package/node_modules/@zowe/zos-files-for-zowe-sdk/node_modules/minimatch/dist/commonjs/ast.js +0 -846
  206. package/node_modules/@zowe/zos-files-for-zowe-sdk/node_modules/minimatch/dist/commonjs/ast.js.map +0 -1
  207. package/node_modules/@zowe/zos-files-for-zowe-sdk/node_modules/minimatch/dist/commonjs/brace-expressions.d.ts +0 -8
  208. package/node_modules/@zowe/zos-files-for-zowe-sdk/node_modules/minimatch/dist/commonjs/brace-expressions.d.ts.map +0 -1
  209. package/node_modules/@zowe/zos-files-for-zowe-sdk/node_modules/minimatch/dist/commonjs/brace-expressions.js +0 -150
  210. package/node_modules/@zowe/zos-files-for-zowe-sdk/node_modules/minimatch/dist/commonjs/brace-expressions.js.map +0 -1
  211. package/node_modules/@zowe/zos-files-for-zowe-sdk/node_modules/minimatch/dist/commonjs/escape.d.ts +0 -15
  212. package/node_modules/@zowe/zos-files-for-zowe-sdk/node_modules/minimatch/dist/commonjs/escape.d.ts.map +0 -1
  213. package/node_modules/@zowe/zos-files-for-zowe-sdk/node_modules/minimatch/dist/commonjs/escape.js +0 -30
  214. package/node_modules/@zowe/zos-files-for-zowe-sdk/node_modules/minimatch/dist/commonjs/escape.js.map +0 -1
  215. package/node_modules/@zowe/zos-files-for-zowe-sdk/node_modules/minimatch/dist/commonjs/index.d.ts +0 -174
  216. package/node_modules/@zowe/zos-files-for-zowe-sdk/node_modules/minimatch/dist/commonjs/index.d.ts.map +0 -1
  217. package/node_modules/@zowe/zos-files-for-zowe-sdk/node_modules/minimatch/dist/commonjs/index.js +0 -1121
  218. package/node_modules/@zowe/zos-files-for-zowe-sdk/node_modules/minimatch/dist/commonjs/index.js.map +0 -1
  219. package/node_modules/@zowe/zos-files-for-zowe-sdk/node_modules/minimatch/dist/commonjs/package.json +0 -3
  220. package/node_modules/@zowe/zos-files-for-zowe-sdk/node_modules/minimatch/dist/commonjs/unescape.d.ts +0 -22
  221. package/node_modules/@zowe/zos-files-for-zowe-sdk/node_modules/minimatch/dist/commonjs/unescape.d.ts.map +0 -1
  222. package/node_modules/@zowe/zos-files-for-zowe-sdk/node_modules/minimatch/dist/commonjs/unescape.js +0 -38
  223. package/node_modules/@zowe/zos-files-for-zowe-sdk/node_modules/minimatch/dist/commonjs/unescape.js.map +0 -1
  224. package/node_modules/@zowe/zos-files-for-zowe-sdk/node_modules/minimatch/dist/esm/assert-valid-pattern.d.ts +0 -2
  225. package/node_modules/@zowe/zos-files-for-zowe-sdk/node_modules/minimatch/dist/esm/assert-valid-pattern.d.ts.map +0 -1
  226. package/node_modules/@zowe/zos-files-for-zowe-sdk/node_modules/minimatch/dist/esm/assert-valid-pattern.js +0 -10
  227. package/node_modules/@zowe/zos-files-for-zowe-sdk/node_modules/minimatch/dist/esm/assert-valid-pattern.js.map +0 -1
  228. package/node_modules/@zowe/zos-files-for-zowe-sdk/node_modules/minimatch/dist/esm/ast.d.ts +0 -22
  229. package/node_modules/@zowe/zos-files-for-zowe-sdk/node_modules/minimatch/dist/esm/ast.d.ts.map +0 -1
  230. package/node_modules/@zowe/zos-files-for-zowe-sdk/node_modules/minimatch/dist/esm/ast.js +0 -842
  231. package/node_modules/@zowe/zos-files-for-zowe-sdk/node_modules/minimatch/dist/esm/ast.js.map +0 -1
  232. package/node_modules/@zowe/zos-files-for-zowe-sdk/node_modules/minimatch/dist/esm/brace-expressions.d.ts +0 -8
  233. package/node_modules/@zowe/zos-files-for-zowe-sdk/node_modules/minimatch/dist/esm/brace-expressions.d.ts.map +0 -1
  234. package/node_modules/@zowe/zos-files-for-zowe-sdk/node_modules/minimatch/dist/esm/brace-expressions.js +0 -146
  235. package/node_modules/@zowe/zos-files-for-zowe-sdk/node_modules/minimatch/dist/esm/brace-expressions.js.map +0 -1
  236. package/node_modules/@zowe/zos-files-for-zowe-sdk/node_modules/minimatch/dist/esm/escape.d.ts +0 -15
  237. package/node_modules/@zowe/zos-files-for-zowe-sdk/node_modules/minimatch/dist/esm/escape.d.ts.map +0 -1
  238. package/node_modules/@zowe/zos-files-for-zowe-sdk/node_modules/minimatch/dist/esm/escape.js +0 -26
  239. package/node_modules/@zowe/zos-files-for-zowe-sdk/node_modules/minimatch/dist/esm/escape.js.map +0 -1
  240. package/node_modules/@zowe/zos-files-for-zowe-sdk/node_modules/minimatch/dist/esm/index.d.ts +0 -174
  241. package/node_modules/@zowe/zos-files-for-zowe-sdk/node_modules/minimatch/dist/esm/index.d.ts.map +0 -1
  242. package/node_modules/@zowe/zos-files-for-zowe-sdk/node_modules/minimatch/dist/esm/index.js +0 -1108
  243. package/node_modules/@zowe/zos-files-for-zowe-sdk/node_modules/minimatch/dist/esm/index.js.map +0 -1
  244. package/node_modules/@zowe/zos-files-for-zowe-sdk/node_modules/minimatch/dist/esm/package.json +0 -3
  245. package/node_modules/@zowe/zos-files-for-zowe-sdk/node_modules/minimatch/dist/esm/unescape.d.ts +0 -22
  246. package/node_modules/@zowe/zos-files-for-zowe-sdk/node_modules/minimatch/dist/esm/unescape.d.ts.map +0 -1
  247. package/node_modules/@zowe/zos-files-for-zowe-sdk/node_modules/minimatch/dist/esm/unescape.js +0 -34
  248. package/node_modules/@zowe/zos-files-for-zowe-sdk/node_modules/minimatch/dist/esm/unescape.js.map +0 -1
  249. package/node_modules/@zowe/zos-files-for-zowe-sdk/node_modules/minimatch/package.json +0 -67
  250. package/node_modules/tar/node_modules/yallist/dist/commonjs/package.json +0 -3
  251. package/node_modules/tar/node_modules/yallist/dist/esm/package.json +0 -3
  252. /package/node_modules/{strip-ansi/node_modules/ansi-regex → ansi-regex}/index.d.ts +0 -0
  253. /package/node_modules/{strip-ansi/node_modules/ansi-regex → ansi-regex}/index.js +0 -0
  254. /package/node_modules/{shebang-command/node_modules/shebang-regex → ansi-regex}/license +0 -0
  255. /package/node_modules/{strip-ansi/node_modules/ansi-regex → ansi-regex}/package.json +0 -0
  256. /package/node_modules/{strip-ansi/node_modules/ansi-regex → ansi-regex}/readme.md +0 -0
  257. /package/node_modules/{winston/node_modules/async → async}/CHANGELOG.md +0 -0
  258. /package/node_modules/{winston/node_modules/async → async}/LICENSE +0 -0
  259. /package/node_modules/{winston/node_modules/async → async}/README.md +0 -0
  260. /package/node_modules/{winston/node_modules/async → async}/all.js +0 -0
  261. /package/node_modules/{winston/node_modules/async → async}/allLimit.js +0 -0
  262. /package/node_modules/{winston/node_modules/async → async}/allSeries.js +0 -0
  263. /package/node_modules/{winston/node_modules/async → async}/any.js +0 -0
  264. /package/node_modules/{winston/node_modules/async → async}/anyLimit.js +0 -0
  265. /package/node_modules/{winston/node_modules/async → async}/anySeries.js +0 -0
  266. /package/node_modules/{winston/node_modules/async → async}/apply.js +0 -0
  267. /package/node_modules/{winston/node_modules/async → async}/applyEach.js +0 -0
  268. /package/node_modules/{winston/node_modules/async → async}/applyEachSeries.js +0 -0
  269. /package/node_modules/{winston/node_modules/async → async}/asyncify.js +0 -0
  270. /package/node_modules/{winston/node_modules/async → async}/auto.js +0 -0
  271. /package/node_modules/{winston/node_modules/async → async}/autoInject.js +0 -0
  272. /package/node_modules/{winston/node_modules/async → async}/bower.json +0 -0
  273. /package/node_modules/{winston/node_modules/async → async}/cargo.js +0 -0
  274. /package/node_modules/{winston/node_modules/async → async}/cargoQueue.js +0 -0
  275. /package/node_modules/{winston/node_modules/async → async}/compose.js +0 -0
  276. /package/node_modules/{winston/node_modules/async → async}/concat.js +0 -0
  277. /package/node_modules/{winston/node_modules/async → async}/concatLimit.js +0 -0
  278. /package/node_modules/{winston/node_modules/async → async}/concatSeries.js +0 -0
  279. /package/node_modules/{winston/node_modules/async → async}/constant.js +0 -0
  280. /package/node_modules/{winston/node_modules/async → async}/detect.js +0 -0
  281. /package/node_modules/{winston/node_modules/async → async}/detectLimit.js +0 -0
  282. /package/node_modules/{winston/node_modules/async → async}/detectSeries.js +0 -0
  283. /package/node_modules/{winston/node_modules/async → async}/dir.js +0 -0
  284. /package/node_modules/{winston/node_modules/async → async}/dist/async.js +0 -0
  285. /package/node_modules/{winston/node_modules/async → async}/dist/async.min.js +0 -0
  286. /package/node_modules/{winston/node_modules/async → async}/dist/async.mjs +0 -0
  287. /package/node_modules/{winston/node_modules/async → async}/doDuring.js +0 -0
  288. /package/node_modules/{winston/node_modules/async → async}/doUntil.js +0 -0
  289. /package/node_modules/{winston/node_modules/async → async}/doWhilst.js +0 -0
  290. /package/node_modules/{winston/node_modules/async → async}/during.js +0 -0
  291. /package/node_modules/{winston/node_modules/async → async}/each.js +0 -0
  292. /package/node_modules/{winston/node_modules/async → async}/eachLimit.js +0 -0
  293. /package/node_modules/{winston/node_modules/async → async}/eachOf.js +0 -0
  294. /package/node_modules/{winston/node_modules/async → async}/eachOfLimit.js +0 -0
  295. /package/node_modules/{winston/node_modules/async → async}/eachOfSeries.js +0 -0
  296. /package/node_modules/{winston/node_modules/async → async}/eachSeries.js +0 -0
  297. /package/node_modules/{winston/node_modules/async → async}/ensureAsync.js +0 -0
  298. /package/node_modules/{winston/node_modules/async → async}/every.js +0 -0
  299. /package/node_modules/{winston/node_modules/async → async}/everyLimit.js +0 -0
  300. /package/node_modules/{winston/node_modules/async → async}/everySeries.js +0 -0
  301. /package/node_modules/{winston/node_modules/async → async}/filter.js +0 -0
  302. /package/node_modules/{winston/node_modules/async → async}/filterLimit.js +0 -0
  303. /package/node_modules/{winston/node_modules/async → async}/filterSeries.js +0 -0
  304. /package/node_modules/{winston/node_modules/async → async}/find.js +0 -0
  305. /package/node_modules/{winston/node_modules/async → async}/findLimit.js +0 -0
  306. /package/node_modules/{winston/node_modules/async → async}/findSeries.js +0 -0
  307. /package/node_modules/{winston/node_modules/async → async}/flatMap.js +0 -0
  308. /package/node_modules/{winston/node_modules/async → async}/flatMapLimit.js +0 -0
  309. /package/node_modules/{winston/node_modules/async → async}/flatMapSeries.js +0 -0
  310. /package/node_modules/{winston/node_modules/async → async}/foldl.js +0 -0
  311. /package/node_modules/{winston/node_modules/async → async}/foldr.js +0 -0
  312. /package/node_modules/{winston/node_modules/async → async}/forEach.js +0 -0
  313. /package/node_modules/{winston/node_modules/async → async}/forEachLimit.js +0 -0
  314. /package/node_modules/{winston/node_modules/async → async}/forEachOf.js +0 -0
  315. /package/node_modules/{winston/node_modules/async → async}/forEachOfLimit.js +0 -0
  316. /package/node_modules/{winston/node_modules/async → async}/forEachOfSeries.js +0 -0
  317. /package/node_modules/{winston/node_modules/async → async}/forEachSeries.js +0 -0
  318. /package/node_modules/{winston/node_modules/async → async}/forever.js +0 -0
  319. /package/node_modules/{winston/node_modules/async → async}/groupBy.js +0 -0
  320. /package/node_modules/{winston/node_modules/async → async}/groupByLimit.js +0 -0
  321. /package/node_modules/{winston/node_modules/async → async}/groupBySeries.js +0 -0
  322. /package/node_modules/{winston/node_modules/async → async}/index.js +0 -0
  323. /package/node_modules/{winston/node_modules/async → async}/inject.js +0 -0
  324. /package/node_modules/{winston/node_modules/async → async}/internal/DoublyLinkedList.js +0 -0
  325. /package/node_modules/{winston/node_modules/async → async}/internal/Heap.js +0 -0
  326. /package/node_modules/{winston/node_modules/async → async}/internal/applyEach.js +0 -0
  327. /package/node_modules/{winston/node_modules/async → async}/internal/asyncEachOfLimit.js +0 -0
  328. /package/node_modules/{winston/node_modules/async → async}/internal/awaitify.js +0 -0
  329. /package/node_modules/{winston/node_modules/async → async}/internal/breakLoop.js +0 -0
  330. /package/node_modules/{winston/node_modules/async → async}/internal/consoleFunc.js +0 -0
  331. /package/node_modules/{winston/node_modules/async → async}/internal/createTester.js +0 -0
  332. /package/node_modules/{winston/node_modules/async → async}/internal/eachOfLimit.js +0 -0
  333. /package/node_modules/{winston/node_modules/async → async}/internal/filter.js +0 -0
  334. /package/node_modules/{winston/node_modules/async → async}/internal/getIterator.js +0 -0
  335. /package/node_modules/{winston/node_modules/async → async}/internal/initialParams.js +0 -0
  336. /package/node_modules/{winston/node_modules/async → async}/internal/isArrayLike.js +0 -0
  337. /package/node_modules/{winston/node_modules/async → async}/internal/iterator.js +0 -0
  338. /package/node_modules/{winston/node_modules/async → async}/internal/map.js +0 -0
  339. /package/node_modules/{winston/node_modules/async → async}/internal/once.js +0 -0
  340. /package/node_modules/{winston/node_modules/async → async}/internal/onlyOnce.js +0 -0
  341. /package/node_modules/{winston/node_modules/async → async}/internal/parallel.js +0 -0
  342. /package/node_modules/{winston/node_modules/async → async}/internal/promiseCallback.js +0 -0
  343. /package/node_modules/{winston/node_modules/async → async}/internal/queue.js +0 -0
  344. /package/node_modules/{winston/node_modules/async → async}/internal/range.js +0 -0
  345. /package/node_modules/{winston/node_modules/async → async}/internal/reject.js +0 -0
  346. /package/node_modules/{winston/node_modules/async → async}/internal/setImmediate.js +0 -0
  347. /package/node_modules/{winston/node_modules/async → async}/internal/withoutIndex.js +0 -0
  348. /package/node_modules/{winston/node_modules/async → async}/internal/wrapAsync.js +0 -0
  349. /package/node_modules/{winston/node_modules/async → async}/log.js +0 -0
  350. /package/node_modules/{winston/node_modules/async → async}/map.js +0 -0
  351. /package/node_modules/{winston/node_modules/async → async}/mapLimit.js +0 -0
  352. /package/node_modules/{winston/node_modules/async → async}/mapSeries.js +0 -0
  353. /package/node_modules/{winston/node_modules/async → async}/mapValues.js +0 -0
  354. /package/node_modules/{winston/node_modules/async → async}/mapValuesLimit.js +0 -0
  355. /package/node_modules/{winston/node_modules/async → async}/mapValuesSeries.js +0 -0
  356. /package/node_modules/{winston/node_modules/async → async}/memoize.js +0 -0
  357. /package/node_modules/{winston/node_modules/async → async}/nextTick.js +0 -0
  358. /package/node_modules/{winston/node_modules/async → async}/package.json +0 -0
  359. /package/node_modules/{winston/node_modules/async → async}/parallel.js +0 -0
  360. /package/node_modules/{winston/node_modules/async → async}/parallelLimit.js +0 -0
  361. /package/node_modules/{winston/node_modules/async → async}/priorityQueue.js +0 -0
  362. /package/node_modules/{winston/node_modules/async → async}/queue.js +0 -0
  363. /package/node_modules/{winston/node_modules/async → async}/race.js +0 -0
  364. /package/node_modules/{winston/node_modules/async → async}/reduce.js +0 -0
  365. /package/node_modules/{winston/node_modules/async → async}/reduceRight.js +0 -0
  366. /package/node_modules/{winston/node_modules/async → async}/reflect.js +0 -0
  367. /package/node_modules/{winston/node_modules/async → async}/reflectAll.js +0 -0
  368. /package/node_modules/{winston/node_modules/async → async}/reject.js +0 -0
  369. /package/node_modules/{winston/node_modules/async → async}/rejectLimit.js +0 -0
  370. /package/node_modules/{winston/node_modules/async → async}/rejectSeries.js +0 -0
  371. /package/node_modules/{winston/node_modules/async → async}/retry.js +0 -0
  372. /package/node_modules/{winston/node_modules/async → async}/retryable.js +0 -0
  373. /package/node_modules/{winston/node_modules/async → async}/select.js +0 -0
  374. /package/node_modules/{winston/node_modules/async → async}/selectLimit.js +0 -0
  375. /package/node_modules/{winston/node_modules/async → async}/selectSeries.js +0 -0
  376. /package/node_modules/{winston/node_modules/async → async}/seq.js +0 -0
  377. /package/node_modules/{winston/node_modules/async → async}/series.js +0 -0
  378. /package/node_modules/{winston/node_modules/async → async}/setImmediate.js +0 -0
  379. /package/node_modules/{winston/node_modules/async → async}/some.js +0 -0
  380. /package/node_modules/{winston/node_modules/async → async}/someLimit.js +0 -0
  381. /package/node_modules/{winston/node_modules/async → async}/someSeries.js +0 -0
  382. /package/node_modules/{winston/node_modules/async → async}/sortBy.js +0 -0
  383. /package/node_modules/{winston/node_modules/async → async}/timeout.js +0 -0
  384. /package/node_modules/{winston/node_modules/async → async}/times.js +0 -0
  385. /package/node_modules/{winston/node_modules/async → async}/timesLimit.js +0 -0
  386. /package/node_modules/{winston/node_modules/async → async}/timesSeries.js +0 -0
  387. /package/node_modules/{winston/node_modules/async → async}/transform.js +0 -0
  388. /package/node_modules/{winston/node_modules/async → async}/tryEach.js +0 -0
  389. /package/node_modules/{winston/node_modules/async → async}/unmemoize.js +0 -0
  390. /package/node_modules/{winston/node_modules/async → async}/until.js +0 -0
  391. /package/node_modules/{winston/node_modules/async → async}/waterfall.js +0 -0
  392. /package/node_modules/{winston/node_modules/async → async}/whilst.js +0 -0
  393. /package/node_modules/{winston/node_modules/async → async}/wrapSync.js +0 -0
  394. /package/node_modules/{yargs/node_modules/cliui → cliui}/LICENSE.txt +0 -0
  395. /package/node_modules/{yargs/node_modules/cliui → cliui}/README.md +0 -0
  396. /package/node_modules/{yargs/node_modules/cliui → cliui}/build/index.cjs +0 -0
  397. /package/node_modules/{yargs/node_modules/cliui → cliui}/build/index.d.cts +0 -0
  398. /package/node_modules/{yargs/node_modules/cliui → cliui}/build/lib/index.js +0 -0
  399. /package/node_modules/{yargs/node_modules/cliui → cliui}/build/lib/string-utils.js +0 -0
  400. /package/node_modules/{yargs/node_modules/cliui → cliui}/index.mjs +0 -0
  401. /package/node_modules/{yargs/node_modules/cliui → cliui}/package.json +0 -0
  402. /package/node_modules/color/node_modules/{color-name → color-convert/node_modules/color-name}/.eslintrc.json +0 -0
  403. /package/node_modules/color/node_modules/{color-name → color-convert/node_modules/color-name}/.npmignore +0 -0
  404. /package/node_modules/color/node_modules/{color-name → color-convert/node_modules/color-name}/LICENSE +0 -0
  405. /package/node_modules/color/node_modules/{color-name → color-convert/node_modules/color-name}/README.md +0 -0
  406. /package/node_modules/color/node_modules/{color-name → color-convert/node_modules/color-name}/index.js +0 -0
  407. /package/node_modules/color/node_modules/{color-name → color-convert/node_modules/color-name}/package.json +0 -0
  408. /package/node_modules/color/node_modules/{color-name → color-convert/node_modules/color-name}/test.js +0 -0
  409. /package/node_modules/{@zowe/imperative → cross-spawn}/node_modules/which/LICENSE +0 -0
  410. /package/node_modules/{which → cross-spawn/node_modules/which}/bin/node-which +0 -0
  411. /package/node_modules/{isexe → cross-spawn/node_modules/which/node_modules/isexe}/.npmignore +0 -0
  412. /package/node_modules/{isexe → cross-spawn/node_modules/which/node_modules/isexe}/index.js +0 -0
  413. /package/node_modules/{isexe → cross-spawn/node_modules/which/node_modules/isexe}/mode.js +0 -0
  414. /package/node_modules/{isexe → cross-spawn/node_modules/which/node_modules/isexe}/test/basic.js +0 -0
  415. /package/node_modules/{isexe → cross-spawn/node_modules/which/node_modules/isexe}/windows.js +0 -0
  416. /package/node_modules/{which → cross-spawn/node_modules/which}/which.js +0 -0
  417. /package/node_modules/{sanitize-html/node_modules/dom-serializer → dom-serializer}/LICENSE +0 -0
  418. /package/node_modules/{sanitize-html/node_modules/dom-serializer → dom-serializer}/README.md +0 -0
  419. /package/node_modules/{sanitize-html/node_modules/dom-serializer → dom-serializer}/dist/foreign-names.d.ts +0 -0
  420. /package/node_modules/{sanitize-html/node_modules/dom-serializer → dom-serializer}/dist/foreign-names.d.ts.map +0 -0
  421. /package/node_modules/{sanitize-html/node_modules/dom-serializer → dom-serializer}/dist/foreign-names.js +0 -0
  422. /package/node_modules/{sanitize-html/node_modules/dom-serializer → dom-serializer}/dist/foreign-names.js.map +0 -0
  423. /package/node_modules/{sanitize-html/node_modules/dom-serializer → dom-serializer}/dist/index.d.ts +0 -0
  424. /package/node_modules/{sanitize-html/node_modules/dom-serializer → dom-serializer}/dist/index.d.ts.map +0 -0
  425. /package/node_modules/{sanitize-html/node_modules/dom-serializer → dom-serializer}/dist/index.js +0 -0
  426. /package/node_modules/{sanitize-html/node_modules/dom-serializer → dom-serializer}/dist/index.js.map +0 -0
  427. /package/node_modules/{sanitize-html/node_modules/dom-serializer → dom-serializer}/package.json +0 -0
  428. /package/node_modules/{sanitize-html/node_modules/dom-serializer → dom-serializer}/src/foreign-names.ts +0 -0
  429. /package/node_modules/{sanitize-html/node_modules/dom-serializer → dom-serializer}/src/index.ts +0 -0
  430. /package/node_modules/{sanitize-html/node_modules/domelementtype → domelementtype}/LICENSE +0 -0
  431. /package/node_modules/{sanitize-html/node_modules/domelementtype → domelementtype}/dist/index.d.ts +0 -0
  432. /package/node_modules/{sanitize-html/node_modules/domelementtype → domelementtype}/dist/index.d.ts.map +0 -0
  433. /package/node_modules/{sanitize-html/node_modules/domelementtype → domelementtype}/dist/index.js +0 -0
  434. /package/node_modules/{sanitize-html/node_modules/domelementtype → domelementtype}/package.json +0 -0
  435. /package/node_modules/{sanitize-html/node_modules/domelementtype → domelementtype}/readme.md +0 -0
  436. /package/node_modules/{sanitize-html/node_modules/domhandler → domhandler}/LICENSE +0 -0
  437. /package/node_modules/{sanitize-html/node_modules/domhandler → domhandler}/dist/index.d.ts +0 -0
  438. /package/node_modules/{sanitize-html/node_modules/domhandler → domhandler}/dist/index.d.ts.map +0 -0
  439. /package/node_modules/{sanitize-html/node_modules/domhandler → domhandler}/dist/index.js +0 -0
  440. /package/node_modules/{sanitize-html/node_modules/domhandler → domhandler}/dist/node.d.ts +0 -0
  441. /package/node_modules/{sanitize-html/node_modules/domhandler → domhandler}/dist/node.d.ts.map +0 -0
  442. /package/node_modules/{sanitize-html/node_modules/domhandler → domhandler}/dist/node.js +0 -0
  443. /package/node_modules/{sanitize-html/node_modules/domhandler → domhandler}/package.json +0 -0
  444. /package/node_modules/{sanitize-html/node_modules/domhandler → domhandler}/readme.md +0 -0
  445. /package/node_modules/{sanitize-html/node_modules/domutils → domutils}/LICENSE +0 -0
  446. /package/node_modules/{sanitize-html/node_modules/domutils → domutils}/dist/feeds.d.ts +0 -0
  447. /package/node_modules/{sanitize-html/node_modules/domutils → domutils}/dist/feeds.d.ts.map +0 -0
  448. /package/node_modules/{sanitize-html/node_modules/domutils → domutils}/dist/feeds.js +0 -0
  449. /package/node_modules/{sanitize-html/node_modules/domutils → domutils}/dist/feeds.js.map +0 -0
  450. /package/node_modules/{sanitize-html/node_modules/domutils → domutils}/dist/helpers.d.ts +0 -0
  451. /package/node_modules/{sanitize-html/node_modules/domutils → domutils}/dist/helpers.d.ts.map +0 -0
  452. /package/node_modules/{sanitize-html/node_modules/domutils → domutils}/dist/helpers.js +0 -0
  453. /package/node_modules/{sanitize-html/node_modules/domutils → domutils}/dist/helpers.js.map +0 -0
  454. /package/node_modules/{sanitize-html/node_modules/domutils → domutils}/dist/index.d.ts +0 -0
  455. /package/node_modules/{sanitize-html/node_modules/domutils → domutils}/dist/index.d.ts.map +0 -0
  456. /package/node_modules/{sanitize-html/node_modules/domutils → domutils}/dist/index.js +0 -0
  457. /package/node_modules/{sanitize-html/node_modules/domutils → domutils}/dist/index.js.map +0 -0
  458. /package/node_modules/{sanitize-html/node_modules/domutils → domutils}/dist/legacy.d.ts +0 -0
  459. /package/node_modules/{sanitize-html/node_modules/domutils → domutils}/dist/legacy.d.ts.map +0 -0
  460. /package/node_modules/{sanitize-html/node_modules/domutils → domutils}/dist/legacy.js +0 -0
  461. /package/node_modules/{sanitize-html/node_modules/domutils → domutils}/dist/legacy.js.map +0 -0
  462. /package/node_modules/{sanitize-html/node_modules/domutils → domutils}/dist/manipulation.d.ts +0 -0
  463. /package/node_modules/{sanitize-html/node_modules/domutils → domutils}/dist/manipulation.d.ts.map +0 -0
  464. /package/node_modules/{sanitize-html/node_modules/domutils → domutils}/dist/manipulation.js +0 -0
  465. /package/node_modules/{sanitize-html/node_modules/domutils → domutils}/dist/manipulation.js.map +0 -0
  466. /package/node_modules/{sanitize-html/node_modules/domutils → domutils}/dist/querying.d.ts +0 -0
  467. /package/node_modules/{sanitize-html/node_modules/domutils → domutils}/dist/querying.d.ts.map +0 -0
  468. /package/node_modules/{sanitize-html/node_modules/domutils → domutils}/dist/querying.js +0 -0
  469. /package/node_modules/{sanitize-html/node_modules/domutils → domutils}/dist/querying.js.map +0 -0
  470. /package/node_modules/{sanitize-html/node_modules/domutils → domutils}/dist/stringify.d.ts +0 -0
  471. /package/node_modules/{sanitize-html/node_modules/domutils → domutils}/dist/stringify.d.ts.map +0 -0
  472. /package/node_modules/{sanitize-html/node_modules/domutils → domutils}/dist/stringify.js +0 -0
  473. /package/node_modules/{sanitize-html/node_modules/domutils → domutils}/dist/stringify.js.map +0 -0
  474. /package/node_modules/{sanitize-html/node_modules/domutils → domutils}/dist/traversal.d.ts +0 -0
  475. /package/node_modules/{sanitize-html/node_modules/domutils → domutils}/dist/traversal.d.ts.map +0 -0
  476. /package/node_modules/{sanitize-html/node_modules/domutils → domutils}/dist/traversal.js +0 -0
  477. /package/node_modules/{sanitize-html/node_modules/domutils → domutils}/dist/traversal.js.map +0 -0
  478. /package/node_modules/{sanitize-html/node_modules/domutils → domutils}/package.json +0 -0
  479. /package/node_modules/{sanitize-html/node_modules/domutils → domutils}/readme.md +0 -0
  480. /package/node_modules/{sanitize-html/node_modules/domutils → domutils}/src/__snapshots__/feeds.spec.ts.snap +0 -0
  481. /package/node_modules/{sanitize-html/node_modules/domutils → domutils}/src/feeds.ts +0 -0
  482. /package/node_modules/{sanitize-html/node_modules/domutils → domutils}/src/helpers.ts +0 -0
  483. /package/node_modules/{sanitize-html/node_modules/domutils → domutils}/src/index.ts +0 -0
  484. /package/node_modules/{sanitize-html/node_modules/domutils → domutils}/src/legacy.ts +0 -0
  485. /package/node_modules/{sanitize-html/node_modules/domutils → domutils}/src/manipulation.ts +0 -0
  486. /package/node_modules/{sanitize-html/node_modules/domutils → domutils}/src/querying.ts +0 -0
  487. /package/node_modules/{sanitize-html/node_modules/domutils → domutils}/src/stringify.ts +0 -0
  488. /package/node_modules/{sanitize-html/node_modules/domutils → domutils}/src/traversal.ts +0 -0
  489. /package/node_modules/{sanitize-html/node_modules/htmlparser2 → htmlparser2}/LICENSE +0 -0
  490. /package/node_modules/{sanitize-html/node_modules/htmlparser2 → htmlparser2}/README.md +0 -0
  491. /package/node_modules/{sanitize-html/node_modules/htmlparser2 → htmlparser2}/dist/Parser.d.ts +0 -0
  492. /package/node_modules/{sanitize-html/node_modules/htmlparser2 → htmlparser2}/dist/Parser.d.ts.map +0 -0
  493. /package/node_modules/{sanitize-html/node_modules/htmlparser2 → htmlparser2}/dist/Parser.js +0 -0
  494. /package/node_modules/{sanitize-html/node_modules/htmlparser2 → htmlparser2}/dist/Parser.js.map +0 -0
  495. /package/node_modules/{sanitize-html/node_modules/htmlparser2 → htmlparser2}/dist/Tokenizer.d.ts +0 -0
  496. /package/node_modules/{sanitize-html/node_modules/htmlparser2 → htmlparser2}/dist/Tokenizer.d.ts.map +0 -0
  497. /package/node_modules/{sanitize-html/node_modules/htmlparser2 → htmlparser2}/dist/Tokenizer.js +0 -0
  498. /package/node_modules/{sanitize-html/node_modules/htmlparser2 → htmlparser2}/dist/Tokenizer.js.map +0 -0
  499. /package/node_modules/{sanitize-html/node_modules/htmlparser2 → htmlparser2}/dist/WebWritableStream.d.ts +0 -0
  500. /package/node_modules/{sanitize-html/node_modules/htmlparser2 → htmlparser2}/dist/WebWritableStream.d.ts.map +0 -0
  501. /package/node_modules/{sanitize-html/node_modules/htmlparser2 → htmlparser2}/dist/WebWritableStream.js +0 -0
  502. /package/node_modules/{sanitize-html/node_modules/htmlparser2 → htmlparser2}/dist/WebWritableStream.js.map +0 -0
  503. /package/node_modules/{sanitize-html/node_modules/htmlparser2 → htmlparser2}/dist/WritableStream.d.ts +0 -0
  504. /package/node_modules/{sanitize-html/node_modules/htmlparser2 → htmlparser2}/dist/WritableStream.d.ts.map +0 -0
  505. /package/node_modules/{sanitize-html/node_modules/htmlparser2 → htmlparser2}/dist/WritableStream.js +0 -0
  506. /package/node_modules/{sanitize-html/node_modules/htmlparser2 → htmlparser2}/dist/WritableStream.js.map +0 -0
  507. /package/node_modules/{sanitize-html/node_modules/htmlparser2 → htmlparser2}/dist/index.d.ts +0 -0
  508. /package/node_modules/{sanitize-html/node_modules/htmlparser2 → htmlparser2}/dist/index.d.ts.map +0 -0
  509. /package/node_modules/{sanitize-html/node_modules/htmlparser2 → htmlparser2}/dist/index.js +0 -0
  510. /package/node_modules/{sanitize-html/node_modules/htmlparser2 → htmlparser2}/dist/index.js.map +0 -0
  511. /package/node_modules/{sanitize-html → htmlparser2}/node_modules/entities/LICENSE +0 -0
  512. /package/node_modules/{sanitize-html → htmlparser2}/node_modules/entities/dist/decode-codepoint.d.ts +0 -0
  513. /package/node_modules/{sanitize-html → htmlparser2}/node_modules/entities/dist/decode-codepoint.d.ts.map +0 -0
  514. /package/node_modules/{sanitize-html → htmlparser2}/node_modules/entities/dist/decode-codepoint.js +0 -0
  515. /package/node_modules/{sanitize-html → htmlparser2}/node_modules/entities/dist/decode-codepoint.js.map +0 -0
  516. /package/node_modules/{sanitize-html → htmlparser2}/node_modules/entities/dist/decode.d.ts +0 -0
  517. /package/node_modules/{sanitize-html → htmlparser2}/node_modules/entities/dist/decode.d.ts.map +0 -0
  518. /package/node_modules/{sanitize-html → htmlparser2}/node_modules/entities/dist/decode.js +0 -0
  519. /package/node_modules/{sanitize-html → htmlparser2}/node_modules/entities/dist/decode.js.map +0 -0
  520. /package/node_modules/{sanitize-html → htmlparser2}/node_modules/entities/dist/encode.d.ts +0 -0
  521. /package/node_modules/{sanitize-html → htmlparser2}/node_modules/entities/dist/encode.d.ts.map +0 -0
  522. /package/node_modules/{sanitize-html → htmlparser2}/node_modules/entities/dist/encode.js +0 -0
  523. /package/node_modules/{sanitize-html → htmlparser2}/node_modules/entities/dist/encode.js.map +0 -0
  524. /package/node_modules/{sanitize-html → htmlparser2}/node_modules/entities/dist/escape.d.ts +0 -0
  525. /package/node_modules/{sanitize-html → htmlparser2}/node_modules/entities/dist/escape.d.ts.map +0 -0
  526. /package/node_modules/{sanitize-html → htmlparser2}/node_modules/entities/dist/escape.js +0 -0
  527. /package/node_modules/{sanitize-html → htmlparser2}/node_modules/entities/dist/escape.js.map +0 -0
  528. /package/node_modules/{sanitize-html → htmlparser2}/node_modules/entities/dist/generated/decode-data-html.d.ts +0 -0
  529. /package/node_modules/{sanitize-html → htmlparser2}/node_modules/entities/dist/generated/decode-data-html.d.ts.map +0 -0
  530. /package/node_modules/{sanitize-html → htmlparser2}/node_modules/entities/dist/generated/decode-data-html.js +0 -0
  531. /package/node_modules/{sanitize-html → htmlparser2}/node_modules/entities/dist/generated/decode-data-html.js.map +0 -0
  532. /package/node_modules/{sanitize-html → htmlparser2}/node_modules/entities/dist/generated/decode-data-xml.d.ts +0 -0
  533. /package/node_modules/{sanitize-html → htmlparser2}/node_modules/entities/dist/generated/decode-data-xml.d.ts.map +0 -0
  534. /package/node_modules/{sanitize-html → htmlparser2}/node_modules/entities/dist/generated/decode-data-xml.js +0 -0
  535. /package/node_modules/{sanitize-html → htmlparser2}/node_modules/entities/dist/generated/decode-data-xml.js.map +0 -0
  536. /package/node_modules/{sanitize-html → htmlparser2}/node_modules/entities/dist/generated/encode-html.d.ts +0 -0
  537. /package/node_modules/{sanitize-html → htmlparser2}/node_modules/entities/dist/generated/encode-html.d.ts.map +0 -0
  538. /package/node_modules/{sanitize-html → htmlparser2}/node_modules/entities/dist/generated/encode-html.js +0 -0
  539. /package/node_modules/{sanitize-html → htmlparser2}/node_modules/entities/dist/generated/encode-html.js.map +0 -0
  540. /package/node_modules/{sanitize-html → htmlparser2}/node_modules/entities/dist/index.d.ts +0 -0
  541. /package/node_modules/{sanitize-html → htmlparser2}/node_modules/entities/dist/index.d.ts.map +0 -0
  542. /package/node_modules/{sanitize-html → htmlparser2}/node_modules/entities/dist/index.js +0 -0
  543. /package/node_modules/{sanitize-html → htmlparser2}/node_modules/entities/dist/index.js.map +0 -0
  544. /package/node_modules/{sanitize-html → htmlparser2}/node_modules/entities/dist/internal/bin-trie-flags.d.ts +0 -0
  545. /package/node_modules/{sanitize-html → htmlparser2}/node_modules/entities/dist/internal/bin-trie-flags.d.ts.map +0 -0
  546. /package/node_modules/{sanitize-html → htmlparser2}/node_modules/entities/dist/internal/bin-trie-flags.js +0 -0
  547. /package/node_modules/{sanitize-html → htmlparser2}/node_modules/entities/dist/internal/bin-trie-flags.js.map +0 -0
  548. /package/node_modules/{sanitize-html → htmlparser2}/node_modules/entities/dist/internal/decode-shared.d.ts +0 -0
  549. /package/node_modules/{sanitize-html → htmlparser2}/node_modules/entities/dist/internal/decode-shared.d.ts.map +0 -0
  550. /package/node_modules/{sanitize-html → htmlparser2}/node_modules/entities/dist/internal/decode-shared.js +0 -0
  551. /package/node_modules/{sanitize-html → htmlparser2}/node_modules/entities/dist/internal/decode-shared.js.map +0 -0
  552. /package/node_modules/{sanitize-html → htmlparser2}/node_modules/entities/package.json +0 -0
  553. /package/node_modules/{sanitize-html → htmlparser2}/node_modules/entities/readme.md +0 -0
  554. /package/node_modules/{sanitize-html → htmlparser2}/node_modules/entities/src/decode-codepoint.ts +0 -0
  555. /package/node_modules/{sanitize-html → htmlparser2}/node_modules/entities/src/decode.ts +0 -0
  556. /package/node_modules/{sanitize-html → htmlparser2}/node_modules/entities/src/encode.ts +0 -0
  557. /package/node_modules/{sanitize-html → htmlparser2}/node_modules/entities/src/escape.ts +0 -0
  558. /package/node_modules/{sanitize-html → htmlparser2}/node_modules/entities/src/generated/decode-data-html.ts +0 -0
  559. /package/node_modules/{sanitize-html → htmlparser2}/node_modules/entities/src/generated/decode-data-xml.ts +0 -0
  560. /package/node_modules/{sanitize-html → htmlparser2}/node_modules/entities/src/generated/encode-html.ts +0 -0
  561. /package/node_modules/{sanitize-html → htmlparser2}/node_modules/entities/src/index.ts +0 -0
  562. /package/node_modules/{sanitize-html → htmlparser2}/node_modules/entities/src/internal/bin-trie-flags.ts +0 -0
  563. /package/node_modules/{sanitize-html → htmlparser2}/node_modules/entities/src/internal/decode-shared.ts +0 -0
  564. /package/node_modules/{sanitize-html/node_modules/htmlparser2 → htmlparser2}/package.json +0 -0
  565. /package/node_modules/{sanitize-html/node_modules/htmlparser2 → htmlparser2}/src/Parser.ts +0 -0
  566. /package/node_modules/{sanitize-html/node_modules/htmlparser2 → htmlparser2}/src/Tokenizer.ts +0 -0
  567. /package/node_modules/{sanitize-html/node_modules/htmlparser2 → htmlparser2}/src/WebWritableStream.ts +0 -0
  568. /package/node_modules/{sanitize-html/node_modules/htmlparser2 → htmlparser2}/src/WritableStream.ts +0 -0
  569. /package/node_modules/{sanitize-html/node_modules/htmlparser2 → htmlparser2}/src/index.ts +0 -0
  570. /package/node_modules/{simple-swizzle/node_modules/is-arrayish → is-arrayish}/LICENSE +0 -0
  571. /package/node_modules/{simple-swizzle/node_modules/is-arrayish → is-arrayish}/README.md +0 -0
  572. /package/node_modules/{simple-swizzle/node_modules/is-arrayish → is-arrayish}/index.js +0 -0
  573. /package/node_modules/{simple-swizzle/node_modules/is-arrayish → is-arrayish}/package.json +0 -0
  574. /package/node_modules/{simple-swizzle/node_modules/is-arrayish → is-arrayish}/yarn-error.log +0 -0
  575. /package/node_modules/{@zowe/imperative/node_modules/isexe → isexe}/dist/cjs/index.d.ts +0 -0
  576. /package/node_modules/{@zowe/imperative/node_modules/isexe → isexe}/dist/cjs/index.d.ts.map +0 -0
  577. /package/node_modules/{@zowe/imperative/node_modules/isexe → isexe}/dist/cjs/index.js +0 -0
  578. /package/node_modules/{@zowe/imperative/node_modules/isexe → isexe}/dist/cjs/index.js.map +0 -0
  579. /package/node_modules/{@zowe/imperative/node_modules/isexe → isexe}/dist/cjs/options.d.ts +0 -0
  580. /package/node_modules/{@zowe/imperative/node_modules/isexe → isexe}/dist/cjs/options.d.ts.map +0 -0
  581. /package/node_modules/{@zowe/imperative/node_modules/isexe → isexe}/dist/cjs/options.js +0 -0
  582. /package/node_modules/{@zowe/imperative/node_modules/isexe → isexe}/dist/cjs/options.js.map +0 -0
  583. /package/node_modules/{@zowe/imperative/node_modules/isexe → isexe}/dist/cjs/package.json +0 -0
  584. /package/node_modules/{@zowe/imperative/node_modules/isexe → isexe}/dist/cjs/posix.d.ts +0 -0
  585. /package/node_modules/{@zowe/imperative/node_modules/isexe → isexe}/dist/cjs/posix.d.ts.map +0 -0
  586. /package/node_modules/{@zowe/imperative/node_modules/isexe → isexe}/dist/cjs/posix.js +0 -0
  587. /package/node_modules/{@zowe/imperative/node_modules/isexe → isexe}/dist/cjs/posix.js.map +0 -0
  588. /package/node_modules/{@zowe/imperative/node_modules/isexe → isexe}/dist/cjs/win32.d.ts +0 -0
  589. /package/node_modules/{@zowe/imperative/node_modules/isexe → isexe}/dist/cjs/win32.d.ts.map +0 -0
  590. /package/node_modules/{@zowe/imperative/node_modules/isexe → isexe}/dist/cjs/win32.js +0 -0
  591. /package/node_modules/{@zowe/imperative/node_modules/isexe → isexe}/dist/cjs/win32.js.map +0 -0
  592. /package/node_modules/{@zowe/imperative/node_modules/isexe → isexe}/dist/mjs/index.d.ts +0 -0
  593. /package/node_modules/{@zowe/imperative/node_modules/isexe → isexe}/dist/mjs/index.d.ts.map +0 -0
  594. /package/node_modules/{@zowe/imperative/node_modules/isexe → isexe}/dist/mjs/index.js +0 -0
  595. /package/node_modules/{@zowe/imperative/node_modules/isexe → isexe}/dist/mjs/index.js.map +0 -0
  596. /package/node_modules/{@zowe/imperative/node_modules/isexe → isexe}/dist/mjs/options.d.ts +0 -0
  597. /package/node_modules/{@zowe/imperative/node_modules/isexe → isexe}/dist/mjs/options.d.ts.map +0 -0
  598. /package/node_modules/{@zowe/imperative/node_modules/isexe → isexe}/dist/mjs/options.js +0 -0
  599. /package/node_modules/{@zowe/imperative/node_modules/isexe → isexe}/dist/mjs/options.js.map +0 -0
  600. /package/node_modules/{@zowe/imperative/node_modules/isexe → isexe}/dist/mjs/package.json +0 -0
  601. /package/node_modules/{@zowe/imperative/node_modules/isexe → isexe}/dist/mjs/posix.d.ts +0 -0
  602. /package/node_modules/{@zowe/imperative/node_modules/isexe → isexe}/dist/mjs/posix.d.ts.map +0 -0
  603. /package/node_modules/{@zowe/imperative/node_modules/isexe → isexe}/dist/mjs/posix.js +0 -0
  604. /package/node_modules/{@zowe/imperative/node_modules/isexe → isexe}/dist/mjs/posix.js.map +0 -0
  605. /package/node_modules/{@zowe/imperative/node_modules/isexe → isexe}/dist/mjs/win32.d.ts +0 -0
  606. /package/node_modules/{@zowe/imperative/node_modules/isexe → isexe}/dist/mjs/win32.d.ts.map +0 -0
  607. /package/node_modules/{@zowe/imperative/node_modules/isexe → isexe}/dist/mjs/win32.js +0 -0
  608. /package/node_modules/{@zowe/imperative/node_modules/isexe → isexe}/dist/mjs/win32.js.map +0 -0
  609. /package/node_modules/{shebang-command/node_modules/shebang-regex → shebang-regex}/index.d.ts +0 -0
  610. /package/node_modules/{shebang-command/node_modules/shebang-regex → shebang-regex}/index.js +0 -0
  611. /package/node_modules/{strip-ansi/node_modules/ansi-regex → shebang-regex}/license +0 -0
  612. /package/node_modules/{shebang-command/node_modules/shebang-regex → shebang-regex}/package.json +0 -0
  613. /package/node_modules/{shebang-command/node_modules/shebang-regex → shebang-regex}/readme.md +0 -0
  614. /package/node_modules/streamroller/node_modules/{jsonfile → fs-extra/node_modules/jsonfile}/LICENSE +0 -0
  615. /package/node_modules/streamroller/node_modules/{jsonfile → fs-extra/node_modules/jsonfile}/README.md +0 -0
  616. /package/node_modules/streamroller/node_modules/{jsonfile → fs-extra/node_modules/jsonfile}/index.js +0 -0
  617. /package/node_modules/streamroller/node_modules/{jsonfile → fs-extra/node_modules/jsonfile}/package.json +0 -0
  618. /package/node_modules/streamroller/node_modules/{universalify → fs-extra/node_modules/universalify}/LICENSE +0 -0
  619. /package/node_modules/streamroller/node_modules/{universalify → fs-extra/node_modules/universalify}/README.md +0 -0
  620. /package/node_modules/streamroller/node_modules/{universalify → fs-extra/node_modules/universalify}/index.js +0 -0
  621. /package/node_modules/streamroller/node_modules/{universalify → fs-extra/node_modules/universalify}/package.json +0 -0
  622. /package/node_modules/{@zowe/imperative/node_modules/which → which}/bin/which.js +0 -0
  623. /package/node_modules/{@zowe/imperative/node_modules/which → which}/lib/index.js +0 -0
  624. /package/node_modules/{yargs/node_modules/y18n → y18n}/LICENSE +0 -0
  625. /package/node_modules/{yargs/node_modules/y18n → y18n}/README.md +0 -0
  626. /package/node_modules/{yargs/node_modules/y18n → y18n}/build/index.cjs +0 -0
  627. /package/node_modules/{yargs/node_modules/y18n → y18n}/build/lib/cjs.js +0 -0
  628. /package/node_modules/{yargs/node_modules/y18n → y18n}/build/lib/index.js +0 -0
  629. /package/node_modules/{yargs/node_modules/y18n → y18n}/build/lib/platform-shims/node.js +0 -0
  630. /package/node_modules/{yargs/node_modules/y18n → y18n}/index.mjs +0 -0
  631. /package/node_modules/{yargs/node_modules/y18n → y18n}/package.json +0 -0
  632. /package/node_modules/{tar/node_modules/yallist → yallist}/LICENSE.md +0 -0
  633. /package/node_modules/{tar/node_modules/yallist → yallist}/README.md +0 -0
  634. /package/node_modules/{tar/node_modules/yallist → yallist}/dist/commonjs/index.d.ts +0 -0
  635. /package/node_modules/{tar/node_modules/yallist → yallist}/dist/commonjs/index.d.ts.map +0 -0
  636. /package/node_modules/{tar/node_modules/yallist → yallist}/dist/commonjs/index.js +0 -0
  637. /package/node_modules/{tar/node_modules/yallist → yallist}/dist/commonjs/index.js.map +0 -0
  638. /package/node_modules/{@zowe/zos-files-for-zowe-sdk/node_modules/balanced-match → yallist}/dist/commonjs/package.json +0 -0
  639. /package/node_modules/{tar/node_modules/yallist → yallist}/dist/esm/index.d.ts +0 -0
  640. /package/node_modules/{tar/node_modules/yallist → yallist}/dist/esm/index.d.ts.map +0 -0
  641. /package/node_modules/{tar/node_modules/yallist → yallist}/dist/esm/index.js +0 -0
  642. /package/node_modules/{tar/node_modules/yallist → yallist}/dist/esm/index.js.map +0 -0
  643. /package/node_modules/{@zowe/zos-files-for-zowe-sdk/node_modules/balanced-match → yallist}/dist/esm/package.json +0 -0
  644. /package/node_modules/{tar/node_modules/yallist → yallist}/package.json +0 -0
@@ -1,842 +0,0 @@
1
- // parse a single path portion
2
- var _a;
3
- import { parseClass } from './brace-expressions.js';
4
- import { unescape } from './unescape.js';
5
- const types = new Set(['!', '?', '+', '*', '@']);
6
- const isExtglobType = (c) => types.has(c);
7
- const isExtglobAST = (c) => isExtglobType(c.type);
8
- // Map of which extglob types can adopt the children of a nested extglob
9
- //
10
- // anything but ! can adopt a matching type:
11
- // +(a|+(b|c)|d) => +(a|b|c|d)
12
- // *(a|*(b|c)|d) => *(a|b|c|d)
13
- // @(a|@(b|c)|d) => @(a|b|c|d)
14
- // ?(a|?(b|c)|d) => ?(a|b|c|d)
15
- //
16
- // * can adopt anything, because 0 or repetition is allowed
17
- // *(a|?(b|c)|d) => *(a|b|c|d)
18
- // *(a|+(b|c)|d) => *(a|b|c|d)
19
- // *(a|@(b|c)|d) => *(a|b|c|d)
20
- //
21
- // + can adopt @, because 1 or repetition is allowed
22
- // +(a|@(b|c)|d) => +(a|b|c|d)
23
- //
24
- // + and @ CANNOT adopt *, because 0 would be allowed
25
- // +(a|*(b|c)|d) => would match "", on *(b|c)
26
- // @(a|*(b|c)|d) => would match "", on *(b|c)
27
- //
28
- // + and @ CANNOT adopt ?, because 0 would be allowed
29
- // +(a|?(b|c)|d) => would match "", on ?(b|c)
30
- // @(a|?(b|c)|d) => would match "", on ?(b|c)
31
- //
32
- // ? can adopt @, because 0 or 1 is allowed
33
- // ?(a|@(b|c)|d) => ?(a|b|c|d)
34
- //
35
- // ? and @ CANNOT adopt * or +, because >1 would be allowed
36
- // ?(a|*(b|c)|d) => would match bbb on *(b|c)
37
- // @(a|*(b|c)|d) => would match bbb on *(b|c)
38
- // ?(a|+(b|c)|d) => would match bbb on +(b|c)
39
- // @(a|+(b|c)|d) => would match bbb on +(b|c)
40
- //
41
- // ! CANNOT adopt ! (nothing else can either)
42
- // !(a|!(b|c)|d) => !(a|b|c|d) would fail to match on b (not not b|c)
43
- //
44
- // ! can adopt @
45
- // !(a|@(b|c)|d) => !(a|b|c|d)
46
- //
47
- // ! CANNOT adopt *
48
- // !(a|*(b|c)|d) => !(a|b|c|d) would match on bbb, not allowed
49
- //
50
- // ! CANNOT adopt +
51
- // !(a|+(b|c)|d) => !(a|b|c|d) would match on bbb, not allowed
52
- //
53
- // ! CANNOT adopt ?
54
- // x!(a|?(b|c)|d) => x!(a|b|c|d) would fail to match "x"
55
- const adoptionMap = new Map([
56
- ['!', ['@']],
57
- ['?', ['?', '@']],
58
- ['@', ['@']],
59
- ['*', ['*', '+', '?', '@']],
60
- ['+', ['+', '@']],
61
- ]);
62
- // nested extglobs that can be adopted in, but with the addition of
63
- // a blank '' element.
64
- const adoptionWithSpaceMap = new Map([
65
- ['!', ['?']],
66
- ['@', ['?']],
67
- ['+', ['?', '*']],
68
- ]);
69
- // union of the previous two maps
70
- const adoptionAnyMap = new Map([
71
- ['!', ['?', '@']],
72
- ['?', ['?', '@']],
73
- ['@', ['?', '@']],
74
- ['*', ['*', '+', '?', '@']],
75
- ['+', ['+', '@', '?', '*']],
76
- ]);
77
- // Extglobs that can take over their parent if they are the only child
78
- // the key is parent, value maps child to resulting extglob parent type
79
- // '@' is omitted because it's a special case. An `@` extglob with a single
80
- // member can always be usurped by that subpattern.
81
- const usurpMap = new Map([
82
- ['!', new Map([['!', '@']])],
83
- [
84
- '?',
85
- new Map([
86
- ['*', '*'],
87
- ['+', '*'],
88
- ]),
89
- ],
90
- [
91
- '@',
92
- new Map([
93
- ['!', '!'],
94
- ['?', '?'],
95
- ['@', '@'],
96
- ['*', '*'],
97
- ['+', '+'],
98
- ]),
99
- ],
100
- [
101
- '+',
102
- new Map([
103
- ['?', '*'],
104
- ['*', '*'],
105
- ]),
106
- ],
107
- ]);
108
- // Patterns that get prepended to bind to the start of either the
109
- // entire string, or just a single path portion, to prevent dots
110
- // and/or traversal patterns, when needed.
111
- // Exts don't need the ^ or / bit, because the root binds that already.
112
- const startNoTraversal = '(?!(?:^|/)\\.\\.?(?:$|/))';
113
- const startNoDot = '(?!\\.)';
114
- // characters that indicate a start of pattern needs the "no dots" bit,
115
- // because a dot *might* be matched. ( is not in the list, because in
116
- // the case of a child extglob, it will handle the prevention itself.
117
- const addPatternStart = new Set(['[', '.']);
118
- // cases where traversal is A-OK, no dot prevention needed
119
- const justDots = new Set(['..', '.']);
120
- const reSpecials = new Set('().*{}+?[]^$\\!');
121
- const regExpEscape = (s) => s.replace(/[-[\]{}()*+?.,\\^$|#\s]/g, '\\$&');
122
- // any single thing other than /
123
- const qmark = '[^/]';
124
- // * => any number of characters
125
- const star = qmark + '*?';
126
- // use + when we need to ensure that *something* matches, because the * is
127
- // the only thing in the path portion.
128
- const starNoEmpty = qmark + '+?';
129
- // remove the \ chars that we added if we end up doing a nonmagic compare
130
- // const deslash = (s: string) => s.replace(/\\(.)/g, '$1')
131
- let ID = 0;
132
- export class AST {
133
- type;
134
- #root;
135
- #hasMagic;
136
- #uflag = false;
137
- #parts = [];
138
- #parent;
139
- #parentIndex;
140
- #negs;
141
- #filledNegs = false;
142
- #options;
143
- #toString;
144
- // set to true if it's an extglob with no children
145
- // (which really means one child of '')
146
- #emptyExt = false;
147
- id = ++ID;
148
- get depth() {
149
- return (this.#parent?.depth ?? -1) + 1;
150
- }
151
- [Symbol.for('nodejs.util.inspect.custom')]() {
152
- return {
153
- '@@type': 'AST',
154
- id: this.id,
155
- type: this.type,
156
- root: this.#root.id,
157
- parent: this.#parent?.id,
158
- depth: this.depth,
159
- partsLength: this.#parts.length,
160
- parts: this.#parts,
161
- };
162
- }
163
- constructor(type, parent, options = {}) {
164
- this.type = type;
165
- // extglobs are inherently magical
166
- if (type)
167
- this.#hasMagic = true;
168
- this.#parent = parent;
169
- this.#root = this.#parent ? this.#parent.#root : this;
170
- this.#options = this.#root === this ? options : this.#root.#options;
171
- this.#negs = this.#root === this ? [] : this.#root.#negs;
172
- if (type === '!' && !this.#root.#filledNegs)
173
- this.#negs.push(this);
174
- this.#parentIndex = this.#parent ? this.#parent.#parts.length : 0;
175
- }
176
- get hasMagic() {
177
- /* c8 ignore start */
178
- if (this.#hasMagic !== undefined)
179
- return this.#hasMagic;
180
- /* c8 ignore stop */
181
- for (const p of this.#parts) {
182
- if (typeof p === 'string')
183
- continue;
184
- if (p.type || p.hasMagic)
185
- return (this.#hasMagic = true);
186
- }
187
- // note: will be undefined until we generate the regexp src and find out
188
- return this.#hasMagic;
189
- }
190
- // reconstructs the pattern
191
- toString() {
192
- if (this.#toString !== undefined)
193
- return this.#toString;
194
- if (!this.type) {
195
- return (this.#toString = this.#parts.map(p => String(p)).join(''));
196
- }
197
- else {
198
- return (this.#toString =
199
- this.type + '(' + this.#parts.map(p => String(p)).join('|') + ')');
200
- }
201
- }
202
- #fillNegs() {
203
- /* c8 ignore start */
204
- if (this !== this.#root)
205
- throw new Error('should only call on root');
206
- if (this.#filledNegs)
207
- return this;
208
- /* c8 ignore stop */
209
- // call toString() once to fill this out
210
- this.toString();
211
- this.#filledNegs = true;
212
- let n;
213
- while ((n = this.#negs.pop())) {
214
- if (n.type !== '!')
215
- continue;
216
- // walk up the tree, appending everthing that comes AFTER parentIndex
217
- let p = n;
218
- let pp = p.#parent;
219
- while (pp) {
220
- for (let i = p.#parentIndex + 1; !pp.type && i < pp.#parts.length; i++) {
221
- for (const part of n.#parts) {
222
- /* c8 ignore start */
223
- if (typeof part === 'string') {
224
- throw new Error('string part in extglob AST??');
225
- }
226
- /* c8 ignore stop */
227
- part.copyIn(pp.#parts[i]);
228
- }
229
- }
230
- p = pp;
231
- pp = p.#parent;
232
- }
233
- }
234
- return this;
235
- }
236
- push(...parts) {
237
- for (const p of parts) {
238
- if (p === '')
239
- continue;
240
- /* c8 ignore start */
241
- if (typeof p !== 'string' &&
242
- !(p instanceof _a && p.#parent === this)) {
243
- throw new Error('invalid part: ' + p);
244
- }
245
- /* c8 ignore stop */
246
- this.#parts.push(p);
247
- }
248
- }
249
- toJSON() {
250
- const ret = this.type === null ?
251
- this.#parts
252
- .slice()
253
- .map(p => (typeof p === 'string' ? p : p.toJSON()))
254
- : [this.type, ...this.#parts.map(p => p.toJSON())];
255
- if (this.isStart() && !this.type)
256
- ret.unshift([]);
257
- if (this.isEnd() &&
258
- (this === this.#root ||
259
- (this.#root.#filledNegs && this.#parent?.type === '!'))) {
260
- ret.push({});
261
- }
262
- return ret;
263
- }
264
- isStart() {
265
- if (this.#root === this)
266
- return true;
267
- // if (this.type) return !!this.#parent?.isStart()
268
- if (!this.#parent?.isStart())
269
- return false;
270
- if (this.#parentIndex === 0)
271
- return true;
272
- // if everything AHEAD of this is a negation, then it's still the "start"
273
- const p = this.#parent;
274
- for (let i = 0; i < this.#parentIndex; i++) {
275
- const pp = p.#parts[i];
276
- if (!(pp instanceof _a && pp.type === '!')) {
277
- return false;
278
- }
279
- }
280
- return true;
281
- }
282
- isEnd() {
283
- if (this.#root === this)
284
- return true;
285
- if (this.#parent?.type === '!')
286
- return true;
287
- if (!this.#parent?.isEnd())
288
- return false;
289
- if (!this.type)
290
- return this.#parent?.isEnd();
291
- // if not root, it'll always have a parent
292
- /* c8 ignore start */
293
- const pl = this.#parent ? this.#parent.#parts.length : 0;
294
- /* c8 ignore stop */
295
- return this.#parentIndex === pl - 1;
296
- }
297
- copyIn(part) {
298
- if (typeof part === 'string')
299
- this.push(part);
300
- else
301
- this.push(part.clone(this));
302
- }
303
- clone(parent) {
304
- const c = new _a(this.type, parent);
305
- for (const p of this.#parts) {
306
- c.copyIn(p);
307
- }
308
- return c;
309
- }
310
- static #parseAST(str, ast, pos, opt, extDepth) {
311
- const maxDepth = opt.maxExtglobRecursion ?? 2;
312
- let escaping = false;
313
- let inBrace = false;
314
- let braceStart = -1;
315
- let braceNeg = false;
316
- if (ast.type === null) {
317
- // outside of a extglob, append until we find a start
318
- let i = pos;
319
- let acc = '';
320
- while (i < str.length) {
321
- const c = str.charAt(i++);
322
- // still accumulate escapes at this point, but we do ignore
323
- // starts that are escaped
324
- if (escaping || c === '\\') {
325
- escaping = !escaping;
326
- acc += c;
327
- continue;
328
- }
329
- if (inBrace) {
330
- if (i === braceStart + 1) {
331
- if (c === '^' || c === '!') {
332
- braceNeg = true;
333
- }
334
- }
335
- else if (c === ']' && !(i === braceStart + 2 && braceNeg)) {
336
- inBrace = false;
337
- }
338
- acc += c;
339
- continue;
340
- }
341
- else if (c === '[') {
342
- inBrace = true;
343
- braceStart = i;
344
- braceNeg = false;
345
- acc += c;
346
- continue;
347
- }
348
- // we don't have to check for adoption here, because that's
349
- // done at the other recursion point.
350
- const doRecurse = !opt.noext &&
351
- isExtglobType(c) &&
352
- str.charAt(i) === '(' &&
353
- extDepth <= maxDepth;
354
- if (doRecurse) {
355
- ast.push(acc);
356
- acc = '';
357
- const ext = new _a(c, ast);
358
- i = _a.#parseAST(str, ext, i, opt, extDepth + 1);
359
- ast.push(ext);
360
- continue;
361
- }
362
- acc += c;
363
- }
364
- ast.push(acc);
365
- return i;
366
- }
367
- // some kind of extglob, pos is at the (
368
- // find the next | or )
369
- let i = pos + 1;
370
- let part = new _a(null, ast);
371
- const parts = [];
372
- let acc = '';
373
- while (i < str.length) {
374
- const c = str.charAt(i++);
375
- // still accumulate escapes at this point, but we do ignore
376
- // starts that are escaped
377
- if (escaping || c === '\\') {
378
- escaping = !escaping;
379
- acc += c;
380
- continue;
381
- }
382
- if (inBrace) {
383
- if (i === braceStart + 1) {
384
- if (c === '^' || c === '!') {
385
- braceNeg = true;
386
- }
387
- }
388
- else if (c === ']' && !(i === braceStart + 2 && braceNeg)) {
389
- inBrace = false;
390
- }
391
- acc += c;
392
- continue;
393
- }
394
- else if (c === '[') {
395
- inBrace = true;
396
- braceStart = i;
397
- braceNeg = false;
398
- acc += c;
399
- continue;
400
- }
401
- const doRecurse = !opt.noext &&
402
- isExtglobType(c) &&
403
- str.charAt(i) === '(' &&
404
- /* c8 ignore start - the maxDepth is sufficient here */
405
- (extDepth <= maxDepth || (ast && ast.#canAdoptType(c)));
406
- /* c8 ignore stop */
407
- if (doRecurse) {
408
- const depthAdd = ast && ast.#canAdoptType(c) ? 0 : 1;
409
- part.push(acc);
410
- acc = '';
411
- const ext = new _a(c, part);
412
- part.push(ext);
413
- i = _a.#parseAST(str, ext, i, opt, extDepth + depthAdd);
414
- continue;
415
- }
416
- if (c === '|') {
417
- part.push(acc);
418
- acc = '';
419
- parts.push(part);
420
- part = new _a(null, ast);
421
- continue;
422
- }
423
- if (c === ')') {
424
- if (acc === '' && ast.#parts.length === 0) {
425
- ast.#emptyExt = true;
426
- }
427
- part.push(acc);
428
- acc = '';
429
- ast.push(...parts, part);
430
- return i;
431
- }
432
- acc += c;
433
- }
434
- // unfinished extglob
435
- // if we got here, it was a malformed extglob! not an extglob, but
436
- // maybe something else in there.
437
- ast.type = null;
438
- ast.#hasMagic = undefined;
439
- ast.#parts = [str.substring(pos - 1)];
440
- return i;
441
- }
442
- #canAdoptWithSpace(child) {
443
- return this.#canAdopt(child, adoptionWithSpaceMap);
444
- }
445
- #canAdopt(child, map = adoptionMap) {
446
- if (!child ||
447
- typeof child !== 'object' ||
448
- child.type !== null ||
449
- child.#parts.length !== 1 ||
450
- this.type === null) {
451
- return false;
452
- }
453
- const gc = child.#parts[0];
454
- if (!gc || typeof gc !== 'object' || gc.type === null) {
455
- return false;
456
- }
457
- return this.#canAdoptType(gc.type, map);
458
- }
459
- #canAdoptType(c, map = adoptionAnyMap) {
460
- return !!map.get(this.type)?.includes(c);
461
- }
462
- #adoptWithSpace(child, index) {
463
- const gc = child.#parts[0];
464
- const blank = new _a(null, gc, this.options);
465
- blank.#parts.push('');
466
- gc.push(blank);
467
- this.#adopt(child, index);
468
- }
469
- #adopt(child, index) {
470
- const gc = child.#parts[0];
471
- this.#parts.splice(index, 1, ...gc.#parts);
472
- for (const p of gc.#parts) {
473
- if (typeof p === 'object')
474
- p.#parent = this;
475
- }
476
- this.#toString = undefined;
477
- }
478
- #canUsurpType(c) {
479
- const m = usurpMap.get(this.type);
480
- return !!(m?.has(c));
481
- }
482
- #canUsurp(child) {
483
- if (!child ||
484
- typeof child !== 'object' ||
485
- child.type !== null ||
486
- child.#parts.length !== 1 ||
487
- this.type === null ||
488
- this.#parts.length !== 1) {
489
- return false;
490
- }
491
- const gc = child.#parts[0];
492
- if (!gc || typeof gc !== 'object' || gc.type === null) {
493
- return false;
494
- }
495
- return this.#canUsurpType(gc.type);
496
- }
497
- #usurp(child) {
498
- const m = usurpMap.get(this.type);
499
- const gc = child.#parts[0];
500
- const nt = m?.get(gc.type);
501
- /* c8 ignore start - impossible */
502
- if (!nt)
503
- return false;
504
- /* c8 ignore stop */
505
- this.#parts = gc.#parts;
506
- for (const p of this.#parts) {
507
- if (typeof p === 'object') {
508
- p.#parent = this;
509
- }
510
- }
511
- this.type = nt;
512
- this.#toString = undefined;
513
- this.#emptyExt = false;
514
- }
515
- static fromGlob(pattern, options = {}) {
516
- const ast = new _a(null, undefined, options);
517
- _a.#parseAST(pattern, ast, 0, options, 0);
518
- return ast;
519
- }
520
- // returns the regular expression if there's magic, or the unescaped
521
- // string if not.
522
- toMMPattern() {
523
- // should only be called on root
524
- /* c8 ignore start */
525
- if (this !== this.#root)
526
- return this.#root.toMMPattern();
527
- /* c8 ignore stop */
528
- const glob = this.toString();
529
- const [re, body, hasMagic, uflag] = this.toRegExpSource();
530
- // if we're in nocase mode, and not nocaseMagicOnly, then we do
531
- // still need a regular expression if we have to case-insensitively
532
- // match capital/lowercase characters.
533
- const anyMagic = hasMagic ||
534
- this.#hasMagic ||
535
- (this.#options.nocase &&
536
- !this.#options.nocaseMagicOnly &&
537
- glob.toUpperCase() !== glob.toLowerCase());
538
- if (!anyMagic) {
539
- return body;
540
- }
541
- const flags = (this.#options.nocase ? 'i' : '') + (uflag ? 'u' : '');
542
- return Object.assign(new RegExp(`^${re}$`, flags), {
543
- _src: re,
544
- _glob: glob,
545
- });
546
- }
547
- get options() {
548
- return this.#options;
549
- }
550
- // returns the string match, the regexp source, whether there's magic
551
- // in the regexp (so a regular expression is required) and whether or
552
- // not the uflag is needed for the regular expression (for posix classes)
553
- // TODO: instead of injecting the start/end at this point, just return
554
- // the BODY of the regexp, along with the start/end portions suitable
555
- // for binding the start/end in either a joined full-path makeRe context
556
- // (where we bind to (^|/), or a standalone matchPart context (where
557
- // we bind to ^, and not /). Otherwise slashes get duped!
558
- //
559
- // In part-matching mode, the start is:
560
- // - if not isStart: nothing
561
- // - if traversal possible, but not allowed: ^(?!\.\.?$)
562
- // - if dots allowed or not possible: ^
563
- // - if dots possible and not allowed: ^(?!\.)
564
- // end is:
565
- // - if not isEnd(): nothing
566
- // - else: $
567
- //
568
- // In full-path matching mode, we put the slash at the START of the
569
- // pattern, so start is:
570
- // - if first pattern: same as part-matching mode
571
- // - if not isStart(): nothing
572
- // - if traversal possible, but not allowed: /(?!\.\.?(?:$|/))
573
- // - if dots allowed or not possible: /
574
- // - if dots possible and not allowed: /(?!\.)
575
- // end is:
576
- // - if last pattern, same as part-matching mode
577
- // - else nothing
578
- //
579
- // Always put the (?:$|/) on negated tails, though, because that has to be
580
- // there to bind the end of the negated pattern portion, and it's easier to
581
- // just stick it in now rather than try to inject it later in the middle of
582
- // the pattern.
583
- //
584
- // We can just always return the same end, and leave it up to the caller
585
- // to know whether it's going to be used joined or in parts.
586
- // And, if the start is adjusted slightly, can do the same there:
587
- // - if not isStart: nothing
588
- // - if traversal possible, but not allowed: (?:/|^)(?!\.\.?$)
589
- // - if dots allowed or not possible: (?:/|^)
590
- // - if dots possible and not allowed: (?:/|^)(?!\.)
591
- //
592
- // But it's better to have a simpler binding without a conditional, for
593
- // performance, so probably better to return both start options.
594
- //
595
- // Then the caller just ignores the end if it's not the first pattern,
596
- // and the start always gets applied.
597
- //
598
- // But that's always going to be $ if it's the ending pattern, or nothing,
599
- // so the caller can just attach $ at the end of the pattern when building.
600
- //
601
- // So the todo is:
602
- // - better detect what kind of start is needed
603
- // - return both flavors of starting pattern
604
- // - attach $ at the end of the pattern when creating the actual RegExp
605
- //
606
- // Ah, but wait, no, that all only applies to the root when the first pattern
607
- // is not an extglob. If the first pattern IS an extglob, then we need all
608
- // that dot prevention biz to live in the extglob portions, because eg
609
- // +(*|.x*) can match .xy but not .yx.
610
- //
611
- // So, return the two flavors if it's #root and the first child is not an
612
- // AST, otherwise leave it to the child AST to handle it, and there,
613
- // use the (?:^|/) style of start binding.
614
- //
615
- // Even simplified further:
616
- // - Since the start for a join is eg /(?!\.) and the start for a part
617
- // is ^(?!\.), we can just prepend (?!\.) to the pattern (either root
618
- // or start or whatever) and prepend ^ or / at the Regexp construction.
619
- toRegExpSource(allowDot) {
620
- const dot = allowDot ?? !!this.#options.dot;
621
- if (this.#root === this) {
622
- this.#flatten();
623
- this.#fillNegs();
624
- }
625
- if (!isExtglobAST(this)) {
626
- const noEmpty = this.isStart() &&
627
- this.isEnd() &&
628
- !this.#parts.some(s => typeof s !== 'string');
629
- const src = this.#parts
630
- .map(p => {
631
- const [re, _, hasMagic, uflag] = typeof p === 'string' ?
632
- _a.#parseGlob(p, this.#hasMagic, noEmpty)
633
- : p.toRegExpSource(allowDot);
634
- this.#hasMagic = this.#hasMagic || hasMagic;
635
- this.#uflag = this.#uflag || uflag;
636
- return re;
637
- })
638
- .join('');
639
- let start = '';
640
- if (this.isStart()) {
641
- if (typeof this.#parts[0] === 'string') {
642
- // this is the string that will match the start of the pattern,
643
- // so we need to protect against dots and such.
644
- // '.' and '..' cannot match unless the pattern is that exactly,
645
- // even if it starts with . or dot:true is set.
646
- const dotTravAllowed = this.#parts.length === 1 && justDots.has(this.#parts[0]);
647
- if (!dotTravAllowed) {
648
- const aps = addPatternStart;
649
- // check if we have a possibility of matching . or ..,
650
- // and prevent that.
651
- const needNoTrav =
652
- // dots are allowed, and the pattern starts with [ or .
653
- (dot && aps.has(src.charAt(0))) ||
654
- // the pattern starts with \., and then [ or .
655
- (src.startsWith('\\.') && aps.has(src.charAt(2))) ||
656
- // the pattern starts with \.\., and then [ or .
657
- (src.startsWith('\\.\\.') && aps.has(src.charAt(4)));
658
- // no need to prevent dots if it can't match a dot, or if a
659
- // sub-pattern will be preventing it anyway.
660
- const needNoDot = !dot && !allowDot && aps.has(src.charAt(0));
661
- start =
662
- needNoTrav ? startNoTraversal
663
- : needNoDot ? startNoDot
664
- : '';
665
- }
666
- }
667
- }
668
- // append the "end of path portion" pattern to negation tails
669
- let end = '';
670
- if (this.isEnd() &&
671
- this.#root.#filledNegs &&
672
- this.#parent?.type === '!') {
673
- end = '(?:$|\\/)';
674
- }
675
- const final = start + src + end;
676
- return [
677
- final,
678
- unescape(src),
679
- (this.#hasMagic = !!this.#hasMagic),
680
- this.#uflag,
681
- ];
682
- }
683
- // We need to calculate the body *twice* if it's a repeat pattern
684
- // at the start, once in nodot mode, then again in dot mode, so a
685
- // pattern like *(?) can match 'x.y'
686
- const repeated = this.type === '*' || this.type === '+';
687
- // some kind of extglob
688
- const start = this.type === '!' ? '(?:(?!(?:' : '(?:';
689
- let body = this.#partsToRegExp(dot);
690
- if (this.isStart() && this.isEnd() && !body && this.type !== '!') {
691
- // invalid extglob, has to at least be *something* present, if it's
692
- // the entire path portion.
693
- const s = this.toString();
694
- const me = this;
695
- me.#parts = [s];
696
- me.type = null;
697
- me.#hasMagic = undefined;
698
- return [s, unescape(this.toString()), false, false];
699
- }
700
- let bodyDotAllowed = !repeated || allowDot || dot || !startNoDot ?
701
- ''
702
- : this.#partsToRegExp(true);
703
- if (bodyDotAllowed === body) {
704
- bodyDotAllowed = '';
705
- }
706
- if (bodyDotAllowed) {
707
- body = `(?:${body})(?:${bodyDotAllowed})*?`;
708
- }
709
- // an empty !() is exactly equivalent to a starNoEmpty
710
- let final = '';
711
- if (this.type === '!' && this.#emptyExt) {
712
- final = (this.isStart() && !dot ? startNoDot : '') + starNoEmpty;
713
- }
714
- else {
715
- const close = this.type === '!' ?
716
- // !() must match something,but !(x) can match ''
717
- '))' +
718
- (this.isStart() && !dot && !allowDot ? startNoDot : '') +
719
- star +
720
- ')'
721
- : this.type === '@' ? ')'
722
- : this.type === '?' ? ')?'
723
- : this.type === '+' && bodyDotAllowed ? ')'
724
- : this.type === '*' && bodyDotAllowed ? `)?`
725
- : `)${this.type}`;
726
- final = start + body + close;
727
- }
728
- return [
729
- final,
730
- unescape(body),
731
- (this.#hasMagic = !!this.#hasMagic),
732
- this.#uflag,
733
- ];
734
- }
735
- #flatten() {
736
- if (!isExtglobAST(this)) {
737
- for (const p of this.#parts) {
738
- if (typeof p === 'object') {
739
- p.#flatten();
740
- }
741
- }
742
- }
743
- else {
744
- // do up to 10 passes to flatten as much as possible
745
- let iterations = 0;
746
- let done = false;
747
- do {
748
- done = true;
749
- for (let i = 0; i < this.#parts.length; i++) {
750
- const c = this.#parts[i];
751
- if (typeof c === 'object') {
752
- c.#flatten();
753
- if (this.#canAdopt(c)) {
754
- done = false;
755
- this.#adopt(c, i);
756
- }
757
- else if (this.#canAdoptWithSpace(c)) {
758
- done = false;
759
- this.#adoptWithSpace(c, i);
760
- }
761
- else if (this.#canUsurp(c)) {
762
- done = false;
763
- this.#usurp(c);
764
- }
765
- }
766
- }
767
- } while (!done && ++iterations < 10);
768
- }
769
- this.#toString = undefined;
770
- }
771
- #partsToRegExp(dot) {
772
- return this.#parts
773
- .map(p => {
774
- // extglob ASTs should only contain parent ASTs
775
- /* c8 ignore start */
776
- if (typeof p === 'string') {
777
- throw new Error('string type in extglob ast??');
778
- }
779
- /* c8 ignore stop */
780
- // can ignore hasMagic, because extglobs are already always magic
781
- const [re, _, _hasMagic, uflag] = p.toRegExpSource(dot);
782
- this.#uflag = this.#uflag || uflag;
783
- return re;
784
- })
785
- .filter(p => !(this.isStart() && this.isEnd()) || !!p)
786
- .join('|');
787
- }
788
- static #parseGlob(glob, hasMagic, noEmpty = false) {
789
- let escaping = false;
790
- let re = '';
791
- let uflag = false;
792
- // multiple stars that aren't globstars coalesce into one *
793
- let inStar = false;
794
- for (let i = 0; i < glob.length; i++) {
795
- const c = glob.charAt(i);
796
- if (escaping) {
797
- escaping = false;
798
- re += (reSpecials.has(c) ? '\\' : '') + c;
799
- continue;
800
- }
801
- if (c === '*') {
802
- if (inStar)
803
- continue;
804
- inStar = true;
805
- re += noEmpty && /^[*]+$/.test(glob) ? starNoEmpty : star;
806
- hasMagic = true;
807
- continue;
808
- }
809
- else {
810
- inStar = false;
811
- }
812
- if (c === '\\') {
813
- if (i === glob.length - 1) {
814
- re += '\\\\';
815
- }
816
- else {
817
- escaping = true;
818
- }
819
- continue;
820
- }
821
- if (c === '[') {
822
- const [src, needUflag, consumed, magic] = parseClass(glob, i);
823
- if (consumed) {
824
- re += src;
825
- uflag = uflag || needUflag;
826
- i += consumed - 1;
827
- hasMagic = hasMagic || magic;
828
- continue;
829
- }
830
- }
831
- if (c === '?') {
832
- re += qmark;
833
- hasMagic = true;
834
- continue;
835
- }
836
- re += regExpEscape(c);
837
- }
838
- return [re, unescape(glob), !!hasMagic, uflag];
839
- }
840
- }
841
- _a = AST;
842
- //# sourceMappingURL=ast.js.map