@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,1227 +0,0 @@
1
- const perf =
2
- typeof performance === 'object' &&
3
- performance &&
4
- typeof performance.now === 'function'
5
- ? performance
6
- : Date
7
-
8
- const hasAbortController = typeof AbortController === 'function'
9
-
10
- // minimal backwards-compatibility polyfill
11
- // this doesn't have nearly all the checks and whatnot that
12
- // actual AbortController/Signal has, but it's enough for
13
- // our purposes, and if used properly, behaves the same.
14
- const AC = hasAbortController
15
- ? AbortController
16
- : class AbortController {
17
- constructor() {
18
- this.signal = new AS()
19
- }
20
- abort(reason = new Error('This operation was aborted')) {
21
- this.signal.reason = this.signal.reason || reason
22
- this.signal.aborted = true
23
- this.signal.dispatchEvent({
24
- type: 'abort',
25
- target: this.signal,
26
- })
27
- }
28
- }
29
-
30
- const hasAbortSignal = typeof AbortSignal === 'function'
31
- // Some polyfills put this on the AC class, not global
32
- const hasACAbortSignal = typeof AC.AbortSignal === 'function'
33
- const AS = hasAbortSignal
34
- ? AbortSignal
35
- : hasACAbortSignal
36
- ? AC.AbortController
37
- : class AbortSignal {
38
- constructor() {
39
- this.reason = undefined
40
- this.aborted = false
41
- this._listeners = []
42
- }
43
- dispatchEvent(e) {
44
- if (e.type === 'abort') {
45
- this.aborted = true
46
- this.onabort(e)
47
- this._listeners.forEach(f => f(e), this)
48
- }
49
- }
50
- onabort() {}
51
- addEventListener(ev, fn) {
52
- if (ev === 'abort') {
53
- this._listeners.push(fn)
54
- }
55
- }
56
- removeEventListener(ev, fn) {
57
- if (ev === 'abort') {
58
- this._listeners = this._listeners.filter(f => f !== fn)
59
- }
60
- }
61
- }
62
-
63
- const warned = new Set()
64
- const deprecatedOption = (opt, instead) => {
65
- const code = `LRU_CACHE_OPTION_${opt}`
66
- if (shouldWarn(code)) {
67
- warn(code, `${opt} option`, `options.${instead}`, LRUCache)
68
- }
69
- }
70
- const deprecatedMethod = (method, instead) => {
71
- const code = `LRU_CACHE_METHOD_${method}`
72
- if (shouldWarn(code)) {
73
- const { prototype } = LRUCache
74
- const { get } = Object.getOwnPropertyDescriptor(prototype, method)
75
- warn(code, `${method} method`, `cache.${instead}()`, get)
76
- }
77
- }
78
- const deprecatedProperty = (field, instead) => {
79
- const code = `LRU_CACHE_PROPERTY_${field}`
80
- if (shouldWarn(code)) {
81
- const { prototype } = LRUCache
82
- const { get } = Object.getOwnPropertyDescriptor(prototype, field)
83
- warn(code, `${field} property`, `cache.${instead}`, get)
84
- }
85
- }
86
-
87
- const emitWarning = (...a) => {
88
- typeof process === 'object' &&
89
- process &&
90
- typeof process.emitWarning === 'function'
91
- ? process.emitWarning(...a)
92
- : console.error(...a)
93
- }
94
-
95
- const shouldWarn = code => !warned.has(code)
96
-
97
- const warn = (code, what, instead, fn) => {
98
- warned.add(code)
99
- const msg = `The ${what} is deprecated. Please use ${instead} instead.`
100
- emitWarning(msg, 'DeprecationWarning', code, fn)
101
- }
102
-
103
- const isPosInt = n => n && n === Math.floor(n) && n > 0 && isFinite(n)
104
-
105
- /* istanbul ignore next - This is a little bit ridiculous, tbh.
106
- * The maximum array length is 2^32-1 or thereabouts on most JS impls.
107
- * And well before that point, you're caching the entire world, I mean,
108
- * that's ~32GB of just integers for the next/prev links, plus whatever
109
- * else to hold that many keys and values. Just filling the memory with
110
- * zeroes at init time is brutal when you get that big.
111
- * But why not be complete?
112
- * Maybe in the future, these limits will have expanded. */
113
- const getUintArray = max =>
114
- !isPosInt(max)
115
- ? null
116
- : max <= Math.pow(2, 8)
117
- ? Uint8Array
118
- : max <= Math.pow(2, 16)
119
- ? Uint16Array
120
- : max <= Math.pow(2, 32)
121
- ? Uint32Array
122
- : max <= Number.MAX_SAFE_INTEGER
123
- ? ZeroArray
124
- : null
125
-
126
- class ZeroArray extends Array {
127
- constructor(size) {
128
- super(size)
129
- this.fill(0)
130
- }
131
- }
132
-
133
- class Stack {
134
- constructor(max) {
135
- if (max === 0) {
136
- return []
137
- }
138
- const UintArray = getUintArray(max)
139
- this.heap = new UintArray(max)
140
- this.length = 0
141
- }
142
- push(n) {
143
- this.heap[this.length++] = n
144
- }
145
- pop() {
146
- return this.heap[--this.length]
147
- }
148
- }
149
-
150
- class LRUCache {
151
- constructor(options = {}) {
152
- const {
153
- max = 0,
154
- ttl,
155
- ttlResolution = 1,
156
- ttlAutopurge,
157
- updateAgeOnGet,
158
- updateAgeOnHas,
159
- allowStale,
160
- dispose,
161
- disposeAfter,
162
- noDisposeOnSet,
163
- noUpdateTTL,
164
- maxSize = 0,
165
- maxEntrySize = 0,
166
- sizeCalculation,
167
- fetchMethod,
168
- fetchContext,
169
- noDeleteOnFetchRejection,
170
- noDeleteOnStaleGet,
171
- allowStaleOnFetchRejection,
172
- allowStaleOnFetchAbort,
173
- ignoreFetchAbort,
174
- } = options
175
-
176
- // deprecated options, don't trigger a warning for getting them if
177
- // the thing being passed in is another LRUCache we're copying.
178
- const { length, maxAge, stale } =
179
- options instanceof LRUCache ? {} : options
180
-
181
- if (max !== 0 && !isPosInt(max)) {
182
- throw new TypeError('max option must be a nonnegative integer')
183
- }
184
-
185
- const UintArray = max ? getUintArray(max) : Array
186
- if (!UintArray) {
187
- throw new Error('invalid max value: ' + max)
188
- }
189
-
190
- this.max = max
191
- this.maxSize = maxSize
192
- this.maxEntrySize = maxEntrySize || this.maxSize
193
- this.sizeCalculation = sizeCalculation || length
194
- if (this.sizeCalculation) {
195
- if (!this.maxSize && !this.maxEntrySize) {
196
- throw new TypeError(
197
- 'cannot set sizeCalculation without setting maxSize or maxEntrySize'
198
- )
199
- }
200
- if (typeof this.sizeCalculation !== 'function') {
201
- throw new TypeError('sizeCalculation set to non-function')
202
- }
203
- }
204
-
205
- this.fetchMethod = fetchMethod || null
206
- if (this.fetchMethod && typeof this.fetchMethod !== 'function') {
207
- throw new TypeError(
208
- 'fetchMethod must be a function if specified'
209
- )
210
- }
211
-
212
- this.fetchContext = fetchContext
213
- if (!this.fetchMethod && fetchContext !== undefined) {
214
- throw new TypeError(
215
- 'cannot set fetchContext without fetchMethod'
216
- )
217
- }
218
-
219
- this.keyMap = new Map()
220
- this.keyList = new Array(max).fill(null)
221
- this.valList = new Array(max).fill(null)
222
- this.next = new UintArray(max)
223
- this.prev = new UintArray(max)
224
- this.head = 0
225
- this.tail = 0
226
- this.free = new Stack(max)
227
- this.initialFill = 1
228
- this.size = 0
229
-
230
- if (typeof dispose === 'function') {
231
- this.dispose = dispose
232
- }
233
- if (typeof disposeAfter === 'function') {
234
- this.disposeAfter = disposeAfter
235
- this.disposed = []
236
- } else {
237
- this.disposeAfter = null
238
- this.disposed = null
239
- }
240
- this.noDisposeOnSet = !!noDisposeOnSet
241
- this.noUpdateTTL = !!noUpdateTTL
242
- this.noDeleteOnFetchRejection = !!noDeleteOnFetchRejection
243
- this.allowStaleOnFetchRejection = !!allowStaleOnFetchRejection
244
- this.allowStaleOnFetchAbort = !!allowStaleOnFetchAbort
245
- this.ignoreFetchAbort = !!ignoreFetchAbort
246
-
247
- // NB: maxEntrySize is set to maxSize if it's set
248
- if (this.maxEntrySize !== 0) {
249
- if (this.maxSize !== 0) {
250
- if (!isPosInt(this.maxSize)) {
251
- throw new TypeError(
252
- 'maxSize must be a positive integer if specified'
253
- )
254
- }
255
- }
256
- if (!isPosInt(this.maxEntrySize)) {
257
- throw new TypeError(
258
- 'maxEntrySize must be a positive integer if specified'
259
- )
260
- }
261
- this.initializeSizeTracking()
262
- }
263
-
264
- this.allowStale = !!allowStale || !!stale
265
- this.noDeleteOnStaleGet = !!noDeleteOnStaleGet
266
- this.updateAgeOnGet = !!updateAgeOnGet
267
- this.updateAgeOnHas = !!updateAgeOnHas
268
- this.ttlResolution =
269
- isPosInt(ttlResolution) || ttlResolution === 0
270
- ? ttlResolution
271
- : 1
272
- this.ttlAutopurge = !!ttlAutopurge
273
- this.ttl = ttl || maxAge || 0
274
- if (this.ttl) {
275
- if (!isPosInt(this.ttl)) {
276
- throw new TypeError(
277
- 'ttl must be a positive integer if specified'
278
- )
279
- }
280
- this.initializeTTLTracking()
281
- }
282
-
283
- // do not allow completely unbounded caches
284
- if (this.max === 0 && this.ttl === 0 && this.maxSize === 0) {
285
- throw new TypeError(
286
- 'At least one of max, maxSize, or ttl is required'
287
- )
288
- }
289
- if (!this.ttlAutopurge && !this.max && !this.maxSize) {
290
- const code = 'LRU_CACHE_UNBOUNDED'
291
- if (shouldWarn(code)) {
292
- warned.add(code)
293
- const msg =
294
- 'TTL caching without ttlAutopurge, max, or maxSize can ' +
295
- 'result in unbounded memory consumption.'
296
- emitWarning(msg, 'UnboundedCacheWarning', code, LRUCache)
297
- }
298
- }
299
-
300
- if (stale) {
301
- deprecatedOption('stale', 'allowStale')
302
- }
303
- if (maxAge) {
304
- deprecatedOption('maxAge', 'ttl')
305
- }
306
- if (length) {
307
- deprecatedOption('length', 'sizeCalculation')
308
- }
309
- }
310
-
311
- getRemainingTTL(key) {
312
- return this.has(key, { updateAgeOnHas: false }) ? Infinity : 0
313
- }
314
-
315
- initializeTTLTracking() {
316
- this.ttls = new ZeroArray(this.max)
317
- this.starts = new ZeroArray(this.max)
318
-
319
- this.setItemTTL = (index, ttl, start = perf.now()) => {
320
- this.starts[index] = ttl !== 0 ? start : 0
321
- this.ttls[index] = ttl
322
- if (ttl !== 0 && this.ttlAutopurge) {
323
- const t = setTimeout(() => {
324
- if (this.isStale(index)) {
325
- this.delete(this.keyList[index])
326
- }
327
- }, ttl + 1)
328
- /* istanbul ignore else - unref() not supported on all platforms */
329
- if (t.unref) {
330
- t.unref()
331
- }
332
- }
333
- }
334
-
335
- this.updateItemAge = index => {
336
- this.starts[index] = this.ttls[index] !== 0 ? perf.now() : 0
337
- }
338
-
339
- this.statusTTL = (status, index) => {
340
- if (status) {
341
- status.ttl = this.ttls[index]
342
- status.start = this.starts[index]
343
- status.now = cachedNow || getNow()
344
- status.remainingTTL = status.now + status.ttl - status.start
345
- }
346
- }
347
-
348
- // debounce calls to perf.now() to 1s so we're not hitting
349
- // that costly call repeatedly.
350
- let cachedNow = 0
351
- const getNow = () => {
352
- const n = perf.now()
353
- if (this.ttlResolution > 0) {
354
- cachedNow = n
355
- const t = setTimeout(
356
- () => (cachedNow = 0),
357
- this.ttlResolution
358
- )
359
- /* istanbul ignore else - not available on all platforms */
360
- if (t.unref) {
361
- t.unref()
362
- }
363
- }
364
- return n
365
- }
366
-
367
- this.getRemainingTTL = key => {
368
- const index = this.keyMap.get(key)
369
- if (index === undefined) {
370
- return 0
371
- }
372
- return this.ttls[index] === 0 || this.starts[index] === 0
373
- ? Infinity
374
- : this.starts[index] +
375
- this.ttls[index] -
376
- (cachedNow || getNow())
377
- }
378
-
379
- this.isStale = index => {
380
- return (
381
- this.ttls[index] !== 0 &&
382
- this.starts[index] !== 0 &&
383
- (cachedNow || getNow()) - this.starts[index] >
384
- this.ttls[index]
385
- )
386
- }
387
- }
388
- updateItemAge(_index) {}
389
- statusTTL(_status, _index) {}
390
- setItemTTL(_index, _ttl, _start) {}
391
- isStale(_index) {
392
- return false
393
- }
394
-
395
- initializeSizeTracking() {
396
- this.calculatedSize = 0
397
- this.sizes = new ZeroArray(this.max)
398
- this.removeItemSize = index => {
399
- this.calculatedSize -= this.sizes[index]
400
- this.sizes[index] = 0
401
- }
402
- this.requireSize = (k, v, size, sizeCalculation) => {
403
- // provisionally accept background fetches.
404
- // actual value size will be checked when they return.
405
- if (this.isBackgroundFetch(v)) {
406
- return 0
407
- }
408
- if (!isPosInt(size)) {
409
- if (sizeCalculation) {
410
- if (typeof sizeCalculation !== 'function') {
411
- throw new TypeError('sizeCalculation must be a function')
412
- }
413
- size = sizeCalculation(v, k)
414
- if (!isPosInt(size)) {
415
- throw new TypeError(
416
- 'sizeCalculation return invalid (expect positive integer)'
417
- )
418
- }
419
- } else {
420
- throw new TypeError(
421
- 'invalid size value (must be positive integer). ' +
422
- 'When maxSize or maxEntrySize is used, sizeCalculation or size ' +
423
- 'must be set.'
424
- )
425
- }
426
- }
427
- return size
428
- }
429
- this.addItemSize = (index, size, status) => {
430
- this.sizes[index] = size
431
- if (this.maxSize) {
432
- const maxSize = this.maxSize - this.sizes[index]
433
- while (this.calculatedSize > maxSize) {
434
- this.evict(true)
435
- }
436
- }
437
- this.calculatedSize += this.sizes[index]
438
- if (status) {
439
- status.entrySize = size
440
- status.totalCalculatedSize = this.calculatedSize
441
- }
442
- }
443
- }
444
- removeItemSize(_index) {}
445
- addItemSize(_index, _size) {}
446
- requireSize(_k, _v, size, sizeCalculation) {
447
- if (size || sizeCalculation) {
448
- throw new TypeError(
449
- 'cannot set size without setting maxSize or maxEntrySize on cache'
450
- )
451
- }
452
- }
453
-
454
- *indexes({ allowStale = this.allowStale } = {}) {
455
- if (this.size) {
456
- for (let i = this.tail; true; ) {
457
- if (!this.isValidIndex(i)) {
458
- break
459
- }
460
- if (allowStale || !this.isStale(i)) {
461
- yield i
462
- }
463
- if (i === this.head) {
464
- break
465
- } else {
466
- i = this.prev[i]
467
- }
468
- }
469
- }
470
- }
471
-
472
- *rindexes({ allowStale = this.allowStale } = {}) {
473
- if (this.size) {
474
- for (let i = this.head; true; ) {
475
- if (!this.isValidIndex(i)) {
476
- break
477
- }
478
- if (allowStale || !this.isStale(i)) {
479
- yield i
480
- }
481
- if (i === this.tail) {
482
- break
483
- } else {
484
- i = this.next[i]
485
- }
486
- }
487
- }
488
- }
489
-
490
- isValidIndex(index) {
491
- return (
492
- index !== undefined &&
493
- this.keyMap.get(this.keyList[index]) === index
494
- )
495
- }
496
-
497
- *entries() {
498
- for (const i of this.indexes()) {
499
- if (
500
- this.valList[i] !== undefined &&
501
- this.keyList[i] !== undefined &&
502
- !this.isBackgroundFetch(this.valList[i])
503
- ) {
504
- yield [this.keyList[i], this.valList[i]]
505
- }
506
- }
507
- }
508
- *rentries() {
509
- for (const i of this.rindexes()) {
510
- if (
511
- this.valList[i] !== undefined &&
512
- this.keyList[i] !== undefined &&
513
- !this.isBackgroundFetch(this.valList[i])
514
- ) {
515
- yield [this.keyList[i], this.valList[i]]
516
- }
517
- }
518
- }
519
-
520
- *keys() {
521
- for (const i of this.indexes()) {
522
- if (
523
- this.keyList[i] !== undefined &&
524
- !this.isBackgroundFetch(this.valList[i])
525
- ) {
526
- yield this.keyList[i]
527
- }
528
- }
529
- }
530
- *rkeys() {
531
- for (const i of this.rindexes()) {
532
- if (
533
- this.keyList[i] !== undefined &&
534
- !this.isBackgroundFetch(this.valList[i])
535
- ) {
536
- yield this.keyList[i]
537
- }
538
- }
539
- }
540
-
541
- *values() {
542
- for (const i of this.indexes()) {
543
- if (
544
- this.valList[i] !== undefined &&
545
- !this.isBackgroundFetch(this.valList[i])
546
- ) {
547
- yield this.valList[i]
548
- }
549
- }
550
- }
551
- *rvalues() {
552
- for (const i of this.rindexes()) {
553
- if (
554
- this.valList[i] !== undefined &&
555
- !this.isBackgroundFetch(this.valList[i])
556
- ) {
557
- yield this.valList[i]
558
- }
559
- }
560
- }
561
-
562
- [Symbol.iterator]() {
563
- return this.entries()
564
- }
565
-
566
- find(fn, getOptions) {
567
- for (const i of this.indexes()) {
568
- const v = this.valList[i]
569
- const value = this.isBackgroundFetch(v)
570
- ? v.__staleWhileFetching
571
- : v
572
- if (value === undefined) continue
573
- if (fn(value, this.keyList[i], this)) {
574
- return this.get(this.keyList[i], getOptions)
575
- }
576
- }
577
- }
578
-
579
- forEach(fn, thisp = this) {
580
- for (const i of this.indexes()) {
581
- const v = this.valList[i]
582
- const value = this.isBackgroundFetch(v)
583
- ? v.__staleWhileFetching
584
- : v
585
- if (value === undefined) continue
586
- fn.call(thisp, value, this.keyList[i], this)
587
- }
588
- }
589
-
590
- rforEach(fn, thisp = this) {
591
- for (const i of this.rindexes()) {
592
- const v = this.valList[i]
593
- const value = this.isBackgroundFetch(v)
594
- ? v.__staleWhileFetching
595
- : v
596
- if (value === undefined) continue
597
- fn.call(thisp, value, this.keyList[i], this)
598
- }
599
- }
600
-
601
- get prune() {
602
- deprecatedMethod('prune', 'purgeStale')
603
- return this.purgeStale
604
- }
605
-
606
- purgeStale() {
607
- let deleted = false
608
- for (const i of this.rindexes({ allowStale: true })) {
609
- if (this.isStale(i)) {
610
- this.delete(this.keyList[i])
611
- deleted = true
612
- }
613
- }
614
- return deleted
615
- }
616
-
617
- dump() {
618
- const arr = []
619
- for (const i of this.indexes({ allowStale: true })) {
620
- const key = this.keyList[i]
621
- const v = this.valList[i]
622
- const value = this.isBackgroundFetch(v)
623
- ? v.__staleWhileFetching
624
- : v
625
- if (value === undefined) continue
626
- const entry = { value }
627
- if (this.ttls) {
628
- entry.ttl = this.ttls[i]
629
- // always dump the start relative to a portable timestamp
630
- // it's ok for this to be a bit slow, it's a rare operation.
631
- const age = perf.now() - this.starts[i]
632
- entry.start = Math.floor(Date.now() - age)
633
- }
634
- if (this.sizes) {
635
- entry.size = this.sizes[i]
636
- }
637
- arr.unshift([key, entry])
638
- }
639
- return arr
640
- }
641
-
642
- load(arr) {
643
- this.clear()
644
- for (const [key, entry] of arr) {
645
- if (entry.start) {
646
- // entry.start is a portable timestamp, but we may be using
647
- // node's performance.now(), so calculate the offset.
648
- // it's ok for this to be a bit slow, it's a rare operation.
649
- const age = Date.now() - entry.start
650
- entry.start = perf.now() - age
651
- }
652
- this.set(key, entry.value, entry)
653
- }
654
- }
655
-
656
- dispose(_v, _k, _reason) {}
657
-
658
- set(
659
- k,
660
- v,
661
- {
662
- ttl = this.ttl,
663
- start,
664
- noDisposeOnSet = this.noDisposeOnSet,
665
- size = 0,
666
- sizeCalculation = this.sizeCalculation,
667
- noUpdateTTL = this.noUpdateTTL,
668
- status,
669
- } = {}
670
- ) {
671
- size = this.requireSize(k, v, size, sizeCalculation)
672
- // if the item doesn't fit, don't do anything
673
- // NB: maxEntrySize set to maxSize by default
674
- if (this.maxEntrySize && size > this.maxEntrySize) {
675
- if (status) {
676
- status.set = 'miss'
677
- status.maxEntrySizeExceeded = true
678
- }
679
- // have to delete, in case a background fetch is there already.
680
- // in non-async cases, this is a no-op
681
- this.delete(k)
682
- return this
683
- }
684
- let index = this.size === 0 ? undefined : this.keyMap.get(k)
685
- if (index === undefined) {
686
- // addition
687
- index = this.newIndex()
688
- this.keyList[index] = k
689
- this.valList[index] = v
690
- this.keyMap.set(k, index)
691
- this.next[this.tail] = index
692
- this.prev[index] = this.tail
693
- this.tail = index
694
- this.size++
695
- this.addItemSize(index, size, status)
696
- if (status) {
697
- status.set = 'add'
698
- }
699
- noUpdateTTL = false
700
- } else {
701
- // update
702
- this.moveToTail(index)
703
- const oldVal = this.valList[index]
704
- if (v !== oldVal) {
705
- if (this.isBackgroundFetch(oldVal)) {
706
- oldVal.__abortController.abort(new Error('replaced'))
707
- } else {
708
- if (!noDisposeOnSet) {
709
- this.dispose(oldVal, k, 'set')
710
- if (this.disposeAfter) {
711
- this.disposed.push([oldVal, k, 'set'])
712
- }
713
- }
714
- }
715
- this.removeItemSize(index)
716
- this.valList[index] = v
717
- this.addItemSize(index, size, status)
718
- if (status) {
719
- status.set = 'replace'
720
- const oldValue =
721
- oldVal && this.isBackgroundFetch(oldVal)
722
- ? oldVal.__staleWhileFetching
723
- : oldVal
724
- if (oldValue !== undefined) status.oldValue = oldValue
725
- }
726
- } else if (status) {
727
- status.set = 'update'
728
- }
729
- }
730
- if (ttl !== 0 && this.ttl === 0 && !this.ttls) {
731
- this.initializeTTLTracking()
732
- }
733
- if (!noUpdateTTL) {
734
- this.setItemTTL(index, ttl, start)
735
- }
736
- this.statusTTL(status, index)
737
- if (this.disposeAfter) {
738
- while (this.disposed.length) {
739
- this.disposeAfter(...this.disposed.shift())
740
- }
741
- }
742
- return this
743
- }
744
-
745
- newIndex() {
746
- if (this.size === 0) {
747
- return this.tail
748
- }
749
- if (this.size === this.max && this.max !== 0) {
750
- return this.evict(false)
751
- }
752
- if (this.free.length !== 0) {
753
- return this.free.pop()
754
- }
755
- // initial fill, just keep writing down the list
756
- return this.initialFill++
757
- }
758
-
759
- pop() {
760
- if (this.size) {
761
- const val = this.valList[this.head]
762
- this.evict(true)
763
- return val
764
- }
765
- }
766
-
767
- evict(free) {
768
- const head = this.head
769
- const k = this.keyList[head]
770
- const v = this.valList[head]
771
- if (this.isBackgroundFetch(v)) {
772
- v.__abortController.abort(new Error('evicted'))
773
- } else {
774
- this.dispose(v, k, 'evict')
775
- if (this.disposeAfter) {
776
- this.disposed.push([v, k, 'evict'])
777
- }
778
- }
779
- this.removeItemSize(head)
780
- // if we aren't about to use the index, then null these out
781
- if (free) {
782
- this.keyList[head] = null
783
- this.valList[head] = null
784
- this.free.push(head)
785
- }
786
- this.head = this.next[head]
787
- this.keyMap.delete(k)
788
- this.size--
789
- return head
790
- }
791
-
792
- has(k, { updateAgeOnHas = this.updateAgeOnHas, status } = {}) {
793
- const index = this.keyMap.get(k)
794
- if (index !== undefined) {
795
- if (!this.isStale(index)) {
796
- if (updateAgeOnHas) {
797
- this.updateItemAge(index)
798
- }
799
- if (status) status.has = 'hit'
800
- this.statusTTL(status, index)
801
- return true
802
- } else if (status) {
803
- status.has = 'stale'
804
- this.statusTTL(status, index)
805
- }
806
- } else if (status) {
807
- status.has = 'miss'
808
- }
809
- return false
810
- }
811
-
812
- // like get(), but without any LRU updating or TTL expiration
813
- peek(k, { allowStale = this.allowStale } = {}) {
814
- const index = this.keyMap.get(k)
815
- if (index !== undefined && (allowStale || !this.isStale(index))) {
816
- const v = this.valList[index]
817
- // either stale and allowed, or forcing a refresh of non-stale value
818
- return this.isBackgroundFetch(v) ? v.__staleWhileFetching : v
819
- }
820
- }
821
-
822
- backgroundFetch(k, index, options, context) {
823
- const v = index === undefined ? undefined : this.valList[index]
824
- if (this.isBackgroundFetch(v)) {
825
- return v
826
- }
827
- const ac = new AC()
828
- if (options.signal) {
829
- options.signal.addEventListener('abort', () =>
830
- ac.abort(options.signal.reason)
831
- )
832
- }
833
- const fetchOpts = {
834
- signal: ac.signal,
835
- options,
836
- context,
837
- }
838
- const cb = (v, updateCache = false) => {
839
- const { aborted } = ac.signal
840
- const ignoreAbort = options.ignoreFetchAbort && v !== undefined
841
- if (options.status) {
842
- if (aborted && !updateCache) {
843
- options.status.fetchAborted = true
844
- options.status.fetchError = ac.signal.reason
845
- if (ignoreAbort) options.status.fetchAbortIgnored = true
846
- } else {
847
- options.status.fetchResolved = true
848
- }
849
- }
850
- if (aborted && !ignoreAbort && !updateCache) {
851
- return fetchFail(ac.signal.reason)
852
- }
853
- // either we didn't abort, and are still here, or we did, and ignored
854
- if (this.valList[index] === p) {
855
- if (v === undefined) {
856
- if (p.__staleWhileFetching) {
857
- this.valList[index] = p.__staleWhileFetching
858
- } else {
859
- this.delete(k)
860
- }
861
- } else {
862
- if (options.status) options.status.fetchUpdated = true
863
- this.set(k, v, fetchOpts.options)
864
- }
865
- }
866
- return v
867
- }
868
- const eb = er => {
869
- if (options.status) {
870
- options.status.fetchRejected = true
871
- options.status.fetchError = er
872
- }
873
- return fetchFail(er)
874
- }
875
- const fetchFail = er => {
876
- const { aborted } = ac.signal
877
- const allowStaleAborted =
878
- aborted && options.allowStaleOnFetchAbort
879
- const allowStale =
880
- allowStaleAborted || options.allowStaleOnFetchRejection
881
- const noDelete = allowStale || options.noDeleteOnFetchRejection
882
- if (this.valList[index] === p) {
883
- // if we allow stale on fetch rejections, then we need to ensure that
884
- // the stale value is not removed from the cache when the fetch fails.
885
- const del = !noDelete || p.__staleWhileFetching === undefined
886
- if (del) {
887
- this.delete(k)
888
- } else if (!allowStaleAborted) {
889
- // still replace the *promise* with the stale value,
890
- // since we are done with the promise at this point.
891
- // leave it untouched if we're still waiting for an
892
- // aborted background fetch that hasn't yet returned.
893
- this.valList[index] = p.__staleWhileFetching
894
- }
895
- }
896
- if (allowStale) {
897
- if (options.status && p.__staleWhileFetching !== undefined) {
898
- options.status.returnedStale = true
899
- }
900
- return p.__staleWhileFetching
901
- } else if (p.__returned === p) {
902
- throw er
903
- }
904
- }
905
- const pcall = (res, rej) => {
906
- this.fetchMethod(k, v, fetchOpts).then(v => res(v), rej)
907
- // ignored, we go until we finish, regardless.
908
- // defer check until we are actually aborting,
909
- // so fetchMethod can override.
910
- ac.signal.addEventListener('abort', () => {
911
- if (
912
- !options.ignoreFetchAbort ||
913
- options.allowStaleOnFetchAbort
914
- ) {
915
- res()
916
- // when it eventually resolves, update the cache.
917
- if (options.allowStaleOnFetchAbort) {
918
- res = v => cb(v, true)
919
- }
920
- }
921
- })
922
- }
923
- if (options.status) options.status.fetchDispatched = true
924
- const p = new Promise(pcall).then(cb, eb)
925
- p.__abortController = ac
926
- p.__staleWhileFetching = v
927
- p.__returned = null
928
- if (index === undefined) {
929
- // internal, don't expose status.
930
- this.set(k, p, { ...fetchOpts.options, status: undefined })
931
- index = this.keyMap.get(k)
932
- } else {
933
- this.valList[index] = p
934
- }
935
- return p
936
- }
937
-
938
- isBackgroundFetch(p) {
939
- return (
940
- p &&
941
- typeof p === 'object' &&
942
- typeof p.then === 'function' &&
943
- Object.prototype.hasOwnProperty.call(
944
- p,
945
- '__staleWhileFetching'
946
- ) &&
947
- Object.prototype.hasOwnProperty.call(p, '__returned') &&
948
- (p.__returned === p || p.__returned === null)
949
- )
950
- }
951
-
952
- // this takes the union of get() and set() opts, because it does both
953
- async fetch(
954
- k,
955
- {
956
- // get options
957
- allowStale = this.allowStale,
958
- updateAgeOnGet = this.updateAgeOnGet,
959
- noDeleteOnStaleGet = this.noDeleteOnStaleGet,
960
- // set options
961
- ttl = this.ttl,
962
- noDisposeOnSet = this.noDisposeOnSet,
963
- size = 0,
964
- sizeCalculation = this.sizeCalculation,
965
- noUpdateTTL = this.noUpdateTTL,
966
- // fetch exclusive options
967
- noDeleteOnFetchRejection = this.noDeleteOnFetchRejection,
968
- allowStaleOnFetchRejection = this.allowStaleOnFetchRejection,
969
- ignoreFetchAbort = this.ignoreFetchAbort,
970
- allowStaleOnFetchAbort = this.allowStaleOnFetchAbort,
971
- fetchContext = this.fetchContext,
972
- forceRefresh = false,
973
- status,
974
- signal,
975
- } = {}
976
- ) {
977
- if (!this.fetchMethod) {
978
- if (status) status.fetch = 'get'
979
- return this.get(k, {
980
- allowStale,
981
- updateAgeOnGet,
982
- noDeleteOnStaleGet,
983
- status,
984
- })
985
- }
986
-
987
- const options = {
988
- allowStale,
989
- updateAgeOnGet,
990
- noDeleteOnStaleGet,
991
- ttl,
992
- noDisposeOnSet,
993
- size,
994
- sizeCalculation,
995
- noUpdateTTL,
996
- noDeleteOnFetchRejection,
997
- allowStaleOnFetchRejection,
998
- allowStaleOnFetchAbort,
999
- ignoreFetchAbort,
1000
- status,
1001
- signal,
1002
- }
1003
-
1004
- let index = this.keyMap.get(k)
1005
- if (index === undefined) {
1006
- if (status) status.fetch = 'miss'
1007
- const p = this.backgroundFetch(k, index, options, fetchContext)
1008
- return (p.__returned = p)
1009
- } else {
1010
- // in cache, maybe already fetching
1011
- const v = this.valList[index]
1012
- if (this.isBackgroundFetch(v)) {
1013
- const stale =
1014
- allowStale && v.__staleWhileFetching !== undefined
1015
- if (status) {
1016
- status.fetch = 'inflight'
1017
- if (stale) status.returnedStale = true
1018
- }
1019
- return stale ? v.__staleWhileFetching : (v.__returned = v)
1020
- }
1021
-
1022
- // if we force a refresh, that means do NOT serve the cached value,
1023
- // unless we are already in the process of refreshing the cache.
1024
- const isStale = this.isStale(index)
1025
- if (!forceRefresh && !isStale) {
1026
- if (status) status.fetch = 'hit'
1027
- this.moveToTail(index)
1028
- if (updateAgeOnGet) {
1029
- this.updateItemAge(index)
1030
- }
1031
- this.statusTTL(status, index)
1032
- return v
1033
- }
1034
-
1035
- // ok, it is stale or a forced refresh, and not already fetching.
1036
- // refresh the cache.
1037
- const p = this.backgroundFetch(k, index, options, fetchContext)
1038
- const hasStale = p.__staleWhileFetching !== undefined
1039
- const staleVal = hasStale && allowStale
1040
- if (status) {
1041
- status.fetch = hasStale && isStale ? 'stale' : 'refresh'
1042
- if (staleVal && isStale) status.returnedStale = true
1043
- }
1044
- return staleVal ? p.__staleWhileFetching : (p.__returned = p)
1045
- }
1046
- }
1047
-
1048
- get(
1049
- k,
1050
- {
1051
- allowStale = this.allowStale,
1052
- updateAgeOnGet = this.updateAgeOnGet,
1053
- noDeleteOnStaleGet = this.noDeleteOnStaleGet,
1054
- status,
1055
- } = {}
1056
- ) {
1057
- const index = this.keyMap.get(k)
1058
- if (index !== undefined) {
1059
- const value = this.valList[index]
1060
- const fetching = this.isBackgroundFetch(value)
1061
- this.statusTTL(status, index)
1062
- if (this.isStale(index)) {
1063
- if (status) status.get = 'stale'
1064
- // delete only if not an in-flight background fetch
1065
- if (!fetching) {
1066
- if (!noDeleteOnStaleGet) {
1067
- this.delete(k)
1068
- }
1069
- if (status) status.returnedStale = allowStale
1070
- return allowStale ? value : undefined
1071
- } else {
1072
- if (status) {
1073
- status.returnedStale =
1074
- allowStale && value.__staleWhileFetching !== undefined
1075
- }
1076
- return allowStale ? value.__staleWhileFetching : undefined
1077
- }
1078
- } else {
1079
- if (status) status.get = 'hit'
1080
- // if we're currently fetching it, we don't actually have it yet
1081
- // it's not stale, which means this isn't a staleWhileRefetching.
1082
- // If it's not stale, and fetching, AND has a __staleWhileFetching
1083
- // value, then that means the user fetched with {forceRefresh:true},
1084
- // so it's safe to return that value.
1085
- if (fetching) {
1086
- return value.__staleWhileFetching
1087
- }
1088
- this.moveToTail(index)
1089
- if (updateAgeOnGet) {
1090
- this.updateItemAge(index)
1091
- }
1092
- return value
1093
- }
1094
- } else if (status) {
1095
- status.get = 'miss'
1096
- }
1097
- }
1098
-
1099
- connect(p, n) {
1100
- this.prev[n] = p
1101
- this.next[p] = n
1102
- }
1103
-
1104
- moveToTail(index) {
1105
- // if tail already, nothing to do
1106
- // if head, move head to next[index]
1107
- // else
1108
- // move next[prev[index]] to next[index] (head has no prev)
1109
- // move prev[next[index]] to prev[index]
1110
- // prev[index] = tail
1111
- // next[tail] = index
1112
- // tail = index
1113
- if (index !== this.tail) {
1114
- if (index === this.head) {
1115
- this.head = this.next[index]
1116
- } else {
1117
- this.connect(this.prev[index], this.next[index])
1118
- }
1119
- this.connect(this.tail, index)
1120
- this.tail = index
1121
- }
1122
- }
1123
-
1124
- get del() {
1125
- deprecatedMethod('del', 'delete')
1126
- return this.delete
1127
- }
1128
-
1129
- delete(k) {
1130
- let deleted = false
1131
- if (this.size !== 0) {
1132
- const index = this.keyMap.get(k)
1133
- if (index !== undefined) {
1134
- deleted = true
1135
- if (this.size === 1) {
1136
- this.clear()
1137
- } else {
1138
- this.removeItemSize(index)
1139
- const v = this.valList[index]
1140
- if (this.isBackgroundFetch(v)) {
1141
- v.__abortController.abort(new Error('deleted'))
1142
- } else {
1143
- this.dispose(v, k, 'delete')
1144
- if (this.disposeAfter) {
1145
- this.disposed.push([v, k, 'delete'])
1146
- }
1147
- }
1148
- this.keyMap.delete(k)
1149
- this.keyList[index] = null
1150
- this.valList[index] = null
1151
- if (index === this.tail) {
1152
- this.tail = this.prev[index]
1153
- } else if (index === this.head) {
1154
- this.head = this.next[index]
1155
- } else {
1156
- this.next[this.prev[index]] = this.next[index]
1157
- this.prev[this.next[index]] = this.prev[index]
1158
- }
1159
- this.size--
1160
- this.free.push(index)
1161
- }
1162
- }
1163
- }
1164
- if (this.disposed) {
1165
- while (this.disposed.length) {
1166
- this.disposeAfter(...this.disposed.shift())
1167
- }
1168
- }
1169
- return deleted
1170
- }
1171
-
1172
- clear() {
1173
- for (const index of this.rindexes({ allowStale: true })) {
1174
- const v = this.valList[index]
1175
- if (this.isBackgroundFetch(v)) {
1176
- v.__abortController.abort(new Error('deleted'))
1177
- } else {
1178
- const k = this.keyList[index]
1179
- this.dispose(v, k, 'delete')
1180
- if (this.disposeAfter) {
1181
- this.disposed.push([v, k, 'delete'])
1182
- }
1183
- }
1184
- }
1185
-
1186
- this.keyMap.clear()
1187
- this.valList.fill(null)
1188
- this.keyList.fill(null)
1189
- if (this.ttls) {
1190
- this.ttls.fill(0)
1191
- this.starts.fill(0)
1192
- }
1193
- if (this.sizes) {
1194
- this.sizes.fill(0)
1195
- }
1196
- this.head = 0
1197
- this.tail = 0
1198
- this.initialFill = 1
1199
- this.free.length = 0
1200
- this.calculatedSize = 0
1201
- this.size = 0
1202
- if (this.disposed) {
1203
- while (this.disposed.length) {
1204
- this.disposeAfter(...this.disposed.shift())
1205
- }
1206
- }
1207
- }
1208
-
1209
- get reset() {
1210
- deprecatedMethod('reset', 'clear')
1211
- return this.clear
1212
- }
1213
-
1214
- get length() {
1215
- deprecatedProperty('length', 'size')
1216
- return this.size
1217
- }
1218
-
1219
- static get AbortController() {
1220
- return AC
1221
- }
1222
- static get AbortSignal() {
1223
- return AS
1224
- }
1225
- }
1226
-
1227
- module.exports = LRUCache