@gradientedge/cdk-utils 8.32.0 → 8.34.0

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 (352) hide show
  1. package/app/api-destined-function/layers/nodejs/node_modules/.yarn-integrity +15 -17
  2. package/app/api-destined-function/layers/nodejs/package.json +3 -3
  3. package/app/api-destined-function/node_modules/.yarn-integrity +296 -53
  4. package/app/api-destined-function/node_modules/@types/uuid/README.md +1 -1
  5. package/app/api-destined-function/node_modules/@types/uuid/index.d.ts +1 -1
  6. package/app/api-destined-function/node_modules/@types/uuid/package.json +3 -3
  7. package/app/api-destined-function/node_modules/brace-expansion/README.md +6 -0
  8. package/app/api-destined-function/node_modules/brace-expansion/index.js +86 -84
  9. package/app/api-destined-function/node_modules/brace-expansion/package.json +3 -4
  10. package/app/api-destined-function/node_modules/glob/LICENSE +1 -7
  11. package/app/api-destined-function/node_modules/glob/README.md +992 -284
  12. package/app/api-destined-function/node_modules/glob/dist/cjs/glob.d.ts +328 -0
  13. package/app/api-destined-function/node_modules/glob/dist/cjs/glob.d.ts.map +1 -0
  14. package/app/api-destined-function/node_modules/glob/dist/cjs/glob.js +228 -0
  15. package/app/api-destined-function/node_modules/glob/dist/cjs/glob.js.map +1 -0
  16. package/app/api-destined-function/node_modules/glob/dist/cjs/has-magic.d.ts +14 -0
  17. package/app/api-destined-function/node_modules/glob/dist/cjs/has-magic.d.ts.map +1 -0
  18. package/app/api-destined-function/node_modules/glob/dist/cjs/has-magic.js +27 -0
  19. package/app/api-destined-function/node_modules/glob/dist/cjs/has-magic.js.map +1 -0
  20. package/app/api-destined-function/node_modules/glob/dist/cjs/ignore.d.ts +20 -0
  21. package/app/api-destined-function/node_modules/glob/dist/cjs/ignore.d.ts.map +1 -0
  22. package/app/api-destined-function/node_modules/glob/dist/cjs/ignore.js +103 -0
  23. package/app/api-destined-function/node_modules/glob/dist/cjs/ignore.js.map +1 -0
  24. package/app/api-destined-function/node_modules/glob/dist/cjs/index-cjs.d.ts +75 -0
  25. package/app/api-destined-function/node_modules/glob/dist/cjs/index-cjs.d.ts.map +1 -0
  26. package/app/api-destined-function/node_modules/glob/dist/cjs/index-cjs.js +7 -0
  27. package/app/api-destined-function/node_modules/glob/dist/cjs/index-cjs.js.map +1 -0
  28. package/app/api-destined-function/node_modules/glob/dist/cjs/index.d.ts +96 -0
  29. package/app/api-destined-function/node_modules/glob/dist/cjs/index.d.ts.map +1 -0
  30. package/app/api-destined-function/node_modules/glob/dist/cjs/index.js +68 -0
  31. package/app/api-destined-function/node_modules/glob/dist/cjs/index.js.map +1 -0
  32. package/app/api-destined-function/node_modules/glob/dist/cjs/package.json +3 -0
  33. package/app/api-destined-function/node_modules/glob/dist/cjs/pattern.d.ts +77 -0
  34. package/app/api-destined-function/node_modules/glob/dist/cjs/pattern.d.ts.map +1 -0
  35. package/app/api-destined-function/node_modules/glob/dist/cjs/pattern.js +219 -0
  36. package/app/api-destined-function/node_modules/glob/dist/cjs/pattern.js.map +1 -0
  37. package/app/api-destined-function/node_modules/glob/dist/cjs/processor.d.ts +59 -0
  38. package/app/api-destined-function/node_modules/glob/dist/cjs/processor.d.ts.map +1 -0
  39. package/app/api-destined-function/node_modules/glob/dist/cjs/processor.js +309 -0
  40. package/app/api-destined-function/node_modules/glob/dist/cjs/processor.js.map +1 -0
  41. package/app/api-destined-function/node_modules/glob/dist/cjs/walker.d.ts +95 -0
  42. package/app/api-destined-function/node_modules/glob/dist/cjs/walker.d.ts.map +1 -0
  43. package/app/api-destined-function/node_modules/glob/dist/cjs/walker.js +360 -0
  44. package/app/api-destined-function/node_modules/glob/dist/cjs/walker.js.map +1 -0
  45. package/app/api-destined-function/node_modules/glob/dist/mjs/glob.d.ts +328 -0
  46. package/app/api-destined-function/node_modules/glob/dist/mjs/glob.d.ts.map +1 -0
  47. package/app/api-destined-function/node_modules/glob/dist/mjs/glob.js +224 -0
  48. package/app/api-destined-function/node_modules/glob/dist/mjs/glob.js.map +1 -0
  49. package/app/api-destined-function/node_modules/glob/dist/mjs/has-magic.d.ts +14 -0
  50. package/app/api-destined-function/node_modules/glob/dist/mjs/has-magic.d.ts.map +1 -0
  51. package/app/api-destined-function/node_modules/glob/dist/mjs/has-magic.js +23 -0
  52. package/app/api-destined-function/node_modules/glob/dist/mjs/has-magic.js.map +1 -0
  53. package/app/api-destined-function/node_modules/glob/dist/mjs/ignore.d.ts +20 -0
  54. package/app/api-destined-function/node_modules/glob/dist/mjs/ignore.d.ts.map +1 -0
  55. package/app/api-destined-function/node_modules/glob/dist/mjs/ignore.js +99 -0
  56. package/app/api-destined-function/node_modules/glob/dist/mjs/ignore.js.map +1 -0
  57. package/app/api-destined-function/node_modules/glob/dist/mjs/index.d.ts +96 -0
  58. package/app/api-destined-function/node_modules/glob/dist/mjs/index.d.ts.map +1 -0
  59. package/app/api-destined-function/node_modules/glob/dist/mjs/index.js +55 -0
  60. package/app/api-destined-function/node_modules/glob/dist/mjs/index.js.map +1 -0
  61. package/app/api-destined-function/node_modules/glob/dist/mjs/package.json +3 -0
  62. package/app/api-destined-function/node_modules/glob/dist/mjs/pattern.d.ts +77 -0
  63. package/app/api-destined-function/node_modules/glob/dist/mjs/pattern.d.ts.map +1 -0
  64. package/app/api-destined-function/node_modules/glob/dist/mjs/pattern.js +215 -0
  65. package/app/api-destined-function/node_modules/glob/dist/mjs/pattern.js.map +1 -0
  66. package/app/api-destined-function/node_modules/glob/dist/mjs/processor.d.ts +59 -0
  67. package/app/api-destined-function/node_modules/glob/dist/mjs/processor.d.ts.map +1 -0
  68. package/app/api-destined-function/node_modules/glob/dist/mjs/processor.js +302 -0
  69. package/app/api-destined-function/node_modules/glob/dist/mjs/processor.js.map +1 -0
  70. package/app/api-destined-function/node_modules/glob/dist/mjs/walker.d.ts +95 -0
  71. package/app/api-destined-function/node_modules/glob/dist/mjs/walker.d.ts.map +1 -0
  72. package/app/api-destined-function/node_modules/glob/dist/mjs/walker.js +351 -0
  73. package/app/api-destined-function/node_modules/glob/dist/mjs/walker.js.map +1 -0
  74. package/app/api-destined-function/node_modules/glob/package.json +76 -30
  75. package/app/api-destined-function/node_modules/{inflight → lru-cache}/LICENSE +1 -1
  76. package/app/api-destined-function/node_modules/lru-cache/README.md +1117 -0
  77. package/app/api-destined-function/node_modules/lru-cache/index.d.ts +869 -0
  78. package/app/api-destined-function/node_modules/lru-cache/index.js +1227 -0
  79. package/app/api-destined-function/node_modules/lru-cache/index.mjs +1227 -0
  80. package/app/api-destined-function/node_modules/lru-cache/package.json +96 -0
  81. package/app/api-destined-function/node_modules/minimatch/LICENSE +1 -1
  82. package/app/api-destined-function/node_modules/minimatch/README.md +305 -55
  83. package/app/api-destined-function/node_modules/minimatch/dist/cjs/brace-expressions.d.ts +8 -0
  84. package/app/api-destined-function/node_modules/minimatch/dist/cjs/brace-expressions.d.ts.map +1 -0
  85. package/app/api-destined-function/node_modules/minimatch/dist/cjs/brace-expressions.js +152 -0
  86. package/app/api-destined-function/node_modules/minimatch/dist/cjs/brace-expressions.js.map +1 -0
  87. package/app/api-destined-function/node_modules/minimatch/dist/cjs/escape.d.ts +12 -0
  88. package/app/api-destined-function/node_modules/minimatch/dist/cjs/escape.d.ts.map +1 -0
  89. package/app/api-destined-function/node_modules/minimatch/dist/cjs/escape.js +22 -0
  90. package/app/api-destined-function/node_modules/minimatch/dist/cjs/escape.js.map +1 -0
  91. package/app/api-destined-function/node_modules/minimatch/dist/cjs/index-cjs.d.ts +42 -0
  92. package/app/api-destined-function/node_modules/minimatch/dist/cjs/index-cjs.d.ts.map +1 -0
  93. package/app/api-destined-function/node_modules/minimatch/dist/cjs/index-cjs.js +7 -0
  94. package/app/api-destined-function/node_modules/minimatch/dist/cjs/index-cjs.js.map +1 -0
  95. package/app/api-destined-function/node_modules/minimatch/dist/cjs/index.d.ts +92 -0
  96. package/app/api-destined-function/node_modules/minimatch/dist/cjs/index.d.ts.map +1 -0
  97. package/app/api-destined-function/node_modules/minimatch/dist/cjs/index.js +1304 -0
  98. package/app/api-destined-function/node_modules/minimatch/dist/cjs/index.js.map +1 -0
  99. package/app/api-destined-function/node_modules/minimatch/dist/cjs/package.json +3 -0
  100. package/app/api-destined-function/node_modules/minimatch/dist/cjs/unescape.d.ts +17 -0
  101. package/app/api-destined-function/node_modules/minimatch/dist/cjs/unescape.d.ts.map +1 -0
  102. package/app/api-destined-function/node_modules/minimatch/dist/cjs/unescape.js +24 -0
  103. package/app/api-destined-function/node_modules/minimatch/dist/cjs/unescape.js.map +1 -0
  104. package/app/api-destined-function/node_modules/minimatch/dist/mjs/brace-expressions.d.ts +8 -0
  105. package/app/api-destined-function/node_modules/minimatch/dist/mjs/brace-expressions.d.ts.map +1 -0
  106. package/app/api-destined-function/node_modules/minimatch/dist/mjs/brace-expressions.js +148 -0
  107. package/app/api-destined-function/node_modules/minimatch/dist/mjs/brace-expressions.js.map +1 -0
  108. package/app/api-destined-function/node_modules/minimatch/dist/mjs/escape.d.ts +12 -0
  109. package/app/api-destined-function/node_modules/minimatch/dist/mjs/escape.d.ts.map +1 -0
  110. package/app/api-destined-function/node_modules/minimatch/dist/mjs/escape.js +18 -0
  111. package/app/api-destined-function/node_modules/minimatch/dist/mjs/escape.js.map +1 -0
  112. package/app/api-destined-function/node_modules/minimatch/dist/mjs/index.d.ts +92 -0
  113. package/app/api-destined-function/node_modules/minimatch/dist/mjs/index.d.ts.map +1 -0
  114. package/app/api-destined-function/node_modules/minimatch/dist/mjs/index.js +1289 -0
  115. package/app/api-destined-function/node_modules/minimatch/dist/mjs/index.js.map +1 -0
  116. package/app/api-destined-function/node_modules/minimatch/dist/mjs/package.json +3 -0
  117. package/app/api-destined-function/node_modules/minimatch/dist/mjs/unescape.d.ts +17 -0
  118. package/app/api-destined-function/node_modules/minimatch/dist/mjs/unescape.d.ts.map +1 -0
  119. package/app/api-destined-function/node_modules/minimatch/dist/mjs/unescape.js +20 -0
  120. package/app/api-destined-function/node_modules/minimatch/dist/mjs/unescape.js.map +1 -0
  121. package/app/api-destined-function/node_modules/minimatch/package.json +67 -11
  122. package/app/api-destined-function/node_modules/{once → minipass}/LICENSE +1 -1
  123. package/app/api-destined-function/node_modules/minipass/README.md +769 -0
  124. package/app/api-destined-function/node_modules/minipass/index.d.ts +150 -0
  125. package/app/api-destined-function/node_modules/minipass/index.js +702 -0
  126. package/app/api-destined-function/node_modules/minipass/index.mjs +702 -0
  127. package/app/api-destined-function/node_modules/minipass/package.json +76 -0
  128. package/app/api-destined-function/node_modules/mkdirp/dist/cjs/package.json +4 -3
  129. package/app/api-destined-function/node_modules/mkdirp/dist/cjs/src/bin.d.ts +1 -0
  130. package/app/api-destined-function/node_modules/mkdirp/dist/cjs/src/bin.d.ts.map +1 -0
  131. package/app/api-destined-function/node_modules/mkdirp/dist/cjs/src/bin.js +7 -0
  132. package/app/api-destined-function/node_modules/mkdirp/dist/cjs/src/bin.js.map +1 -1
  133. package/app/api-destined-function/node_modules/mkdirp/dist/cjs/src/find-made.d.ts +1 -0
  134. package/app/api-destined-function/node_modules/mkdirp/dist/cjs/src/find-made.d.ts.map +1 -0
  135. package/app/api-destined-function/node_modules/mkdirp/dist/cjs/src/index-cjs.d.ts +1 -0
  136. package/app/api-destined-function/node_modules/mkdirp/dist/cjs/src/index-cjs.d.ts.map +1 -0
  137. package/app/api-destined-function/node_modules/mkdirp/dist/cjs/src/index.d.ts +1 -0
  138. package/app/api-destined-function/node_modules/mkdirp/dist/cjs/src/index.d.ts.map +1 -0
  139. package/app/api-destined-function/node_modules/mkdirp/dist/cjs/src/mkdirp-manual.d.ts +1 -0
  140. package/app/api-destined-function/node_modules/mkdirp/dist/cjs/src/mkdirp-manual.d.ts.map +1 -0
  141. package/app/api-destined-function/node_modules/mkdirp/dist/cjs/src/mkdirp-native.d.ts +1 -0
  142. package/app/api-destined-function/node_modules/mkdirp/dist/cjs/src/mkdirp-native.d.ts.map +1 -0
  143. package/app/api-destined-function/node_modules/mkdirp/dist/cjs/src/opts-arg.d.ts +1 -0
  144. package/app/api-destined-function/node_modules/mkdirp/dist/cjs/src/opts-arg.d.ts.map +1 -0
  145. package/app/api-destined-function/node_modules/mkdirp/dist/cjs/src/path-arg.d.ts +1 -0
  146. package/app/api-destined-function/node_modules/mkdirp/dist/cjs/src/path-arg.d.ts.map +1 -0
  147. package/app/api-destined-function/node_modules/mkdirp/dist/cjs/src/use-native.d.ts +1 -0
  148. package/app/api-destined-function/node_modules/mkdirp/dist/cjs/src/use-native.d.ts.map +1 -0
  149. package/app/api-destined-function/node_modules/mkdirp/dist/mjs/find-made.d.ts +1 -0
  150. package/app/api-destined-function/node_modules/mkdirp/dist/mjs/find-made.d.ts.map +1 -0
  151. package/app/api-destined-function/node_modules/mkdirp/dist/mjs/index.d.ts +1 -0
  152. package/app/api-destined-function/node_modules/mkdirp/dist/mjs/index.d.ts.map +1 -0
  153. package/app/api-destined-function/node_modules/mkdirp/dist/mjs/mkdirp-manual.d.ts +1 -0
  154. package/app/api-destined-function/node_modules/mkdirp/dist/mjs/mkdirp-manual.d.ts.map +1 -0
  155. package/app/api-destined-function/node_modules/mkdirp/dist/mjs/mkdirp-native.d.ts +1 -0
  156. package/app/api-destined-function/node_modules/mkdirp/dist/mjs/mkdirp-native.d.ts.map +1 -0
  157. package/app/api-destined-function/node_modules/mkdirp/dist/mjs/opts-arg.d.ts +1 -0
  158. package/app/api-destined-function/node_modules/mkdirp/dist/mjs/opts-arg.d.ts.map +1 -0
  159. package/app/api-destined-function/node_modules/mkdirp/dist/mjs/path-arg.d.ts +1 -0
  160. package/app/api-destined-function/node_modules/mkdirp/dist/mjs/path-arg.d.ts.map +1 -0
  161. package/app/api-destined-function/node_modules/mkdirp/dist/mjs/use-native.d.ts +1 -0
  162. package/app/api-destined-function/node_modules/mkdirp/dist/mjs/use-native.d.ts.map +1 -0
  163. package/app/api-destined-function/node_modules/mkdirp/package.json +4 -3
  164. package/app/api-destined-function/node_modules/path-scurry/LICENSE.md +55 -0
  165. package/app/api-destined-function/node_modules/path-scurry/README.md +559 -0
  166. package/app/api-destined-function/node_modules/path-scurry/dist/cjs/index.d.ts +1055 -0
  167. package/app/api-destined-function/node_modules/path-scurry/dist/cjs/index.d.ts.map +1 -0
  168. package/app/api-destined-function/node_modules/path-scurry/dist/cjs/index.js +1865 -0
  169. package/app/api-destined-function/node_modules/path-scurry/dist/cjs/index.js.map +1 -0
  170. package/app/api-destined-function/node_modules/path-scurry/dist/cjs/package.json +3 -0
  171. package/app/api-destined-function/node_modules/path-scurry/dist/mjs/index.d.ts +1055 -0
  172. package/app/api-destined-function/node_modules/path-scurry/dist/mjs/index.d.ts.map +1 -0
  173. package/app/api-destined-function/node_modules/path-scurry/dist/mjs/index.js +1827 -0
  174. package/app/api-destined-function/node_modules/path-scurry/dist/mjs/index.js.map +1 -0
  175. package/app/api-destined-function/node_modules/path-scurry/dist/mjs/package.json +3 -0
  176. package/app/api-destined-function/node_modules/path-scurry/package.json +87 -0
  177. package/app/api-destined-function/node_modules/rimraf/LICENSE +1 -1
  178. package/app/api-destined-function/node_modules/rimraf/README.md +185 -72
  179. package/app/api-destined-function/node_modules/rimraf/dist/cjs/package.json +84 -0
  180. package/app/api-destined-function/node_modules/rimraf/dist/cjs/src/bin.d.ts +8 -0
  181. package/app/api-destined-function/node_modules/rimraf/dist/cjs/src/bin.d.ts.map +1 -0
  182. package/app/api-destined-function/node_modules/rimraf/dist/cjs/src/bin.js +260 -0
  183. package/app/api-destined-function/node_modules/rimraf/dist/cjs/src/bin.js.map +1 -0
  184. package/app/api-destined-function/node_modules/rimraf/dist/cjs/src/default-tmp.d.ts +3 -0
  185. package/app/api-destined-function/node_modules/rimraf/dist/cjs/src/default-tmp.d.ts.map +1 -0
  186. package/app/api-destined-function/node_modules/rimraf/dist/cjs/src/default-tmp.js +61 -0
  187. package/app/api-destined-function/node_modules/rimraf/dist/cjs/src/default-tmp.js.map +1 -0
  188. package/app/api-destined-function/node_modules/rimraf/dist/cjs/src/fix-eperm.d.ts +3 -0
  189. package/app/api-destined-function/node_modules/rimraf/dist/cjs/src/fix-eperm.d.ts.map +1 -0
  190. package/app/api-destined-function/node_modules/rimraf/dist/cjs/src/fix-eperm.js +58 -0
  191. package/app/api-destined-function/node_modules/rimraf/dist/cjs/src/fix-eperm.js.map +1 -0
  192. package/app/api-destined-function/node_modules/rimraf/dist/cjs/src/fs.d.ts +17 -0
  193. package/app/api-destined-function/node_modules/rimraf/dist/cjs/src/fs.d.ts.map +1 -0
  194. package/app/api-destined-function/node_modules/rimraf/dist/cjs/src/fs.js +46 -0
  195. package/app/api-destined-function/node_modules/rimraf/dist/cjs/src/fs.js.map +1 -0
  196. package/app/api-destined-function/node_modules/rimraf/dist/cjs/src/ignore-enoent.d.ts +3 -0
  197. package/app/api-destined-function/node_modules/rimraf/dist/cjs/src/ignore-enoent.d.ts.map +1 -0
  198. package/app/api-destined-function/node_modules/rimraf/dist/cjs/src/ignore-enoent.js +21 -0
  199. package/app/api-destined-function/node_modules/rimraf/dist/cjs/src/ignore-enoent.js.map +1 -0
  200. package/app/api-destined-function/node_modules/rimraf/dist/cjs/src/index-cjs.d.ts +57 -0
  201. package/app/api-destined-function/node_modules/rimraf/dist/cjs/src/index-cjs.d.ts.map +1 -0
  202. package/app/api-destined-function/node_modules/rimraf/dist/cjs/src/index-cjs.js +7 -0
  203. package/app/api-destined-function/node_modules/rimraf/dist/cjs/src/index-cjs.js.map +1 -0
  204. package/app/api-destined-function/node_modules/rimraf/dist/cjs/src/index.d.ts +71 -0
  205. package/app/api-destined-function/node_modules/rimraf/dist/cjs/src/index.d.ts.map +1 -0
  206. package/app/api-destined-function/node_modules/rimraf/dist/cjs/src/index.js +92 -0
  207. package/app/api-destined-function/node_modules/rimraf/dist/cjs/src/index.js.map +1 -0
  208. package/app/api-destined-function/node_modules/rimraf/dist/cjs/src/opt-arg.d.ts +17 -0
  209. package/app/api-destined-function/node_modules/rimraf/dist/cjs/src/opt-arg.d.ts.map +1 -0
  210. package/app/api-destined-function/node_modules/rimraf/dist/cjs/src/opt-arg.js +36 -0
  211. package/app/api-destined-function/node_modules/rimraf/dist/cjs/src/opt-arg.js.map +1 -0
  212. package/app/api-destined-function/node_modules/rimraf/dist/cjs/src/path-arg.d.ts +4 -0
  213. package/app/api-destined-function/node_modules/rimraf/dist/cjs/src/path-arg.d.ts.map +1 -0
  214. package/app/api-destined-function/node_modules/rimraf/dist/cjs/src/path-arg.js +54 -0
  215. package/app/api-destined-function/node_modules/rimraf/dist/cjs/src/path-arg.js.map +1 -0
  216. package/app/api-destined-function/node_modules/rimraf/dist/cjs/src/platform.d.ts +3 -0
  217. package/app/api-destined-function/node_modules/rimraf/dist/cjs/src/platform.d.ts.map +1 -0
  218. package/app/api-destined-function/node_modules/rimraf/dist/cjs/src/platform.js +4 -0
  219. package/app/api-destined-function/node_modules/rimraf/dist/cjs/src/platform.js.map +1 -0
  220. package/app/api-destined-function/node_modules/rimraf/dist/cjs/src/readdir-or-error.d.ts +5 -0
  221. package/app/api-destined-function/node_modules/rimraf/dist/cjs/src/readdir-or-error.d.ts.map +1 -0
  222. package/app/api-destined-function/node_modules/rimraf/dist/cjs/src/readdir-or-error.js +19 -0
  223. package/app/api-destined-function/node_modules/rimraf/dist/cjs/src/readdir-or-error.js.map +1 -0
  224. package/app/api-destined-function/node_modules/rimraf/dist/cjs/src/retry-busy.d.ts +8 -0
  225. package/app/api-destined-function/node_modules/rimraf/dist/cjs/src/retry-busy.d.ts.map +1 -0
  226. package/app/api-destined-function/node_modules/rimraf/dist/cjs/src/retry-busy.js +68 -0
  227. package/app/api-destined-function/node_modules/rimraf/dist/cjs/src/retry-busy.js.map +1 -0
  228. package/app/api-destined-function/node_modules/rimraf/dist/cjs/src/rimraf-manual.d.ts +3 -0
  229. package/app/api-destined-function/node_modules/rimraf/dist/cjs/src/rimraf-manual.d.ts.map +1 -0
  230. package/app/api-destined-function/node_modules/rimraf/dist/cjs/src/rimraf-manual.js +12 -0
  231. package/app/api-destined-function/node_modules/rimraf/dist/cjs/src/rimraf-manual.js.map +1 -0
  232. package/app/api-destined-function/node_modules/rimraf/dist/cjs/src/rimraf-move-remove.d.ts +4 -0
  233. package/app/api-destined-function/node_modules/rimraf/dist/cjs/src/rimraf-move-remove.d.ts.map +1 -0
  234. package/app/api-destined-function/node_modules/rimraf/dist/cjs/src/rimraf-move-remove.js +192 -0
  235. package/app/api-destined-function/node_modules/rimraf/dist/cjs/src/rimraf-move-remove.js.map +1 -0
  236. package/app/api-destined-function/node_modules/rimraf/dist/cjs/src/rimraf-native.d.ts +4 -0
  237. package/app/api-destined-function/node_modules/rimraf/dist/cjs/src/rimraf-native.d.ts.map +1 -0
  238. package/app/api-destined-function/node_modules/rimraf/dist/cjs/src/rimraf-native.js +24 -0
  239. package/app/api-destined-function/node_modules/rimraf/dist/cjs/src/rimraf-native.js.map +1 -0
  240. package/app/api-destined-function/node_modules/rimraf/dist/cjs/src/rimraf-posix.d.ts +4 -0
  241. package/app/api-destined-function/node_modules/rimraf/dist/cjs/src/rimraf-posix.d.ts.map +1 -0
  242. package/app/api-destined-function/node_modules/rimraf/dist/cjs/src/rimraf-posix.js +123 -0
  243. package/app/api-destined-function/node_modules/rimraf/dist/cjs/src/rimraf-posix.js.map +1 -0
  244. package/app/api-destined-function/node_modules/rimraf/dist/cjs/src/rimraf-windows.d.ts +4 -0
  245. package/app/api-destined-function/node_modules/rimraf/dist/cjs/src/rimraf-windows.d.ts.map +1 -0
  246. package/app/api-destined-function/node_modules/rimraf/dist/cjs/src/rimraf-windows.js +182 -0
  247. package/app/api-destined-function/node_modules/rimraf/dist/cjs/src/rimraf-windows.js.map +1 -0
  248. package/app/api-destined-function/node_modules/rimraf/dist/cjs/src/use-native.d.ts +4 -0
  249. package/app/api-destined-function/node_modules/rimraf/dist/cjs/src/use-native.d.ts.map +1 -0
  250. package/app/api-destined-function/node_modules/rimraf/dist/cjs/src/use-native.js +19 -0
  251. package/app/api-destined-function/node_modules/rimraf/dist/cjs/src/use-native.js.map +1 -0
  252. package/app/api-destined-function/node_modules/rimraf/dist/mjs/default-tmp.d.ts +3 -0
  253. package/app/api-destined-function/node_modules/rimraf/dist/mjs/default-tmp.d.ts.map +1 -0
  254. package/app/api-destined-function/node_modules/rimraf/dist/mjs/default-tmp.js +55 -0
  255. package/app/api-destined-function/node_modules/rimraf/dist/mjs/default-tmp.js.map +1 -0
  256. package/app/api-destined-function/node_modules/rimraf/dist/mjs/fix-eperm.d.ts +3 -0
  257. package/app/api-destined-function/node_modules/rimraf/dist/mjs/fix-eperm.d.ts.map +1 -0
  258. package/app/api-destined-function/node_modules/rimraf/dist/mjs/fix-eperm.js +53 -0
  259. package/app/api-destined-function/node_modules/rimraf/dist/mjs/fix-eperm.js.map +1 -0
  260. package/app/api-destined-function/node_modules/rimraf/dist/mjs/fs.d.ts +17 -0
  261. package/app/api-destined-function/node_modules/rimraf/dist/mjs/fs.d.ts.map +1 -0
  262. package/app/api-destined-function/node_modules/rimraf/dist/mjs/fs.js +31 -0
  263. package/app/api-destined-function/node_modules/rimraf/dist/mjs/fs.js.map +1 -0
  264. package/app/api-destined-function/node_modules/rimraf/dist/mjs/ignore-enoent.d.ts +3 -0
  265. package/app/api-destined-function/node_modules/rimraf/dist/mjs/ignore-enoent.d.ts.map +1 -0
  266. package/app/api-destined-function/node_modules/rimraf/dist/mjs/ignore-enoent.js +16 -0
  267. package/app/api-destined-function/node_modules/rimraf/dist/mjs/ignore-enoent.js.map +1 -0
  268. package/app/api-destined-function/node_modules/rimraf/dist/mjs/index.d.ts +71 -0
  269. package/app/api-destined-function/node_modules/rimraf/dist/mjs/index.d.ts.map +1 -0
  270. package/app/api-destined-function/node_modules/rimraf/dist/mjs/index.js +84 -0
  271. package/app/api-destined-function/node_modules/rimraf/dist/mjs/index.js.map +1 -0
  272. package/app/api-destined-function/node_modules/rimraf/dist/mjs/opt-arg.d.ts +17 -0
  273. package/app/api-destined-function/node_modules/rimraf/dist/mjs/opt-arg.d.ts.map +1 -0
  274. package/app/api-destined-function/node_modules/rimraf/dist/mjs/opt-arg.js +31 -0
  275. package/app/api-destined-function/node_modules/rimraf/dist/mjs/opt-arg.js.map +1 -0
  276. package/app/api-destined-function/node_modules/rimraf/dist/mjs/package.json +4 -0
  277. package/app/api-destined-function/node_modules/rimraf/dist/mjs/path-arg.d.ts +4 -0
  278. package/app/api-destined-function/node_modules/rimraf/dist/mjs/path-arg.d.ts.map +1 -0
  279. package/app/api-destined-function/node_modules/rimraf/dist/mjs/path-arg.js +49 -0
  280. package/app/api-destined-function/node_modules/rimraf/dist/mjs/path-arg.js.map +1 -0
  281. package/app/api-destined-function/node_modules/rimraf/dist/mjs/platform.d.ts +3 -0
  282. package/app/api-destined-function/node_modules/rimraf/dist/mjs/platform.d.ts.map +1 -0
  283. package/app/api-destined-function/node_modules/rimraf/dist/mjs/platform.js +2 -0
  284. package/app/api-destined-function/node_modules/rimraf/dist/mjs/platform.js.map +1 -0
  285. package/app/api-destined-function/node_modules/rimraf/dist/mjs/readdir-or-error.d.ts +5 -0
  286. package/app/api-destined-function/node_modules/rimraf/dist/mjs/readdir-or-error.d.ts.map +1 -0
  287. package/app/api-destined-function/node_modules/rimraf/dist/mjs/readdir-or-error.js +14 -0
  288. package/app/api-destined-function/node_modules/rimraf/dist/mjs/readdir-or-error.js.map +1 -0
  289. package/app/api-destined-function/node_modules/rimraf/dist/mjs/retry-busy.d.ts +8 -0
  290. package/app/api-destined-function/node_modules/rimraf/dist/mjs/retry-busy.d.ts.map +1 -0
  291. package/app/api-destined-function/node_modules/rimraf/dist/mjs/retry-busy.js +63 -0
  292. package/app/api-destined-function/node_modules/rimraf/dist/mjs/retry-busy.js.map +1 -0
  293. package/app/api-destined-function/node_modules/rimraf/dist/mjs/rimraf-manual.d.ts +3 -0
  294. package/app/api-destined-function/node_modules/rimraf/dist/mjs/rimraf-manual.d.ts.map +1 -0
  295. package/app/api-destined-function/node_modules/rimraf/dist/mjs/rimraf-manual.js +6 -0
  296. package/app/api-destined-function/node_modules/rimraf/dist/mjs/rimraf-manual.js.map +1 -0
  297. package/app/api-destined-function/node_modules/rimraf/dist/mjs/rimraf-move-remove.d.ts +4 -0
  298. package/app/api-destined-function/node_modules/rimraf/dist/mjs/rimraf-move-remove.d.ts.map +1 -0
  299. package/app/api-destined-function/node_modules/rimraf/dist/mjs/rimraf-move-remove.js +187 -0
  300. package/app/api-destined-function/node_modules/rimraf/dist/mjs/rimraf-move-remove.js.map +1 -0
  301. package/app/api-destined-function/node_modules/rimraf/dist/mjs/rimraf-native.d.ts +4 -0
  302. package/app/api-destined-function/node_modules/rimraf/dist/mjs/rimraf-native.d.ts.map +1 -0
  303. package/app/api-destined-function/node_modules/rimraf/dist/mjs/rimraf-native.js +19 -0
  304. package/app/api-destined-function/node_modules/rimraf/dist/mjs/rimraf-native.js.map +1 -0
  305. package/app/api-destined-function/node_modules/rimraf/dist/mjs/rimraf-posix.d.ts +4 -0
  306. package/app/api-destined-function/node_modules/rimraf/dist/mjs/rimraf-posix.d.ts.map +1 -0
  307. package/app/api-destined-function/node_modules/rimraf/dist/mjs/rimraf-posix.js +118 -0
  308. package/app/api-destined-function/node_modules/rimraf/dist/mjs/rimraf-posix.js.map +1 -0
  309. package/app/api-destined-function/node_modules/rimraf/dist/mjs/rimraf-windows.d.ts +4 -0
  310. package/app/api-destined-function/node_modules/rimraf/dist/mjs/rimraf-windows.d.ts.map +1 -0
  311. package/app/api-destined-function/node_modules/rimraf/dist/mjs/rimraf-windows.js +177 -0
  312. package/app/api-destined-function/node_modules/rimraf/dist/mjs/rimraf-windows.js.map +1 -0
  313. package/app/api-destined-function/node_modules/rimraf/dist/mjs/use-native.d.ts +4 -0
  314. package/app/api-destined-function/node_modules/rimraf/dist/mjs/use-native.d.ts.map +1 -0
  315. package/app/api-destined-function/node_modules/rimraf/dist/mjs/use-native.js +13 -0
  316. package/app/api-destined-function/node_modules/rimraf/dist/mjs/use-native.js.map +1 -0
  317. package/app/api-destined-function/node_modules/rimraf/package.json +67 -15
  318. package/app/api-destined-function/package.json +3 -3
  319. package/dist/src/lib/common/stack.js +1 -1
  320. package/package.json +11 -11
  321. package/src/lib/common/stack.ts +1 -1
  322. package/app/api-destined-function/node_modules/concat-map/.travis.yml +0 -4
  323. package/app/api-destined-function/node_modules/concat-map/LICENSE +0 -18
  324. package/app/api-destined-function/node_modules/concat-map/README.markdown +0 -62
  325. package/app/api-destined-function/node_modules/concat-map/example/map.js +0 -6
  326. package/app/api-destined-function/node_modules/concat-map/index.js +0 -13
  327. package/app/api-destined-function/node_modules/concat-map/package.json +0 -43
  328. package/app/api-destined-function/node_modules/glob/common.js +0 -236
  329. package/app/api-destined-function/node_modules/glob/glob.js +0 -787
  330. package/app/api-destined-function/node_modules/glob/sync.js +0 -483
  331. package/app/api-destined-function/node_modules/inflight/README.md +0 -37
  332. package/app/api-destined-function/node_modules/inflight/inflight.js +0 -54
  333. package/app/api-destined-function/node_modules/inflight/package.json +0 -29
  334. package/app/api-destined-function/node_modules/inherits/LICENSE +0 -16
  335. package/app/api-destined-function/node_modules/inherits/README.md +0 -42
  336. package/app/api-destined-function/node_modules/inherits/inherits.js +0 -9
  337. package/app/api-destined-function/node_modules/inherits/inherits_browser.js +0 -27
  338. package/app/api-destined-function/node_modules/inherits/package.json +0 -29
  339. package/app/api-destined-function/node_modules/minimatch/minimatch.js +0 -952
  340. package/app/api-destined-function/node_modules/once/README.md +0 -79
  341. package/app/api-destined-function/node_modules/once/once.js +0 -42
  342. package/app/api-destined-function/node_modules/once/package.json +0 -33
  343. package/app/api-destined-function/node_modules/path-is-absolute/index.js +0 -20
  344. package/app/api-destined-function/node_modules/path-is-absolute/license +0 -21
  345. package/app/api-destined-function/node_modules/path-is-absolute/package.json +0 -43
  346. package/app/api-destined-function/node_modules/path-is-absolute/readme.md +0 -59
  347. package/app/api-destined-function/node_modules/rimraf/bin.js +0 -68
  348. package/app/api-destined-function/node_modules/rimraf/rimraf.js +0 -360
  349. package/app/api-destined-function/node_modules/wrappy/LICENSE +0 -15
  350. package/app/api-destined-function/node_modules/wrappy/README.md +0 -36
  351. package/app/api-destined-function/node_modules/wrappy/package.json +0 -29
  352. package/app/api-destined-function/node_modules/wrappy/wrappy.js +0 -33
@@ -1,952 +0,0 @@
1
- module.exports = minimatch
2
- minimatch.Minimatch = Minimatch
3
-
4
- const path = (() => { try { return require('path') } catch (e) {}})() || {
5
- sep: '/'
6
- }
7
- minimatch.sep = path.sep
8
-
9
- const GLOBSTAR = minimatch.GLOBSTAR = Minimatch.GLOBSTAR = {}
10
- const expand = require('brace-expansion')
11
-
12
- const plTypes = {
13
- '!': { open: '(?:(?!(?:', close: '))[^/]*?)'},
14
- '?': { open: '(?:', close: ')?' },
15
- '+': { open: '(?:', close: ')+' },
16
- '*': { open: '(?:', close: ')*' },
17
- '@': { open: '(?:', close: ')' }
18
- }
19
-
20
- // any single thing other than /
21
- // don't need to escape / when using new RegExp()
22
- const qmark = '[^/]'
23
-
24
- // * => any number of characters
25
- const star = qmark + '*?'
26
-
27
- // ** when dots are allowed. Anything goes, except .. and .
28
- // not (^ or / followed by one or two dots followed by $ or /),
29
- // followed by anything, any number of times.
30
- const twoStarDot = '(?:(?!(?:\\\/|^)(?:\\.{1,2})($|\\\/)).)*?'
31
-
32
- // not a ^ or / followed by a dot,
33
- // followed by anything, any number of times.
34
- const twoStarNoDot = '(?:(?!(?:\\\/|^)\\.).)*?'
35
-
36
- // characters that need to be escaped in RegExp.
37
- const reSpecials = charSet('().*{}+?[]^$\\!')
38
-
39
- // "abc" -> { a:true, b:true, c:true }
40
- function charSet (s) {
41
- return s.split('').reduce(function (set, c) {
42
- set[c] = true
43
- return set
44
- }, {})
45
- }
46
-
47
- // normalizes slashes.
48
- const slashSplit = /\/+/
49
-
50
- minimatch.filter = filter
51
- function filter (pattern, options) {
52
- options = options || {}
53
- return function (p, i, list) {
54
- return minimatch(p, pattern, options)
55
- }
56
- }
57
-
58
- function ext (a, b) {
59
- a = a || {}
60
- b = b || {}
61
- const t = {}
62
- Object.keys(a).forEach(function (k) {
63
- t[k] = a[k]
64
- })
65
- Object.keys(b).forEach(function (k) {
66
- t[k] = b[k]
67
- })
68
- return t
69
- }
70
-
71
- minimatch.defaults = function (def) {
72
- if (!def || typeof def !== 'object' || !Object.keys(def).length) {
73
- return minimatch
74
- }
75
-
76
- const orig = minimatch
77
-
78
- const m = function minimatch (p, pattern, options) {
79
- return orig(p, pattern, ext(def, options))
80
- }
81
-
82
- m.Minimatch = function Minimatch (pattern, options) {
83
- return new orig.Minimatch(pattern, ext(def, options))
84
- }
85
- m.Minimatch.defaults = options => {
86
- return orig.defaults(ext(def, options)).Minimatch
87
- }
88
-
89
- m.filter = function filter (pattern, options) {
90
- return orig.filter(pattern, ext(def, options))
91
- }
92
-
93
- m.defaults = function defaults (options) {
94
- return orig.defaults(ext(def, options))
95
- }
96
-
97
- m.makeRe = function makeRe (pattern, options) {
98
- return orig.makeRe(pattern, ext(def, options))
99
- }
100
-
101
- m.braceExpand = function braceExpand (pattern, options) {
102
- return orig.braceExpand(pattern, ext(def, options))
103
- }
104
-
105
- m.match = function (list, pattern, options) {
106
- return orig.match(list, pattern, ext(def, options))
107
- }
108
-
109
- return m
110
- }
111
-
112
- Minimatch.defaults = function (def) {
113
- return minimatch.defaults(def).Minimatch
114
- }
115
-
116
- function minimatch (p, pattern, options) {
117
- assertValidPattern(pattern)
118
-
119
- if (!options) options = {}
120
-
121
- // shortcut: comments match nothing.
122
- if (!options.nocomment && pattern.charAt(0) === '#') {
123
- return false
124
- }
125
-
126
- // "" only matches ""
127
- if (pattern.trim() === '') return p === ''
128
-
129
- return new Minimatch(pattern, options).match(p)
130
- }
131
-
132
- function Minimatch (pattern, options) {
133
- if (!(this instanceof Minimatch)) {
134
- return new Minimatch(pattern, options)
135
- }
136
-
137
- assertValidPattern(pattern)
138
-
139
- if (!options) options = {}
140
- pattern = pattern.trim()
141
-
142
- // windows support: need to use /, not \
143
- if (path.sep !== '/') {
144
- pattern = pattern.split(path.sep).join('/')
145
- }
146
-
147
- this.options = options
148
- this.set = []
149
- this.pattern = pattern
150
- this.regexp = null
151
- this.negate = false
152
- this.comment = false
153
- this.empty = false
154
-
155
- // make the set of regexps etc.
156
- this.make()
157
- }
158
-
159
- Minimatch.prototype.debug = function () {}
160
-
161
- Minimatch.prototype.make = make
162
- function make () {
163
- // don't do it more than once.
164
- if (this._made) return
165
-
166
- var pattern = this.pattern
167
- var options = this.options
168
-
169
- // empty patterns and comments match nothing.
170
- if (!options.nocomment && pattern.charAt(0) === '#') {
171
- this.comment = true
172
- return
173
- }
174
- if (!pattern) {
175
- this.empty = true
176
- return
177
- }
178
-
179
- // step 1: figure out negation, etc.
180
- this.parseNegate()
181
-
182
- // step 2: expand braces
183
- var set = this.globSet = this.braceExpand()
184
-
185
- if (options.debug) this.debug = console.error
186
-
187
- this.debug(this.pattern, set)
188
-
189
- // step 3: now we have a set, so turn each one into a series of path-portion
190
- // matching patterns.
191
- // These will be regexps, except in the case of "**", which is
192
- // set to the GLOBSTAR object for globstar behavior,
193
- // and will not contain any / characters
194
- set = this.globParts = set.map(function (s) {
195
- return s.split(slashSplit)
196
- })
197
-
198
- this.debug(this.pattern, set)
199
-
200
- // glob --> regexps
201
- set = set.map(function (s, si, set) {
202
- return s.map(this.parse, this)
203
- }, this)
204
-
205
- this.debug(this.pattern, set)
206
-
207
- // filter out everything that didn't compile properly.
208
- set = set.filter(function (s) {
209
- return s.indexOf(false) === -1
210
- })
211
-
212
- this.debug(this.pattern, set)
213
-
214
- this.set = set
215
- }
216
-
217
- Minimatch.prototype.parseNegate = parseNegate
218
- function parseNegate () {
219
- var pattern = this.pattern
220
- var negate = false
221
- var options = this.options
222
- var negateOffset = 0
223
-
224
- if (options.nonegate) return
225
-
226
- for (var i = 0, l = pattern.length
227
- ; i < l && pattern.charAt(i) === '!'
228
- ; i++) {
229
- negate = !negate
230
- negateOffset++
231
- }
232
-
233
- if (negateOffset) this.pattern = pattern.substr(negateOffset)
234
- this.negate = negate
235
- }
236
-
237
- // Brace expansion:
238
- // a{b,c}d -> abd acd
239
- // a{b,}c -> abc ac
240
- // a{0..3}d -> a0d a1d a2d a3d
241
- // a{b,c{d,e}f}g -> abg acdfg acefg
242
- // a{b,c}d{e,f}g -> abdeg acdeg abdeg abdfg
243
- //
244
- // Invalid sets are not expanded.
245
- // a{2..}b -> a{2..}b
246
- // a{b}c -> a{b}c
247
- minimatch.braceExpand = function (pattern, options) {
248
- return braceExpand(pattern, options)
249
- }
250
-
251
- Minimatch.prototype.braceExpand = braceExpand
252
-
253
- function braceExpand (pattern, options) {
254
- if (!options) {
255
- if (this instanceof Minimatch) {
256
- options = this.options
257
- } else {
258
- options = {}
259
- }
260
- }
261
-
262
- pattern = typeof pattern === 'undefined'
263
- ? this.pattern : pattern
264
-
265
- assertValidPattern(pattern)
266
-
267
- if (options.nobrace || !/\{(?:(?!\{).)*\}/.test(pattern)) {
268
- // shortcut. no need to expand.
269
- return [pattern]
270
- }
271
-
272
- return expand(pattern)
273
- }
274
-
275
- const MAX_PATTERN_LENGTH = 1024 * 64
276
- const assertValidPattern = pattern => {
277
- if (typeof pattern !== 'string') {
278
- throw new TypeError('invalid pattern')
279
- }
280
-
281
- if (pattern.length > MAX_PATTERN_LENGTH) {
282
- throw new TypeError('pattern is too long')
283
- }
284
- }
285
-
286
- // parse a component of the expanded set.
287
- // At this point, no pattern may contain "/" in it
288
- // so we're going to return a 2d array, where each entry is the full
289
- // pattern, split on '/', and then turned into a regular expression.
290
- // A regexp is made at the end which joins each array with an
291
- // escaped /, and another full one which joins each regexp with |.
292
- //
293
- // Following the lead of Bash 4.1, note that "**" only has special meaning
294
- // when it is the *only* thing in a path portion. Otherwise, any series
295
- // of * is equivalent to a single *. Globstar behavior is enabled by
296
- // default, and can be disabled by setting options.noglobstar.
297
- Minimatch.prototype.parse = parse
298
- const SUBPARSE = {}
299
- function parse (pattern, isSub) {
300
- assertValidPattern(pattern)
301
-
302
- var options = this.options
303
-
304
- // shortcuts
305
- if (!options.noglobstar && pattern === '**') return GLOBSTAR
306
- if (pattern === '') return ''
307
-
308
- var re = ''
309
- var hasMagic = false
310
- var escaping = false
311
- // ? => one single character
312
- var patternListStack = []
313
- var negativeLists = []
314
- var stateChar
315
- var inClass = false
316
- var reClassStart = -1
317
- var classStart = -1
318
- // . and .. never match anything that doesn't start with .,
319
- // even when options.dot is set.
320
- var patternStart = pattern.charAt(0) === '.' ? '' // anything
321
- // not (start or / followed by . or .. followed by / or end)
322
- : options.dot ? '(?!(?:^|\\\/)\\.{1,2}(?:$|\\\/))'
323
- : '(?!\\.)'
324
- var self = this
325
-
326
- function clearStateChar () {
327
- if (stateChar) {
328
- // we had some state-tracking character
329
- // that wasn't consumed by this pass.
330
- switch (stateChar) {
331
- case '*':
332
- re += star
333
- hasMagic = true
334
- break
335
- case '?':
336
- re += qmark
337
- hasMagic = true
338
- break
339
- default:
340
- re += '\\' + stateChar
341
- break
342
- }
343
- self.debug('clearStateChar %j %j', stateChar, re)
344
- stateChar = false
345
- }
346
- }
347
-
348
- for (var i = 0, len = pattern.length, c
349
- ; (i < len) && (c = pattern.charAt(i))
350
- ; i++) {
351
- this.debug('%s\t%s %s %j', pattern, i, re, c)
352
-
353
- // skip over any that are escaped.
354
- if (escaping && reSpecials[c]) {
355
- re += '\\' + c
356
- escaping = false
357
- continue
358
- }
359
-
360
- switch (c) {
361
- case '/': /* istanbul ignore next */ {
362
- // completely not allowed, even escaped.
363
- // Should already be path-split by now.
364
- return false
365
- }
366
-
367
- case '\\':
368
- clearStateChar()
369
- escaping = true
370
- continue
371
-
372
- // the various stateChar values
373
- // for the "extglob" stuff.
374
- case '?':
375
- case '*':
376
- case '+':
377
- case '@':
378
- case '!':
379
- this.debug('%s\t%s %s %j <-- stateChar', pattern, i, re, c)
380
-
381
- // all of those are literals inside a class, except that
382
- // the glob [!a] means [^a] in regexp
383
- if (inClass) {
384
- this.debug(' in class')
385
- if (c === '!' && i === classStart + 1) c = '^'
386
- re += c
387
- continue
388
- }
389
-
390
- // if we already have a stateChar, then it means
391
- // that there was something like ** or +? in there.
392
- // Handle the stateChar, then proceed with this one.
393
- self.debug('call clearStateChar %j', stateChar)
394
- clearStateChar()
395
- stateChar = c
396
- // if extglob is disabled, then +(asdf|foo) isn't a thing.
397
- // just clear the statechar *now*, rather than even diving into
398
- // the patternList stuff.
399
- if (options.noext) clearStateChar()
400
- continue
401
-
402
- case '(':
403
- if (inClass) {
404
- re += '('
405
- continue
406
- }
407
-
408
- if (!stateChar) {
409
- re += '\\('
410
- continue
411
- }
412
-
413
- patternListStack.push({
414
- type: stateChar,
415
- start: i - 1,
416
- reStart: re.length,
417
- open: plTypes[stateChar].open,
418
- close: plTypes[stateChar].close
419
- })
420
- // negation is (?:(?!js)[^/]*)
421
- re += stateChar === '!' ? '(?:(?!(?:' : '(?:'
422
- this.debug('plType %j %j', stateChar, re)
423
- stateChar = false
424
- continue
425
-
426
- case ')':
427
- if (inClass || !patternListStack.length) {
428
- re += '\\)'
429
- continue
430
- }
431
-
432
- clearStateChar()
433
- hasMagic = true
434
- var pl = patternListStack.pop()
435
- // negation is (?:(?!js)[^/]*)
436
- // The others are (?:<pattern>)<type>
437
- re += pl.close
438
- if (pl.type === '!') {
439
- negativeLists.push(pl)
440
- }
441
- pl.reEnd = re.length
442
- continue
443
-
444
- case '|':
445
- if (inClass || !patternListStack.length || escaping) {
446
- re += '\\|'
447
- escaping = false
448
- continue
449
- }
450
-
451
- clearStateChar()
452
- re += '|'
453
- continue
454
-
455
- // these are mostly the same in regexp and glob
456
- case '[':
457
- // swallow any state-tracking char before the [
458
- clearStateChar()
459
-
460
- if (inClass) {
461
- re += '\\' + c
462
- continue
463
- }
464
-
465
- inClass = true
466
- classStart = i
467
- reClassStart = re.length
468
- re += c
469
- continue
470
-
471
- case ']':
472
- // a right bracket shall lose its special
473
- // meaning and represent itself in
474
- // a bracket expression if it occurs
475
- // first in the list. -- POSIX.2 2.8.3.2
476
- if (i === classStart + 1 || !inClass) {
477
- re += '\\' + c
478
- escaping = false
479
- continue
480
- }
481
-
482
- // handle the case where we left a class open.
483
- // "[z-a]" is valid, equivalent to "\[z-a\]"
484
- if (inClass) {
485
- // split where the last [ was, make sure we don't have
486
- // an invalid re. if so, re-walk the contents of the
487
- // would-be class to re-translate any characters that
488
- // were passed through as-is
489
- // TODO: It would probably be faster to determine this
490
- // without a try/catch and a new RegExp, but it's tricky
491
- // to do safely. For now, this is safe and works.
492
- var cs = pattern.substring(classStart + 1, i)
493
- try {
494
- RegExp('[' + cs + ']')
495
- } catch (er) {
496
- // not a valid class!
497
- var sp = this.parse(cs, SUBPARSE)
498
- re = re.substr(0, reClassStart) + '\\[' + sp[0] + '\\]'
499
- hasMagic = hasMagic || sp[1]
500
- inClass = false
501
- continue
502
- }
503
- }
504
-
505
- // finish up the class.
506
- hasMagic = true
507
- inClass = false
508
- re += c
509
- continue
510
-
511
- default:
512
- // swallow any state char that wasn't consumed
513
- clearStateChar()
514
-
515
- if (escaping) {
516
- // no need
517
- escaping = false
518
- } else if (reSpecials[c]
519
- && !(c === '^' && inClass)) {
520
- re += '\\'
521
- }
522
-
523
- re += c
524
-
525
- } // switch
526
- } // for
527
-
528
- // handle the case where we left a class open.
529
- // "[abc" is valid, equivalent to "\[abc"
530
- if (inClass) {
531
- // split where the last [ was, and escape it
532
- // this is a huge pita. We now have to re-walk
533
- // the contents of the would-be class to re-translate
534
- // any characters that were passed through as-is
535
- cs = pattern.substr(classStart + 1)
536
- sp = this.parse(cs, SUBPARSE)
537
- re = re.substr(0, reClassStart) + '\\[' + sp[0]
538
- hasMagic = hasMagic || sp[1]
539
- }
540
-
541
- // handle the case where we had a +( thing at the *end*
542
- // of the pattern.
543
- // each pattern list stack adds 3 chars, and we need to go through
544
- // and escape any | chars that were passed through as-is for the regexp.
545
- // Go through and escape them, taking care not to double-escape any
546
- // | chars that were already escaped.
547
- for (pl = patternListStack.pop(); pl; pl = patternListStack.pop()) {
548
- var tail = re.slice(pl.reStart + pl.open.length)
549
- this.debug('setting tail', re, pl)
550
- // maybe some even number of \, then maybe 1 \, followed by a |
551
- tail = tail.replace(/((?:\\{2}){0,64})(\\?)\|/g, function (_, $1, $2) {
552
- if (!$2) {
553
- // the | isn't already escaped, so escape it.
554
- $2 = '\\'
555
- }
556
-
557
- // need to escape all those slashes *again*, without escaping the
558
- // one that we need for escaping the | character. As it works out,
559
- // escaping an even number of slashes can be done by simply repeating
560
- // it exactly after itself. That's why this trick works.
561
- //
562
- // I am sorry that you have to see this.
563
- return $1 + $1 + $2 + '|'
564
- })
565
-
566
- this.debug('tail=%j\n %s', tail, tail, pl, re)
567
- var t = pl.type === '*' ? star
568
- : pl.type === '?' ? qmark
569
- : '\\' + pl.type
570
-
571
- hasMagic = true
572
- re = re.slice(0, pl.reStart) + t + '\\(' + tail
573
- }
574
-
575
- // handle trailing things that only matter at the very end.
576
- clearStateChar()
577
- if (escaping) {
578
- // trailing \\
579
- re += '\\\\'
580
- }
581
-
582
- // only need to apply the nodot start if the re starts with
583
- // something that could conceivably capture a dot
584
- var addPatternStart = false
585
- switch (re.charAt(0)) {
586
- case '.':
587
- case '[':
588
- case '(': addPatternStart = true
589
- }
590
-
591
- // Hack to work around lack of negative lookbehind in JS
592
- // A pattern like: *.!(x).!(y|z) needs to ensure that a name
593
- // like 'a.xyz.yz' doesn't match. So, the first negative
594
- // lookahead, has to look ALL the way ahead, to the end of
595
- // the pattern.
596
- for (var n = negativeLists.length - 1; n > -1; n--) {
597
- var nl = negativeLists[n]
598
-
599
- var nlBefore = re.slice(0, nl.reStart)
600
- var nlFirst = re.slice(nl.reStart, nl.reEnd - 8)
601
- var nlLast = re.slice(nl.reEnd - 8, nl.reEnd)
602
- var nlAfter = re.slice(nl.reEnd)
603
-
604
- nlLast += nlAfter
605
-
606
- // Handle nested stuff like *(*.js|!(*.json)), where open parens
607
- // mean that we should *not* include the ) in the bit that is considered
608
- // "after" the negated section.
609
- var openParensBefore = nlBefore.split('(').length - 1
610
- var cleanAfter = nlAfter
611
- for (i = 0; i < openParensBefore; i++) {
612
- cleanAfter = cleanAfter.replace(/\)[+*?]?/, '')
613
- }
614
- nlAfter = cleanAfter
615
-
616
- var dollar = ''
617
- if (nlAfter === '' && isSub !== SUBPARSE) {
618
- dollar = '$'
619
- }
620
- var newRe = nlBefore + nlFirst + nlAfter + dollar + nlLast
621
- re = newRe
622
- }
623
-
624
- // if the re is not "" at this point, then we need to make sure
625
- // it doesn't match against an empty path part.
626
- // Otherwise a/* will match a/, which it should not.
627
- if (re !== '' && hasMagic) {
628
- re = '(?=.)' + re
629
- }
630
-
631
- if (addPatternStart) {
632
- re = patternStart + re
633
- }
634
-
635
- // parsing just a piece of a larger pattern.
636
- if (isSub === SUBPARSE) {
637
- return [re, hasMagic]
638
- }
639
-
640
- // skip the regexp for non-magical patterns
641
- // unescape anything in it, though, so that it'll be
642
- // an exact match against a file etc.
643
- if (!hasMagic) {
644
- return globUnescape(pattern)
645
- }
646
-
647
- var flags = options.nocase ? 'i' : ''
648
- try {
649
- var regExp = new RegExp('^' + re + '$', flags)
650
- } catch (er) /* istanbul ignore next - should be impossible */ {
651
- // If it was an invalid regular expression, then it can't match
652
- // anything. This trick looks for a character after the end of
653
- // the string, which is of course impossible, except in multi-line
654
- // mode, but it's not a /m regex.
655
- return new RegExp('$.')
656
- }
657
-
658
- regExp._glob = pattern
659
- regExp._src = re
660
-
661
- return regExp
662
- }
663
-
664
- minimatch.makeRe = function (pattern, options) {
665
- return new Minimatch(pattern, options || {}).makeRe()
666
- }
667
-
668
- Minimatch.prototype.makeRe = makeRe
669
- function makeRe () {
670
- if (this.regexp || this.regexp === false) return this.regexp
671
-
672
- // at this point, this.set is a 2d array of partial
673
- // pattern strings, or "**".
674
- //
675
- // It's better to use .match(). This function shouldn't
676
- // be used, really, but it's pretty convenient sometimes,
677
- // when you just want to work with a regex.
678
- var set = this.set
679
-
680
- if (!set.length) {
681
- this.regexp = false
682
- return this.regexp
683
- }
684
- var options = this.options
685
-
686
- var twoStar = options.noglobstar ? star
687
- : options.dot ? twoStarDot
688
- : twoStarNoDot
689
- var flags = options.nocase ? 'i' : ''
690
-
691
- var re = set.map(function (pattern) {
692
- return pattern.map(function (p) {
693
- return (p === GLOBSTAR) ? twoStar
694
- : (typeof p === 'string') ? regExpEscape(p)
695
- : p._src
696
- }).join('\\\/')
697
- }).join('|')
698
-
699
- // must match entire pattern
700
- // ending in a * or ** will make it less strict.
701
- re = '^(?:' + re + ')$'
702
-
703
- // can match anything, as long as it's not this.
704
- if (this.negate) re = '^(?!' + re + ').*$'
705
-
706
- try {
707
- this.regexp = new RegExp(re, flags)
708
- } catch (ex) /* istanbul ignore next - should be impossible */ {
709
- this.regexp = false
710
- }
711
- return this.regexp
712
- }
713
-
714
- minimatch.match = function (list, pattern, options) {
715
- options = options || {}
716
- const mm = new Minimatch(pattern, options)
717
- list = list.filter(function (f) {
718
- return mm.match(f)
719
- })
720
- if (mm.options.nonull && !list.length) {
721
- list.push(pattern)
722
- }
723
- return list
724
- }
725
-
726
- Minimatch.prototype.match = match
727
- function match (f, partial) {
728
- this.debug('match', f, this.pattern)
729
- // short-circuit in the case of busted things.
730
- // comments, etc.
731
- if (this.comment) return false
732
- if (this.empty) return f === ''
733
-
734
- if (f === '/' && partial) return true
735
-
736
- var options = this.options
737
-
738
- // windows: need to use /, not \
739
- if (path.sep !== '/') {
740
- f = f.split(path.sep).join('/')
741
- }
742
-
743
- // treat the test path as a set of pathparts.
744
- f = f.split(slashSplit)
745
- this.debug(this.pattern, 'split', f)
746
-
747
- // just ONE of the pattern sets in this.set needs to match
748
- // in order for it to be valid. If negating, then just one
749
- // match means that we have failed.
750
- // Either way, return on the first hit.
751
-
752
- var set = this.set
753
- this.debug(this.pattern, 'set', set)
754
-
755
- // Find the basename of the path by looking for the last non-empty segment
756
- var filename
757
- var i
758
- for (i = f.length - 1; i >= 0; i--) {
759
- filename = f[i]
760
- if (filename) break
761
- }
762
-
763
- for (i = 0; i < set.length; i++) {
764
- var pattern = set[i]
765
- var file = f
766
- if (options.matchBase && pattern.length === 1) {
767
- file = [filename]
768
- }
769
- var hit = this.matchOne(file, pattern, partial)
770
- if (hit) {
771
- if (options.flipNegate) return true
772
- return !this.negate
773
- }
774
- }
775
-
776
- // didn't get any hits. this is success if it's a negative
777
- // pattern, failure otherwise.
778
- if (options.flipNegate) return false
779
- return this.negate
780
- }
781
-
782
- // set partial to true to test if, for example,
783
- // "/a/b" matches the start of "/*/b/*/d"
784
- // Partial means, if you run out of file before you run
785
- // out of pattern, then that's fine, as long as all
786
- // the parts match.
787
- Minimatch.prototype.matchOne = function (file, pattern, partial) {
788
- var options = this.options
789
-
790
- this.debug('matchOne',
791
- { 'this': this, file: file, pattern: pattern })
792
-
793
- this.debug('matchOne', file.length, pattern.length)
794
-
795
- for (var fi = 0,
796
- pi = 0,
797
- fl = file.length,
798
- pl = pattern.length
799
- ; (fi < fl) && (pi < pl)
800
- ; fi++, pi++) {
801
- this.debug('matchOne loop')
802
- var p = pattern[pi]
803
- var f = file[fi]
804
-
805
- this.debug(pattern, p, f)
806
-
807
- // should be impossible.
808
- // some invalid regexp stuff in the set.
809
- /* istanbul ignore if */
810
- if (p === false) return false
811
-
812
- if (p === GLOBSTAR) {
813
- this.debug('GLOBSTAR', [pattern, p, f])
814
-
815
- // "**"
816
- // a/**/b/**/c would match the following:
817
- // a/b/x/y/z/c
818
- // a/x/y/z/b/c
819
- // a/b/x/b/x/c
820
- // a/b/c
821
- // To do this, take the rest of the pattern after
822
- // the **, and see if it would match the file remainder.
823
- // If so, return success.
824
- // If not, the ** "swallows" a segment, and try again.
825
- // This is recursively awful.
826
- //
827
- // a/**/b/**/c matching a/b/x/y/z/c
828
- // - a matches a
829
- // - doublestar
830
- // - matchOne(b/x/y/z/c, b/**/c)
831
- // - b matches b
832
- // - doublestar
833
- // - matchOne(x/y/z/c, c) -> no
834
- // - matchOne(y/z/c, c) -> no
835
- // - matchOne(z/c, c) -> no
836
- // - matchOne(c, c) yes, hit
837
- var fr = fi
838
- var pr = pi + 1
839
- if (pr === pl) {
840
- this.debug('** at the end')
841
- // a ** at the end will just swallow the rest.
842
- // We have found a match.
843
- // however, it will not swallow /.x, unless
844
- // options.dot is set.
845
- // . and .. are *never* matched by **, for explosively
846
- // exponential reasons.
847
- for (; fi < fl; fi++) {
848
- if (file[fi] === '.' || file[fi] === '..' ||
849
- (!options.dot && file[fi].charAt(0) === '.')) return false
850
- }
851
- return true
852
- }
853
-
854
- // ok, let's see if we can swallow whatever we can.
855
- while (fr < fl) {
856
- var swallowee = file[fr]
857
-
858
- this.debug('\nglobstar while', file, fr, pattern, pr, swallowee)
859
-
860
- // XXX remove this slice. Just pass the start index.
861
- if (this.matchOne(file.slice(fr), pattern.slice(pr), partial)) {
862
- this.debug('globstar found match!', fr, fl, swallowee)
863
- // found a match.
864
- return true
865
- } else {
866
- // can't swallow "." or ".." ever.
867
- // can only swallow ".foo" when explicitly asked.
868
- if (swallowee === '.' || swallowee === '..' ||
869
- (!options.dot && swallowee.charAt(0) === '.')) {
870
- this.debug('dot detected!', file, fr, pattern, pr)
871
- break
872
- }
873
-
874
- // ** swallows a segment, and continue.
875
- this.debug('globstar swallow a segment, and continue')
876
- fr++
877
- }
878
- }
879
-
880
- // no match was found.
881
- // However, in partial mode, we can't say this is necessarily over.
882
- // If there's more *pattern* left, then
883
- /* istanbul ignore if */
884
- if (partial) {
885
- // ran out of file
886
- this.debug('\n>>> no match, partial?', file, fr, pattern, pr)
887
- if (fr === fl) return true
888
- }
889
- return false
890
- }
891
-
892
- // something other than **
893
- // non-magic patterns just have to match exactly
894
- // patterns with magic have been turned into regexps.
895
- var hit
896
- if (typeof p === 'string') {
897
- if (options.nocase) {
898
- hit = f.toLowerCase() === p.toLowerCase()
899
- } else {
900
- hit = f === p
901
- }
902
- this.debug('string match', p, f, hit)
903
- } else {
904
- hit = f.match(p)
905
- this.debug('pattern match', p, f, hit)
906
- }
907
-
908
- if (!hit) return false
909
- }
910
-
911
- // Note: ending in / means that we'll get a final ""
912
- // at the end of the pattern. This can only match a
913
- // corresponding "" at the end of the file.
914
- // If the file ends in /, then it can only match a
915
- // a pattern that ends in /, unless the pattern just
916
- // doesn't have any more for it. But, a/b/ should *not*
917
- // match "a/b/*", even though "" matches against the
918
- // [^/]*? pattern, except in partial mode, where it might
919
- // simply not be reached yet.
920
- // However, a/b/ should still satisfy a/*
921
-
922
- // now either we fell off the end of the pattern, or we're done.
923
- if (fi === fl && pi === pl) {
924
- // ran out of pattern and filename at the same time.
925
- // an exact hit!
926
- return true
927
- } else if (fi === fl) {
928
- // ran out of file, but still had pattern left.
929
- // this is ok if we're doing the match as part of
930
- // a glob fs traversal.
931
- return partial
932
- } else /* istanbul ignore else */ if (pi === pl) {
933
- // ran out of pattern, still have file left.
934
- // this is only acceptable if we're on the very last
935
- // empty segment of a file with a trailing slash.
936
- // a/* should match a/b/
937
- return (fi === fl - 1) && (file[fi] === '')
938
- }
939
-
940
- // should be unreachable.
941
- /* istanbul ignore next */
942
- throw new Error('wtf?')
943
- }
944
-
945
- // replace stuff like \* with *
946
- function globUnescape (s) {
947
- return s.replace(/\\(.)/g, '$1')
948
- }
949
-
950
- function regExpEscape (s) {
951
- return s.replace(/[-[\]{}()*+?.,\\^$|#\s]/g, '\\$&')
952
- }