@gradientedge/cdk-utils 8.34.0 → 8.35.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 (529) hide show
  1. package/app/api-destined-function/node_modules/.bin/mkdirp +17 -0
  2. package/app/api-destined-function/node_modules/.bin/rimraf +17 -0
  3. package/app/api-destined-function/node_modules/.bin/uuid +17 -0
  4. package/app/api-destined-function/package.json +1 -4
  5. package/dist/lib/lambda.d.ts +17 -0
  6. package/dist/lib/lambda.d.ts.map +1 -0
  7. package/dist/lib/lambda.js +32 -0
  8. package/dist/lib/lambda.js.map +1 -0
  9. package/dist/src/lib/construct/api-to-eventbridge-target-with-sns/main.d.ts +2 -0
  10. package/dist/src/lib/construct/api-to-eventbridge-target-with-sns/main.js +2 -0
  11. package/package.json +17 -16
  12. package/pnpm-workspace.yaml +3 -0
  13. package/src/lib/construct/api-to-eventbridge-target-with-sns/main.ts +2 -0
  14. package/app/api-destined-function/layers/nodejs/node_modules/.yarn-integrity +0 -117
  15. package/app/api-destined-function/layers/nodejs/node_modules/@types/uuid/LICENSE +0 -21
  16. package/app/api-destined-function/layers/nodejs/node_modules/@types/uuid/README.md +0 -16
  17. package/app/api-destined-function/layers/nodejs/node_modules/@types/uuid/index.d.mts +0 -10
  18. package/app/api-destined-function/layers/nodejs/node_modules/@types/uuid/index.d.ts +0 -79
  19. package/app/api-destined-function/layers/nodejs/node_modules/@types/uuid/package.json +0 -54
  20. package/app/api-destined-function/layers/nodejs/node_modules/uuid/LICENSE.md +0 -9
  21. package/app/api-destined-function/layers/nodejs/node_modules/uuid/README.md +0 -462
  22. package/app/api-destined-function/layers/nodejs/node_modules/uuid/dist/bin/uuid +0 -2
  23. package/app/api-destined-function/layers/nodejs/node_modules/uuid/dist/commonjs-browser/index.js +0 -79
  24. package/app/api-destined-function/layers/nodejs/node_modules/uuid/dist/commonjs-browser/md5.js +0 -223
  25. package/app/api-destined-function/layers/nodejs/node_modules/uuid/dist/commonjs-browser/native.js +0 -11
  26. package/app/api-destined-function/layers/nodejs/node_modules/uuid/dist/commonjs-browser/nil.js +0 -8
  27. package/app/api-destined-function/layers/nodejs/node_modules/uuid/dist/commonjs-browser/parse.js +0 -45
  28. package/app/api-destined-function/layers/nodejs/node_modules/uuid/dist/commonjs-browser/regex.js +0 -8
  29. package/app/api-destined-function/layers/nodejs/node_modules/uuid/dist/commonjs-browser/rng.js +0 -25
  30. package/app/api-destined-function/layers/nodejs/node_modules/uuid/dist/commonjs-browser/sha1.js +0 -104
  31. package/app/api-destined-function/layers/nodejs/node_modules/uuid/dist/commonjs-browser/stringify.js +0 -44
  32. package/app/api-destined-function/layers/nodejs/node_modules/uuid/dist/commonjs-browser/v1.js +0 -107
  33. package/app/api-destined-function/layers/nodejs/node_modules/uuid/dist/commonjs-browser/v3.js +0 -16
  34. package/app/api-destined-function/layers/nodejs/node_modules/uuid/dist/commonjs-browser/v35.js +0 -80
  35. package/app/api-destined-function/layers/nodejs/node_modules/uuid/dist/commonjs-browser/v4.js +0 -43
  36. package/app/api-destined-function/layers/nodejs/node_modules/uuid/dist/commonjs-browser/v5.js +0 -16
  37. package/app/api-destined-function/layers/nodejs/node_modules/uuid/dist/commonjs-browser/validate.js +0 -17
  38. package/app/api-destined-function/layers/nodejs/node_modules/uuid/dist/commonjs-browser/version.js +0 -21
  39. package/app/api-destined-function/layers/nodejs/node_modules/uuid/dist/esm-browser/index.js +0 -9
  40. package/app/api-destined-function/layers/nodejs/node_modules/uuid/dist/esm-browser/md5.js +0 -215
  41. package/app/api-destined-function/layers/nodejs/node_modules/uuid/dist/esm-browser/native.js +0 -4
  42. package/app/api-destined-function/layers/nodejs/node_modules/uuid/dist/esm-browser/nil.js +0 -1
  43. package/app/api-destined-function/layers/nodejs/node_modules/uuid/dist/esm-browser/parse.js +0 -35
  44. package/app/api-destined-function/layers/nodejs/node_modules/uuid/dist/esm-browser/regex.js +0 -1
  45. package/app/api-destined-function/layers/nodejs/node_modules/uuid/dist/esm-browser/rng.js +0 -18
  46. package/app/api-destined-function/layers/nodejs/node_modules/uuid/dist/esm-browser/sha1.js +0 -96
  47. package/app/api-destined-function/layers/nodejs/node_modules/uuid/dist/esm-browser/stringify.js +0 -33
  48. package/app/api-destined-function/layers/nodejs/node_modules/uuid/dist/esm-browser/v1.js +0 -95
  49. package/app/api-destined-function/layers/nodejs/node_modules/uuid/dist/esm-browser/v3.js +0 -4
  50. package/app/api-destined-function/layers/nodejs/node_modules/uuid/dist/esm-browser/v35.js +0 -66
  51. package/app/api-destined-function/layers/nodejs/node_modules/uuid/dist/esm-browser/v4.js +0 -29
  52. package/app/api-destined-function/layers/nodejs/node_modules/uuid/dist/esm-browser/v5.js +0 -4
  53. package/app/api-destined-function/layers/nodejs/node_modules/uuid/dist/esm-browser/validate.js +0 -7
  54. package/app/api-destined-function/layers/nodejs/node_modules/uuid/dist/esm-browser/version.js +0 -11
  55. package/app/api-destined-function/layers/nodejs/node_modules/uuid/dist/esm-node/index.js +0 -9
  56. package/app/api-destined-function/layers/nodejs/node_modules/uuid/dist/esm-node/md5.js +0 -13
  57. package/app/api-destined-function/layers/nodejs/node_modules/uuid/dist/esm-node/native.js +0 -4
  58. package/app/api-destined-function/layers/nodejs/node_modules/uuid/dist/esm-node/nil.js +0 -1
  59. package/app/api-destined-function/layers/nodejs/node_modules/uuid/dist/esm-node/parse.js +0 -35
  60. package/app/api-destined-function/layers/nodejs/node_modules/uuid/dist/esm-node/regex.js +0 -1
  61. package/app/api-destined-function/layers/nodejs/node_modules/uuid/dist/esm-node/rng.js +0 -12
  62. package/app/api-destined-function/layers/nodejs/node_modules/uuid/dist/esm-node/sha1.js +0 -13
  63. package/app/api-destined-function/layers/nodejs/node_modules/uuid/dist/esm-node/stringify.js +0 -33
  64. package/app/api-destined-function/layers/nodejs/node_modules/uuid/dist/esm-node/v1.js +0 -95
  65. package/app/api-destined-function/layers/nodejs/node_modules/uuid/dist/esm-node/v3.js +0 -4
  66. package/app/api-destined-function/layers/nodejs/node_modules/uuid/dist/esm-node/v35.js +0 -66
  67. package/app/api-destined-function/layers/nodejs/node_modules/uuid/dist/esm-node/v4.js +0 -29
  68. package/app/api-destined-function/layers/nodejs/node_modules/uuid/dist/esm-node/v5.js +0 -4
  69. package/app/api-destined-function/layers/nodejs/node_modules/uuid/dist/esm-node/validate.js +0 -7
  70. package/app/api-destined-function/layers/nodejs/node_modules/uuid/dist/esm-node/version.js +0 -11
  71. package/app/api-destined-function/layers/nodejs/node_modules/uuid/dist/index.js +0 -79
  72. package/app/api-destined-function/layers/nodejs/node_modules/uuid/dist/md5-browser.js +0 -223
  73. package/app/api-destined-function/layers/nodejs/node_modules/uuid/dist/md5.js +0 -23
  74. package/app/api-destined-function/layers/nodejs/node_modules/uuid/dist/native-browser.js +0 -11
  75. package/app/api-destined-function/layers/nodejs/node_modules/uuid/dist/native.js +0 -15
  76. package/app/api-destined-function/layers/nodejs/node_modules/uuid/dist/nil.js +0 -8
  77. package/app/api-destined-function/layers/nodejs/node_modules/uuid/dist/parse.js +0 -45
  78. package/app/api-destined-function/layers/nodejs/node_modules/uuid/dist/regex.js +0 -8
  79. package/app/api-destined-function/layers/nodejs/node_modules/uuid/dist/rng-browser.js +0 -25
  80. package/app/api-destined-function/layers/nodejs/node_modules/uuid/dist/rng.js +0 -24
  81. package/app/api-destined-function/layers/nodejs/node_modules/uuid/dist/sha1-browser.js +0 -104
  82. package/app/api-destined-function/layers/nodejs/node_modules/uuid/dist/sha1.js +0 -23
  83. package/app/api-destined-function/layers/nodejs/node_modules/uuid/dist/stringify.js +0 -44
  84. package/app/api-destined-function/layers/nodejs/node_modules/uuid/dist/uuid-bin.js +0 -85
  85. package/app/api-destined-function/layers/nodejs/node_modules/uuid/dist/v1.js +0 -107
  86. package/app/api-destined-function/layers/nodejs/node_modules/uuid/dist/v3.js +0 -16
  87. package/app/api-destined-function/layers/nodejs/node_modules/uuid/dist/v35.js +0 -80
  88. package/app/api-destined-function/layers/nodejs/node_modules/uuid/dist/v4.js +0 -43
  89. package/app/api-destined-function/layers/nodejs/node_modules/uuid/dist/v5.js +0 -16
  90. package/app/api-destined-function/layers/nodejs/node_modules/uuid/dist/validate.js +0 -17
  91. package/app/api-destined-function/layers/nodejs/node_modules/uuid/dist/version.js +0 -21
  92. package/app/api-destined-function/layers/nodejs/node_modules/uuid/package.json +0 -131
  93. package/app/api-destined-function/layers/nodejs/node_modules/uuid/wrapper.mjs +0 -10
  94. package/app/api-destined-function/layers/nodejs/package.json +0 -29
  95. package/app/api-destined-function/node_modules/.yarn-integrity +0 -474
  96. package/app/api-destined-function/node_modules/@types/uuid/LICENSE +0 -21
  97. package/app/api-destined-function/node_modules/@types/uuid/README.md +0 -16
  98. package/app/api-destined-function/node_modules/@types/uuid/index.d.mts +0 -10
  99. package/app/api-destined-function/node_modules/@types/uuid/index.d.ts +0 -79
  100. package/app/api-destined-function/node_modules/@types/uuid/package.json +0 -54
  101. package/app/api-destined-function/node_modules/balanced-match/LICENSE.md +0 -21
  102. package/app/api-destined-function/node_modules/balanced-match/README.md +0 -97
  103. package/app/api-destined-function/node_modules/balanced-match/index.js +0 -62
  104. package/app/api-destined-function/node_modules/balanced-match/package.json +0 -48
  105. package/app/api-destined-function/node_modules/brace-expansion/LICENSE +0 -21
  106. package/app/api-destined-function/node_modules/brace-expansion/README.md +0 -135
  107. package/app/api-destined-function/node_modules/brace-expansion/index.js +0 -203
  108. package/app/api-destined-function/node_modules/brace-expansion/package.json +0 -46
  109. package/app/api-destined-function/node_modules/fs.realpath/LICENSE +0 -43
  110. package/app/api-destined-function/node_modules/fs.realpath/README.md +0 -33
  111. package/app/api-destined-function/node_modules/fs.realpath/index.js +0 -66
  112. package/app/api-destined-function/node_modules/fs.realpath/old.js +0 -303
  113. package/app/api-destined-function/node_modules/fs.realpath/package.json +0 -26
  114. package/app/api-destined-function/node_modules/glob/LICENSE +0 -15
  115. package/app/api-destined-function/node_modules/glob/README.md +0 -1086
  116. package/app/api-destined-function/node_modules/glob/dist/cjs/glob.d.ts +0 -328
  117. package/app/api-destined-function/node_modules/glob/dist/cjs/glob.d.ts.map +0 -1
  118. package/app/api-destined-function/node_modules/glob/dist/cjs/glob.js +0 -228
  119. package/app/api-destined-function/node_modules/glob/dist/cjs/glob.js.map +0 -1
  120. package/app/api-destined-function/node_modules/glob/dist/cjs/has-magic.d.ts +0 -14
  121. package/app/api-destined-function/node_modules/glob/dist/cjs/has-magic.d.ts.map +0 -1
  122. package/app/api-destined-function/node_modules/glob/dist/cjs/has-magic.js +0 -27
  123. package/app/api-destined-function/node_modules/glob/dist/cjs/has-magic.js.map +0 -1
  124. package/app/api-destined-function/node_modules/glob/dist/cjs/ignore.d.ts +0 -20
  125. package/app/api-destined-function/node_modules/glob/dist/cjs/ignore.d.ts.map +0 -1
  126. package/app/api-destined-function/node_modules/glob/dist/cjs/ignore.js +0 -103
  127. package/app/api-destined-function/node_modules/glob/dist/cjs/ignore.js.map +0 -1
  128. package/app/api-destined-function/node_modules/glob/dist/cjs/index-cjs.d.ts +0 -75
  129. package/app/api-destined-function/node_modules/glob/dist/cjs/index-cjs.d.ts.map +0 -1
  130. package/app/api-destined-function/node_modules/glob/dist/cjs/index-cjs.js +0 -7
  131. package/app/api-destined-function/node_modules/glob/dist/cjs/index-cjs.js.map +0 -1
  132. package/app/api-destined-function/node_modules/glob/dist/cjs/index.d.ts +0 -96
  133. package/app/api-destined-function/node_modules/glob/dist/cjs/index.d.ts.map +0 -1
  134. package/app/api-destined-function/node_modules/glob/dist/cjs/index.js +0 -68
  135. package/app/api-destined-function/node_modules/glob/dist/cjs/index.js.map +0 -1
  136. package/app/api-destined-function/node_modules/glob/dist/cjs/package.json +0 -3
  137. package/app/api-destined-function/node_modules/glob/dist/cjs/pattern.d.ts +0 -77
  138. package/app/api-destined-function/node_modules/glob/dist/cjs/pattern.d.ts.map +0 -1
  139. package/app/api-destined-function/node_modules/glob/dist/cjs/pattern.js +0 -219
  140. package/app/api-destined-function/node_modules/glob/dist/cjs/pattern.js.map +0 -1
  141. package/app/api-destined-function/node_modules/glob/dist/cjs/processor.d.ts +0 -59
  142. package/app/api-destined-function/node_modules/glob/dist/cjs/processor.d.ts.map +0 -1
  143. package/app/api-destined-function/node_modules/glob/dist/cjs/processor.js +0 -309
  144. package/app/api-destined-function/node_modules/glob/dist/cjs/processor.js.map +0 -1
  145. package/app/api-destined-function/node_modules/glob/dist/cjs/walker.d.ts +0 -95
  146. package/app/api-destined-function/node_modules/glob/dist/cjs/walker.d.ts.map +0 -1
  147. package/app/api-destined-function/node_modules/glob/dist/cjs/walker.js +0 -360
  148. package/app/api-destined-function/node_modules/glob/dist/cjs/walker.js.map +0 -1
  149. package/app/api-destined-function/node_modules/glob/dist/mjs/glob.d.ts +0 -328
  150. package/app/api-destined-function/node_modules/glob/dist/mjs/glob.d.ts.map +0 -1
  151. package/app/api-destined-function/node_modules/glob/dist/mjs/glob.js +0 -224
  152. package/app/api-destined-function/node_modules/glob/dist/mjs/glob.js.map +0 -1
  153. package/app/api-destined-function/node_modules/glob/dist/mjs/has-magic.d.ts +0 -14
  154. package/app/api-destined-function/node_modules/glob/dist/mjs/has-magic.d.ts.map +0 -1
  155. package/app/api-destined-function/node_modules/glob/dist/mjs/has-magic.js +0 -23
  156. package/app/api-destined-function/node_modules/glob/dist/mjs/has-magic.js.map +0 -1
  157. package/app/api-destined-function/node_modules/glob/dist/mjs/ignore.d.ts +0 -20
  158. package/app/api-destined-function/node_modules/glob/dist/mjs/ignore.d.ts.map +0 -1
  159. package/app/api-destined-function/node_modules/glob/dist/mjs/ignore.js +0 -99
  160. package/app/api-destined-function/node_modules/glob/dist/mjs/ignore.js.map +0 -1
  161. package/app/api-destined-function/node_modules/glob/dist/mjs/index.d.ts +0 -96
  162. package/app/api-destined-function/node_modules/glob/dist/mjs/index.d.ts.map +0 -1
  163. package/app/api-destined-function/node_modules/glob/dist/mjs/index.js +0 -55
  164. package/app/api-destined-function/node_modules/glob/dist/mjs/index.js.map +0 -1
  165. package/app/api-destined-function/node_modules/glob/dist/mjs/package.json +0 -3
  166. package/app/api-destined-function/node_modules/glob/dist/mjs/pattern.d.ts +0 -77
  167. package/app/api-destined-function/node_modules/glob/dist/mjs/pattern.d.ts.map +0 -1
  168. package/app/api-destined-function/node_modules/glob/dist/mjs/pattern.js +0 -215
  169. package/app/api-destined-function/node_modules/glob/dist/mjs/pattern.js.map +0 -1
  170. package/app/api-destined-function/node_modules/glob/dist/mjs/processor.d.ts +0 -59
  171. package/app/api-destined-function/node_modules/glob/dist/mjs/processor.d.ts.map +0 -1
  172. package/app/api-destined-function/node_modules/glob/dist/mjs/processor.js +0 -302
  173. package/app/api-destined-function/node_modules/glob/dist/mjs/processor.js.map +0 -1
  174. package/app/api-destined-function/node_modules/glob/dist/mjs/walker.d.ts +0 -95
  175. package/app/api-destined-function/node_modules/glob/dist/mjs/walker.d.ts.map +0 -1
  176. package/app/api-destined-function/node_modules/glob/dist/mjs/walker.js +0 -351
  177. package/app/api-destined-function/node_modules/glob/dist/mjs/walker.js.map +0 -1
  178. package/app/api-destined-function/node_modules/glob/package.json +0 -98
  179. package/app/api-destined-function/node_modules/lru-cache/LICENSE +0 -15
  180. package/app/api-destined-function/node_modules/lru-cache/README.md +0 -1117
  181. package/app/api-destined-function/node_modules/lru-cache/index.d.ts +0 -869
  182. package/app/api-destined-function/node_modules/lru-cache/index.js +0 -1227
  183. package/app/api-destined-function/node_modules/lru-cache/index.mjs +0 -1227
  184. package/app/api-destined-function/node_modules/lru-cache/package.json +0 -96
  185. package/app/api-destined-function/node_modules/minimatch/LICENSE +0 -15
  186. package/app/api-destined-function/node_modules/minimatch/README.md +0 -459
  187. package/app/api-destined-function/node_modules/minimatch/dist/cjs/brace-expressions.d.ts +0 -8
  188. package/app/api-destined-function/node_modules/minimatch/dist/cjs/brace-expressions.d.ts.map +0 -1
  189. package/app/api-destined-function/node_modules/minimatch/dist/cjs/brace-expressions.js +0 -152
  190. package/app/api-destined-function/node_modules/minimatch/dist/cjs/brace-expressions.js.map +0 -1
  191. package/app/api-destined-function/node_modules/minimatch/dist/cjs/escape.d.ts +0 -12
  192. package/app/api-destined-function/node_modules/minimatch/dist/cjs/escape.d.ts.map +0 -1
  193. package/app/api-destined-function/node_modules/minimatch/dist/cjs/escape.js +0 -22
  194. package/app/api-destined-function/node_modules/minimatch/dist/cjs/escape.js.map +0 -1
  195. package/app/api-destined-function/node_modules/minimatch/dist/cjs/index-cjs.d.ts +0 -42
  196. package/app/api-destined-function/node_modules/minimatch/dist/cjs/index-cjs.d.ts.map +0 -1
  197. package/app/api-destined-function/node_modules/minimatch/dist/cjs/index-cjs.js +0 -7
  198. package/app/api-destined-function/node_modules/minimatch/dist/cjs/index-cjs.js.map +0 -1
  199. package/app/api-destined-function/node_modules/minimatch/dist/cjs/index.d.ts +0 -92
  200. package/app/api-destined-function/node_modules/minimatch/dist/cjs/index.d.ts.map +0 -1
  201. package/app/api-destined-function/node_modules/minimatch/dist/cjs/index.js +0 -1304
  202. package/app/api-destined-function/node_modules/minimatch/dist/cjs/index.js.map +0 -1
  203. package/app/api-destined-function/node_modules/minimatch/dist/cjs/package.json +0 -3
  204. package/app/api-destined-function/node_modules/minimatch/dist/cjs/unescape.d.ts +0 -17
  205. package/app/api-destined-function/node_modules/minimatch/dist/cjs/unescape.d.ts.map +0 -1
  206. package/app/api-destined-function/node_modules/minimatch/dist/cjs/unescape.js +0 -24
  207. package/app/api-destined-function/node_modules/minimatch/dist/cjs/unescape.js.map +0 -1
  208. package/app/api-destined-function/node_modules/minimatch/dist/mjs/brace-expressions.d.ts +0 -8
  209. package/app/api-destined-function/node_modules/minimatch/dist/mjs/brace-expressions.d.ts.map +0 -1
  210. package/app/api-destined-function/node_modules/minimatch/dist/mjs/brace-expressions.js +0 -148
  211. package/app/api-destined-function/node_modules/minimatch/dist/mjs/brace-expressions.js.map +0 -1
  212. package/app/api-destined-function/node_modules/minimatch/dist/mjs/escape.d.ts +0 -12
  213. package/app/api-destined-function/node_modules/minimatch/dist/mjs/escape.d.ts.map +0 -1
  214. package/app/api-destined-function/node_modules/minimatch/dist/mjs/escape.js +0 -18
  215. package/app/api-destined-function/node_modules/minimatch/dist/mjs/escape.js.map +0 -1
  216. package/app/api-destined-function/node_modules/minimatch/dist/mjs/index.d.ts +0 -92
  217. package/app/api-destined-function/node_modules/minimatch/dist/mjs/index.d.ts.map +0 -1
  218. package/app/api-destined-function/node_modules/minimatch/dist/mjs/index.js +0 -1289
  219. package/app/api-destined-function/node_modules/minimatch/dist/mjs/index.js.map +0 -1
  220. package/app/api-destined-function/node_modules/minimatch/dist/mjs/package.json +0 -3
  221. package/app/api-destined-function/node_modules/minimatch/dist/mjs/unescape.d.ts +0 -17
  222. package/app/api-destined-function/node_modules/minimatch/dist/mjs/unescape.d.ts.map +0 -1
  223. package/app/api-destined-function/node_modules/minimatch/dist/mjs/unescape.js +0 -20
  224. package/app/api-destined-function/node_modules/minimatch/dist/mjs/unescape.js.map +0 -1
  225. package/app/api-destined-function/node_modules/minimatch/package.json +0 -86
  226. package/app/api-destined-function/node_modules/minipass/LICENSE +0 -15
  227. package/app/api-destined-function/node_modules/minipass/README.md +0 -769
  228. package/app/api-destined-function/node_modules/minipass/index.d.ts +0 -150
  229. package/app/api-destined-function/node_modules/minipass/index.js +0 -702
  230. package/app/api-destined-function/node_modules/minipass/index.mjs +0 -702
  231. package/app/api-destined-function/node_modules/minipass/package.json +0 -76
  232. package/app/api-destined-function/node_modules/mkdirp/LICENSE +0 -21
  233. package/app/api-destined-function/node_modules/mkdirp/dist/cjs/package.json +0 -91
  234. package/app/api-destined-function/node_modules/mkdirp/dist/cjs/src/bin.d.ts +0 -3
  235. package/app/api-destined-function/node_modules/mkdirp/dist/cjs/src/bin.d.ts.map +0 -1
  236. package/app/api-destined-function/node_modules/mkdirp/dist/cjs/src/bin.js +0 -80
  237. package/app/api-destined-function/node_modules/mkdirp/dist/cjs/src/bin.js.map +0 -1
  238. package/app/api-destined-function/node_modules/mkdirp/dist/cjs/src/find-made.d.ts +0 -4
  239. package/app/api-destined-function/node_modules/mkdirp/dist/cjs/src/find-made.d.ts.map +0 -1
  240. package/app/api-destined-function/node_modules/mkdirp/dist/cjs/src/find-made.js +0 -35
  241. package/app/api-destined-function/node_modules/mkdirp/dist/cjs/src/find-made.js.map +0 -1
  242. package/app/api-destined-function/node_modules/mkdirp/dist/cjs/src/index-cjs.d.ts +0 -75
  243. package/app/api-destined-function/node_modules/mkdirp/dist/cjs/src/index-cjs.d.ts.map +0 -1
  244. package/app/api-destined-function/node_modules/mkdirp/dist/cjs/src/index-cjs.js +0 -7
  245. package/app/api-destined-function/node_modules/mkdirp/dist/cjs/src/index-cjs.js.map +0 -1
  246. package/app/api-destined-function/node_modules/mkdirp/dist/cjs/src/index.d.ts +0 -31
  247. package/app/api-destined-function/node_modules/mkdirp/dist/cjs/src/index.d.ts.map +0 -1
  248. package/app/api-destined-function/node_modules/mkdirp/dist/cjs/src/index.js +0 -49
  249. package/app/api-destined-function/node_modules/mkdirp/dist/cjs/src/index.js.map +0 -1
  250. package/app/api-destined-function/node_modules/mkdirp/dist/cjs/src/mkdirp-manual.d.ts +0 -6
  251. package/app/api-destined-function/node_modules/mkdirp/dist/cjs/src/mkdirp-manual.d.ts.map +0 -1
  252. package/app/api-destined-function/node_modules/mkdirp/dist/cjs/src/mkdirp-manual.js +0 -79
  253. package/app/api-destined-function/node_modules/mkdirp/dist/cjs/src/mkdirp-manual.js.map +0 -1
  254. package/app/api-destined-function/node_modules/mkdirp/dist/cjs/src/mkdirp-native.d.ts +0 -6
  255. package/app/api-destined-function/node_modules/mkdirp/dist/cjs/src/mkdirp-native.d.ts.map +0 -1
  256. package/app/api-destined-function/node_modules/mkdirp/dist/cjs/src/mkdirp-native.js +0 -50
  257. package/app/api-destined-function/node_modules/mkdirp/dist/cjs/src/mkdirp-native.js.map +0 -1
  258. package/app/api-destined-function/node_modules/mkdirp/dist/cjs/src/opts-arg.d.ts +0 -42
  259. package/app/api-destined-function/node_modules/mkdirp/dist/cjs/src/opts-arg.d.ts.map +0 -1
  260. package/app/api-destined-function/node_modules/mkdirp/dist/cjs/src/opts-arg.js +0 -38
  261. package/app/api-destined-function/node_modules/mkdirp/dist/cjs/src/opts-arg.js.map +0 -1
  262. package/app/api-destined-function/node_modules/mkdirp/dist/cjs/src/path-arg.d.ts +0 -2
  263. package/app/api-destined-function/node_modules/mkdirp/dist/cjs/src/path-arg.d.ts.map +0 -1
  264. package/app/api-destined-function/node_modules/mkdirp/dist/cjs/src/path-arg.js +0 -28
  265. package/app/api-destined-function/node_modules/mkdirp/dist/cjs/src/path-arg.js.map +0 -1
  266. package/app/api-destined-function/node_modules/mkdirp/dist/cjs/src/use-native.d.ts +0 -6
  267. package/app/api-destined-function/node_modules/mkdirp/dist/cjs/src/use-native.d.ts.map +0 -1
  268. package/app/api-destined-function/node_modules/mkdirp/dist/cjs/src/use-native.js +0 -17
  269. package/app/api-destined-function/node_modules/mkdirp/dist/cjs/src/use-native.js.map +0 -1
  270. package/app/api-destined-function/node_modules/mkdirp/dist/mjs/find-made.d.ts +0 -4
  271. package/app/api-destined-function/node_modules/mkdirp/dist/mjs/find-made.d.ts.map +0 -1
  272. package/app/api-destined-function/node_modules/mkdirp/dist/mjs/find-made.js +0 -30
  273. package/app/api-destined-function/node_modules/mkdirp/dist/mjs/find-made.js.map +0 -1
  274. package/app/api-destined-function/node_modules/mkdirp/dist/mjs/index.d.ts +0 -31
  275. package/app/api-destined-function/node_modules/mkdirp/dist/mjs/index.d.ts.map +0 -1
  276. package/app/api-destined-function/node_modules/mkdirp/dist/mjs/index.js +0 -39
  277. package/app/api-destined-function/node_modules/mkdirp/dist/mjs/index.js.map +0 -1
  278. package/app/api-destined-function/node_modules/mkdirp/dist/mjs/mkdirp-manual.d.ts +0 -6
  279. package/app/api-destined-function/node_modules/mkdirp/dist/mjs/mkdirp-manual.d.ts.map +0 -1
  280. package/app/api-destined-function/node_modules/mkdirp/dist/mjs/mkdirp-manual.js +0 -75
  281. package/app/api-destined-function/node_modules/mkdirp/dist/mjs/mkdirp-manual.js.map +0 -1
  282. package/app/api-destined-function/node_modules/mkdirp/dist/mjs/mkdirp-native.d.ts +0 -6
  283. package/app/api-destined-function/node_modules/mkdirp/dist/mjs/mkdirp-native.d.ts.map +0 -1
  284. package/app/api-destined-function/node_modules/mkdirp/dist/mjs/mkdirp-native.js +0 -46
  285. package/app/api-destined-function/node_modules/mkdirp/dist/mjs/mkdirp-native.js.map +0 -1
  286. package/app/api-destined-function/node_modules/mkdirp/dist/mjs/opts-arg.d.ts +0 -42
  287. package/app/api-destined-function/node_modules/mkdirp/dist/mjs/opts-arg.d.ts.map +0 -1
  288. package/app/api-destined-function/node_modules/mkdirp/dist/mjs/opts-arg.js +0 -34
  289. package/app/api-destined-function/node_modules/mkdirp/dist/mjs/opts-arg.js.map +0 -1
  290. package/app/api-destined-function/node_modules/mkdirp/dist/mjs/package.json +0 -3
  291. package/app/api-destined-function/node_modules/mkdirp/dist/mjs/path-arg.d.ts +0 -2
  292. package/app/api-destined-function/node_modules/mkdirp/dist/mjs/path-arg.d.ts.map +0 -1
  293. package/app/api-destined-function/node_modules/mkdirp/dist/mjs/path-arg.js +0 -24
  294. package/app/api-destined-function/node_modules/mkdirp/dist/mjs/path-arg.js.map +0 -1
  295. package/app/api-destined-function/node_modules/mkdirp/dist/mjs/use-native.d.ts +0 -6
  296. package/app/api-destined-function/node_modules/mkdirp/dist/mjs/use-native.d.ts.map +0 -1
  297. package/app/api-destined-function/node_modules/mkdirp/dist/mjs/use-native.js +0 -14
  298. package/app/api-destined-function/node_modules/mkdirp/dist/mjs/use-native.js.map +0 -1
  299. package/app/api-destined-function/node_modules/mkdirp/package.json +0 -91
  300. package/app/api-destined-function/node_modules/mkdirp/readme.markdown +0 -281
  301. package/app/api-destined-function/node_modules/path-scurry/LICENSE.md +0 -55
  302. package/app/api-destined-function/node_modules/path-scurry/README.md +0 -559
  303. package/app/api-destined-function/node_modules/path-scurry/dist/cjs/index.d.ts +0 -1055
  304. package/app/api-destined-function/node_modules/path-scurry/dist/cjs/index.d.ts.map +0 -1
  305. package/app/api-destined-function/node_modules/path-scurry/dist/cjs/index.js +0 -1865
  306. package/app/api-destined-function/node_modules/path-scurry/dist/cjs/index.js.map +0 -1
  307. package/app/api-destined-function/node_modules/path-scurry/dist/cjs/package.json +0 -3
  308. package/app/api-destined-function/node_modules/path-scurry/dist/mjs/index.d.ts +0 -1055
  309. package/app/api-destined-function/node_modules/path-scurry/dist/mjs/index.d.ts.map +0 -1
  310. package/app/api-destined-function/node_modules/path-scurry/dist/mjs/index.js +0 -1827
  311. package/app/api-destined-function/node_modules/path-scurry/dist/mjs/index.js.map +0 -1
  312. package/app/api-destined-function/node_modules/path-scurry/dist/mjs/package.json +0 -3
  313. package/app/api-destined-function/node_modules/path-scurry/package.json +0 -87
  314. package/app/api-destined-function/node_modules/rimraf/LICENSE +0 -15
  315. package/app/api-destined-function/node_modules/rimraf/README.md +0 -214
  316. package/app/api-destined-function/node_modules/rimraf/dist/cjs/package.json +0 -84
  317. package/app/api-destined-function/node_modules/rimraf/dist/cjs/src/bin.d.ts +0 -8
  318. package/app/api-destined-function/node_modules/rimraf/dist/cjs/src/bin.d.ts.map +0 -1
  319. package/app/api-destined-function/node_modules/rimraf/dist/cjs/src/bin.js +0 -260
  320. package/app/api-destined-function/node_modules/rimraf/dist/cjs/src/bin.js.map +0 -1
  321. package/app/api-destined-function/node_modules/rimraf/dist/cjs/src/default-tmp.d.ts +0 -3
  322. package/app/api-destined-function/node_modules/rimraf/dist/cjs/src/default-tmp.d.ts.map +0 -1
  323. package/app/api-destined-function/node_modules/rimraf/dist/cjs/src/default-tmp.js +0 -61
  324. package/app/api-destined-function/node_modules/rimraf/dist/cjs/src/default-tmp.js.map +0 -1
  325. package/app/api-destined-function/node_modules/rimraf/dist/cjs/src/fix-eperm.d.ts +0 -3
  326. package/app/api-destined-function/node_modules/rimraf/dist/cjs/src/fix-eperm.d.ts.map +0 -1
  327. package/app/api-destined-function/node_modules/rimraf/dist/cjs/src/fix-eperm.js +0 -58
  328. package/app/api-destined-function/node_modules/rimraf/dist/cjs/src/fix-eperm.js.map +0 -1
  329. package/app/api-destined-function/node_modules/rimraf/dist/cjs/src/fs.d.ts +0 -17
  330. package/app/api-destined-function/node_modules/rimraf/dist/cjs/src/fs.d.ts.map +0 -1
  331. package/app/api-destined-function/node_modules/rimraf/dist/cjs/src/fs.js +0 -46
  332. package/app/api-destined-function/node_modules/rimraf/dist/cjs/src/fs.js.map +0 -1
  333. package/app/api-destined-function/node_modules/rimraf/dist/cjs/src/ignore-enoent.d.ts +0 -3
  334. package/app/api-destined-function/node_modules/rimraf/dist/cjs/src/ignore-enoent.d.ts.map +0 -1
  335. package/app/api-destined-function/node_modules/rimraf/dist/cjs/src/ignore-enoent.js +0 -21
  336. package/app/api-destined-function/node_modules/rimraf/dist/cjs/src/ignore-enoent.js.map +0 -1
  337. package/app/api-destined-function/node_modules/rimraf/dist/cjs/src/index-cjs.d.ts +0 -57
  338. package/app/api-destined-function/node_modules/rimraf/dist/cjs/src/index-cjs.d.ts.map +0 -1
  339. package/app/api-destined-function/node_modules/rimraf/dist/cjs/src/index-cjs.js +0 -7
  340. package/app/api-destined-function/node_modules/rimraf/dist/cjs/src/index-cjs.js.map +0 -1
  341. package/app/api-destined-function/node_modules/rimraf/dist/cjs/src/index.d.ts +0 -71
  342. package/app/api-destined-function/node_modules/rimraf/dist/cjs/src/index.d.ts.map +0 -1
  343. package/app/api-destined-function/node_modules/rimraf/dist/cjs/src/index.js +0 -92
  344. package/app/api-destined-function/node_modules/rimraf/dist/cjs/src/index.js.map +0 -1
  345. package/app/api-destined-function/node_modules/rimraf/dist/cjs/src/opt-arg.d.ts +0 -17
  346. package/app/api-destined-function/node_modules/rimraf/dist/cjs/src/opt-arg.d.ts.map +0 -1
  347. package/app/api-destined-function/node_modules/rimraf/dist/cjs/src/opt-arg.js +0 -36
  348. package/app/api-destined-function/node_modules/rimraf/dist/cjs/src/opt-arg.js.map +0 -1
  349. package/app/api-destined-function/node_modules/rimraf/dist/cjs/src/path-arg.d.ts +0 -4
  350. package/app/api-destined-function/node_modules/rimraf/dist/cjs/src/path-arg.d.ts.map +0 -1
  351. package/app/api-destined-function/node_modules/rimraf/dist/cjs/src/path-arg.js +0 -54
  352. package/app/api-destined-function/node_modules/rimraf/dist/cjs/src/path-arg.js.map +0 -1
  353. package/app/api-destined-function/node_modules/rimraf/dist/cjs/src/platform.d.ts +0 -3
  354. package/app/api-destined-function/node_modules/rimraf/dist/cjs/src/platform.d.ts.map +0 -1
  355. package/app/api-destined-function/node_modules/rimraf/dist/cjs/src/platform.js +0 -4
  356. package/app/api-destined-function/node_modules/rimraf/dist/cjs/src/platform.js.map +0 -1
  357. package/app/api-destined-function/node_modules/rimraf/dist/cjs/src/readdir-or-error.d.ts +0 -5
  358. package/app/api-destined-function/node_modules/rimraf/dist/cjs/src/readdir-or-error.d.ts.map +0 -1
  359. package/app/api-destined-function/node_modules/rimraf/dist/cjs/src/readdir-or-error.js +0 -19
  360. package/app/api-destined-function/node_modules/rimraf/dist/cjs/src/readdir-or-error.js.map +0 -1
  361. package/app/api-destined-function/node_modules/rimraf/dist/cjs/src/retry-busy.d.ts +0 -8
  362. package/app/api-destined-function/node_modules/rimraf/dist/cjs/src/retry-busy.d.ts.map +0 -1
  363. package/app/api-destined-function/node_modules/rimraf/dist/cjs/src/retry-busy.js +0 -68
  364. package/app/api-destined-function/node_modules/rimraf/dist/cjs/src/retry-busy.js.map +0 -1
  365. package/app/api-destined-function/node_modules/rimraf/dist/cjs/src/rimraf-manual.d.ts +0 -3
  366. package/app/api-destined-function/node_modules/rimraf/dist/cjs/src/rimraf-manual.d.ts.map +0 -1
  367. package/app/api-destined-function/node_modules/rimraf/dist/cjs/src/rimraf-manual.js +0 -12
  368. package/app/api-destined-function/node_modules/rimraf/dist/cjs/src/rimraf-manual.js.map +0 -1
  369. package/app/api-destined-function/node_modules/rimraf/dist/cjs/src/rimraf-move-remove.d.ts +0 -4
  370. package/app/api-destined-function/node_modules/rimraf/dist/cjs/src/rimraf-move-remove.d.ts.map +0 -1
  371. package/app/api-destined-function/node_modules/rimraf/dist/cjs/src/rimraf-move-remove.js +0 -192
  372. package/app/api-destined-function/node_modules/rimraf/dist/cjs/src/rimraf-move-remove.js.map +0 -1
  373. package/app/api-destined-function/node_modules/rimraf/dist/cjs/src/rimraf-native.d.ts +0 -4
  374. package/app/api-destined-function/node_modules/rimraf/dist/cjs/src/rimraf-native.d.ts.map +0 -1
  375. package/app/api-destined-function/node_modules/rimraf/dist/cjs/src/rimraf-native.js +0 -24
  376. package/app/api-destined-function/node_modules/rimraf/dist/cjs/src/rimraf-native.js.map +0 -1
  377. package/app/api-destined-function/node_modules/rimraf/dist/cjs/src/rimraf-posix.d.ts +0 -4
  378. package/app/api-destined-function/node_modules/rimraf/dist/cjs/src/rimraf-posix.d.ts.map +0 -1
  379. package/app/api-destined-function/node_modules/rimraf/dist/cjs/src/rimraf-posix.js +0 -123
  380. package/app/api-destined-function/node_modules/rimraf/dist/cjs/src/rimraf-posix.js.map +0 -1
  381. package/app/api-destined-function/node_modules/rimraf/dist/cjs/src/rimraf-windows.d.ts +0 -4
  382. package/app/api-destined-function/node_modules/rimraf/dist/cjs/src/rimraf-windows.d.ts.map +0 -1
  383. package/app/api-destined-function/node_modules/rimraf/dist/cjs/src/rimraf-windows.js +0 -182
  384. package/app/api-destined-function/node_modules/rimraf/dist/cjs/src/rimraf-windows.js.map +0 -1
  385. package/app/api-destined-function/node_modules/rimraf/dist/cjs/src/use-native.d.ts +0 -4
  386. package/app/api-destined-function/node_modules/rimraf/dist/cjs/src/use-native.d.ts.map +0 -1
  387. package/app/api-destined-function/node_modules/rimraf/dist/cjs/src/use-native.js +0 -19
  388. package/app/api-destined-function/node_modules/rimraf/dist/cjs/src/use-native.js.map +0 -1
  389. package/app/api-destined-function/node_modules/rimraf/dist/mjs/default-tmp.d.ts +0 -3
  390. package/app/api-destined-function/node_modules/rimraf/dist/mjs/default-tmp.d.ts.map +0 -1
  391. package/app/api-destined-function/node_modules/rimraf/dist/mjs/default-tmp.js +0 -55
  392. package/app/api-destined-function/node_modules/rimraf/dist/mjs/default-tmp.js.map +0 -1
  393. package/app/api-destined-function/node_modules/rimraf/dist/mjs/fix-eperm.d.ts +0 -3
  394. package/app/api-destined-function/node_modules/rimraf/dist/mjs/fix-eperm.d.ts.map +0 -1
  395. package/app/api-destined-function/node_modules/rimraf/dist/mjs/fix-eperm.js +0 -53
  396. package/app/api-destined-function/node_modules/rimraf/dist/mjs/fix-eperm.js.map +0 -1
  397. package/app/api-destined-function/node_modules/rimraf/dist/mjs/fs.d.ts +0 -17
  398. package/app/api-destined-function/node_modules/rimraf/dist/mjs/fs.d.ts.map +0 -1
  399. package/app/api-destined-function/node_modules/rimraf/dist/mjs/fs.js +0 -31
  400. package/app/api-destined-function/node_modules/rimraf/dist/mjs/fs.js.map +0 -1
  401. package/app/api-destined-function/node_modules/rimraf/dist/mjs/ignore-enoent.d.ts +0 -3
  402. package/app/api-destined-function/node_modules/rimraf/dist/mjs/ignore-enoent.d.ts.map +0 -1
  403. package/app/api-destined-function/node_modules/rimraf/dist/mjs/ignore-enoent.js +0 -16
  404. package/app/api-destined-function/node_modules/rimraf/dist/mjs/ignore-enoent.js.map +0 -1
  405. package/app/api-destined-function/node_modules/rimraf/dist/mjs/index.d.ts +0 -71
  406. package/app/api-destined-function/node_modules/rimraf/dist/mjs/index.d.ts.map +0 -1
  407. package/app/api-destined-function/node_modules/rimraf/dist/mjs/index.js +0 -84
  408. package/app/api-destined-function/node_modules/rimraf/dist/mjs/index.js.map +0 -1
  409. package/app/api-destined-function/node_modules/rimraf/dist/mjs/opt-arg.d.ts +0 -17
  410. package/app/api-destined-function/node_modules/rimraf/dist/mjs/opt-arg.d.ts.map +0 -1
  411. package/app/api-destined-function/node_modules/rimraf/dist/mjs/opt-arg.js +0 -31
  412. package/app/api-destined-function/node_modules/rimraf/dist/mjs/opt-arg.js.map +0 -1
  413. package/app/api-destined-function/node_modules/rimraf/dist/mjs/package.json +0 -4
  414. package/app/api-destined-function/node_modules/rimraf/dist/mjs/path-arg.d.ts +0 -4
  415. package/app/api-destined-function/node_modules/rimraf/dist/mjs/path-arg.d.ts.map +0 -1
  416. package/app/api-destined-function/node_modules/rimraf/dist/mjs/path-arg.js +0 -49
  417. package/app/api-destined-function/node_modules/rimraf/dist/mjs/path-arg.js.map +0 -1
  418. package/app/api-destined-function/node_modules/rimraf/dist/mjs/platform.d.ts +0 -3
  419. package/app/api-destined-function/node_modules/rimraf/dist/mjs/platform.d.ts.map +0 -1
  420. package/app/api-destined-function/node_modules/rimraf/dist/mjs/platform.js +0 -2
  421. package/app/api-destined-function/node_modules/rimraf/dist/mjs/platform.js.map +0 -1
  422. package/app/api-destined-function/node_modules/rimraf/dist/mjs/readdir-or-error.d.ts +0 -5
  423. package/app/api-destined-function/node_modules/rimraf/dist/mjs/readdir-or-error.d.ts.map +0 -1
  424. package/app/api-destined-function/node_modules/rimraf/dist/mjs/readdir-or-error.js +0 -14
  425. package/app/api-destined-function/node_modules/rimraf/dist/mjs/readdir-or-error.js.map +0 -1
  426. package/app/api-destined-function/node_modules/rimraf/dist/mjs/retry-busy.d.ts +0 -8
  427. package/app/api-destined-function/node_modules/rimraf/dist/mjs/retry-busy.d.ts.map +0 -1
  428. package/app/api-destined-function/node_modules/rimraf/dist/mjs/retry-busy.js +0 -63
  429. package/app/api-destined-function/node_modules/rimraf/dist/mjs/retry-busy.js.map +0 -1
  430. package/app/api-destined-function/node_modules/rimraf/dist/mjs/rimraf-manual.d.ts +0 -3
  431. package/app/api-destined-function/node_modules/rimraf/dist/mjs/rimraf-manual.d.ts.map +0 -1
  432. package/app/api-destined-function/node_modules/rimraf/dist/mjs/rimraf-manual.js +0 -6
  433. package/app/api-destined-function/node_modules/rimraf/dist/mjs/rimraf-manual.js.map +0 -1
  434. package/app/api-destined-function/node_modules/rimraf/dist/mjs/rimraf-move-remove.d.ts +0 -4
  435. package/app/api-destined-function/node_modules/rimraf/dist/mjs/rimraf-move-remove.d.ts.map +0 -1
  436. package/app/api-destined-function/node_modules/rimraf/dist/mjs/rimraf-move-remove.js +0 -187
  437. package/app/api-destined-function/node_modules/rimraf/dist/mjs/rimraf-move-remove.js.map +0 -1
  438. package/app/api-destined-function/node_modules/rimraf/dist/mjs/rimraf-native.d.ts +0 -4
  439. package/app/api-destined-function/node_modules/rimraf/dist/mjs/rimraf-native.d.ts.map +0 -1
  440. package/app/api-destined-function/node_modules/rimraf/dist/mjs/rimraf-native.js +0 -19
  441. package/app/api-destined-function/node_modules/rimraf/dist/mjs/rimraf-native.js.map +0 -1
  442. package/app/api-destined-function/node_modules/rimraf/dist/mjs/rimraf-posix.d.ts +0 -4
  443. package/app/api-destined-function/node_modules/rimraf/dist/mjs/rimraf-posix.d.ts.map +0 -1
  444. package/app/api-destined-function/node_modules/rimraf/dist/mjs/rimraf-posix.js +0 -118
  445. package/app/api-destined-function/node_modules/rimraf/dist/mjs/rimraf-posix.js.map +0 -1
  446. package/app/api-destined-function/node_modules/rimraf/dist/mjs/rimraf-windows.d.ts +0 -4
  447. package/app/api-destined-function/node_modules/rimraf/dist/mjs/rimraf-windows.d.ts.map +0 -1
  448. package/app/api-destined-function/node_modules/rimraf/dist/mjs/rimraf-windows.js +0 -177
  449. package/app/api-destined-function/node_modules/rimraf/dist/mjs/rimraf-windows.js.map +0 -1
  450. package/app/api-destined-function/node_modules/rimraf/dist/mjs/use-native.d.ts +0 -4
  451. package/app/api-destined-function/node_modules/rimraf/dist/mjs/use-native.d.ts.map +0 -1
  452. package/app/api-destined-function/node_modules/rimraf/dist/mjs/use-native.js +0 -13
  453. package/app/api-destined-function/node_modules/rimraf/dist/mjs/use-native.js.map +0 -1
  454. package/app/api-destined-function/node_modules/rimraf/package.json +0 -84
  455. package/app/api-destined-function/node_modules/uuid/LICENSE.md +0 -9
  456. package/app/api-destined-function/node_modules/uuid/README.md +0 -462
  457. package/app/api-destined-function/node_modules/uuid/dist/bin/uuid +0 -2
  458. package/app/api-destined-function/node_modules/uuid/dist/commonjs-browser/index.js +0 -79
  459. package/app/api-destined-function/node_modules/uuid/dist/commonjs-browser/md5.js +0 -223
  460. package/app/api-destined-function/node_modules/uuid/dist/commonjs-browser/native.js +0 -11
  461. package/app/api-destined-function/node_modules/uuid/dist/commonjs-browser/nil.js +0 -8
  462. package/app/api-destined-function/node_modules/uuid/dist/commonjs-browser/parse.js +0 -45
  463. package/app/api-destined-function/node_modules/uuid/dist/commonjs-browser/regex.js +0 -8
  464. package/app/api-destined-function/node_modules/uuid/dist/commonjs-browser/rng.js +0 -25
  465. package/app/api-destined-function/node_modules/uuid/dist/commonjs-browser/sha1.js +0 -104
  466. package/app/api-destined-function/node_modules/uuid/dist/commonjs-browser/stringify.js +0 -44
  467. package/app/api-destined-function/node_modules/uuid/dist/commonjs-browser/v1.js +0 -107
  468. package/app/api-destined-function/node_modules/uuid/dist/commonjs-browser/v3.js +0 -16
  469. package/app/api-destined-function/node_modules/uuid/dist/commonjs-browser/v35.js +0 -80
  470. package/app/api-destined-function/node_modules/uuid/dist/commonjs-browser/v4.js +0 -43
  471. package/app/api-destined-function/node_modules/uuid/dist/commonjs-browser/v5.js +0 -16
  472. package/app/api-destined-function/node_modules/uuid/dist/commonjs-browser/validate.js +0 -17
  473. package/app/api-destined-function/node_modules/uuid/dist/commonjs-browser/version.js +0 -21
  474. package/app/api-destined-function/node_modules/uuid/dist/esm-browser/index.js +0 -9
  475. package/app/api-destined-function/node_modules/uuid/dist/esm-browser/md5.js +0 -215
  476. package/app/api-destined-function/node_modules/uuid/dist/esm-browser/native.js +0 -4
  477. package/app/api-destined-function/node_modules/uuid/dist/esm-browser/nil.js +0 -1
  478. package/app/api-destined-function/node_modules/uuid/dist/esm-browser/parse.js +0 -35
  479. package/app/api-destined-function/node_modules/uuid/dist/esm-browser/regex.js +0 -1
  480. package/app/api-destined-function/node_modules/uuid/dist/esm-browser/rng.js +0 -18
  481. package/app/api-destined-function/node_modules/uuid/dist/esm-browser/sha1.js +0 -96
  482. package/app/api-destined-function/node_modules/uuid/dist/esm-browser/stringify.js +0 -33
  483. package/app/api-destined-function/node_modules/uuid/dist/esm-browser/v1.js +0 -95
  484. package/app/api-destined-function/node_modules/uuid/dist/esm-browser/v3.js +0 -4
  485. package/app/api-destined-function/node_modules/uuid/dist/esm-browser/v35.js +0 -66
  486. package/app/api-destined-function/node_modules/uuid/dist/esm-browser/v4.js +0 -29
  487. package/app/api-destined-function/node_modules/uuid/dist/esm-browser/v5.js +0 -4
  488. package/app/api-destined-function/node_modules/uuid/dist/esm-browser/validate.js +0 -7
  489. package/app/api-destined-function/node_modules/uuid/dist/esm-browser/version.js +0 -11
  490. package/app/api-destined-function/node_modules/uuid/dist/esm-node/index.js +0 -9
  491. package/app/api-destined-function/node_modules/uuid/dist/esm-node/md5.js +0 -13
  492. package/app/api-destined-function/node_modules/uuid/dist/esm-node/native.js +0 -4
  493. package/app/api-destined-function/node_modules/uuid/dist/esm-node/nil.js +0 -1
  494. package/app/api-destined-function/node_modules/uuid/dist/esm-node/parse.js +0 -35
  495. package/app/api-destined-function/node_modules/uuid/dist/esm-node/regex.js +0 -1
  496. package/app/api-destined-function/node_modules/uuid/dist/esm-node/rng.js +0 -12
  497. package/app/api-destined-function/node_modules/uuid/dist/esm-node/sha1.js +0 -13
  498. package/app/api-destined-function/node_modules/uuid/dist/esm-node/stringify.js +0 -33
  499. package/app/api-destined-function/node_modules/uuid/dist/esm-node/v1.js +0 -95
  500. package/app/api-destined-function/node_modules/uuid/dist/esm-node/v3.js +0 -4
  501. package/app/api-destined-function/node_modules/uuid/dist/esm-node/v35.js +0 -66
  502. package/app/api-destined-function/node_modules/uuid/dist/esm-node/v4.js +0 -29
  503. package/app/api-destined-function/node_modules/uuid/dist/esm-node/v5.js +0 -4
  504. package/app/api-destined-function/node_modules/uuid/dist/esm-node/validate.js +0 -7
  505. package/app/api-destined-function/node_modules/uuid/dist/esm-node/version.js +0 -11
  506. package/app/api-destined-function/node_modules/uuid/dist/index.js +0 -79
  507. package/app/api-destined-function/node_modules/uuid/dist/md5-browser.js +0 -223
  508. package/app/api-destined-function/node_modules/uuid/dist/md5.js +0 -23
  509. package/app/api-destined-function/node_modules/uuid/dist/native-browser.js +0 -11
  510. package/app/api-destined-function/node_modules/uuid/dist/native.js +0 -15
  511. package/app/api-destined-function/node_modules/uuid/dist/nil.js +0 -8
  512. package/app/api-destined-function/node_modules/uuid/dist/parse.js +0 -45
  513. package/app/api-destined-function/node_modules/uuid/dist/regex.js +0 -8
  514. package/app/api-destined-function/node_modules/uuid/dist/rng-browser.js +0 -25
  515. package/app/api-destined-function/node_modules/uuid/dist/rng.js +0 -24
  516. package/app/api-destined-function/node_modules/uuid/dist/sha1-browser.js +0 -104
  517. package/app/api-destined-function/node_modules/uuid/dist/sha1.js +0 -23
  518. package/app/api-destined-function/node_modules/uuid/dist/stringify.js +0 -44
  519. package/app/api-destined-function/node_modules/uuid/dist/uuid-bin.js +0 -85
  520. package/app/api-destined-function/node_modules/uuid/dist/v1.js +0 -107
  521. package/app/api-destined-function/node_modules/uuid/dist/v3.js +0 -16
  522. package/app/api-destined-function/node_modules/uuid/dist/v35.js +0 -80
  523. package/app/api-destined-function/node_modules/uuid/dist/v4.js +0 -43
  524. package/app/api-destined-function/node_modules/uuid/dist/v5.js +0 -16
  525. package/app/api-destined-function/node_modules/uuid/dist/validate.js +0 -17
  526. package/app/api-destined-function/node_modules/uuid/dist/version.js +0 -21
  527. package/app/api-destined-function/node_modules/uuid/package.json +0 -131
  528. package/app/api-destined-function/node_modules/uuid/wrapper.mjs +0 -10
  529. package/lerna.json +0 -6
@@ -1,1304 +0,0 @@
1
- "use strict";
2
- var __importDefault = (this && this.__importDefault) || function (mod) {
3
- return (mod && mod.__esModule) ? mod : { "default": mod };
4
- };
5
- Object.defineProperty(exports, "__esModule", { value: true });
6
- exports.unescape = exports.escape = exports.Minimatch = exports.match = exports.makeRe = exports.braceExpand = exports.defaults = exports.filter = exports.GLOBSTAR = exports.sep = exports.minimatch = void 0;
7
- const brace_expansion_1 = __importDefault(require("brace-expansion"));
8
- const brace_expressions_js_1 = require("./brace-expressions.js");
9
- const escape_js_1 = require("./escape.js");
10
- const unescape_js_1 = require("./unescape.js");
11
- const minimatch = (p, pattern, options = {}) => {
12
- assertValidPattern(pattern);
13
- // shortcut: comments match nothing.
14
- if (!options.nocomment && pattern.charAt(0) === '#') {
15
- return false;
16
- }
17
- return new Minimatch(pattern, options).match(p);
18
- };
19
- exports.minimatch = minimatch;
20
- exports.default = exports.minimatch;
21
- // Optimized checking for the most common glob patterns.
22
- const starDotExtRE = /^\*+([^+@!?\*\[\(]*)$/;
23
- const starDotExtTest = (ext) => (f) => !f.startsWith('.') && f.endsWith(ext);
24
- const starDotExtTestDot = (ext) => (f) => f.endsWith(ext);
25
- const starDotExtTestNocase = (ext) => {
26
- ext = ext.toLowerCase();
27
- return (f) => !f.startsWith('.') && f.toLowerCase().endsWith(ext);
28
- };
29
- const starDotExtTestNocaseDot = (ext) => {
30
- ext = ext.toLowerCase();
31
- return (f) => f.toLowerCase().endsWith(ext);
32
- };
33
- const starDotStarRE = /^\*+\.\*+$/;
34
- const starDotStarTest = (f) => !f.startsWith('.') && f.includes('.');
35
- const starDotStarTestDot = (f) => f !== '.' && f !== '..' && f.includes('.');
36
- const dotStarRE = /^\.\*+$/;
37
- const dotStarTest = (f) => f !== '.' && f !== '..' && f.startsWith('.');
38
- const starRE = /^\*+$/;
39
- const starTest = (f) => f.length !== 0 && !f.startsWith('.');
40
- const starTestDot = (f) => f.length !== 0 && f !== '.' && f !== '..';
41
- const qmarksRE = /^\?+([^+@!?\*\[\(]*)?$/;
42
- const qmarksTestNocase = ([$0, ext = '']) => {
43
- const noext = qmarksTestNoExt([$0]);
44
- if (!ext)
45
- return noext;
46
- ext = ext.toLowerCase();
47
- return (f) => noext(f) && f.toLowerCase().endsWith(ext);
48
- };
49
- const qmarksTestNocaseDot = ([$0, ext = '']) => {
50
- const noext = qmarksTestNoExtDot([$0]);
51
- if (!ext)
52
- return noext;
53
- ext = ext.toLowerCase();
54
- return (f) => noext(f) && f.toLowerCase().endsWith(ext);
55
- };
56
- const qmarksTestDot = ([$0, ext = '']) => {
57
- const noext = qmarksTestNoExtDot([$0]);
58
- return !ext ? noext : (f) => noext(f) && f.endsWith(ext);
59
- };
60
- const qmarksTest = ([$0, ext = '']) => {
61
- const noext = qmarksTestNoExt([$0]);
62
- return !ext ? noext : (f) => noext(f) && f.endsWith(ext);
63
- };
64
- const qmarksTestNoExt = ([$0]) => {
65
- const len = $0.length;
66
- return (f) => f.length === len && !f.startsWith('.');
67
- };
68
- const qmarksTestNoExtDot = ([$0]) => {
69
- const len = $0.length;
70
- return (f) => f.length === len && f !== '.' && f !== '..';
71
- };
72
- /* c8 ignore start */
73
- const defaultPlatform = (typeof process === 'object' && process
74
- ? (typeof process.env === 'object' &&
75
- process.env &&
76
- process.env.__MINIMATCH_TESTING_PLATFORM__) ||
77
- process.platform
78
- : 'posix');
79
- const path = {
80
- win32: { sep: '\\' },
81
- posix: { sep: '/' },
82
- };
83
- /* c8 ignore stop */
84
- exports.sep = defaultPlatform === 'win32' ? path.win32.sep : path.posix.sep;
85
- exports.minimatch.sep = exports.sep;
86
- exports.GLOBSTAR = Symbol('globstar **');
87
- exports.minimatch.GLOBSTAR = exports.GLOBSTAR;
88
- const plTypes = {
89
- '!': { open: '(?:(?!(?:', close: '))[^/]*?)' },
90
- '?': { open: '(?:', close: ')?' },
91
- '+': { open: '(?:', close: ')+' },
92
- '*': { open: '(?:', close: ')*' },
93
- '@': { open: '(?:', close: ')' },
94
- };
95
- // any single thing other than /
96
- // don't need to escape / when using new RegExp()
97
- const qmark = '[^/]';
98
- // * => any number of characters
99
- const star = qmark + '*?';
100
- // ** when dots are allowed. Anything goes, except .. and .
101
- // not (^ or / followed by one or two dots followed by $ or /),
102
- // followed by anything, any number of times.
103
- const twoStarDot = '(?:(?!(?:\\/|^)(?:\\.{1,2})($|\\/)).)*?';
104
- // not a ^ or / followed by a dot,
105
- // followed by anything, any number of times.
106
- const twoStarNoDot = '(?:(?!(?:\\/|^)\\.).)*?';
107
- // "abc" -> { a:true, b:true, c:true }
108
- const charSet = (s) => s.split('').reduce((set, c) => {
109
- set[c] = true;
110
- return set;
111
- }, {});
112
- // characters that need to be escaped in RegExp.
113
- const reSpecials = charSet('().*{}+?[]^$\\!');
114
- // characters that indicate we have to add the pattern start
115
- const addPatternStartSet = charSet('[.(');
116
- const filter = (pattern, options = {}) => (p) => (0, exports.minimatch)(p, pattern, options);
117
- exports.filter = filter;
118
- exports.minimatch.filter = exports.filter;
119
- const ext = (a, b = {}) => Object.assign({}, a, b);
120
- const defaults = (def) => {
121
- if (!def || typeof def !== 'object' || !Object.keys(def).length) {
122
- return exports.minimatch;
123
- }
124
- const orig = exports.minimatch;
125
- const m = (p, pattern, options = {}) => orig(p, pattern, ext(def, options));
126
- return Object.assign(m, {
127
- Minimatch: class Minimatch extends orig.Minimatch {
128
- constructor(pattern, options = {}) {
129
- super(pattern, ext(def, options));
130
- }
131
- static defaults(options) {
132
- return orig.defaults(ext(def, options)).Minimatch;
133
- }
134
- },
135
- unescape: (s, options = {}) => orig.unescape(s, ext(def, options)),
136
- escape: (s, options = {}) => orig.escape(s, ext(def, options)),
137
- filter: (pattern, options = {}) => orig.filter(pattern, ext(def, options)),
138
- defaults: (options) => orig.defaults(ext(def, options)),
139
- makeRe: (pattern, options = {}) => orig.makeRe(pattern, ext(def, options)),
140
- braceExpand: (pattern, options = {}) => orig.braceExpand(pattern, ext(def, options)),
141
- match: (list, pattern, options = {}) => orig.match(list, pattern, ext(def, options)),
142
- sep: orig.sep,
143
- GLOBSTAR: exports.GLOBSTAR,
144
- });
145
- };
146
- exports.defaults = defaults;
147
- exports.minimatch.defaults = exports.defaults;
148
- // Brace expansion:
149
- // a{b,c}d -> abd acd
150
- // a{b,}c -> abc ac
151
- // a{0..3}d -> a0d a1d a2d a3d
152
- // a{b,c{d,e}f}g -> abg acdfg acefg
153
- // a{b,c}d{e,f}g -> abdeg acdeg abdeg abdfg
154
- //
155
- // Invalid sets are not expanded.
156
- // a{2..}b -> a{2..}b
157
- // a{b}c -> a{b}c
158
- const braceExpand = (pattern, options = {}) => {
159
- assertValidPattern(pattern);
160
- // Thanks to Yeting Li <https://github.com/yetingli> for
161
- // improving this regexp to avoid a ReDOS vulnerability.
162
- if (options.nobrace || !/\{(?:(?!\{).)*\}/.test(pattern)) {
163
- // shortcut. no need to expand.
164
- return [pattern];
165
- }
166
- return (0, brace_expansion_1.default)(pattern);
167
- };
168
- exports.braceExpand = braceExpand;
169
- exports.minimatch.braceExpand = exports.braceExpand;
170
- const MAX_PATTERN_LENGTH = 1024 * 64;
171
- const assertValidPattern = (pattern) => {
172
- if (typeof pattern !== 'string') {
173
- throw new TypeError('invalid pattern');
174
- }
175
- if (pattern.length > MAX_PATTERN_LENGTH) {
176
- throw new TypeError('pattern is too long');
177
- }
178
- };
179
- // parse a component of the expanded set.
180
- // At this point, no pattern may contain "/" in it
181
- // so we're going to return a 2d array, where each entry is the full
182
- // pattern, split on '/', and then turned into a regular expression.
183
- // A regexp is made at the end which joins each array with an
184
- // escaped /, and another full one which joins each regexp with |.
185
- //
186
- // Following the lead of Bash 4.1, note that "**" only has special meaning
187
- // when it is the *only* thing in a path portion. Otherwise, any series
188
- // of * is equivalent to a single *. Globstar behavior is enabled by
189
- // default, and can be disabled by setting options.noglobstar.
190
- const makeRe = (pattern, options = {}) => new Minimatch(pattern, options).makeRe();
191
- exports.makeRe = makeRe;
192
- exports.minimatch.makeRe = exports.makeRe;
193
- const match = (list, pattern, options = {}) => {
194
- const mm = new Minimatch(pattern, options);
195
- list = list.filter(f => mm.match(f));
196
- if (mm.options.nonull && !list.length) {
197
- list.push(pattern);
198
- }
199
- return list;
200
- };
201
- exports.match = match;
202
- exports.minimatch.match = exports.match;
203
- // replace stuff like \* with *
204
- const globUnescape = (s) => s.replace(/\\(.)/g, '$1');
205
- const globMagic = /[?*]|[+@!]\(.*?\)|\[|\]/;
206
- const regExpEscape = (s) => s.replace(/[-[\]{}()*+?.,\\^$|#\s]/g, '\\$&');
207
- class Minimatch {
208
- options;
209
- set;
210
- pattern;
211
- windowsPathsNoEscape;
212
- nonegate;
213
- negate;
214
- comment;
215
- empty;
216
- preserveMultipleSlashes;
217
- partial;
218
- globSet;
219
- globParts;
220
- nocase;
221
- isWindows;
222
- platform;
223
- windowsNoMagicRoot;
224
- regexp;
225
- constructor(pattern, options = {}) {
226
- assertValidPattern(pattern);
227
- options = options || {};
228
- this.options = options;
229
- this.pattern = pattern;
230
- this.platform = options.platform || defaultPlatform;
231
- this.isWindows = this.platform === 'win32';
232
- this.windowsPathsNoEscape =
233
- !!options.windowsPathsNoEscape || options.allowWindowsEscape === false;
234
- if (this.windowsPathsNoEscape) {
235
- this.pattern = this.pattern.replace(/\\/g, '/');
236
- }
237
- this.preserveMultipleSlashes = !!options.preserveMultipleSlashes;
238
- this.regexp = null;
239
- this.negate = false;
240
- this.nonegate = !!options.nonegate;
241
- this.comment = false;
242
- this.empty = false;
243
- this.partial = !!options.partial;
244
- this.nocase = !!this.options.nocase;
245
- this.windowsNoMagicRoot =
246
- options.windowsNoMagicRoot !== undefined
247
- ? options.windowsNoMagicRoot
248
- : !!(this.isWindows && this.nocase);
249
- this.globSet = [];
250
- this.globParts = [];
251
- this.set = [];
252
- // make the set of regexps etc.
253
- this.make();
254
- }
255
- hasMagic() {
256
- if (this.options.magicalBraces && this.set.length > 1) {
257
- return true;
258
- }
259
- for (const pattern of this.set) {
260
- for (const part of pattern) {
261
- if (typeof part !== 'string')
262
- return true;
263
- }
264
- }
265
- return false;
266
- }
267
- debug(..._) { }
268
- make() {
269
- const pattern = this.pattern;
270
- const options = this.options;
271
- // empty patterns and comments match nothing.
272
- if (!options.nocomment && pattern.charAt(0) === '#') {
273
- this.comment = true;
274
- return;
275
- }
276
- if (!pattern) {
277
- this.empty = true;
278
- return;
279
- }
280
- // step 1: figure out negation, etc.
281
- this.parseNegate();
282
- // step 2: expand braces
283
- this.globSet = [...new Set(this.braceExpand())];
284
- if (options.debug) {
285
- this.debug = (...args) => console.error(...args);
286
- }
287
- this.debug(this.pattern, this.globSet);
288
- // step 3: now we have a set, so turn each one into a series of
289
- // path-portion matching patterns.
290
- // These will be regexps, except in the case of "**", which is
291
- // set to the GLOBSTAR object for globstar behavior,
292
- // and will not contain any / characters
293
- //
294
- // First, we preprocess to make the glob pattern sets a bit simpler
295
- // and deduped. There are some perf-killing patterns that can cause
296
- // problems with a glob walk, but we can simplify them down a bit.
297
- const rawGlobParts = this.globSet.map(s => this.slashSplit(s));
298
- this.globParts = this.preprocess(rawGlobParts);
299
- this.debug(this.pattern, this.globParts);
300
- // glob --> regexps
301
- let set = this.globParts.map((s, _, __) => {
302
- if (this.isWindows && this.windowsNoMagicRoot) {
303
- // check if it's a drive or unc path.
304
- const isUNC = s[0] === '' &&
305
- s[1] === '' &&
306
- (s[2] === '?' || !globMagic.test(s[2])) &&
307
- !globMagic.test(s[3]);
308
- const isDrive = /^[a-z]:/i.test(s[0]);
309
- if (isUNC) {
310
- return [...s.slice(0, 4), ...s.slice(4).map(ss => this.parse(ss))];
311
- }
312
- else if (isDrive) {
313
- return [s[0], ...s.slice(1).map(ss => this.parse(ss))];
314
- }
315
- }
316
- return s.map(ss => this.parse(ss));
317
- });
318
- this.debug(this.pattern, set);
319
- // filter out everything that didn't compile properly.
320
- this.set = set.filter(s => s.indexOf(false) === -1);
321
- // do not treat the ? in UNC paths as magic
322
- if (this.isWindows) {
323
- for (let i = 0; i < this.set.length; i++) {
324
- const p = this.set[i];
325
- if (p[0] === '' &&
326
- p[1] === '' &&
327
- this.globParts[i][2] === '?' &&
328
- typeof p[3] === 'string' &&
329
- /^[a-z]:$/i.test(p[3])) {
330
- p[2] = '?';
331
- }
332
- }
333
- }
334
- this.debug(this.pattern, this.set);
335
- }
336
- // various transforms to equivalent pattern sets that are
337
- // faster to process in a filesystem walk. The goal is to
338
- // eliminate what we can, and push all ** patterns as far
339
- // to the right as possible, even if it increases the number
340
- // of patterns that we have to process.
341
- preprocess(globParts) {
342
- // if we're not in globstar mode, then turn all ** into *
343
- if (this.options.noglobstar) {
344
- for (let i = 0; i < globParts.length; i++) {
345
- for (let j = 0; j < globParts[i].length; j++) {
346
- if (globParts[i][j] === '**') {
347
- globParts[i][j] = '*';
348
- }
349
- }
350
- }
351
- }
352
- const { optimizationLevel = 1 } = this.options;
353
- if (optimizationLevel >= 2) {
354
- // aggressive optimization for the purpose of fs walking
355
- globParts = this.firstPhasePreProcess(globParts);
356
- globParts = this.secondPhasePreProcess(globParts);
357
- }
358
- else if (optimizationLevel >= 1) {
359
- // just basic optimizations to remove some .. parts
360
- globParts = this.levelOneOptimize(globParts);
361
- }
362
- else {
363
- globParts = this.adjascentGlobstarOptimize(globParts);
364
- }
365
- return globParts;
366
- }
367
- // just get rid of adjascent ** portions
368
- adjascentGlobstarOptimize(globParts) {
369
- return globParts.map(parts => {
370
- let gs = -1;
371
- while (-1 !== (gs = parts.indexOf('**', gs + 1))) {
372
- let i = gs;
373
- while (parts[i + 1] === '**') {
374
- i++;
375
- }
376
- if (i !== gs) {
377
- parts.splice(gs, i - gs);
378
- }
379
- }
380
- return parts;
381
- });
382
- }
383
- // get rid of adjascent ** and resolve .. portions
384
- levelOneOptimize(globParts) {
385
- return globParts.map(parts => {
386
- parts = parts.reduce((set, part) => {
387
- const prev = set[set.length - 1];
388
- if (part === '**' && prev === '**') {
389
- return set;
390
- }
391
- if (part === '..') {
392
- if (prev && prev !== '..' && prev !== '.' && prev !== '**') {
393
- set.pop();
394
- return set;
395
- }
396
- }
397
- set.push(part);
398
- return set;
399
- }, []);
400
- return parts.length === 0 ? [''] : parts;
401
- });
402
- }
403
- levelTwoFileOptimize(parts) {
404
- if (!Array.isArray(parts)) {
405
- parts = this.slashSplit(parts);
406
- }
407
- let didSomething = false;
408
- do {
409
- didSomething = false;
410
- // <pre>/<e>/<rest> -> <pre>/<rest>
411
- if (!this.preserveMultipleSlashes) {
412
- for (let i = 1; i < parts.length - 1; i++) {
413
- const p = parts[i];
414
- // don't squeeze out UNC patterns
415
- if (i === 1 && p === '' && parts[0] === '')
416
- continue;
417
- if (p === '.' || p === '') {
418
- didSomething = true;
419
- parts.splice(i, 1);
420
- i--;
421
- }
422
- }
423
- if (parts[0] === '.' &&
424
- parts.length === 2 &&
425
- (parts[1] === '.' || parts[1] === '')) {
426
- didSomething = true;
427
- parts.pop();
428
- }
429
- }
430
- // <pre>/<p>/../<rest> -> <pre>/<rest>
431
- let dd = 0;
432
- while (-1 !== (dd = parts.indexOf('..', dd + 1))) {
433
- const p = parts[dd - 1];
434
- if (p && p !== '.' && p !== '..' && p !== '**') {
435
- didSomething = true;
436
- parts.splice(dd - 1, 2);
437
- dd -= 2;
438
- }
439
- }
440
- } while (didSomething);
441
- return parts.length === 0 ? [''] : parts;
442
- }
443
- // First phase: single-pattern processing
444
- // <pre> is 1 or more portions
445
- // <rest> is 1 or more portions
446
- // <p> is any portion other than ., .., '', or **
447
- // <e> is . or ''
448
- //
449
- // **/.. is *brutal* for filesystem walking performance, because
450
- // it effectively resets the recursive walk each time it occurs,
451
- // and ** cannot be reduced out by a .. pattern part like a regexp
452
- // or most strings (other than .., ., and '') can be.
453
- //
454
- // <pre>/**/../<p>/<p>/<rest> -> {<pre>/../<p>/<p>/<rest>,<pre>/**/<p>/<p>/<rest>}
455
- // <pre>/<e>/<rest> -> <pre>/<rest>
456
- // <pre>/<p>/../<rest> -> <pre>/<rest>
457
- // **/**/<rest> -> **/<rest>
458
- //
459
- // **/*/<rest> -> */**/<rest> <== not valid because ** doesn't follow
460
- // this WOULD be allowed if ** did follow symlinks, or * didn't
461
- firstPhasePreProcess(globParts) {
462
- let didSomething = false;
463
- do {
464
- didSomething = false;
465
- // <pre>/**/../<p>/<p>/<rest> -> {<pre>/../<p>/<p>/<rest>,<pre>/**/<p>/<p>/<rest>}
466
- for (let parts of globParts) {
467
- let gs = -1;
468
- while (-1 !== (gs = parts.indexOf('**', gs + 1))) {
469
- let gss = gs;
470
- while (parts[gss + 1] === '**') {
471
- // <pre>/**/**/<rest> -> <pre>/**/<rest>
472
- gss++;
473
- }
474
- // eg, if gs is 2 and gss is 4, that means we have 3 **
475
- // parts, and can remove 2 of them.
476
- if (gss > gs) {
477
- parts.splice(gs + 1, gss - gs);
478
- }
479
- let next = parts[gs + 1];
480
- const p = parts[gs + 2];
481
- const p2 = parts[gs + 3];
482
- if (next !== '..')
483
- continue;
484
- if (!p ||
485
- p === '.' ||
486
- p === '..' ||
487
- !p2 ||
488
- p2 === '.' ||
489
- p2 === '..') {
490
- continue;
491
- }
492
- didSomething = true;
493
- // edit parts in place, and push the new one
494
- parts.splice(gs, 1);
495
- const other = parts.slice(0);
496
- other[gs] = '**';
497
- globParts.push(other);
498
- gs--;
499
- }
500
- // <pre>/<e>/<rest> -> <pre>/<rest>
501
- if (!this.preserveMultipleSlashes) {
502
- for (let i = 1; i < parts.length - 1; i++) {
503
- const p = parts[i];
504
- // don't squeeze out UNC patterns
505
- if (i === 1 && p === '' && parts[0] === '')
506
- continue;
507
- if (p === '.' || p === '') {
508
- didSomething = true;
509
- parts.splice(i, 1);
510
- i--;
511
- }
512
- }
513
- if (parts[0] === '.' &&
514
- parts.length === 2 &&
515
- (parts[1] === '.' || parts[1] === '')) {
516
- didSomething = true;
517
- parts.pop();
518
- }
519
- }
520
- // <pre>/<p>/../<rest> -> <pre>/<rest>
521
- let dd = 0;
522
- while (-1 !== (dd = parts.indexOf('..', dd + 1))) {
523
- const p = parts[dd - 1];
524
- if (p && p !== '.' && p !== '..' && p !== '**') {
525
- didSomething = true;
526
- const needDot = dd === 1 && parts[dd + 1] === '**';
527
- const splin = needDot ? ['.'] : [];
528
- parts.splice(dd - 1, 2, ...splin);
529
- if (parts.length === 0)
530
- parts.push('');
531
- dd -= 2;
532
- }
533
- }
534
- }
535
- } while (didSomething);
536
- return globParts;
537
- }
538
- // second phase: multi-pattern dedupes
539
- // {<pre>/*/<rest>,<pre>/<p>/<rest>} -> <pre>/*/<rest>
540
- // {<pre>/<rest>,<pre>/<rest>} -> <pre>/<rest>
541
- // {<pre>/**/<rest>,<pre>/<rest>} -> <pre>/**/<rest>
542
- //
543
- // {<pre>/**/<rest>,<pre>/**/<p>/<rest>} -> <pre>/**/<rest>
544
- // ^-- not valid because ** doens't follow symlinks
545
- secondPhasePreProcess(globParts) {
546
- for (let i = 0; i < globParts.length - 1; i++) {
547
- for (let j = i + 1; j < globParts.length; j++) {
548
- const matched = this.partsMatch(globParts[i], globParts[j], !this.preserveMultipleSlashes);
549
- if (!matched)
550
- continue;
551
- globParts[i] = matched;
552
- globParts[j] = [];
553
- }
554
- }
555
- return globParts.filter(gs => gs.length);
556
- }
557
- partsMatch(a, b, emptyGSMatch = false) {
558
- let ai = 0;
559
- let bi = 0;
560
- let result = [];
561
- let which = '';
562
- while (ai < a.length && bi < b.length) {
563
- if (a[ai] === b[bi]) {
564
- result.push(which === 'b' ? b[bi] : a[ai]);
565
- ai++;
566
- bi++;
567
- }
568
- else if (emptyGSMatch && a[ai] === '**' && b[bi] === a[ai + 1]) {
569
- result.push(a[ai]);
570
- ai++;
571
- }
572
- else if (emptyGSMatch && b[bi] === '**' && a[ai] === b[bi + 1]) {
573
- result.push(b[bi]);
574
- bi++;
575
- }
576
- else if (a[ai] === '*' &&
577
- b[bi] &&
578
- (this.options.dot || !b[bi].startsWith('.')) &&
579
- b[bi] !== '**') {
580
- if (which === 'b')
581
- return false;
582
- which = 'a';
583
- result.push(a[ai]);
584
- ai++;
585
- bi++;
586
- }
587
- else if (b[bi] === '*' &&
588
- a[ai] &&
589
- (this.options.dot || !a[ai].startsWith('.')) &&
590
- a[ai] !== '**') {
591
- if (which === 'a')
592
- return false;
593
- which = 'b';
594
- result.push(b[bi]);
595
- ai++;
596
- bi++;
597
- }
598
- else {
599
- return false;
600
- }
601
- }
602
- // if we fall out of the loop, it means they two are identical
603
- // as long as their lengths match
604
- return a.length === b.length && result;
605
- }
606
- parseNegate() {
607
- if (this.nonegate)
608
- return;
609
- const pattern = this.pattern;
610
- let negate = false;
611
- let negateOffset = 0;
612
- for (let i = 0; i < pattern.length && pattern.charAt(i) === '!'; i++) {
613
- negate = !negate;
614
- negateOffset++;
615
- }
616
- if (negateOffset)
617
- this.pattern = pattern.slice(negateOffset);
618
- this.negate = negate;
619
- }
620
- // set partial to true to test if, for example,
621
- // "/a/b" matches the start of "/*/b/*/d"
622
- // Partial means, if you run out of file before you run
623
- // out of pattern, then that's fine, as long as all
624
- // the parts match.
625
- matchOne(file, pattern, partial = false) {
626
- const options = this.options;
627
- // a UNC pattern like //?/c:/* can match a path like c:/x
628
- // and vice versa
629
- if (this.isWindows) {
630
- const fileUNC = file[0] === '' &&
631
- file[1] === '' &&
632
- file[2] === '?' &&
633
- typeof file[3] === 'string' &&
634
- /^[a-z]:$/i.test(file[3]);
635
- const patternUNC = pattern[0] === '' &&
636
- pattern[1] === '' &&
637
- pattern[2] === '?' &&
638
- typeof pattern[3] === 'string' &&
639
- /^[a-z]:$/i.test(pattern[3]);
640
- if (fileUNC && patternUNC) {
641
- const fd = file[3];
642
- const pd = pattern[3];
643
- if (fd.toLowerCase() === pd.toLowerCase()) {
644
- file[3] = pd;
645
- }
646
- }
647
- else if (patternUNC && typeof file[0] === 'string') {
648
- const pd = pattern[3];
649
- const fd = file[0];
650
- if (pd.toLowerCase() === fd.toLowerCase()) {
651
- pattern[3] = fd;
652
- pattern = pattern.slice(3);
653
- }
654
- }
655
- else if (fileUNC && typeof pattern[0] === 'string') {
656
- const fd = file[3];
657
- if (fd.toLowerCase() === pattern[0].toLowerCase()) {
658
- pattern[0] = fd;
659
- file = file.slice(3);
660
- }
661
- }
662
- }
663
- // resolve and reduce . and .. portions in the file as well.
664
- // dont' need to do the second phase, because it's only one string[]
665
- const { optimizationLevel = 1 } = this.options;
666
- if (optimizationLevel >= 2) {
667
- file = this.levelTwoFileOptimize(file);
668
- }
669
- this.debug('matchOne', this, { file, pattern });
670
- this.debug('matchOne', file.length, pattern.length);
671
- for (var fi = 0, pi = 0, fl = file.length, pl = pattern.length; fi < fl && pi < pl; fi++, pi++) {
672
- this.debug('matchOne loop');
673
- var p = pattern[pi];
674
- var f = file[fi];
675
- this.debug(pattern, p, f);
676
- // should be impossible.
677
- // some invalid regexp stuff in the set.
678
- /* c8 ignore start */
679
- if (p === false) {
680
- return false;
681
- }
682
- /* c8 ignore stop */
683
- if (p === exports.GLOBSTAR) {
684
- this.debug('GLOBSTAR', [pattern, p, f]);
685
- // "**"
686
- // a/**/b/**/c would match the following:
687
- // a/b/x/y/z/c
688
- // a/x/y/z/b/c
689
- // a/b/x/b/x/c
690
- // a/b/c
691
- // To do this, take the rest of the pattern after
692
- // the **, and see if it would match the file remainder.
693
- // If so, return success.
694
- // If not, the ** "swallows" a segment, and try again.
695
- // This is recursively awful.
696
- //
697
- // a/**/b/**/c matching a/b/x/y/z/c
698
- // - a matches a
699
- // - doublestar
700
- // - matchOne(b/x/y/z/c, b/**/c)
701
- // - b matches b
702
- // - doublestar
703
- // - matchOne(x/y/z/c, c) -> no
704
- // - matchOne(y/z/c, c) -> no
705
- // - matchOne(z/c, c) -> no
706
- // - matchOne(c, c) yes, hit
707
- var fr = fi;
708
- var pr = pi + 1;
709
- if (pr === pl) {
710
- this.debug('** at the end');
711
- // a ** at the end will just swallow the rest.
712
- // We have found a match.
713
- // however, it will not swallow /.x, unless
714
- // options.dot is set.
715
- // . and .. are *never* matched by **, for explosively
716
- // exponential reasons.
717
- for (; fi < fl; fi++) {
718
- if (file[fi] === '.' ||
719
- file[fi] === '..' ||
720
- (!options.dot && file[fi].charAt(0) === '.'))
721
- return false;
722
- }
723
- return true;
724
- }
725
- // ok, let's see if we can swallow whatever we can.
726
- while (fr < fl) {
727
- var swallowee = file[fr];
728
- this.debug('\nglobstar while', file, fr, pattern, pr, swallowee);
729
- // XXX remove this slice. Just pass the start index.
730
- if (this.matchOne(file.slice(fr), pattern.slice(pr), partial)) {
731
- this.debug('globstar found match!', fr, fl, swallowee);
732
- // found a match.
733
- return true;
734
- }
735
- else {
736
- // can't swallow "." or ".." ever.
737
- // can only swallow ".foo" when explicitly asked.
738
- if (swallowee === '.' ||
739
- swallowee === '..' ||
740
- (!options.dot && swallowee.charAt(0) === '.')) {
741
- this.debug('dot detected!', file, fr, pattern, pr);
742
- break;
743
- }
744
- // ** swallows a segment, and continue.
745
- this.debug('globstar swallow a segment, and continue');
746
- fr++;
747
- }
748
- }
749
- // no match was found.
750
- // However, in partial mode, we can't say this is necessarily over.
751
- /* c8 ignore start */
752
- if (partial) {
753
- // ran out of file
754
- this.debug('\n>>> no match, partial?', file, fr, pattern, pr);
755
- if (fr === fl) {
756
- return true;
757
- }
758
- }
759
- /* c8 ignore stop */
760
- return false;
761
- }
762
- // something other than **
763
- // non-magic patterns just have to match exactly
764
- // patterns with magic have been turned into regexps.
765
- let hit;
766
- if (typeof p === 'string') {
767
- hit = f === p;
768
- this.debug('string match', p, f, hit);
769
- }
770
- else {
771
- hit = p.test(f);
772
- this.debug('pattern match', p, f, hit);
773
- }
774
- if (!hit)
775
- return false;
776
- }
777
- // Note: ending in / means that we'll get a final ""
778
- // at the end of the pattern. This can only match a
779
- // corresponding "" at the end of the file.
780
- // If the file ends in /, then it can only match a
781
- // a pattern that ends in /, unless the pattern just
782
- // doesn't have any more for it. But, a/b/ should *not*
783
- // match "a/b/*", even though "" matches against the
784
- // [^/]*? pattern, except in partial mode, where it might
785
- // simply not be reached yet.
786
- // However, a/b/ should still satisfy a/*
787
- // now either we fell off the end of the pattern, or we're done.
788
- if (fi === fl && pi === pl) {
789
- // ran out of pattern and filename at the same time.
790
- // an exact hit!
791
- return true;
792
- }
793
- else if (fi === fl) {
794
- // ran out of file, but still had pattern left.
795
- // this is ok if we're doing the match as part of
796
- // a glob fs traversal.
797
- return partial;
798
- }
799
- else if (pi === pl) {
800
- // ran out of pattern, still have file left.
801
- // this is only acceptable if we're on the very last
802
- // empty segment of a file with a trailing slash.
803
- // a/* should match a/b/
804
- return fi === fl - 1 && file[fi] === '';
805
- /* c8 ignore start */
806
- }
807
- else {
808
- // should be unreachable.
809
- throw new Error('wtf?');
810
- }
811
- /* c8 ignore stop */
812
- }
813
- braceExpand() {
814
- return (0, exports.braceExpand)(this.pattern, this.options);
815
- }
816
- parse(pattern) {
817
- assertValidPattern(pattern);
818
- const options = this.options;
819
- // shortcuts
820
- if (pattern === '**')
821
- return exports.GLOBSTAR;
822
- if (pattern === '')
823
- return '';
824
- // far and away, the most common glob pattern parts are
825
- // *, *.*, and *.<ext> Add a fast check method for those.
826
- let m;
827
- let fastTest = null;
828
- if ((m = pattern.match(starRE))) {
829
- fastTest = options.dot ? starTestDot : starTest;
830
- }
831
- else if ((m = pattern.match(starDotExtRE))) {
832
- fastTest = (options.nocase
833
- ? options.dot
834
- ? starDotExtTestNocaseDot
835
- : starDotExtTestNocase
836
- : options.dot
837
- ? starDotExtTestDot
838
- : starDotExtTest)(m[1]);
839
- }
840
- else if ((m = pattern.match(qmarksRE))) {
841
- fastTest = (options.nocase
842
- ? options.dot
843
- ? qmarksTestNocaseDot
844
- : qmarksTestNocase
845
- : options.dot
846
- ? qmarksTestDot
847
- : qmarksTest)(m);
848
- }
849
- else if ((m = pattern.match(starDotStarRE))) {
850
- fastTest = options.dot ? starDotStarTestDot : starDotStarTest;
851
- }
852
- else if ((m = pattern.match(dotStarRE))) {
853
- fastTest = dotStarTest;
854
- }
855
- let re = '';
856
- let hasMagic = false;
857
- let escaping = false;
858
- // ? => one single character
859
- const patternListStack = [];
860
- const negativeLists = [];
861
- let stateChar = false;
862
- let uflag = false;
863
- let pl;
864
- // . and .. never match anything that doesn't start with .,
865
- // even when options.dot is set. However, if the pattern
866
- // starts with ., then traversal patterns can match.
867
- let dotTravAllowed = pattern.charAt(0) === '.';
868
- let dotFileAllowed = options.dot || dotTravAllowed;
869
- const patternStart = () => dotTravAllowed
870
- ? ''
871
- : dotFileAllowed
872
- ? '(?!(?:^|\\/)\\.{1,2}(?:$|\\/))'
873
- : '(?!\\.)';
874
- const subPatternStart = (p) => p.charAt(0) === '.'
875
- ? ''
876
- : options.dot
877
- ? '(?!(?:^|\\/)\\.{1,2}(?:$|\\/))'
878
- : '(?!\\.)';
879
- const clearStateChar = () => {
880
- if (stateChar) {
881
- // we had some state-tracking character
882
- // that wasn't consumed by this pass.
883
- switch (stateChar) {
884
- case '*':
885
- re += star;
886
- hasMagic = true;
887
- break;
888
- case '?':
889
- re += qmark;
890
- hasMagic = true;
891
- break;
892
- default:
893
- re += '\\' + stateChar;
894
- break;
895
- }
896
- this.debug('clearStateChar %j %j', stateChar, re);
897
- stateChar = false;
898
- }
899
- };
900
- for (let i = 0, c; i < pattern.length && (c = pattern.charAt(i)); i++) {
901
- this.debug('%s\t%s %s %j', pattern, i, re, c);
902
- // skip over any that are escaped.
903
- if (escaping) {
904
- // completely not allowed, even escaped.
905
- // should be impossible.
906
- /* c8 ignore start */
907
- if (c === '/') {
908
- return false;
909
- }
910
- /* c8 ignore stop */
911
- if (reSpecials[c]) {
912
- re += '\\';
913
- }
914
- re += c;
915
- escaping = false;
916
- continue;
917
- }
918
- switch (c) {
919
- // Should already be path-split by now.
920
- /* c8 ignore start */
921
- case '/': {
922
- return false;
923
- }
924
- /* c8 ignore stop */
925
- case '\\':
926
- clearStateChar();
927
- escaping = true;
928
- continue;
929
- // the various stateChar values
930
- // for the "extglob" stuff.
931
- case '?':
932
- case '*':
933
- case '+':
934
- case '@':
935
- case '!':
936
- this.debug('%s\t%s %s %j <-- stateChar', pattern, i, re, c);
937
- // if we already have a stateChar, then it means
938
- // that there was something like ** or +? in there.
939
- // Handle the stateChar, then proceed with this one.
940
- this.debug('call clearStateChar %j', stateChar);
941
- clearStateChar();
942
- stateChar = c;
943
- // if extglob is disabled, then +(asdf|foo) isn't a thing.
944
- // just clear the statechar *now*, rather than even diving into
945
- // the patternList stuff.
946
- if (options.noext)
947
- clearStateChar();
948
- continue;
949
- case '(': {
950
- if (!stateChar) {
951
- re += '\\(';
952
- continue;
953
- }
954
- const plEntry = {
955
- type: stateChar,
956
- start: i - 1,
957
- reStart: re.length,
958
- open: plTypes[stateChar].open,
959
- close: plTypes[stateChar].close,
960
- };
961
- this.debug(this.pattern, '\t', plEntry);
962
- patternListStack.push(plEntry);
963
- // negation is (?:(?!(?:js)(?:<rest>))[^/]*)
964
- re += plEntry.open;
965
- // next entry starts with a dot maybe?
966
- if (plEntry.start === 0 && plEntry.type !== '!') {
967
- dotTravAllowed = true;
968
- re += subPatternStart(pattern.slice(i + 1));
969
- }
970
- this.debug('plType %j %j', stateChar, re);
971
- stateChar = false;
972
- continue;
973
- }
974
- case ')': {
975
- const plEntry = patternListStack[patternListStack.length - 1];
976
- if (!plEntry) {
977
- re += '\\)';
978
- continue;
979
- }
980
- patternListStack.pop();
981
- // closing an extglob
982
- clearStateChar();
983
- hasMagic = true;
984
- pl = plEntry;
985
- // negation is (?:(?!js)[^/]*)
986
- // The others are (?:<pattern>)<type>
987
- re += pl.close;
988
- if (pl.type === '!') {
989
- negativeLists.push(Object.assign(pl, { reEnd: re.length }));
990
- }
991
- continue;
992
- }
993
- case '|': {
994
- const plEntry = patternListStack[patternListStack.length - 1];
995
- if (!plEntry) {
996
- re += '\\|';
997
- continue;
998
- }
999
- clearStateChar();
1000
- re += '|';
1001
- // next subpattern can start with a dot?
1002
- if (plEntry.start === 0 && plEntry.type !== '!') {
1003
- dotTravAllowed = true;
1004
- re += subPatternStart(pattern.slice(i + 1));
1005
- }
1006
- continue;
1007
- }
1008
- // these are mostly the same in regexp and glob
1009
- case '[':
1010
- // swallow any state-tracking char before the [
1011
- clearStateChar();
1012
- const [src, needUflag, consumed, magic] = (0, brace_expressions_js_1.parseClass)(pattern, i);
1013
- if (consumed) {
1014
- re += src;
1015
- uflag = uflag || needUflag;
1016
- i += consumed - 1;
1017
- hasMagic = hasMagic || magic;
1018
- }
1019
- else {
1020
- re += '\\[';
1021
- }
1022
- continue;
1023
- case ']':
1024
- re += '\\' + c;
1025
- continue;
1026
- default:
1027
- // swallow any state char that wasn't consumed
1028
- clearStateChar();
1029
- re += regExpEscape(c);
1030
- break;
1031
- } // switch
1032
- } // for
1033
- // handle the case where we had a +( thing at the *end*
1034
- // of the pattern.
1035
- // each pattern list stack adds 3 chars, and we need to go through
1036
- // and escape any | chars that were passed through as-is for the regexp.
1037
- // Go through and escape them, taking care not to double-escape any
1038
- // | chars that were already escaped.
1039
- for (pl = patternListStack.pop(); pl; pl = patternListStack.pop()) {
1040
- let tail;
1041
- tail = re.slice(pl.reStart + pl.open.length);
1042
- this.debug(this.pattern, 'setting tail', re, pl);
1043
- // maybe some even number of \, then maybe 1 \, followed by a |
1044
- tail = tail.replace(/((?:\\{2}){0,64})(\\?)\|/g, (_, $1, $2) => {
1045
- if (!$2) {
1046
- // the | isn't already escaped, so escape it.
1047
- $2 = '\\';
1048
- // should already be done
1049
- /* c8 ignore start */
1050
- }
1051
- /* c8 ignore stop */
1052
- // need to escape all those slashes *again*, without escaping the
1053
- // one that we need for escaping the | character. As it works out,
1054
- // escaping an even number of slashes can be done by simply repeating
1055
- // it exactly after itself. That's why this trick works.
1056
- //
1057
- // I am sorry that you have to see this.
1058
- return $1 + $1 + $2 + '|';
1059
- });
1060
- this.debug('tail=%j\n %s', tail, tail, pl, re);
1061
- const t = pl.type === '*' ? star : pl.type === '?' ? qmark : '\\' + pl.type;
1062
- hasMagic = true;
1063
- re = re.slice(0, pl.reStart) + t + '\\(' + tail;
1064
- }
1065
- // handle trailing things that only matter at the very end.
1066
- clearStateChar();
1067
- if (escaping) {
1068
- // trailing \\
1069
- re += '\\\\';
1070
- }
1071
- // only need to apply the nodot start if the re starts with
1072
- // something that could conceivably capture a dot
1073
- const addPatternStart = addPatternStartSet[re.charAt(0)];
1074
- // Hack to work around lack of negative lookbehind in JS
1075
- // A pattern like: *.!(x).!(y|z) needs to ensure that a name
1076
- // like 'a.xyz.yz' doesn't match. So, the first negative
1077
- // lookahead, has to look ALL the way ahead, to the end of
1078
- // the pattern.
1079
- for (let n = negativeLists.length - 1; n > -1; n--) {
1080
- const nl = negativeLists[n];
1081
- const nlBefore = re.slice(0, nl.reStart);
1082
- const nlFirst = re.slice(nl.reStart, nl.reEnd - 8);
1083
- let nlAfter = re.slice(nl.reEnd);
1084
- const nlLast = re.slice(nl.reEnd - 8, nl.reEnd) + nlAfter;
1085
- // Handle nested stuff like *(*.js|!(*.json)), where open parens
1086
- // mean that we should *not* include the ) in the bit that is considered
1087
- // "after" the negated section.
1088
- const closeParensBefore = nlBefore.split(')').length;
1089
- const openParensBefore = nlBefore.split('(').length - closeParensBefore;
1090
- let cleanAfter = nlAfter;
1091
- for (let i = 0; i < openParensBefore; i++) {
1092
- cleanAfter = cleanAfter.replace(/\)[+*?]?/, '');
1093
- }
1094
- nlAfter = cleanAfter;
1095
- const dollar = nlAfter === '' ? '(?:$|\\/)' : '';
1096
- re = nlBefore + nlFirst + nlAfter + dollar + nlLast;
1097
- }
1098
- // if the re is not "" at this point, then we need to make sure
1099
- // it doesn't match against an empty path part.
1100
- // Otherwise a/* will match a/, which it should not.
1101
- if (re !== '' && hasMagic) {
1102
- re = '(?=.)' + re;
1103
- }
1104
- if (addPatternStart) {
1105
- re = patternStart() + re;
1106
- }
1107
- // if it's nocase, and the lcase/uppercase don't match, it's magic
1108
- if (options.nocase && !hasMagic && !options.nocaseMagicOnly) {
1109
- hasMagic = pattern.toUpperCase() !== pattern.toLowerCase();
1110
- }
1111
- // skip the regexp for non-magical patterns
1112
- // unescape anything in it, though, so that it'll be
1113
- // an exact match against a file etc.
1114
- if (!hasMagic) {
1115
- return globUnescape(re);
1116
- }
1117
- const flags = (options.nocase ? 'i' : '') + (uflag ? 'u' : '');
1118
- try {
1119
- const ext = fastTest
1120
- ? {
1121
- _glob: pattern,
1122
- _src: re,
1123
- test: fastTest,
1124
- }
1125
- : {
1126
- _glob: pattern,
1127
- _src: re,
1128
- };
1129
- return Object.assign(new RegExp('^' + re + '$', flags), ext);
1130
- /* c8 ignore start */
1131
- }
1132
- catch (er) {
1133
- // should be impossible
1134
- // If it was an invalid regular expression, then it can't match
1135
- // anything. This trick looks for a character after the end of
1136
- // the string, which is of course impossible, except in multi-line
1137
- // mode, but it's not a /m regex.
1138
- this.debug('invalid regexp', er);
1139
- return new RegExp('$.');
1140
- }
1141
- /* c8 ignore stop */
1142
- }
1143
- makeRe() {
1144
- if (this.regexp || this.regexp === false)
1145
- return this.regexp;
1146
- // at this point, this.set is a 2d array of partial
1147
- // pattern strings, or "**".
1148
- //
1149
- // It's better to use .match(). This function shouldn't
1150
- // be used, really, but it's pretty convenient sometimes,
1151
- // when you just want to work with a regex.
1152
- const set = this.set;
1153
- if (!set.length) {
1154
- this.regexp = false;
1155
- return this.regexp;
1156
- }
1157
- const options = this.options;
1158
- const twoStar = options.noglobstar
1159
- ? star
1160
- : options.dot
1161
- ? twoStarDot
1162
- : twoStarNoDot;
1163
- const flags = options.nocase ? 'i' : '';
1164
- // regexpify non-globstar patterns
1165
- // if ** is only item, then we just do one twoStar
1166
- // if ** is first, and there are more, prepend (\/|twoStar\/)? to next
1167
- // if ** is last, append (\/twoStar|) to previous
1168
- // if ** is in the middle, append (\/|\/twoStar\/) to previous
1169
- // then filter out GLOBSTAR symbols
1170
- let re = set
1171
- .map(pattern => {
1172
- const pp = pattern.map(p => typeof p === 'string'
1173
- ? regExpEscape(p)
1174
- : p === exports.GLOBSTAR
1175
- ? exports.GLOBSTAR
1176
- : p._src);
1177
- pp.forEach((p, i) => {
1178
- const next = pp[i + 1];
1179
- const prev = pp[i - 1];
1180
- if (p !== exports.GLOBSTAR || prev === exports.GLOBSTAR) {
1181
- return;
1182
- }
1183
- if (prev === undefined) {
1184
- if (next !== undefined && next !== exports.GLOBSTAR) {
1185
- pp[i + 1] = '(?:\\/|' + twoStar + '\\/)?' + next;
1186
- }
1187
- else {
1188
- pp[i] = twoStar;
1189
- }
1190
- }
1191
- else if (next === undefined) {
1192
- pp[i - 1] = prev + '(?:\\/|' + twoStar + ')?';
1193
- }
1194
- else if (next !== exports.GLOBSTAR) {
1195
- pp[i - 1] = prev + '(?:\\/|\\/' + twoStar + '\\/)' + next;
1196
- pp[i + 1] = exports.GLOBSTAR;
1197
- }
1198
- });
1199
- return pp.filter(p => p !== exports.GLOBSTAR).join('/');
1200
- })
1201
- .join('|');
1202
- // must match entire pattern
1203
- // ending in a * or ** will make it less strict.
1204
- re = '^(?:' + re + ')$';
1205
- // can match anything, as long as it's not this.
1206
- if (this.negate)
1207
- re = '^(?!' + re + ').*$';
1208
- try {
1209
- this.regexp = new RegExp(re, flags);
1210
- /* c8 ignore start */
1211
- }
1212
- catch (ex) {
1213
- // should be impossible
1214
- this.regexp = false;
1215
- }
1216
- /* c8 ignore stop */
1217
- return this.regexp;
1218
- }
1219
- slashSplit(p) {
1220
- // if p starts with // on windows, we preserve that
1221
- // so that UNC paths aren't broken. Otherwise, any number of
1222
- // / characters are coalesced into one, unless
1223
- // preserveMultipleSlashes is set to true.
1224
- if (this.preserveMultipleSlashes) {
1225
- return p.split('/');
1226
- }
1227
- else if (this.isWindows && /^\/\/[^\/]+/.test(p)) {
1228
- // add an extra '' for the one we lose
1229
- return ['', ...p.split(/\/+/)];
1230
- }
1231
- else {
1232
- return p.split(/\/+/);
1233
- }
1234
- }
1235
- match(f, partial = this.partial) {
1236
- this.debug('match', f, this.pattern);
1237
- // short-circuit in the case of busted things.
1238
- // comments, etc.
1239
- if (this.comment) {
1240
- return false;
1241
- }
1242
- if (this.empty) {
1243
- return f === '';
1244
- }
1245
- if (f === '/' && partial) {
1246
- return true;
1247
- }
1248
- const options = this.options;
1249
- // windows: need to use /, not \
1250
- if (this.isWindows) {
1251
- f = f.split('\\').join('/');
1252
- }
1253
- // treat the test path as a set of pathparts.
1254
- const ff = this.slashSplit(f);
1255
- this.debug(this.pattern, 'split', ff);
1256
- // just ONE of the pattern sets in this.set needs to match
1257
- // in order for it to be valid. If negating, then just one
1258
- // match means that we have failed.
1259
- // Either way, return on the first hit.
1260
- const set = this.set;
1261
- this.debug(this.pattern, 'set', set);
1262
- // Find the basename of the path by looking for the last non-empty segment
1263
- let filename = ff[ff.length - 1];
1264
- if (!filename) {
1265
- for (let i = ff.length - 2; !filename && i >= 0; i--) {
1266
- filename = ff[i];
1267
- }
1268
- }
1269
- for (let i = 0; i < set.length; i++) {
1270
- const pattern = set[i];
1271
- let file = ff;
1272
- if (options.matchBase && pattern.length === 1) {
1273
- file = [filename];
1274
- }
1275
- const hit = this.matchOne(file, pattern, partial);
1276
- if (hit) {
1277
- if (options.flipNegate) {
1278
- return true;
1279
- }
1280
- return !this.negate;
1281
- }
1282
- }
1283
- // didn't get any hits. this is success if it's a negative
1284
- // pattern, failure otherwise.
1285
- if (options.flipNegate) {
1286
- return false;
1287
- }
1288
- return this.negate;
1289
- }
1290
- static defaults(def) {
1291
- return exports.minimatch.defaults(def).Minimatch;
1292
- }
1293
- }
1294
- exports.Minimatch = Minimatch;
1295
- /* c8 ignore start */
1296
- var escape_js_2 = require("./escape.js");
1297
- Object.defineProperty(exports, "escape", { enumerable: true, get: function () { return escape_js_2.escape; } });
1298
- var unescape_js_2 = require("./unescape.js");
1299
- Object.defineProperty(exports, "unescape", { enumerable: true, get: function () { return unescape_js_2.unescape; } });
1300
- /* c8 ignore stop */
1301
- exports.minimatch.Minimatch = Minimatch;
1302
- exports.minimatch.escape = escape_js_1.escape;
1303
- exports.minimatch.unescape = unescape_js_1.unescape;
1304
- //# sourceMappingURL=index.js.map