@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,846 +0,0 @@
1
- "use strict";
2
- // parse a single path portion
3
- var _a;
4
- Object.defineProperty(exports, "__esModule", { value: true });
5
- exports.AST = void 0;
6
- const brace_expressions_js_1 = require("./brace-expressions.js");
7
- const unescape_js_1 = require("./unescape.js");
8
- const types = new Set(['!', '?', '+', '*', '@']);
9
- const isExtglobType = (c) => types.has(c);
10
- const isExtglobAST = (c) => isExtglobType(c.type);
11
- // Map of which extglob types can adopt the children of a nested extglob
12
- //
13
- // anything but ! can adopt a matching type:
14
- // +(a|+(b|c)|d) => +(a|b|c|d)
15
- // *(a|*(b|c)|d) => *(a|b|c|d)
16
- // @(a|@(b|c)|d) => @(a|b|c|d)
17
- // ?(a|?(b|c)|d) => ?(a|b|c|d)
18
- //
19
- // * can adopt anything, because 0 or repetition is allowed
20
- // *(a|?(b|c)|d) => *(a|b|c|d)
21
- // *(a|+(b|c)|d) => *(a|b|c|d)
22
- // *(a|@(b|c)|d) => *(a|b|c|d)
23
- //
24
- // + can adopt @, because 1 or repetition is allowed
25
- // +(a|@(b|c)|d) => +(a|b|c|d)
26
- //
27
- // + and @ CANNOT adopt *, because 0 would be allowed
28
- // +(a|*(b|c)|d) => would match "", on *(b|c)
29
- // @(a|*(b|c)|d) => would match "", on *(b|c)
30
- //
31
- // + and @ CANNOT adopt ?, because 0 would be allowed
32
- // +(a|?(b|c)|d) => would match "", on ?(b|c)
33
- // @(a|?(b|c)|d) => would match "", on ?(b|c)
34
- //
35
- // ? can adopt @, because 0 or 1 is allowed
36
- // ?(a|@(b|c)|d) => ?(a|b|c|d)
37
- //
38
- // ? and @ CANNOT adopt * or +, because >1 would be allowed
39
- // ?(a|*(b|c)|d) => would match bbb on *(b|c)
40
- // @(a|*(b|c)|d) => would match bbb on *(b|c)
41
- // ?(a|+(b|c)|d) => would match bbb on +(b|c)
42
- // @(a|+(b|c)|d) => would match bbb on +(b|c)
43
- //
44
- // ! CANNOT adopt ! (nothing else can either)
45
- // !(a|!(b|c)|d) => !(a|b|c|d) would fail to match on b (not not b|c)
46
- //
47
- // ! can adopt @
48
- // !(a|@(b|c)|d) => !(a|b|c|d)
49
- //
50
- // ! CANNOT adopt *
51
- // !(a|*(b|c)|d) => !(a|b|c|d) would match on bbb, not allowed
52
- //
53
- // ! CANNOT adopt +
54
- // !(a|+(b|c)|d) => !(a|b|c|d) would match on bbb, not allowed
55
- //
56
- // ! CANNOT adopt ?
57
- // x!(a|?(b|c)|d) => x!(a|b|c|d) would fail to match "x"
58
- const adoptionMap = new Map([
59
- ['!', ['@']],
60
- ['?', ['?', '@']],
61
- ['@', ['@']],
62
- ['*', ['*', '+', '?', '@']],
63
- ['+', ['+', '@']],
64
- ]);
65
- // nested extglobs that can be adopted in, but with the addition of
66
- // a blank '' element.
67
- const adoptionWithSpaceMap = new Map([
68
- ['!', ['?']],
69
- ['@', ['?']],
70
- ['+', ['?', '*']],
71
- ]);
72
- // union of the previous two maps
73
- const adoptionAnyMap = new Map([
74
- ['!', ['?', '@']],
75
- ['?', ['?', '@']],
76
- ['@', ['?', '@']],
77
- ['*', ['*', '+', '?', '@']],
78
- ['+', ['+', '@', '?', '*']],
79
- ]);
80
- // Extglobs that can take over their parent if they are the only child
81
- // the key is parent, value maps child to resulting extglob parent type
82
- // '@' is omitted because it's a special case. An `@` extglob with a single
83
- // member can always be usurped by that subpattern.
84
- const usurpMap = new Map([
85
- ['!', new Map([['!', '@']])],
86
- [
87
- '?',
88
- new Map([
89
- ['*', '*'],
90
- ['+', '*'],
91
- ]),
92
- ],
93
- [
94
- '@',
95
- new Map([
96
- ['!', '!'],
97
- ['?', '?'],
98
- ['@', '@'],
99
- ['*', '*'],
100
- ['+', '+'],
101
- ]),
102
- ],
103
- [
104
- '+',
105
- new Map([
106
- ['?', '*'],
107
- ['*', '*'],
108
- ]),
109
- ],
110
- ]);
111
- // Patterns that get prepended to bind to the start of either the
112
- // entire string, or just a single path portion, to prevent dots
113
- // and/or traversal patterns, when needed.
114
- // Exts don't need the ^ or / bit, because the root binds that already.
115
- const startNoTraversal = '(?!(?:^|/)\\.\\.?(?:$|/))';
116
- const startNoDot = '(?!\\.)';
117
- // characters that indicate a start of pattern needs the "no dots" bit,
118
- // because a dot *might* be matched. ( is not in the list, because in
119
- // the case of a child extglob, it will handle the prevention itself.
120
- const addPatternStart = new Set(['[', '.']);
121
- // cases where traversal is A-OK, no dot prevention needed
122
- const justDots = new Set(['..', '.']);
123
- const reSpecials = new Set('().*{}+?[]^$\\!');
124
- const regExpEscape = (s) => s.replace(/[-[\]{}()*+?.,\\^$|#\s]/g, '\\$&');
125
- // any single thing other than /
126
- const qmark = '[^/]';
127
- // * => any number of characters
128
- const star = qmark + '*?';
129
- // use + when we need to ensure that *something* matches, because the * is
130
- // the only thing in the path portion.
131
- const starNoEmpty = qmark + '+?';
132
- // remove the \ chars that we added if we end up doing a nonmagic compare
133
- // const deslash = (s: string) => s.replace(/\\(.)/g, '$1')
134
- let ID = 0;
135
- class AST {
136
- type;
137
- #root;
138
- #hasMagic;
139
- #uflag = false;
140
- #parts = [];
141
- #parent;
142
- #parentIndex;
143
- #negs;
144
- #filledNegs = false;
145
- #options;
146
- #toString;
147
- // set to true if it's an extglob with no children
148
- // (which really means one child of '')
149
- #emptyExt = false;
150
- id = ++ID;
151
- get depth() {
152
- return (this.#parent?.depth ?? -1) + 1;
153
- }
154
- [Symbol.for('nodejs.util.inspect.custom')]() {
155
- return {
156
- '@@type': 'AST',
157
- id: this.id,
158
- type: this.type,
159
- root: this.#root.id,
160
- parent: this.#parent?.id,
161
- depth: this.depth,
162
- partsLength: this.#parts.length,
163
- parts: this.#parts,
164
- };
165
- }
166
- constructor(type, parent, options = {}) {
167
- this.type = type;
168
- // extglobs are inherently magical
169
- if (type)
170
- this.#hasMagic = true;
171
- this.#parent = parent;
172
- this.#root = this.#parent ? this.#parent.#root : this;
173
- this.#options = this.#root === this ? options : this.#root.#options;
174
- this.#negs = this.#root === this ? [] : this.#root.#negs;
175
- if (type === '!' && !this.#root.#filledNegs)
176
- this.#negs.push(this);
177
- this.#parentIndex = this.#parent ? this.#parent.#parts.length : 0;
178
- }
179
- get hasMagic() {
180
- /* c8 ignore start */
181
- if (this.#hasMagic !== undefined)
182
- return this.#hasMagic;
183
- /* c8 ignore stop */
184
- for (const p of this.#parts) {
185
- if (typeof p === 'string')
186
- continue;
187
- if (p.type || p.hasMagic)
188
- return (this.#hasMagic = true);
189
- }
190
- // note: will be undefined until we generate the regexp src and find out
191
- return this.#hasMagic;
192
- }
193
- // reconstructs the pattern
194
- toString() {
195
- if (this.#toString !== undefined)
196
- return this.#toString;
197
- if (!this.type) {
198
- return (this.#toString = this.#parts.map(p => String(p)).join(''));
199
- }
200
- else {
201
- return (this.#toString =
202
- this.type + '(' + this.#parts.map(p => String(p)).join('|') + ')');
203
- }
204
- }
205
- #fillNegs() {
206
- /* c8 ignore start */
207
- if (this !== this.#root)
208
- throw new Error('should only call on root');
209
- if (this.#filledNegs)
210
- return this;
211
- /* c8 ignore stop */
212
- // call toString() once to fill this out
213
- this.toString();
214
- this.#filledNegs = true;
215
- let n;
216
- while ((n = this.#negs.pop())) {
217
- if (n.type !== '!')
218
- continue;
219
- // walk up the tree, appending everthing that comes AFTER parentIndex
220
- let p = n;
221
- let pp = p.#parent;
222
- while (pp) {
223
- for (let i = p.#parentIndex + 1; !pp.type && i < pp.#parts.length; i++) {
224
- for (const part of n.#parts) {
225
- /* c8 ignore start */
226
- if (typeof part === 'string') {
227
- throw new Error('string part in extglob AST??');
228
- }
229
- /* c8 ignore stop */
230
- part.copyIn(pp.#parts[i]);
231
- }
232
- }
233
- p = pp;
234
- pp = p.#parent;
235
- }
236
- }
237
- return this;
238
- }
239
- push(...parts) {
240
- for (const p of parts) {
241
- if (p === '')
242
- continue;
243
- /* c8 ignore start */
244
- if (typeof p !== 'string' &&
245
- !(p instanceof _a && p.#parent === this)) {
246
- throw new Error('invalid part: ' + p);
247
- }
248
- /* c8 ignore stop */
249
- this.#parts.push(p);
250
- }
251
- }
252
- toJSON() {
253
- const ret = this.type === null ?
254
- this.#parts
255
- .slice()
256
- .map(p => (typeof p === 'string' ? p : p.toJSON()))
257
- : [this.type, ...this.#parts.map(p => p.toJSON())];
258
- if (this.isStart() && !this.type)
259
- ret.unshift([]);
260
- if (this.isEnd() &&
261
- (this === this.#root ||
262
- (this.#root.#filledNegs && this.#parent?.type === '!'))) {
263
- ret.push({});
264
- }
265
- return ret;
266
- }
267
- isStart() {
268
- if (this.#root === this)
269
- return true;
270
- // if (this.type) return !!this.#parent?.isStart()
271
- if (!this.#parent?.isStart())
272
- return false;
273
- if (this.#parentIndex === 0)
274
- return true;
275
- // if everything AHEAD of this is a negation, then it's still the "start"
276
- const p = this.#parent;
277
- for (let i = 0; i < this.#parentIndex; i++) {
278
- const pp = p.#parts[i];
279
- if (!(pp instanceof _a && pp.type === '!')) {
280
- return false;
281
- }
282
- }
283
- return true;
284
- }
285
- isEnd() {
286
- if (this.#root === this)
287
- return true;
288
- if (this.#parent?.type === '!')
289
- return true;
290
- if (!this.#parent?.isEnd())
291
- return false;
292
- if (!this.type)
293
- return this.#parent?.isEnd();
294
- // if not root, it'll always have a parent
295
- /* c8 ignore start */
296
- const pl = this.#parent ? this.#parent.#parts.length : 0;
297
- /* c8 ignore stop */
298
- return this.#parentIndex === pl - 1;
299
- }
300
- copyIn(part) {
301
- if (typeof part === 'string')
302
- this.push(part);
303
- else
304
- this.push(part.clone(this));
305
- }
306
- clone(parent) {
307
- const c = new _a(this.type, parent);
308
- for (const p of this.#parts) {
309
- c.copyIn(p);
310
- }
311
- return c;
312
- }
313
- static #parseAST(str, ast, pos, opt, extDepth) {
314
- const maxDepth = opt.maxExtglobRecursion ?? 2;
315
- let escaping = false;
316
- let inBrace = false;
317
- let braceStart = -1;
318
- let braceNeg = false;
319
- if (ast.type === null) {
320
- // outside of a extglob, append until we find a start
321
- let i = pos;
322
- let acc = '';
323
- while (i < str.length) {
324
- const c = str.charAt(i++);
325
- // still accumulate escapes at this point, but we do ignore
326
- // starts that are escaped
327
- if (escaping || c === '\\') {
328
- escaping = !escaping;
329
- acc += c;
330
- continue;
331
- }
332
- if (inBrace) {
333
- if (i === braceStart + 1) {
334
- if (c === '^' || c === '!') {
335
- braceNeg = true;
336
- }
337
- }
338
- else if (c === ']' && !(i === braceStart + 2 && braceNeg)) {
339
- inBrace = false;
340
- }
341
- acc += c;
342
- continue;
343
- }
344
- else if (c === '[') {
345
- inBrace = true;
346
- braceStart = i;
347
- braceNeg = false;
348
- acc += c;
349
- continue;
350
- }
351
- // we don't have to check for adoption here, because that's
352
- // done at the other recursion point.
353
- const doRecurse = !opt.noext &&
354
- isExtglobType(c) &&
355
- str.charAt(i) === '(' &&
356
- extDepth <= maxDepth;
357
- if (doRecurse) {
358
- ast.push(acc);
359
- acc = '';
360
- const ext = new _a(c, ast);
361
- i = _a.#parseAST(str, ext, i, opt, extDepth + 1);
362
- ast.push(ext);
363
- continue;
364
- }
365
- acc += c;
366
- }
367
- ast.push(acc);
368
- return i;
369
- }
370
- // some kind of extglob, pos is at the (
371
- // find the next | or )
372
- let i = pos + 1;
373
- let part = new _a(null, ast);
374
- const parts = [];
375
- let acc = '';
376
- while (i < str.length) {
377
- const c = str.charAt(i++);
378
- // still accumulate escapes at this point, but we do ignore
379
- // starts that are escaped
380
- if (escaping || c === '\\') {
381
- escaping = !escaping;
382
- acc += c;
383
- continue;
384
- }
385
- if (inBrace) {
386
- if (i === braceStart + 1) {
387
- if (c === '^' || c === '!') {
388
- braceNeg = true;
389
- }
390
- }
391
- else if (c === ']' && !(i === braceStart + 2 && braceNeg)) {
392
- inBrace = false;
393
- }
394
- acc += c;
395
- continue;
396
- }
397
- else if (c === '[') {
398
- inBrace = true;
399
- braceStart = i;
400
- braceNeg = false;
401
- acc += c;
402
- continue;
403
- }
404
- const doRecurse = !opt.noext &&
405
- isExtglobType(c) &&
406
- str.charAt(i) === '(' &&
407
- /* c8 ignore start - the maxDepth is sufficient here */
408
- (extDepth <= maxDepth || (ast && ast.#canAdoptType(c)));
409
- /* c8 ignore stop */
410
- if (doRecurse) {
411
- const depthAdd = ast && ast.#canAdoptType(c) ? 0 : 1;
412
- part.push(acc);
413
- acc = '';
414
- const ext = new _a(c, part);
415
- part.push(ext);
416
- i = _a.#parseAST(str, ext, i, opt, extDepth + depthAdd);
417
- continue;
418
- }
419
- if (c === '|') {
420
- part.push(acc);
421
- acc = '';
422
- parts.push(part);
423
- part = new _a(null, ast);
424
- continue;
425
- }
426
- if (c === ')') {
427
- if (acc === '' && ast.#parts.length === 0) {
428
- ast.#emptyExt = true;
429
- }
430
- part.push(acc);
431
- acc = '';
432
- ast.push(...parts, part);
433
- return i;
434
- }
435
- acc += c;
436
- }
437
- // unfinished extglob
438
- // if we got here, it was a malformed extglob! not an extglob, but
439
- // maybe something else in there.
440
- ast.type = null;
441
- ast.#hasMagic = undefined;
442
- ast.#parts = [str.substring(pos - 1)];
443
- return i;
444
- }
445
- #canAdoptWithSpace(child) {
446
- return this.#canAdopt(child, adoptionWithSpaceMap);
447
- }
448
- #canAdopt(child, map = adoptionMap) {
449
- if (!child ||
450
- typeof child !== 'object' ||
451
- child.type !== null ||
452
- child.#parts.length !== 1 ||
453
- this.type === null) {
454
- return false;
455
- }
456
- const gc = child.#parts[0];
457
- if (!gc || typeof gc !== 'object' || gc.type === null) {
458
- return false;
459
- }
460
- return this.#canAdoptType(gc.type, map);
461
- }
462
- #canAdoptType(c, map = adoptionAnyMap) {
463
- return !!map.get(this.type)?.includes(c);
464
- }
465
- #adoptWithSpace(child, index) {
466
- const gc = child.#parts[0];
467
- const blank = new _a(null, gc, this.options);
468
- blank.#parts.push('');
469
- gc.push(blank);
470
- this.#adopt(child, index);
471
- }
472
- #adopt(child, index) {
473
- const gc = child.#parts[0];
474
- this.#parts.splice(index, 1, ...gc.#parts);
475
- for (const p of gc.#parts) {
476
- if (typeof p === 'object')
477
- p.#parent = this;
478
- }
479
- this.#toString = undefined;
480
- }
481
- #canUsurpType(c) {
482
- const m = usurpMap.get(this.type);
483
- return !!(m?.has(c));
484
- }
485
- #canUsurp(child) {
486
- if (!child ||
487
- typeof child !== 'object' ||
488
- child.type !== null ||
489
- child.#parts.length !== 1 ||
490
- this.type === null ||
491
- this.#parts.length !== 1) {
492
- return false;
493
- }
494
- const gc = child.#parts[0];
495
- if (!gc || typeof gc !== 'object' || gc.type === null) {
496
- return false;
497
- }
498
- return this.#canUsurpType(gc.type);
499
- }
500
- #usurp(child) {
501
- const m = usurpMap.get(this.type);
502
- const gc = child.#parts[0];
503
- const nt = m?.get(gc.type);
504
- /* c8 ignore start - impossible */
505
- if (!nt)
506
- return false;
507
- /* c8 ignore stop */
508
- this.#parts = gc.#parts;
509
- for (const p of this.#parts) {
510
- if (typeof p === 'object') {
511
- p.#parent = this;
512
- }
513
- }
514
- this.type = nt;
515
- this.#toString = undefined;
516
- this.#emptyExt = false;
517
- }
518
- static fromGlob(pattern, options = {}) {
519
- const ast = new _a(null, undefined, options);
520
- _a.#parseAST(pattern, ast, 0, options, 0);
521
- return ast;
522
- }
523
- // returns the regular expression if there's magic, or the unescaped
524
- // string if not.
525
- toMMPattern() {
526
- // should only be called on root
527
- /* c8 ignore start */
528
- if (this !== this.#root)
529
- return this.#root.toMMPattern();
530
- /* c8 ignore stop */
531
- const glob = this.toString();
532
- const [re, body, hasMagic, uflag] = this.toRegExpSource();
533
- // if we're in nocase mode, and not nocaseMagicOnly, then we do
534
- // still need a regular expression if we have to case-insensitively
535
- // match capital/lowercase characters.
536
- const anyMagic = hasMagic ||
537
- this.#hasMagic ||
538
- (this.#options.nocase &&
539
- !this.#options.nocaseMagicOnly &&
540
- glob.toUpperCase() !== glob.toLowerCase());
541
- if (!anyMagic) {
542
- return body;
543
- }
544
- const flags = (this.#options.nocase ? 'i' : '') + (uflag ? 'u' : '');
545
- return Object.assign(new RegExp(`^${re}$`, flags), {
546
- _src: re,
547
- _glob: glob,
548
- });
549
- }
550
- get options() {
551
- return this.#options;
552
- }
553
- // returns the string match, the regexp source, whether there's magic
554
- // in the regexp (so a regular expression is required) and whether or
555
- // not the uflag is needed for the regular expression (for posix classes)
556
- // TODO: instead of injecting the start/end at this point, just return
557
- // the BODY of the regexp, along with the start/end portions suitable
558
- // for binding the start/end in either a joined full-path makeRe context
559
- // (where we bind to (^|/), or a standalone matchPart context (where
560
- // we bind to ^, and not /). Otherwise slashes get duped!
561
- //
562
- // In part-matching mode, the start is:
563
- // - if not isStart: nothing
564
- // - if traversal possible, but not allowed: ^(?!\.\.?$)
565
- // - if dots allowed or not possible: ^
566
- // - if dots possible and not allowed: ^(?!\.)
567
- // end is:
568
- // - if not isEnd(): nothing
569
- // - else: $
570
- //
571
- // In full-path matching mode, we put the slash at the START of the
572
- // pattern, so start is:
573
- // - if first pattern: same as part-matching mode
574
- // - if not isStart(): nothing
575
- // - if traversal possible, but not allowed: /(?!\.\.?(?:$|/))
576
- // - if dots allowed or not possible: /
577
- // - if dots possible and not allowed: /(?!\.)
578
- // end is:
579
- // - if last pattern, same as part-matching mode
580
- // - else nothing
581
- //
582
- // Always put the (?:$|/) on negated tails, though, because that has to be
583
- // there to bind the end of the negated pattern portion, and it's easier to
584
- // just stick it in now rather than try to inject it later in the middle of
585
- // the pattern.
586
- //
587
- // We can just always return the same end, and leave it up to the caller
588
- // to know whether it's going to be used joined or in parts.
589
- // And, if the start is adjusted slightly, can do the same there:
590
- // - if not isStart: nothing
591
- // - if traversal possible, but not allowed: (?:/|^)(?!\.\.?$)
592
- // - if dots allowed or not possible: (?:/|^)
593
- // - if dots possible and not allowed: (?:/|^)(?!\.)
594
- //
595
- // But it's better to have a simpler binding without a conditional, for
596
- // performance, so probably better to return both start options.
597
- //
598
- // Then the caller just ignores the end if it's not the first pattern,
599
- // and the start always gets applied.
600
- //
601
- // But that's always going to be $ if it's the ending pattern, or nothing,
602
- // so the caller can just attach $ at the end of the pattern when building.
603
- //
604
- // So the todo is:
605
- // - better detect what kind of start is needed
606
- // - return both flavors of starting pattern
607
- // - attach $ at the end of the pattern when creating the actual RegExp
608
- //
609
- // Ah, but wait, no, that all only applies to the root when the first pattern
610
- // is not an extglob. If the first pattern IS an extglob, then we need all
611
- // that dot prevention biz to live in the extglob portions, because eg
612
- // +(*|.x*) can match .xy but not .yx.
613
- //
614
- // So, return the two flavors if it's #root and the first child is not an
615
- // AST, otherwise leave it to the child AST to handle it, and there,
616
- // use the (?:^|/) style of start binding.
617
- //
618
- // Even simplified further:
619
- // - Since the start for a join is eg /(?!\.) and the start for a part
620
- // is ^(?!\.), we can just prepend (?!\.) to the pattern (either root
621
- // or start or whatever) and prepend ^ or / at the Regexp construction.
622
- toRegExpSource(allowDot) {
623
- const dot = allowDot ?? !!this.#options.dot;
624
- if (this.#root === this) {
625
- this.#flatten();
626
- this.#fillNegs();
627
- }
628
- if (!isExtglobAST(this)) {
629
- const noEmpty = this.isStart() &&
630
- this.isEnd() &&
631
- !this.#parts.some(s => typeof s !== 'string');
632
- const src = this.#parts
633
- .map(p => {
634
- const [re, _, hasMagic, uflag] = typeof p === 'string' ?
635
- _a.#parseGlob(p, this.#hasMagic, noEmpty)
636
- : p.toRegExpSource(allowDot);
637
- this.#hasMagic = this.#hasMagic || hasMagic;
638
- this.#uflag = this.#uflag || uflag;
639
- return re;
640
- })
641
- .join('');
642
- let start = '';
643
- if (this.isStart()) {
644
- if (typeof this.#parts[0] === 'string') {
645
- // this is the string that will match the start of the pattern,
646
- // so we need to protect against dots and such.
647
- // '.' and '..' cannot match unless the pattern is that exactly,
648
- // even if it starts with . or dot:true is set.
649
- const dotTravAllowed = this.#parts.length === 1 && justDots.has(this.#parts[0]);
650
- if (!dotTravAllowed) {
651
- const aps = addPatternStart;
652
- // check if we have a possibility of matching . or ..,
653
- // and prevent that.
654
- const needNoTrav =
655
- // dots are allowed, and the pattern starts with [ or .
656
- (dot && aps.has(src.charAt(0))) ||
657
- // the pattern starts with \., and then [ or .
658
- (src.startsWith('\\.') && aps.has(src.charAt(2))) ||
659
- // the pattern starts with \.\., and then [ or .
660
- (src.startsWith('\\.\\.') && aps.has(src.charAt(4)));
661
- // no need to prevent dots if it can't match a dot, or if a
662
- // sub-pattern will be preventing it anyway.
663
- const needNoDot = !dot && !allowDot && aps.has(src.charAt(0));
664
- start =
665
- needNoTrav ? startNoTraversal
666
- : needNoDot ? startNoDot
667
- : '';
668
- }
669
- }
670
- }
671
- // append the "end of path portion" pattern to negation tails
672
- let end = '';
673
- if (this.isEnd() &&
674
- this.#root.#filledNegs &&
675
- this.#parent?.type === '!') {
676
- end = '(?:$|\\/)';
677
- }
678
- const final = start + src + end;
679
- return [
680
- final,
681
- (0, unescape_js_1.unescape)(src),
682
- (this.#hasMagic = !!this.#hasMagic),
683
- this.#uflag,
684
- ];
685
- }
686
- // We need to calculate the body *twice* if it's a repeat pattern
687
- // at the start, once in nodot mode, then again in dot mode, so a
688
- // pattern like *(?) can match 'x.y'
689
- const repeated = this.type === '*' || this.type === '+';
690
- // some kind of extglob
691
- const start = this.type === '!' ? '(?:(?!(?:' : '(?:';
692
- let body = this.#partsToRegExp(dot);
693
- if (this.isStart() && this.isEnd() && !body && this.type !== '!') {
694
- // invalid extglob, has to at least be *something* present, if it's
695
- // the entire path portion.
696
- const s = this.toString();
697
- const me = this;
698
- me.#parts = [s];
699
- me.type = null;
700
- me.#hasMagic = undefined;
701
- return [s, (0, unescape_js_1.unescape)(this.toString()), false, false];
702
- }
703
- let bodyDotAllowed = !repeated || allowDot || dot || !startNoDot ?
704
- ''
705
- : this.#partsToRegExp(true);
706
- if (bodyDotAllowed === body) {
707
- bodyDotAllowed = '';
708
- }
709
- if (bodyDotAllowed) {
710
- body = `(?:${body})(?:${bodyDotAllowed})*?`;
711
- }
712
- // an empty !() is exactly equivalent to a starNoEmpty
713
- let final = '';
714
- if (this.type === '!' && this.#emptyExt) {
715
- final = (this.isStart() && !dot ? startNoDot : '') + starNoEmpty;
716
- }
717
- else {
718
- const close = this.type === '!' ?
719
- // !() must match something,but !(x) can match ''
720
- '))' +
721
- (this.isStart() && !dot && !allowDot ? startNoDot : '') +
722
- star +
723
- ')'
724
- : this.type === '@' ? ')'
725
- : this.type === '?' ? ')?'
726
- : this.type === '+' && bodyDotAllowed ? ')'
727
- : this.type === '*' && bodyDotAllowed ? `)?`
728
- : `)${this.type}`;
729
- final = start + body + close;
730
- }
731
- return [
732
- final,
733
- (0, unescape_js_1.unescape)(body),
734
- (this.#hasMagic = !!this.#hasMagic),
735
- this.#uflag,
736
- ];
737
- }
738
- #flatten() {
739
- if (!isExtglobAST(this)) {
740
- for (const p of this.#parts) {
741
- if (typeof p === 'object') {
742
- p.#flatten();
743
- }
744
- }
745
- }
746
- else {
747
- // do up to 10 passes to flatten as much as possible
748
- let iterations = 0;
749
- let done = false;
750
- do {
751
- done = true;
752
- for (let i = 0; i < this.#parts.length; i++) {
753
- const c = this.#parts[i];
754
- if (typeof c === 'object') {
755
- c.#flatten();
756
- if (this.#canAdopt(c)) {
757
- done = false;
758
- this.#adopt(c, i);
759
- }
760
- else if (this.#canAdoptWithSpace(c)) {
761
- done = false;
762
- this.#adoptWithSpace(c, i);
763
- }
764
- else if (this.#canUsurp(c)) {
765
- done = false;
766
- this.#usurp(c);
767
- }
768
- }
769
- }
770
- } while (!done && ++iterations < 10);
771
- }
772
- this.#toString = undefined;
773
- }
774
- #partsToRegExp(dot) {
775
- return this.#parts
776
- .map(p => {
777
- // extglob ASTs should only contain parent ASTs
778
- /* c8 ignore start */
779
- if (typeof p === 'string') {
780
- throw new Error('string type in extglob ast??');
781
- }
782
- /* c8 ignore stop */
783
- // can ignore hasMagic, because extglobs are already always magic
784
- const [re, _, _hasMagic, uflag] = p.toRegExpSource(dot);
785
- this.#uflag = this.#uflag || uflag;
786
- return re;
787
- })
788
- .filter(p => !(this.isStart() && this.isEnd()) || !!p)
789
- .join('|');
790
- }
791
- static #parseGlob(glob, hasMagic, noEmpty = false) {
792
- let escaping = false;
793
- let re = '';
794
- let uflag = false;
795
- // multiple stars that aren't globstars coalesce into one *
796
- let inStar = false;
797
- for (let i = 0; i < glob.length; i++) {
798
- const c = glob.charAt(i);
799
- if (escaping) {
800
- escaping = false;
801
- re += (reSpecials.has(c) ? '\\' : '') + c;
802
- continue;
803
- }
804
- if (c === '*') {
805
- if (inStar)
806
- continue;
807
- inStar = true;
808
- re += noEmpty && /^[*]+$/.test(glob) ? starNoEmpty : star;
809
- hasMagic = true;
810
- continue;
811
- }
812
- else {
813
- inStar = false;
814
- }
815
- if (c === '\\') {
816
- if (i === glob.length - 1) {
817
- re += '\\\\';
818
- }
819
- else {
820
- escaping = true;
821
- }
822
- continue;
823
- }
824
- if (c === '[') {
825
- const [src, needUflag, consumed, magic] = (0, brace_expressions_js_1.parseClass)(glob, i);
826
- if (consumed) {
827
- re += src;
828
- uflag = uflag || needUflag;
829
- i += consumed - 1;
830
- hasMagic = hasMagic || magic;
831
- continue;
832
- }
833
- }
834
- if (c === '?') {
835
- re += qmark;
836
- hasMagic = true;
837
- continue;
838
- }
839
- re += regExpEscape(c);
840
- }
841
- return [re, (0, unescape_js_1.unescape)(glob), !!hasMagic, uflag];
842
- }
843
- }
844
- exports.AST = AST;
845
- _a = AST;
846
- //# sourceMappingURL=ast.js.map