@gradientedge/cdk-utils 8.33.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 +18 -17
  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,702 +0,0 @@
1
- 'use strict'
2
- const proc =
3
- typeof process === 'object' && process
4
- ? process
5
- : {
6
- stdout: null,
7
- stderr: null,
8
- }
9
- const EE = require('events')
10
- const Stream = require('stream')
11
- const stringdecoder = require('string_decoder')
12
- const SD = stringdecoder.StringDecoder
13
-
14
- const EOF = Symbol('EOF')
15
- const MAYBE_EMIT_END = Symbol('maybeEmitEnd')
16
- const EMITTED_END = Symbol('emittedEnd')
17
- const EMITTING_END = Symbol('emittingEnd')
18
- const EMITTED_ERROR = Symbol('emittedError')
19
- const CLOSED = Symbol('closed')
20
- const READ = Symbol('read')
21
- const FLUSH = Symbol('flush')
22
- const FLUSHCHUNK = Symbol('flushChunk')
23
- const ENCODING = Symbol('encoding')
24
- const DECODER = Symbol('decoder')
25
- const FLOWING = Symbol('flowing')
26
- const PAUSED = Symbol('paused')
27
- const RESUME = Symbol('resume')
28
- const BUFFER = Symbol('buffer')
29
- const PIPES = Symbol('pipes')
30
- const BUFFERLENGTH = Symbol('bufferLength')
31
- const BUFFERPUSH = Symbol('bufferPush')
32
- const BUFFERSHIFT = Symbol('bufferShift')
33
- const OBJECTMODE = Symbol('objectMode')
34
- // internal event when stream is destroyed
35
- const DESTROYED = Symbol('destroyed')
36
- // internal event when stream has an error
37
- const ERROR = Symbol('error')
38
- const EMITDATA = Symbol('emitData')
39
- const EMITEND = Symbol('emitEnd')
40
- const EMITEND2 = Symbol('emitEnd2')
41
- const ASYNC = Symbol('async')
42
- const ABORT = Symbol('abort')
43
- const ABORTED = Symbol('aborted')
44
- const SIGNAL = Symbol('signal')
45
-
46
- const defer = fn => Promise.resolve().then(fn)
47
-
48
- // TODO remove when Node v8 support drops
49
- const doIter = global._MP_NO_ITERATOR_SYMBOLS_ !== '1'
50
- const ASYNCITERATOR =
51
- (doIter && Symbol.asyncIterator) || Symbol('asyncIterator not implemented')
52
- const ITERATOR =
53
- (doIter && Symbol.iterator) || Symbol('iterator not implemented')
54
-
55
- // events that mean 'the stream is over'
56
- // these are treated specially, and re-emitted
57
- // if they are listened for after emitting.
58
- const isEndish = ev => ev === 'end' || ev === 'finish' || ev === 'prefinish'
59
-
60
- const isArrayBuffer = b =>
61
- b instanceof ArrayBuffer ||
62
- (typeof b === 'object' &&
63
- b.constructor &&
64
- b.constructor.name === 'ArrayBuffer' &&
65
- b.byteLength >= 0)
66
-
67
- const isArrayBufferView = b => !Buffer.isBuffer(b) && ArrayBuffer.isView(b)
68
-
69
- class Pipe {
70
- constructor(src, dest, opts) {
71
- this.src = src
72
- this.dest = dest
73
- this.opts = opts
74
- this.ondrain = () => src[RESUME]()
75
- dest.on('drain', this.ondrain)
76
- }
77
- unpipe() {
78
- this.dest.removeListener('drain', this.ondrain)
79
- }
80
- // istanbul ignore next - only here for the prototype
81
- proxyErrors() {}
82
- end() {
83
- this.unpipe()
84
- if (this.opts.end) this.dest.end()
85
- }
86
- }
87
-
88
- class PipeProxyErrors extends Pipe {
89
- unpipe() {
90
- this.src.removeListener('error', this.proxyErrors)
91
- super.unpipe()
92
- }
93
- constructor(src, dest, opts) {
94
- super(src, dest, opts)
95
- this.proxyErrors = er => dest.emit('error', er)
96
- src.on('error', this.proxyErrors)
97
- }
98
- }
99
-
100
- class Minipass extends Stream {
101
- constructor(options) {
102
- super()
103
- this[FLOWING] = false
104
- // whether we're explicitly paused
105
- this[PAUSED] = false
106
- this[PIPES] = []
107
- this[BUFFER] = []
108
- this[OBJECTMODE] = (options && options.objectMode) || false
109
- if (this[OBJECTMODE]) this[ENCODING] = null
110
- else this[ENCODING] = (options && options.encoding) || null
111
- if (this[ENCODING] === 'buffer') this[ENCODING] = null
112
- this[ASYNC] = (options && !!options.async) || false
113
- this[DECODER] = this[ENCODING] ? new SD(this[ENCODING]) : null
114
- this[EOF] = false
115
- this[EMITTED_END] = false
116
- this[EMITTING_END] = false
117
- this[CLOSED] = false
118
- this[EMITTED_ERROR] = null
119
- this.writable = true
120
- this.readable = true
121
- this[BUFFERLENGTH] = 0
122
- this[DESTROYED] = false
123
- if (options && options.debugExposeBuffer === true) {
124
- Object.defineProperty(this, 'buffer', { get: () => this[BUFFER] })
125
- }
126
- if (options && options.debugExposePipes === true) {
127
- Object.defineProperty(this, 'pipes', { get: () => this[PIPES] })
128
- }
129
- this[SIGNAL] = options && options.signal
130
- this[ABORTED] = false
131
- if (this[SIGNAL]) {
132
- this[SIGNAL].addEventListener('abort', () => this[ABORT]())
133
- if (this[SIGNAL].aborted) {
134
- this[ABORT]()
135
- }
136
- }
137
- }
138
-
139
- get bufferLength() {
140
- return this[BUFFERLENGTH]
141
- }
142
-
143
- get encoding() {
144
- return this[ENCODING]
145
- }
146
- set encoding(enc) {
147
- if (this[OBJECTMODE]) throw new Error('cannot set encoding in objectMode')
148
-
149
- if (
150
- this[ENCODING] &&
151
- enc !== this[ENCODING] &&
152
- ((this[DECODER] && this[DECODER].lastNeed) || this[BUFFERLENGTH])
153
- )
154
- throw new Error('cannot change encoding')
155
-
156
- if (this[ENCODING] !== enc) {
157
- this[DECODER] = enc ? new SD(enc) : null
158
- if (this[BUFFER].length)
159
- this[BUFFER] = this[BUFFER].map(chunk => this[DECODER].write(chunk))
160
- }
161
-
162
- this[ENCODING] = enc
163
- }
164
-
165
- setEncoding(enc) {
166
- this.encoding = enc
167
- }
168
-
169
- get objectMode() {
170
- return this[OBJECTMODE]
171
- }
172
- set objectMode(om) {
173
- this[OBJECTMODE] = this[OBJECTMODE] || !!om
174
- }
175
-
176
- get ['async']() {
177
- return this[ASYNC]
178
- }
179
- set ['async'](a) {
180
- this[ASYNC] = this[ASYNC] || !!a
181
- }
182
-
183
- // drop everything and get out of the flow completely
184
- [ABORT]() {
185
- this[ABORTED] = true
186
- this.emit('abort', this[SIGNAL].reason)
187
- this.destroy(this[SIGNAL].reason)
188
- }
189
-
190
- get aborted() {
191
- return this[ABORTED]
192
- }
193
- set aborted(_) {}
194
-
195
- write(chunk, encoding, cb) {
196
- if (this[ABORTED]) return false
197
- if (this[EOF]) throw new Error('write after end')
198
-
199
- if (this[DESTROYED]) {
200
- this.emit(
201
- 'error',
202
- Object.assign(
203
- new Error('Cannot call write after a stream was destroyed'),
204
- { code: 'ERR_STREAM_DESTROYED' }
205
- )
206
- )
207
- return true
208
- }
209
-
210
- if (typeof encoding === 'function') (cb = encoding), (encoding = 'utf8')
211
-
212
- if (!encoding) encoding = 'utf8'
213
-
214
- const fn = this[ASYNC] ? defer : f => f()
215
-
216
- // convert array buffers and typed array views into buffers
217
- // at some point in the future, we may want to do the opposite!
218
- // leave strings and buffers as-is
219
- // anything else switches us into object mode
220
- if (!this[OBJECTMODE] && !Buffer.isBuffer(chunk)) {
221
- if (isArrayBufferView(chunk))
222
- chunk = Buffer.from(chunk.buffer, chunk.byteOffset, chunk.byteLength)
223
- else if (isArrayBuffer(chunk)) chunk = Buffer.from(chunk)
224
- else if (typeof chunk !== 'string')
225
- // use the setter so we throw if we have encoding set
226
- this.objectMode = true
227
- }
228
-
229
- // handle object mode up front, since it's simpler
230
- // this yields better performance, fewer checks later.
231
- if (this[OBJECTMODE]) {
232
- /* istanbul ignore if - maybe impossible? */
233
- if (this.flowing && this[BUFFERLENGTH] !== 0) this[FLUSH](true)
234
-
235
- if (this.flowing) this.emit('data', chunk)
236
- else this[BUFFERPUSH](chunk)
237
-
238
- if (this[BUFFERLENGTH] !== 0) this.emit('readable')
239
-
240
- if (cb) fn(cb)
241
-
242
- return this.flowing
243
- }
244
-
245
- // at this point the chunk is a buffer or string
246
- // don't buffer it up or send it to the decoder
247
- if (!chunk.length) {
248
- if (this[BUFFERLENGTH] !== 0) this.emit('readable')
249
- if (cb) fn(cb)
250
- return this.flowing
251
- }
252
-
253
- // fast-path writing strings of same encoding to a stream with
254
- // an empty buffer, skipping the buffer/decoder dance
255
- if (
256
- typeof chunk === 'string' &&
257
- // unless it is a string already ready for us to use
258
- !(encoding === this[ENCODING] && !this[DECODER].lastNeed)
259
- ) {
260
- chunk = Buffer.from(chunk, encoding)
261
- }
262
-
263
- if (Buffer.isBuffer(chunk) && this[ENCODING])
264
- chunk = this[DECODER].write(chunk)
265
-
266
- // Note: flushing CAN potentially switch us into not-flowing mode
267
- if (this.flowing && this[BUFFERLENGTH] !== 0) this[FLUSH](true)
268
-
269
- if (this.flowing) this.emit('data', chunk)
270
- else this[BUFFERPUSH](chunk)
271
-
272
- if (this[BUFFERLENGTH] !== 0) this.emit('readable')
273
-
274
- if (cb) fn(cb)
275
-
276
- return this.flowing
277
- }
278
-
279
- read(n) {
280
- if (this[DESTROYED]) return null
281
-
282
- if (this[BUFFERLENGTH] === 0 || n === 0 || n > this[BUFFERLENGTH]) {
283
- this[MAYBE_EMIT_END]()
284
- return null
285
- }
286
-
287
- if (this[OBJECTMODE]) n = null
288
-
289
- if (this[BUFFER].length > 1 && !this[OBJECTMODE]) {
290
- if (this.encoding) this[BUFFER] = [this[BUFFER].join('')]
291
- else this[BUFFER] = [Buffer.concat(this[BUFFER], this[BUFFERLENGTH])]
292
- }
293
-
294
- const ret = this[READ](n || null, this[BUFFER][0])
295
- this[MAYBE_EMIT_END]()
296
- return ret
297
- }
298
-
299
- [READ](n, chunk) {
300
- if (n === chunk.length || n === null) this[BUFFERSHIFT]()
301
- else {
302
- this[BUFFER][0] = chunk.slice(n)
303
- chunk = chunk.slice(0, n)
304
- this[BUFFERLENGTH] -= n
305
- }
306
-
307
- this.emit('data', chunk)
308
-
309
- if (!this[BUFFER].length && !this[EOF]) this.emit('drain')
310
-
311
- return chunk
312
- }
313
-
314
- end(chunk, encoding, cb) {
315
- if (typeof chunk === 'function') (cb = chunk), (chunk = null)
316
- if (typeof encoding === 'function') (cb = encoding), (encoding = 'utf8')
317
- if (chunk) this.write(chunk, encoding)
318
- if (cb) this.once('end', cb)
319
- this[EOF] = true
320
- this.writable = false
321
-
322
- // if we haven't written anything, then go ahead and emit,
323
- // even if we're not reading.
324
- // we'll re-emit if a new 'end' listener is added anyway.
325
- // This makes MP more suitable to write-only use cases.
326
- if (this.flowing || !this[PAUSED]) this[MAYBE_EMIT_END]()
327
- return this
328
- }
329
-
330
- // don't let the internal resume be overwritten
331
- [RESUME]() {
332
- if (this[DESTROYED]) return
333
-
334
- this[PAUSED] = false
335
- this[FLOWING] = true
336
- this.emit('resume')
337
- if (this[BUFFER].length) this[FLUSH]()
338
- else if (this[EOF]) this[MAYBE_EMIT_END]()
339
- else this.emit('drain')
340
- }
341
-
342
- resume() {
343
- return this[RESUME]()
344
- }
345
-
346
- pause() {
347
- this[FLOWING] = false
348
- this[PAUSED] = true
349
- }
350
-
351
- get destroyed() {
352
- return this[DESTROYED]
353
- }
354
-
355
- get flowing() {
356
- return this[FLOWING]
357
- }
358
-
359
- get paused() {
360
- return this[PAUSED]
361
- }
362
-
363
- [BUFFERPUSH](chunk) {
364
- if (this[OBJECTMODE]) this[BUFFERLENGTH] += 1
365
- else this[BUFFERLENGTH] += chunk.length
366
- this[BUFFER].push(chunk)
367
- }
368
-
369
- [BUFFERSHIFT]() {
370
- if (this[OBJECTMODE]) this[BUFFERLENGTH] -= 1
371
- else this[BUFFERLENGTH] -= this[BUFFER][0].length
372
- return this[BUFFER].shift()
373
- }
374
-
375
- [FLUSH](noDrain) {
376
- do {} while (this[FLUSHCHUNK](this[BUFFERSHIFT]()) && this[BUFFER].length)
377
-
378
- if (!noDrain && !this[BUFFER].length && !this[EOF]) this.emit('drain')
379
- }
380
-
381
- [FLUSHCHUNK](chunk) {
382
- this.emit('data', chunk)
383
- return this.flowing
384
- }
385
-
386
- pipe(dest, opts) {
387
- if (this[DESTROYED]) return
388
-
389
- const ended = this[EMITTED_END]
390
- opts = opts || {}
391
- if (dest === proc.stdout || dest === proc.stderr) opts.end = false
392
- else opts.end = opts.end !== false
393
- opts.proxyErrors = !!opts.proxyErrors
394
-
395
- // piping an ended stream ends immediately
396
- if (ended) {
397
- if (opts.end) dest.end()
398
- } else {
399
- this[PIPES].push(
400
- !opts.proxyErrors
401
- ? new Pipe(this, dest, opts)
402
- : new PipeProxyErrors(this, dest, opts)
403
- )
404
- if (this[ASYNC]) defer(() => this[RESUME]())
405
- else this[RESUME]()
406
- }
407
-
408
- return dest
409
- }
410
-
411
- unpipe(dest) {
412
- const p = this[PIPES].find(p => p.dest === dest)
413
- if (p) {
414
- this[PIPES].splice(this[PIPES].indexOf(p), 1)
415
- p.unpipe()
416
- }
417
- }
418
-
419
- addListener(ev, fn) {
420
- return this.on(ev, fn)
421
- }
422
-
423
- on(ev, fn) {
424
- const ret = super.on(ev, fn)
425
- if (ev === 'data' && !this[PIPES].length && !this.flowing) this[RESUME]()
426
- else if (ev === 'readable' && this[BUFFERLENGTH] !== 0)
427
- super.emit('readable')
428
- else if (isEndish(ev) && this[EMITTED_END]) {
429
- super.emit(ev)
430
- this.removeAllListeners(ev)
431
- } else if (ev === 'error' && this[EMITTED_ERROR]) {
432
- if (this[ASYNC]) defer(() => fn.call(this, this[EMITTED_ERROR]))
433
- else fn.call(this, this[EMITTED_ERROR])
434
- }
435
- return ret
436
- }
437
-
438
- get emittedEnd() {
439
- return this[EMITTED_END]
440
- }
441
-
442
- [MAYBE_EMIT_END]() {
443
- if (
444
- !this[EMITTING_END] &&
445
- !this[EMITTED_END] &&
446
- !this[DESTROYED] &&
447
- this[BUFFER].length === 0 &&
448
- this[EOF]
449
- ) {
450
- this[EMITTING_END] = true
451
- this.emit('end')
452
- this.emit('prefinish')
453
- this.emit('finish')
454
- if (this[CLOSED]) this.emit('close')
455
- this[EMITTING_END] = false
456
- }
457
- }
458
-
459
- emit(ev, data, ...extra) {
460
- // error and close are only events allowed after calling destroy()
461
- if (ev !== 'error' && ev !== 'close' && ev !== DESTROYED && this[DESTROYED])
462
- return
463
- else if (ev === 'data') {
464
- return !this[OBJECTMODE] && !data
465
- ? false
466
- : this[ASYNC]
467
- ? defer(() => this[EMITDATA](data))
468
- : this[EMITDATA](data)
469
- } else if (ev === 'end') {
470
- return this[EMITEND]()
471
- } else if (ev === 'close') {
472
- this[CLOSED] = true
473
- // don't emit close before 'end' and 'finish'
474
- if (!this[EMITTED_END] && !this[DESTROYED]) return
475
- const ret = super.emit('close')
476
- this.removeAllListeners('close')
477
- return ret
478
- } else if (ev === 'error') {
479
- this[EMITTED_ERROR] = data
480
- super.emit(ERROR, data)
481
- const ret =
482
- !this[SIGNAL] || this.listeners('error').length
483
- ? super.emit('error', data)
484
- : false
485
- this[MAYBE_EMIT_END]()
486
- return ret
487
- } else if (ev === 'resume') {
488
- const ret = super.emit('resume')
489
- this[MAYBE_EMIT_END]()
490
- return ret
491
- } else if (ev === 'finish' || ev === 'prefinish') {
492
- const ret = super.emit(ev)
493
- this.removeAllListeners(ev)
494
- return ret
495
- }
496
-
497
- // Some other unknown event
498
- const ret = super.emit(ev, data, ...extra)
499
- this[MAYBE_EMIT_END]()
500
- return ret
501
- }
502
-
503
- [EMITDATA](data) {
504
- for (const p of this[PIPES]) {
505
- if (p.dest.write(data) === false) this.pause()
506
- }
507
- const ret = super.emit('data', data)
508
- this[MAYBE_EMIT_END]()
509
- return ret
510
- }
511
-
512
- [EMITEND]() {
513
- if (this[EMITTED_END]) return
514
-
515
- this[EMITTED_END] = true
516
- this.readable = false
517
- if (this[ASYNC]) defer(() => this[EMITEND2]())
518
- else this[EMITEND2]()
519
- }
520
-
521
- [EMITEND2]() {
522
- if (this[DECODER]) {
523
- const data = this[DECODER].end()
524
- if (data) {
525
- for (const p of this[PIPES]) {
526
- p.dest.write(data)
527
- }
528
- super.emit('data', data)
529
- }
530
- }
531
-
532
- for (const p of this[PIPES]) {
533
- p.end()
534
- }
535
- const ret = super.emit('end')
536
- this.removeAllListeners('end')
537
- return ret
538
- }
539
-
540
- // const all = await stream.collect()
541
- collect() {
542
- const buf = []
543
- if (!this[OBJECTMODE]) buf.dataLength = 0
544
- // set the promise first, in case an error is raised
545
- // by triggering the flow here.
546
- const p = this.promise()
547
- this.on('data', c => {
548
- buf.push(c)
549
- if (!this[OBJECTMODE]) buf.dataLength += c.length
550
- })
551
- return p.then(() => buf)
552
- }
553
-
554
- // const data = await stream.concat()
555
- concat() {
556
- return this[OBJECTMODE]
557
- ? Promise.reject(new Error('cannot concat in objectMode'))
558
- : this.collect().then(buf =>
559
- this[OBJECTMODE]
560
- ? Promise.reject(new Error('cannot concat in objectMode'))
561
- : this[ENCODING]
562
- ? buf.join('')
563
- : Buffer.concat(buf, buf.dataLength)
564
- )
565
- }
566
-
567
- // stream.promise().then(() => done, er => emitted error)
568
- promise() {
569
- return new Promise((resolve, reject) => {
570
- this.on(DESTROYED, () => reject(new Error('stream destroyed')))
571
- this.on('error', er => reject(er))
572
- this.on('end', () => resolve())
573
- })
574
- }
575
-
576
- // for await (let chunk of stream)
577
- [ASYNCITERATOR]() {
578
- let stopped = false
579
- const stop = () => {
580
- this.pause()
581
- stopped = true
582
- return Promise.resolve({ done: true })
583
- }
584
- const next = () => {
585
- if (stopped) return stop()
586
- const res = this.read()
587
- if (res !== null) return Promise.resolve({ done: false, value: res })
588
-
589
- if (this[EOF]) return stop()
590
-
591
- let resolve = null
592
- let reject = null
593
- const onerr = er => {
594
- this.removeListener('data', ondata)
595
- this.removeListener('end', onend)
596
- this.removeListener(DESTROYED, ondestroy)
597
- stop()
598
- reject(er)
599
- }
600
- const ondata = value => {
601
- this.removeListener('error', onerr)
602
- this.removeListener('end', onend)
603
- this.removeListener(DESTROYED, ondestroy)
604
- this.pause()
605
- resolve({ value: value, done: !!this[EOF] })
606
- }
607
- const onend = () => {
608
- this.removeListener('error', onerr)
609
- this.removeListener('data', ondata)
610
- this.removeListener(DESTROYED, ondestroy)
611
- stop()
612
- resolve({ done: true })
613
- }
614
- const ondestroy = () => onerr(new Error('stream destroyed'))
615
- return new Promise((res, rej) => {
616
- reject = rej
617
- resolve = res
618
- this.once(DESTROYED, ondestroy)
619
- this.once('error', onerr)
620
- this.once('end', onend)
621
- this.once('data', ondata)
622
- })
623
- }
624
-
625
- return {
626
- next,
627
- throw: stop,
628
- return: stop,
629
- [ASYNCITERATOR]() {
630
- return this
631
- },
632
- }
633
- }
634
-
635
- // for (let chunk of stream)
636
- [ITERATOR]() {
637
- let stopped = false
638
- const stop = () => {
639
- this.pause()
640
- this.removeListener(ERROR, stop)
641
- this.removeListener(DESTROYED, stop)
642
- this.removeListener('end', stop)
643
- stopped = true
644
- return { done: true }
645
- }
646
-
647
- const next = () => {
648
- if (stopped) return stop()
649
- const value = this.read()
650
- return value === null ? stop() : { value }
651
- }
652
- this.once('end', stop)
653
- this.once(ERROR, stop)
654
- this.once(DESTROYED, stop)
655
-
656
- return {
657
- next,
658
- throw: stop,
659
- return: stop,
660
- [ITERATOR]() {
661
- return this
662
- },
663
- }
664
- }
665
-
666
- destroy(er) {
667
- if (this[DESTROYED]) {
668
- if (er) this.emit('error', er)
669
- else this.emit(DESTROYED)
670
- return this
671
- }
672
-
673
- this[DESTROYED] = true
674
-
675
- // throw away all buffered data, it's never coming out
676
- this[BUFFER].length = 0
677
- this[BUFFERLENGTH] = 0
678
-
679
- if (typeof this.close === 'function' && !this[CLOSED]) this.close()
680
-
681
- if (er) this.emit('error', er)
682
- // if no error to emit, still reject pending promises
683
- else this.emit(DESTROYED)
684
-
685
- return this
686
- }
687
-
688
- static isStream(s) {
689
- return (
690
- !!s &&
691
- (s instanceof Minipass ||
692
- s instanceof Stream ||
693
- (s instanceof EE &&
694
- // readable
695
- (typeof s.pipe === 'function' ||
696
- // writable
697
- (typeof s.write === 'function' && typeof s.end === 'function'))))
698
- )
699
- }
700
- }
701
-
702
- module.exports = Minipass