@openclaw/msteams 2026.5.27 → 2026.5.28-beta.2

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 (701) hide show
  1. package/dist/api.js +2 -2
  2. package/dist/{channel-c7nnGfMx.js → channel-C_AMaSpi.js} +5 -5
  3. package/dist/channel-config-api.js +1 -1
  4. package/dist/channel-plugin-api.js +1 -1
  5. package/dist/{channel.runtime-Boha-kk1.js → channel.runtime-BJJ1R1iY.js} +3 -3
  6. package/dist/{config-schema-CuksCQKC.js → config-schema-BL4qQZiA.js} +8 -0
  7. package/dist/{graph-users-uPAE6-KQ.js → errors-B4snzfP5.js} +378 -624
  8. package/dist/{oauth-C5ObhLG6.js → oauth-BrKjrCNK.js} +1 -1
  9. package/dist/{oauth.token-BNbWziwM.js → oauth.token-5ygi8ycy.js} +8 -6
  10. package/dist/{probe-istgFnuw.js → probe-DRwI-ZqW.js} +221 -120
  11. package/dist/setup-plugin-api.js +3 -3
  12. package/dist/{setup-surface-evwYex71.js → setup-surface-C-uCiIKh.js} +2 -2
  13. package/dist/{src-ui0zJEZI.js → src-Cc3f8Zi2.js} +786 -994
  14. package/node_modules/@microsoft/teams.api/dist/activities/activity.d.mts +0 -1
  15. package/node_modules/@microsoft/teams.api/dist/activities/activity.d.ts +0 -1
  16. package/node_modules/@microsoft/teams.api/dist/activities/activity.js +0 -4
  17. package/node_modules/@microsoft/teams.api/dist/activities/activity.js.map +1 -1
  18. package/node_modules/@microsoft/teams.api/dist/activities/activity.mjs +0 -4
  19. package/node_modules/@microsoft/teams.api/dist/activities/activity.mjs.map +1 -1
  20. package/node_modules/@microsoft/teams.api/dist/activities/index.d.mts +3 -2
  21. package/node_modules/@microsoft/teams.api/dist/activities/index.d.ts +3 -2
  22. package/node_modules/@microsoft/teams.api/dist/activities/invoke/index.d.mts +3 -2
  23. package/node_modules/@microsoft/teams.api/dist/activities/invoke/index.d.ts +3 -2
  24. package/node_modules/@microsoft/teams.api/dist/activities/invoke/index.js +7 -0
  25. package/node_modules/@microsoft/teams.api/dist/activities/invoke/index.mjs +1 -0
  26. package/node_modules/@microsoft/teams.api/dist/activities/invoke/message-extension/fetch-task.d.mts +3 -2
  27. package/node_modules/@microsoft/teams.api/dist/activities/invoke/message-extension/fetch-task.d.ts +3 -2
  28. package/node_modules/@microsoft/teams.api/dist/activities/invoke/message-extension/index.d.mts +3 -2
  29. package/node_modules/@microsoft/teams.api/dist/activities/invoke/message-extension/index.d.ts +3 -2
  30. package/node_modules/@microsoft/teams.api/dist/activities/invoke/message-extension/submit-action.d.mts +3 -2
  31. package/node_modules/@microsoft/teams.api/dist/activities/invoke/message-extension/submit-action.d.ts +3 -2
  32. package/node_modules/@microsoft/teams.api/dist/activities/invoke/suggested-action-submit.d.mts +48 -0
  33. package/node_modules/@microsoft/teams.api/dist/activities/invoke/suggested-action-submit.d.ts +48 -0
  34. package/node_modules/@microsoft/teams.api/dist/activities/invoke/suggested-action-submit.js +4 -0
  35. package/node_modules/@microsoft/teams.api/dist/activities/invoke/suggested-action-submit.js.map +1 -0
  36. package/node_modules/@microsoft/teams.api/dist/activities/invoke/suggested-action-submit.mjs +3 -0
  37. package/node_modules/@microsoft/teams.api/dist/activities/invoke/suggested-action-submit.mjs.map +1 -0
  38. package/node_modules/@microsoft/teams.api/dist/activities/message/index.d.mts +3 -3
  39. package/node_modules/@microsoft/teams.api/dist/activities/message/index.d.ts +3 -3
  40. package/node_modules/@microsoft/teams.api/dist/activities/message/message.d.mts +2 -2
  41. package/node_modules/@microsoft/teams.api/dist/activities/message/message.d.ts +2 -2
  42. package/node_modules/@microsoft/teams.api/dist/activities/message/message.js +60 -2
  43. package/node_modules/@microsoft/teams.api/dist/activities/message/message.js.map +1 -1
  44. package/node_modules/@microsoft/teams.api/dist/activities/message/message.mjs +60 -2
  45. package/node_modules/@microsoft/teams.api/dist/activities/message/message.mjs.map +1 -1
  46. package/node_modules/@microsoft/teams.api/dist/activities/utils/index.d.mts +4 -3
  47. package/node_modules/@microsoft/teams.api/dist/activities/utils/index.d.ts +4 -3
  48. package/node_modules/@microsoft/teams.api/dist/activities/utils/strip-mentions-text.d.mts +2 -2
  49. package/node_modules/@microsoft/teams.api/dist/activities/utils/strip-mentions-text.d.ts +2 -2
  50. package/node_modules/@microsoft/teams.api/dist/activities/utils/to-activity-params.d.mts +4 -3
  51. package/node_modules/@microsoft/teams.api/dist/activities/utils/to-activity-params.d.ts +4 -3
  52. package/node_modules/@microsoft/teams.api/dist/{activity-Be6r1tJJ.d.ts → activity-DzKP6phL.d.ts} +3 -2
  53. package/node_modules/@microsoft/teams.api/dist/{activity-CJery-zL.d.mts → activity-KJJs2q-W.d.mts} +3 -2
  54. package/node_modules/@microsoft/teams.api/dist/auth/json-web-token.d.mts +14 -0
  55. package/node_modules/@microsoft/teams.api/dist/auth/json-web-token.d.ts +14 -0
  56. package/node_modules/@microsoft/teams.api/dist/auth/json-web-token.js +14 -0
  57. package/node_modules/@microsoft/teams.api/dist/auth/json-web-token.js.map +1 -1
  58. package/node_modules/@microsoft/teams.api/dist/auth/json-web-token.mjs +14 -0
  59. package/node_modules/@microsoft/teams.api/dist/auth/json-web-token.mjs.map +1 -1
  60. package/node_modules/@microsoft/teams.api/dist/clients/conversation/activity.d.mts +4 -3
  61. package/node_modules/@microsoft/teams.api/dist/clients/conversation/activity.d.ts +4 -3
  62. package/node_modules/@microsoft/teams.api/dist/clients/conversation/index.d.mts +4 -3
  63. package/node_modules/@microsoft/teams.api/dist/clients/conversation/index.d.ts +4 -3
  64. package/node_modules/@microsoft/teams.api/dist/clients/index.d.mts +4 -3
  65. package/node_modules/@microsoft/teams.api/dist/clients/index.d.ts +4 -3
  66. package/node_modules/@microsoft/teams.api/dist/index.d.mts +3 -2
  67. package/node_modules/@microsoft/teams.api/dist/index.d.ts +3 -2
  68. package/node_modules/@microsoft/teams.api/dist/{message-BwI6kmCe.d.ts → message-D0n_F-cL.d.ts} +37 -1
  69. package/node_modules/@microsoft/teams.api/dist/{message-Bd75JRjv.d.mts → message-DTEe5v6q.d.mts} +37 -1
  70. package/node_modules/@microsoft/teams.api/dist/models/activity-like.d.mts +4 -3
  71. package/node_modules/@microsoft/teams.api/dist/models/activity-like.d.ts +4 -3
  72. package/node_modules/@microsoft/teams.api/dist/models/card/card-action.d.mts +8 -1
  73. package/node_modules/@microsoft/teams.api/dist/models/card/card-action.d.ts +8 -1
  74. package/node_modules/@microsoft/teams.api/dist/models/index.d.mts +3 -2
  75. package/node_modules/@microsoft/teams.api/dist/models/index.d.ts +3 -2
  76. package/node_modules/@microsoft/teams.api/dist/models/invoke-response.d.mts +5 -3
  77. package/node_modules/@microsoft/teams.api/dist/models/invoke-response.d.ts +5 -3
  78. package/node_modules/@microsoft/teams.api/dist/models/invoke-response.js.map +1 -1
  79. package/node_modules/@microsoft/teams.api/dist/models/invoke-response.mjs.map +1 -1
  80. package/node_modules/@microsoft/teams.api/dist/models/messaging-extension/index.d.mts +4 -3
  81. package/node_modules/@microsoft/teams.api/dist/models/messaging-extension/index.d.ts +4 -3
  82. package/node_modules/@microsoft/teams.api/dist/models/messaging-extension/messaging-extension-action-response.d.mts +4 -3
  83. package/node_modules/@microsoft/teams.api/dist/models/messaging-extension/messaging-extension-action-response.d.ts +4 -3
  84. package/node_modules/@microsoft/teams.api/dist/models/messaging-extension/messaging-extension-action.d.mts +4 -3
  85. package/node_modules/@microsoft/teams.api/dist/models/messaging-extension/messaging-extension-action.d.ts +4 -3
  86. package/node_modules/@microsoft/teams.api/dist/models/messaging-extension/messaging-extension-response.d.mts +4 -3
  87. package/node_modules/@microsoft/teams.api/dist/models/messaging-extension/messaging-extension-response.d.ts +4 -3
  88. package/node_modules/@microsoft/teams.api/dist/models/messaging-extension/messaging-extension-result.d.mts +4 -3
  89. package/node_modules/@microsoft/teams.api/dist/models/messaging-extension/messaging-extension-result.d.ts +4 -3
  90. package/node_modules/@microsoft/teams.api/package.json +5 -5
  91. package/node_modules/@microsoft/teams.apps/dist/contexts/activity.d.ts +27 -2
  92. package/node_modules/@microsoft/teams.apps/dist/contexts/activity.js +119 -58
  93. package/node_modules/@microsoft/teams.apps/dist/contexts/activity.test.js +235 -33
  94. package/node_modules/@microsoft/teams.apps/dist/http/express-adapter.d.ts +8 -1
  95. package/node_modules/@microsoft/teams.apps/dist/http/express-adapter.js +10 -4
  96. package/node_modules/@microsoft/teams.apps/dist/http/http-server.js +14 -1
  97. package/node_modules/@microsoft/teams.apps/dist/http/http-stream.d.ts +77 -46
  98. package/node_modules/@microsoft/teams.apps/dist/http/http-stream.js +31 -16
  99. package/node_modules/@microsoft/teams.apps/dist/routes/invoke/index.d.ts +1 -0
  100. package/node_modules/@microsoft/teams.apps/dist/routes/invoke/index.js +2 -1
  101. package/node_modules/@microsoft/teams.apps/dist/types/app-routing.d.ts +2 -2
  102. package/node_modules/@microsoft/teams.apps/dist/types/streamer.d.ts +9 -0
  103. package/node_modules/@microsoft/teams.apps/package.json +5 -5
  104. package/node_modules/@microsoft/teams.cards/dist/actions/submit/collab-stage.js.map +1 -1
  105. package/node_modules/@microsoft/teams.cards/dist/actions/submit/collab-stage.mjs.map +1 -1
  106. package/node_modules/@microsoft/teams.cards/dist/actions/submit/im-back.js.map +1 -1
  107. package/node_modules/@microsoft/teams.cards/dist/actions/submit/im-back.mjs.map +1 -1
  108. package/node_modules/@microsoft/teams.cards/dist/actions/submit/invoke.js.map +1 -1
  109. package/node_modules/@microsoft/teams.cards/dist/actions/submit/invoke.mjs.map +1 -1
  110. package/node_modules/@microsoft/teams.cards/dist/actions/submit/message-back.d.mts +1 -1
  111. package/node_modules/@microsoft/teams.cards/dist/actions/submit/message-back.d.ts +1 -1
  112. package/node_modules/@microsoft/teams.cards/dist/actions/submit/message-back.js.map +1 -1
  113. package/node_modules/@microsoft/teams.cards/dist/actions/submit/message-back.mjs.map +1 -1
  114. package/node_modules/@microsoft/teams.cards/dist/actions/submit/sign-in.js.map +1 -1
  115. package/node_modules/@microsoft/teams.cards/dist/actions/submit/sign-in.mjs.map +1 -1
  116. package/node_modules/@microsoft/teams.cards/dist/actions/submit/task-fetch.js.map +1 -1
  117. package/node_modules/@microsoft/teams.cards/dist/actions/submit/task-fetch.mjs.map +1 -1
  118. package/node_modules/@microsoft/teams.cards/package.json +2 -2
  119. package/node_modules/@microsoft/teams.common/dist/events/event-emitter.d.mts +2 -2
  120. package/node_modules/@microsoft/teams.common/dist/events/event-emitter.d.ts +2 -2
  121. package/node_modules/@microsoft/teams.common/dist/events/event-emitter.js.map +1 -1
  122. package/node_modules/@microsoft/teams.common/dist/events/event-emitter.mjs.map +1 -1
  123. package/node_modules/@microsoft/teams.common/dist/http/client.d.mts +1 -1
  124. package/node_modules/@microsoft/teams.common/dist/http/client.d.ts +1 -1
  125. package/node_modules/@microsoft/teams.common/dist/http/client.js +3 -1
  126. package/node_modules/@microsoft/teams.common/dist/http/client.js.map +1 -1
  127. package/node_modules/@microsoft/teams.common/dist/http/client.mjs +3 -1
  128. package/node_modules/@microsoft/teams.common/dist/http/client.mjs.map +1 -1
  129. package/node_modules/@microsoft/teams.common/dist/logging/console.d.mts +1 -1
  130. package/node_modules/@microsoft/teams.common/dist/logging/console.d.ts +1 -1
  131. package/node_modules/@microsoft/teams.common/dist/logging/console.js +3 -1
  132. package/node_modules/@microsoft/teams.common/dist/logging/console.js.map +1 -1
  133. package/node_modules/@microsoft/teams.common/dist/logging/console.mjs +3 -1
  134. package/node_modules/@microsoft/teams.common/dist/logging/console.mjs.map +1 -1
  135. package/node_modules/@microsoft/teams.common/dist/logging/string.js.map +1 -1
  136. package/node_modules/@microsoft/teams.common/dist/logging/string.mjs.map +1 -1
  137. package/node_modules/@microsoft/teams.common/dist/storage/list-local-storage.js.map +1 -1
  138. package/node_modules/@microsoft/teams.common/dist/storage/list-local-storage.mjs.map +1 -1
  139. package/node_modules/@microsoft/teams.common/dist/storage/local-storage.js.map +1 -1
  140. package/node_modules/@microsoft/teams.common/dist/storage/local-storage.mjs.map +1 -1
  141. package/node_modules/@microsoft/teams.common/package.json +2 -2
  142. package/node_modules/@microsoft/teams.graph/dist/index.js +2 -2
  143. package/node_modules/@microsoft/teams.graph/dist/index.mjs +2 -2
  144. package/node_modules/@microsoft/teams.graph/package.json +4 -4
  145. package/node_modules/jose/README.md +62 -83
  146. package/node_modules/jose/dist/types/index.d.ts +48 -55
  147. package/node_modules/jose/dist/types/jwe/compact/decrypt.d.ts +4 -12
  148. package/node_modules/jose/dist/types/jwe/compact/encrypt.d.ts +9 -22
  149. package/node_modules/jose/dist/types/jwe/flattened/decrypt.d.ts +4 -12
  150. package/node_modules/jose/dist/types/jwe/flattened/encrypt.d.ts +21 -24
  151. package/node_modules/jose/dist/types/jwe/general/decrypt.d.ts +4 -19
  152. package/node_modules/jose/dist/types/jwe/general/encrypt.d.ts +21 -35
  153. package/node_modules/jose/dist/types/jwk/embedded.d.ts +2 -10
  154. package/node_modules/jose/dist/types/jwk/thumbprint.d.ts +5 -16
  155. package/node_modules/jose/dist/types/jwks/local.d.ts +13 -16
  156. package/node_modules/jose/dist/types/jwks/remote.d.ts +16 -204
  157. package/node_modules/jose/dist/types/jws/compact/sign.d.ts +6 -18
  158. package/node_modules/jose/dist/types/jws/compact/verify.d.ts +5 -13
  159. package/node_modules/jose/dist/types/jws/flattened/sign.d.ts +8 -18
  160. package/node_modules/jose/dist/types/jws/flattened/verify.d.ts +5 -13
  161. package/node_modules/jose/dist/types/jws/general/sign.d.ts +12 -24
  162. package/node_modules/jose/dist/types/jws/general/verify.d.ts +5 -21
  163. package/node_modules/jose/dist/types/jwt/decrypt.d.ts +5 -13
  164. package/node_modules/jose/dist/types/jwt/encrypt.d.ts +17 -31
  165. package/node_modules/jose/dist/types/jwt/sign.d.ts +6 -26
  166. package/node_modules/jose/dist/types/jwt/unsecured.d.ts +7 -29
  167. package/node_modules/jose/dist/types/jwt/verify.d.ts +6 -14
  168. package/node_modules/jose/dist/types/key/export.d.ts +12 -24
  169. package/node_modules/jose/dist/types/key/generate_key_pair.d.ts +11 -22
  170. package/node_modules/jose/dist/types/key/generate_secret.d.ts +8 -24
  171. package/node_modules/jose/dist/types/key/import.d.ts +33 -62
  172. package/node_modules/jose/dist/types/types.d.ts +165 -407
  173. package/node_modules/jose/dist/types/util/base64url.d.ts +16 -6
  174. package/node_modules/jose/dist/types/util/decode_jwt.d.ts +2 -10
  175. package/node_modules/jose/dist/types/util/decode_protected_header.d.ts +2 -11
  176. package/node_modules/jose/dist/types/util/errors.d.ts +36 -98
  177. package/node_modules/jose/package.json +17 -127
  178. package/node_modules/jwks-rsa/package.json +4 -4
  179. package/node_modules/jwks-rsa/src/integrations/config.js +1 -0
  180. package/node_modules/jwks-rsa/src/utils.js +2 -0
  181. package/node_modules/jwks-rsa/src/wrappers/cache.js +1 -1
  182. package/node_modules/lru-cache/README.md +117 -420
  183. package/node_modules/lru-cache/package.json +12 -132
  184. package/node_modules/lru-memoizer/README.md +21 -22
  185. package/node_modules/lru-memoizer/lib/async.d.ts +32 -15
  186. package/node_modules/lru-memoizer/lib/async.js +113 -55
  187. package/node_modules/lru-memoizer/lib/freeze.d.ts +0 -1
  188. package/node_modules/lru-memoizer/lib/freeze.js +1 -1
  189. package/node_modules/lru-memoizer/lib/index.d.ts +0 -1
  190. package/node_modules/lru-memoizer/lib/index.js +2 -2
  191. package/node_modules/lru-memoizer/lib/sync.d.ts +16 -17
  192. package/node_modules/lru-memoizer/lib/sync.js +62 -34
  193. package/node_modules/lru-memoizer/lib/util.d.ts +40 -41
  194. package/node_modules/lru-memoizer/lib/util.js +1 -1
  195. package/node_modules/lru-memoizer/package.json +4 -3
  196. package/node_modules/lru-memoizer/test/lru-memoizer.clone.test.js +1 -2
  197. package/node_modules/lru-memoizer/test/lru-memoizer.freeze.test.js +0 -1
  198. package/node_modules/lru-memoizer/test/lru-memoizer.itemmaxage.test.js +26 -26
  199. package/node_modules/lru-memoizer/test/lru-memoizer.nokey.test.js +0 -1
  200. package/node_modules/lru-memoizer/test/lru-memoizer.queumaxage.test.js +3 -4
  201. package/node_modules/lru-memoizer/test/lru-memoizer.sync.clone.test.js +2 -4
  202. package/node_modules/lru-memoizer/test/lru-memoizer.sync.freeze.js +2 -4
  203. package/node_modules/lru-memoizer/tsconfig.json +56 -16
  204. package/node_modules/semver/classes/range.js +7 -0
  205. package/node_modules/semver/package.json +1 -1
  206. package/node_modules/semver/ranges/subset.js +2 -2
  207. package/npm-shrinkwrap.json +52 -98
  208. package/openclaw.plugin.json +21 -0
  209. package/package.json +6 -10
  210. package/dist/test-api.js +0 -2
  211. package/node_modules/@microsoft/teams.apps/node_modules/jose/LICENSE.md +0 -21
  212. package/node_modules/@microsoft/teams.apps/node_modules/jose/README.md +0 -132
  213. package/node_modules/@microsoft/teams.apps/node_modules/jose/dist/types/index.d.ts +0 -48
  214. package/node_modules/@microsoft/teams.apps/node_modules/jose/dist/types/jwe/compact/decrypt.d.ts +0 -23
  215. package/node_modules/@microsoft/teams.apps/node_modules/jose/dist/types/jwe/compact/encrypt.d.ts +0 -52
  216. package/node_modules/@microsoft/teams.apps/node_modules/jose/dist/types/jwe/flattened/decrypt.d.ts +0 -23
  217. package/node_modules/@microsoft/teams.apps/node_modules/jose/dist/types/jwe/flattened/encrypt.d.ts +0 -80
  218. package/node_modules/@microsoft/teams.apps/node_modules/jose/dist/types/jwe/general/decrypt.d.ts +0 -23
  219. package/node_modules/@microsoft/teams.apps/node_modules/jose/dist/types/jwe/general/encrypt.d.ts +0 -60
  220. package/node_modules/@microsoft/teams.apps/node_modules/jose/dist/types/jwk/embedded.d.ts +0 -9
  221. package/node_modules/@microsoft/teams.apps/node_modules/jose/dist/types/jwk/thumbprint.d.ts +0 -21
  222. package/node_modules/@microsoft/teams.apps/node_modules/jose/dist/types/jwks/local.d.ts +0 -26
  223. package/node_modules/@microsoft/teams.apps/node_modules/jose/dist/types/jwks/remote.d.ts +0 -49
  224. package/node_modules/@microsoft/teams.apps/node_modules/jose/dist/types/jws/compact/sign.d.ts +0 -24
  225. package/node_modules/@microsoft/teams.apps/node_modules/jose/dist/types/jws/compact/verify.d.ts +0 -25
  226. package/node_modules/@microsoft/teams.apps/node_modules/jose/dist/types/jws/flattened/sign.d.ts +0 -32
  227. package/node_modules/@microsoft/teams.apps/node_modules/jose/dist/types/jws/flattened/verify.d.ts +0 -25
  228. package/node_modules/@microsoft/teams.apps/node_modules/jose/dist/types/jws/general/sign.d.ts +0 -41
  229. package/node_modules/@microsoft/teams.apps/node_modules/jose/dist/types/jws/general/verify.d.ts +0 -25
  230. package/node_modules/@microsoft/teams.apps/node_modules/jose/dist/types/jwt/decrypt.d.ts +0 -27
  231. package/node_modules/@microsoft/teams.apps/node_modules/jose/dist/types/jwt/encrypt.d.ts +0 -77
  232. package/node_modules/@microsoft/teams.apps/node_modules/jose/dist/types/jwt/sign.d.ts +0 -23
  233. package/node_modules/@microsoft/teams.apps/node_modules/jose/dist/types/jwt/unsecured.d.ts +0 -21
  234. package/node_modules/@microsoft/teams.apps/node_modules/jose/dist/types/jwt/verify.d.ts +0 -29
  235. package/node_modules/@microsoft/teams.apps/node_modules/jose/dist/types/key/export.d.ts +0 -21
  236. package/node_modules/@microsoft/teams.apps/node_modules/jose/dist/types/key/generate_key_pair.d.ts +0 -36
  237. package/node_modules/@microsoft/teams.apps/node_modules/jose/dist/types/key/generate_secret.d.ts +0 -19
  238. package/node_modules/@microsoft/teams.apps/node_modules/jose/dist/types/key/import.d.ts +0 -54
  239. package/node_modules/@microsoft/teams.apps/node_modules/jose/dist/types/types.d.ts +0 -610
  240. package/node_modules/@microsoft/teams.apps/node_modules/jose/dist/types/util/base64url.d.ts +0 -19
  241. package/node_modules/@microsoft/teams.apps/node_modules/jose/dist/types/util/decode_jwt.d.ts +0 -10
  242. package/node_modules/@microsoft/teams.apps/node_modules/jose/dist/types/util/decode_protected_header.d.ts +0 -8
  243. package/node_modules/@microsoft/teams.apps/node_modules/jose/dist/types/util/errors.d.ts +0 -151
  244. package/node_modules/@microsoft/teams.apps/node_modules/jose/package.json +0 -90
  245. package/node_modules/@microsoft/teams.apps/node_modules/jwks-rsa/LICENSE +0 -21
  246. package/node_modules/@microsoft/teams.apps/node_modules/jwks-rsa/README.md +0 -84
  247. package/node_modules/@microsoft/teams.apps/node_modules/jwks-rsa/index.d.ts +0 -139
  248. package/node_modules/@microsoft/teams.apps/node_modules/jwks-rsa/package.json +0 -74
  249. package/node_modules/@microsoft/teams.apps/node_modules/jwks-rsa/src/JwksClient.js +0 -91
  250. package/node_modules/@microsoft/teams.apps/node_modules/jwks-rsa/src/errors/ArgumentError.js +0 -10
  251. package/node_modules/@microsoft/teams.apps/node_modules/jwks-rsa/src/errors/JwksError.js +0 -10
  252. package/node_modules/@microsoft/teams.apps/node_modules/jwks-rsa/src/errors/JwksRateLimitError.js +0 -10
  253. package/node_modules/@microsoft/teams.apps/node_modules/jwks-rsa/src/errors/SigningKeyNotFoundError.js +0 -10
  254. package/node_modules/@microsoft/teams.apps/node_modules/jwks-rsa/src/errors/index.js +0 -6
  255. package/node_modules/@microsoft/teams.apps/node_modules/jwks-rsa/src/index.js +0 -22
  256. package/node_modules/@microsoft/teams.apps/node_modules/jwks-rsa/src/integrations/config.js +0 -15
  257. package/node_modules/@microsoft/teams.apps/node_modules/jwks-rsa/src/integrations/express.js +0 -60
  258. package/node_modules/@microsoft/teams.apps/node_modules/jwks-rsa/src/integrations/hapi.js +0 -59
  259. package/node_modules/@microsoft/teams.apps/node_modules/jwks-rsa/src/integrations/koa.js +0 -30
  260. package/node_modules/@microsoft/teams.apps/node_modules/jwks-rsa/src/integrations/passport.js +0 -52
  261. package/node_modules/@microsoft/teams.apps/node_modules/jwks-rsa/src/utils.js +0 -80
  262. package/node_modules/@microsoft/teams.apps/node_modules/jwks-rsa/src/wrappers/cache.js +0 -15
  263. package/node_modules/@microsoft/teams.apps/node_modules/jwks-rsa/src/wrappers/callbackSupport.js +0 -16
  264. package/node_modules/@microsoft/teams.apps/node_modules/jwks-rsa/src/wrappers/index.js +0 -7
  265. package/node_modules/@microsoft/teams.apps/node_modules/jwks-rsa/src/wrappers/interceptor.js +0 -30
  266. package/node_modules/@microsoft/teams.apps/node_modules/jwks-rsa/src/wrappers/rateLimit.js +0 -34
  267. package/node_modules/@microsoft/teams.apps/node_modules/jwks-rsa/src/wrappers/request.js +0 -54
  268. package/node_modules/@microsoft/teams.apps/node_modules/lru-cache/README.md +0 -166
  269. package/node_modules/@microsoft/teams.apps/node_modules/lru-cache/package.json +0 -34
  270. package/node_modules/@microsoft/teams.apps/node_modules/lru-memoizer/.jshintrc +0 -41
  271. package/node_modules/@microsoft/teams.apps/node_modules/lru-memoizer/LICENSE +0 -21
  272. package/node_modules/@microsoft/teams.apps/node_modules/lru-memoizer/README.md +0 -88
  273. package/node_modules/@microsoft/teams.apps/node_modules/lru-memoizer/lib/async.d.ts +0 -85
  274. package/node_modules/@microsoft/teams.apps/node_modules/lru-memoizer/lib/async.js +0 -178
  275. package/node_modules/@microsoft/teams.apps/node_modules/lru-memoizer/lib/freeze.d.ts +0 -1
  276. package/node_modules/@microsoft/teams.apps/node_modules/lru-memoizer/lib/freeze.js +0 -23
  277. package/node_modules/@microsoft/teams.apps/node_modules/lru-memoizer/lib/index.d.ts +0 -2
  278. package/node_modules/@microsoft/teams.apps/node_modules/lru-memoizer/lib/index.js +0 -4
  279. package/node_modules/@microsoft/teams.apps/node_modules/lru-memoizer/lib/sync.d.ts +0 -65
  280. package/node_modules/@microsoft/teams.apps/node_modules/lru-memoizer/lib/sync.js +0 -114
  281. package/node_modules/@microsoft/teams.apps/node_modules/lru-memoizer/lib/util.d.ts +0 -162
  282. package/node_modules/@microsoft/teams.apps/node_modules/lru-memoizer/lib/util.js +0 -3
  283. package/node_modules/@microsoft/teams.apps/node_modules/lru-memoizer/package.json +0 -34
  284. package/node_modules/@microsoft/teams.apps/node_modules/lru-memoizer/test/lru-memoizer.bypass.test.js +0 -39
  285. package/node_modules/@microsoft/teams.apps/node_modules/lru-memoizer/test/lru-memoizer.clone.test.js +0 -44
  286. package/node_modules/@microsoft/teams.apps/node_modules/lru-memoizer/test/lru-memoizer.disable.test.js +0 -49
  287. package/node_modules/@microsoft/teams.apps/node_modules/lru-memoizer/test/lru-memoizer.events.test.js +0 -132
  288. package/node_modules/@microsoft/teams.apps/node_modules/lru-memoizer/test/lru-memoizer.freeze.test.js +0 -43
  289. package/node_modules/@microsoft/teams.apps/node_modules/lru-memoizer/test/lru-memoizer.itemmaxage.test.js +0 -204
  290. package/node_modules/@microsoft/teams.apps/node_modules/lru-memoizer/test/lru-memoizer.lock.test.js +0 -36
  291. package/node_modules/@microsoft/teams.apps/node_modules/lru-memoizer/test/lru-memoizer.nokey.test.js +0 -43
  292. package/node_modules/@microsoft/teams.apps/node_modules/lru-memoizer/test/lru-memoizer.queumaxage.test.js +0 -110
  293. package/node_modules/@microsoft/teams.apps/node_modules/lru-memoizer/test/lru-memoizer.sync.clone.test.js +0 -76
  294. package/node_modules/@microsoft/teams.apps/node_modules/lru-memoizer/test/lru-memoizer.sync.events.test.js +0 -95
  295. package/node_modules/@microsoft/teams.apps/node_modules/lru-memoizer/test/lru-memoizer.sync.freeze.js +0 -74
  296. package/node_modules/@microsoft/teams.apps/node_modules/lru-memoizer/test/lru-memoizer.sync.test.js +0 -47
  297. package/node_modules/@microsoft/teams.apps/node_modules/lru-memoizer/test/lru-memoizer.test.js +0 -88
  298. package/node_modules/@microsoft/teams.apps/node_modules/lru-memoizer/tsconfig.json +0 -59
  299. package/node_modules/jose/dist/webapi/index.js +0 -32
  300. package/node_modules/jose/dist/webapi/jwe/compact/decrypt.js +0 -27
  301. package/node_modules/jose/dist/webapi/jwe/compact/encrypt.js +0 -27
  302. package/node_modules/jose/dist/webapi/jwe/flattened/decrypt.js +0 -159
  303. package/node_modules/jose/dist/webapi/jwe/flattened/encrypt.js +0 -167
  304. package/node_modules/jose/dist/webapi/jwe/general/decrypt.js +0 -31
  305. package/node_modules/jose/dist/webapi/jwe/general/encrypt.js +0 -182
  306. package/node_modules/jose/dist/webapi/jwk/embedded.js +0 -17
  307. package/node_modules/jose/dist/webapi/jwk/thumbprint.js +0 -68
  308. package/node_modules/jose/dist/webapi/jwks/local.js +0 -119
  309. package/node_modules/jose/dist/webapi/jwks/remote.js +0 -179
  310. package/node_modules/jose/dist/webapi/jws/compact/sign.js +0 -18
  311. package/node_modules/jose/dist/webapi/jws/compact/verify.js +0 -21
  312. package/node_modules/jose/dist/webapi/jws/flattened/sign.js +0 -89
  313. package/node_modules/jose/dist/webapi/jws/flattened/verify.js +0 -110
  314. package/node_modules/jose/dist/webapi/jws/general/sign.js +0 -70
  315. package/node_modules/jose/dist/webapi/jws/general/verify.js +0 -24
  316. package/node_modules/jose/dist/webapi/jwt/decrypt.js +0 -23
  317. package/node_modules/jose/dist/webapi/jwt/encrypt.js +0 -101
  318. package/node_modules/jose/dist/webapi/jwt/sign.js +0 -52
  319. package/node_modules/jose/dist/webapi/jwt/unsecured.js +0 -63
  320. package/node_modules/jose/dist/webapi/jwt/verify.js +0 -15
  321. package/node_modules/jose/dist/webapi/key/export.js +0 -11
  322. package/node_modules/jose/dist/webapi/key/generate_key_pair.js +0 -97
  323. package/node_modules/jose/dist/webapi/key/generate_secret.js +0 -40
  324. package/node_modules/jose/dist/webapi/key/import.js +0 -57
  325. package/node_modules/jose/dist/webapi/lib/aesgcmkw.js +0 -15
  326. package/node_modules/jose/dist/webapi/lib/aeskw.js +0 -25
  327. package/node_modules/jose/dist/webapi/lib/asn1.js +0 -243
  328. package/node_modules/jose/dist/webapi/lib/base64.js +0 -22
  329. package/node_modules/jose/dist/webapi/lib/buffer_utils.js +0 -43
  330. package/node_modules/jose/dist/webapi/lib/check_key_type.js +0 -122
  331. package/node_modules/jose/dist/webapi/lib/content_encryption.js +0 -217
  332. package/node_modules/jose/dist/webapi/lib/crypto_key.js +0 -136
  333. package/node_modules/jose/dist/webapi/lib/deflate.js +0 -44
  334. package/node_modules/jose/dist/webapi/lib/ecdhes.js +0 -52
  335. package/node_modules/jose/dist/webapi/lib/helpers.js +0 -19
  336. package/node_modules/jose/dist/webapi/lib/invalid_key_input.js +0 -27
  337. package/node_modules/jose/dist/webapi/lib/is_key_like.js +0 -17
  338. package/node_modules/jose/dist/webapi/lib/jwk_to_key.js +0 -107
  339. package/node_modules/jose/dist/webapi/lib/jwt_claims_set.js +0 -238
  340. package/node_modules/jose/dist/webapi/lib/key_management.js +0 -186
  341. package/node_modules/jose/dist/webapi/lib/key_to_jwk.js +0 -31
  342. package/node_modules/jose/dist/webapi/lib/normalize_key.js +0 -166
  343. package/node_modules/jose/dist/webapi/lib/pbes2kw.js +0 -42
  344. package/node_modules/jose/dist/webapi/lib/rsaes.js +0 -24
  345. package/node_modules/jose/dist/webapi/lib/signing.js +0 -68
  346. package/node_modules/jose/dist/webapi/lib/type_checks.js +0 -40
  347. package/node_modules/jose/dist/webapi/lib/validate_algorithms.js +0 -10
  348. package/node_modules/jose/dist/webapi/lib/validate_crit.js +0 -33
  349. package/node_modules/jose/dist/webapi/util/base64url.js +0 -30
  350. package/node_modules/jose/dist/webapi/util/decode_jwt.js +0 -32
  351. package/node_modules/jose/dist/webapi/util/decode_protected_header.js +0 -34
  352. package/node_modules/jose/dist/webapi/util/errors.js +0 -99
  353. package/node_modules/lru-cache/LICENSE.md +0 -55
  354. package/node_modules/lru-cache/dist/commonjs/browser/diagnostics-channel-browser.d.ts.map +0 -1
  355. package/node_modules/lru-cache/dist/commonjs/browser/diagnostics-channel-browser.js.map +0 -1
  356. package/node_modules/lru-cache/dist/commonjs/browser/diagnostics-channel.d.ts +0 -5
  357. package/node_modules/lru-cache/dist/commonjs/browser/diagnostics-channel.js +0 -7
  358. package/node_modules/lru-cache/dist/commonjs/browser/index.d.ts +0 -1400
  359. package/node_modules/lru-cache/dist/commonjs/browser/index.d.ts.map +0 -1
  360. package/node_modules/lru-cache/dist/commonjs/browser/index.js +0 -1726
  361. package/node_modules/lru-cache/dist/commonjs/browser/index.js.map +0 -1
  362. package/node_modules/lru-cache/dist/commonjs/browser/index.min.js +0 -2
  363. package/node_modules/lru-cache/dist/commonjs/browser/index.min.js.map +0 -7
  364. package/node_modules/lru-cache/dist/commonjs/browser/perf.d.ts +0 -12
  365. package/node_modules/lru-cache/dist/commonjs/browser/perf.d.ts.map +0 -1
  366. package/node_modules/lru-cache/dist/commonjs/browser/perf.js +0 -10
  367. package/node_modules/lru-cache/dist/commonjs/browser/perf.js.map +0 -1
  368. package/node_modules/lru-cache/dist/commonjs/diagnostics-channel-cjs.cjs.map +0 -1
  369. package/node_modules/lru-cache/dist/commonjs/diagnostics-channel-cjs.d.cts.map +0 -1
  370. package/node_modules/lru-cache/dist/commonjs/diagnostics-channel.d.ts +0 -5
  371. package/node_modules/lru-cache/dist/commonjs/diagnostics-channel.js +0 -7
  372. package/node_modules/lru-cache/dist/commonjs/index.d.ts +0 -1400
  373. package/node_modules/lru-cache/dist/commonjs/index.d.ts.map +0 -1
  374. package/node_modules/lru-cache/dist/commonjs/index.js +0 -1726
  375. package/node_modules/lru-cache/dist/commonjs/index.js.map +0 -1
  376. package/node_modules/lru-cache/dist/commonjs/index.min.js +0 -2
  377. package/node_modules/lru-cache/dist/commonjs/index.min.js.map +0 -7
  378. package/node_modules/lru-cache/dist/commonjs/node/diagnostics-channel-node.d.ts.map +0 -1
  379. package/node_modules/lru-cache/dist/commonjs/node/diagnostics-channel-node.js.map +0 -1
  380. package/node_modules/lru-cache/dist/commonjs/node/diagnostics-channel.d.ts +0 -5
  381. package/node_modules/lru-cache/dist/commonjs/node/diagnostics-channel.js +0 -9
  382. package/node_modules/lru-cache/dist/commonjs/node/index.d.ts +0 -1400
  383. package/node_modules/lru-cache/dist/commonjs/node/index.d.ts.map +0 -1
  384. package/node_modules/lru-cache/dist/commonjs/node/index.js +0 -1726
  385. package/node_modules/lru-cache/dist/commonjs/node/index.js.map +0 -1
  386. package/node_modules/lru-cache/dist/commonjs/node/index.min.js +0 -2
  387. package/node_modules/lru-cache/dist/commonjs/node/index.min.js.map +0 -7
  388. package/node_modules/lru-cache/dist/commonjs/node/perf.d.ts +0 -12
  389. package/node_modules/lru-cache/dist/commonjs/node/perf.d.ts.map +0 -1
  390. package/node_modules/lru-cache/dist/commonjs/node/perf.js +0 -10
  391. package/node_modules/lru-cache/dist/commonjs/node/perf.js.map +0 -1
  392. package/node_modules/lru-cache/dist/commonjs/package.json +0 -3
  393. package/node_modules/lru-cache/dist/commonjs/perf.d.ts +0 -12
  394. package/node_modules/lru-cache/dist/commonjs/perf.d.ts.map +0 -1
  395. package/node_modules/lru-cache/dist/commonjs/perf.js +0 -10
  396. package/node_modules/lru-cache/dist/commonjs/perf.js.map +0 -1
  397. package/node_modules/lru-cache/dist/esm/browser/diagnostics-channel-browser.d.ts.map +0 -1
  398. package/node_modules/lru-cache/dist/esm/browser/diagnostics-channel-browser.js.map +0 -1
  399. package/node_modules/lru-cache/dist/esm/browser/diagnostics-channel.d.ts +0 -5
  400. package/node_modules/lru-cache/dist/esm/browser/diagnostics-channel.js +0 -4
  401. package/node_modules/lru-cache/dist/esm/browser/index.d.ts +0 -1400
  402. package/node_modules/lru-cache/dist/esm/browser/index.d.ts.map +0 -1
  403. package/node_modules/lru-cache/dist/esm/browser/index.js +0 -1722
  404. package/node_modules/lru-cache/dist/esm/browser/index.js.map +0 -1
  405. package/node_modules/lru-cache/dist/esm/browser/index.min.js +0 -2
  406. package/node_modules/lru-cache/dist/esm/browser/index.min.js.map +0 -7
  407. package/node_modules/lru-cache/dist/esm/browser/perf.d.ts +0 -12
  408. package/node_modules/lru-cache/dist/esm/browser/perf.d.ts.map +0 -1
  409. package/node_modules/lru-cache/dist/esm/browser/perf.js +0 -7
  410. package/node_modules/lru-cache/dist/esm/browser/perf.js.map +0 -1
  411. package/node_modules/lru-cache/dist/esm/diagnostics-channel-esm.d.mts.map +0 -1
  412. package/node_modules/lru-cache/dist/esm/diagnostics-channel-esm.mjs.map +0 -1
  413. package/node_modules/lru-cache/dist/esm/diagnostics-channel.d.ts +0 -5
  414. package/node_modules/lru-cache/dist/esm/diagnostics-channel.js +0 -19
  415. package/node_modules/lru-cache/dist/esm/index.d.ts +0 -1400
  416. package/node_modules/lru-cache/dist/esm/index.d.ts.map +0 -1
  417. package/node_modules/lru-cache/dist/esm/index.js +0 -1722
  418. package/node_modules/lru-cache/dist/esm/index.js.map +0 -1
  419. package/node_modules/lru-cache/dist/esm/index.min.js +0 -2
  420. package/node_modules/lru-cache/dist/esm/index.min.js.map +0 -7
  421. package/node_modules/lru-cache/dist/esm/node/diagnostics-channel-node.d.ts.map +0 -1
  422. package/node_modules/lru-cache/dist/esm/node/diagnostics-channel-node.js.map +0 -1
  423. package/node_modules/lru-cache/dist/esm/node/diagnostics-channel.d.ts +0 -5
  424. package/node_modules/lru-cache/dist/esm/node/diagnostics-channel.js +0 -6
  425. package/node_modules/lru-cache/dist/esm/node/index.d.ts +0 -1400
  426. package/node_modules/lru-cache/dist/esm/node/index.d.ts.map +0 -1
  427. package/node_modules/lru-cache/dist/esm/node/index.js +0 -1722
  428. package/node_modules/lru-cache/dist/esm/node/index.js.map +0 -1
  429. package/node_modules/lru-cache/dist/esm/node/index.min.js +0 -2
  430. package/node_modules/lru-cache/dist/esm/node/index.min.js.map +0 -7
  431. package/node_modules/lru-cache/dist/esm/node/perf.d.ts +0 -12
  432. package/node_modules/lru-cache/dist/esm/node/perf.d.ts.map +0 -1
  433. package/node_modules/lru-cache/dist/esm/node/perf.js +0 -7
  434. package/node_modules/lru-cache/dist/esm/node/perf.js.map +0 -1
  435. package/node_modules/lru-cache/dist/esm/package.json +0 -3
  436. package/node_modules/lru-cache/dist/esm/perf.d.ts +0 -12
  437. package/node_modules/lru-cache/dist/esm/perf.d.ts.map +0 -1
  438. package/node_modules/lru-cache/dist/esm/perf.js +0 -7
  439. package/node_modules/lru-cache/dist/esm/perf.js.map +0 -1
  440. package/node_modules/lru-memoizer/lib/async.d.ts.map +0 -1
  441. package/node_modules/lru-memoizer/lib/async.js.map +0 -1
  442. package/node_modules/lru-memoizer/lib/freeze.d.ts.map +0 -1
  443. package/node_modules/lru-memoizer/lib/freeze.js.map +0 -1
  444. package/node_modules/lru-memoizer/lib/index.d.ts.map +0 -1
  445. package/node_modules/lru-memoizer/lib/index.js.map +0 -1
  446. package/node_modules/lru-memoizer/lib/sync.d.ts.map +0 -1
  447. package/node_modules/lru-memoizer/lib/sync.js.map +0 -1
  448. package/node_modules/lru-memoizer/lib/util.d.ts.map +0 -1
  449. package/node_modules/lru-memoizer/lib/util.js.map +0 -1
  450. /package/node_modules/{@microsoft/teams.apps/node_modules/jose → jose}/dist/browser/index.js +0 -0
  451. /package/node_modules/{@microsoft/teams.apps/node_modules/jose → jose}/dist/browser/jwe/compact/decrypt.js +0 -0
  452. /package/node_modules/{@microsoft/teams.apps/node_modules/jose → jose}/dist/browser/jwe/compact/encrypt.js +0 -0
  453. /package/node_modules/{@microsoft/teams.apps/node_modules/jose → jose}/dist/browser/jwe/flattened/decrypt.js +0 -0
  454. /package/node_modules/{@microsoft/teams.apps/node_modules/jose → jose}/dist/browser/jwe/flattened/encrypt.js +0 -0
  455. /package/node_modules/{@microsoft/teams.apps/node_modules/jose → jose}/dist/browser/jwe/general/decrypt.js +0 -0
  456. /package/node_modules/{@microsoft/teams.apps/node_modules/jose → jose}/dist/browser/jwe/general/encrypt.js +0 -0
  457. /package/node_modules/{@microsoft/teams.apps/node_modules/jose → jose}/dist/browser/jwk/embedded.js +0 -0
  458. /package/node_modules/{@microsoft/teams.apps/node_modules/jose → jose}/dist/browser/jwk/thumbprint.js +0 -0
  459. /package/node_modules/{@microsoft/teams.apps/node_modules/jose → jose}/dist/browser/jwks/local.js +0 -0
  460. /package/node_modules/{@microsoft/teams.apps/node_modules/jose → jose}/dist/browser/jwks/remote.js +0 -0
  461. /package/node_modules/{@microsoft/teams.apps/node_modules/jose → jose}/dist/browser/jws/compact/sign.js +0 -0
  462. /package/node_modules/{@microsoft/teams.apps/node_modules/jose → jose}/dist/browser/jws/compact/verify.js +0 -0
  463. /package/node_modules/{@microsoft/teams.apps/node_modules/jose → jose}/dist/browser/jws/flattened/sign.js +0 -0
  464. /package/node_modules/{@microsoft/teams.apps/node_modules/jose → jose}/dist/browser/jws/flattened/verify.js +0 -0
  465. /package/node_modules/{@microsoft/teams.apps/node_modules/jose → jose}/dist/browser/jws/general/sign.js +0 -0
  466. /package/node_modules/{@microsoft/teams.apps/node_modules/jose → jose}/dist/browser/jws/general/verify.js +0 -0
  467. /package/node_modules/{@microsoft/teams.apps/node_modules/jose → jose}/dist/browser/jwt/decrypt.js +0 -0
  468. /package/node_modules/{@microsoft/teams.apps/node_modules/jose → jose}/dist/browser/jwt/encrypt.js +0 -0
  469. /package/node_modules/{@microsoft/teams.apps/node_modules/jose → jose}/dist/browser/jwt/produce.js +0 -0
  470. /package/node_modules/{@microsoft/teams.apps/node_modules/jose → jose}/dist/browser/jwt/sign.js +0 -0
  471. /package/node_modules/{@microsoft/teams.apps/node_modules/jose → jose}/dist/browser/jwt/unsecured.js +0 -0
  472. /package/node_modules/{@microsoft/teams.apps/node_modules/jose → jose}/dist/browser/jwt/verify.js +0 -0
  473. /package/node_modules/{@microsoft/teams.apps/node_modules/jose → jose}/dist/browser/key/export.js +0 -0
  474. /package/node_modules/{@microsoft/teams.apps/node_modules/jose → jose}/dist/browser/key/generate_key_pair.js +0 -0
  475. /package/node_modules/{@microsoft/teams.apps/node_modules/jose → jose}/dist/browser/key/generate_secret.js +0 -0
  476. /package/node_modules/{@microsoft/teams.apps/node_modules/jose → jose}/dist/browser/key/import.js +0 -0
  477. /package/node_modules/{@microsoft/teams.apps/node_modules/jose → jose}/dist/browser/lib/aesgcmkw.js +0 -0
  478. /package/node_modules/{@microsoft/teams.apps/node_modules/jose → jose}/dist/browser/lib/buffer_utils.js +0 -0
  479. /package/node_modules/{@microsoft/teams.apps/node_modules/jose → jose}/dist/browser/lib/cek.js +0 -0
  480. /package/node_modules/{@microsoft/teams.apps/node_modules/jose → jose}/dist/browser/lib/check_iv_length.js +0 -0
  481. /package/node_modules/{@microsoft/teams.apps/node_modules/jose → jose}/dist/browser/lib/check_key_type.js +0 -0
  482. /package/node_modules/{@microsoft/teams.apps/node_modules/jose → jose}/dist/browser/lib/check_p2s.js +0 -0
  483. /package/node_modules/{@microsoft/teams.apps/node_modules/jose → jose}/dist/browser/lib/crypto_key.js +0 -0
  484. /package/node_modules/{@microsoft/teams.apps/node_modules/jose → jose}/dist/browser/lib/decrypt_key_management.js +0 -0
  485. /package/node_modules/{@microsoft/teams.apps/node_modules/jose → jose}/dist/browser/lib/encrypt_key_management.js +0 -0
  486. /package/node_modules/{@microsoft/teams.apps/node_modules/jose → jose}/dist/browser/lib/epoch.js +0 -0
  487. /package/node_modules/{@microsoft/teams.apps/node_modules/jose → jose}/dist/browser/lib/format_pem.js +0 -0
  488. /package/node_modules/{@microsoft/teams.apps/node_modules/jose → jose}/dist/browser/lib/invalid_key_input.js +0 -0
  489. /package/node_modules/{@microsoft/teams.apps/node_modules/jose → jose}/dist/browser/lib/is_disjoint.js +0 -0
  490. /package/node_modules/{@microsoft/teams.apps/node_modules/jose → jose}/dist/browser/lib/is_object.js +0 -0
  491. /package/node_modules/{@microsoft/teams.apps/node_modules/jose → jose}/dist/browser/lib/iv.js +0 -0
  492. /package/node_modules/{@microsoft/teams.apps/node_modules/jose → jose}/dist/browser/lib/jwt_claims_set.js +0 -0
  493. /package/node_modules/{@microsoft/teams.apps/node_modules/jose → jose}/dist/browser/lib/secs.js +0 -0
  494. /package/node_modules/{@microsoft/teams.apps/node_modules/jose → jose}/dist/browser/lib/validate_algorithms.js +0 -0
  495. /package/node_modules/{@microsoft/teams.apps/node_modules/jose → jose}/dist/browser/lib/validate_crit.js +0 -0
  496. /package/node_modules/{@microsoft/teams.apps/node_modules/jose → jose}/dist/browser/package.json +0 -0
  497. /package/node_modules/{@microsoft/teams.apps/node_modules/jose → jose}/dist/browser/runtime/aeskw.js +0 -0
  498. /package/node_modules/{@microsoft/teams.apps/node_modules/jose → jose}/dist/browser/runtime/asn1.js +0 -0
  499. /package/node_modules/{@microsoft/teams.apps/node_modules/jose → jose}/dist/browser/runtime/base64url.js +0 -0
  500. /package/node_modules/{@microsoft/teams.apps/node_modules/jose → jose}/dist/browser/runtime/bogus.js +0 -0
  501. /package/node_modules/{@microsoft/teams.apps/node_modules/jose → jose}/dist/browser/runtime/check_cek_length.js +0 -0
  502. /package/node_modules/{@microsoft/teams.apps/node_modules/jose → jose}/dist/browser/runtime/check_key_length.js +0 -0
  503. /package/node_modules/{@microsoft/teams.apps/node_modules/jose → jose}/dist/browser/runtime/decrypt.js +0 -0
  504. /package/node_modules/{@microsoft/teams.apps/node_modules/jose → jose}/dist/browser/runtime/digest.js +0 -0
  505. /package/node_modules/{@microsoft/teams.apps/node_modules/jose → jose}/dist/browser/runtime/ecdhes.js +0 -0
  506. /package/node_modules/{@microsoft/teams.apps/node_modules/jose → jose}/dist/browser/runtime/encrypt.js +0 -0
  507. /package/node_modules/{@microsoft/teams.apps/node_modules/jose → jose}/dist/browser/runtime/fetch_jwks.js +0 -0
  508. /package/node_modules/{@microsoft/teams.apps/node_modules/jose → jose}/dist/browser/runtime/generate.js +0 -0
  509. /package/node_modules/{@microsoft/teams.apps/node_modules/jose → jose}/dist/browser/runtime/get_sign_verify_key.js +0 -0
  510. /package/node_modules/{@microsoft/teams.apps/node_modules/jose → jose}/dist/browser/runtime/is_key_like.js +0 -0
  511. /package/node_modules/{@microsoft/teams.apps/node_modules/jose → jose}/dist/browser/runtime/jwk_to_key.js +0 -0
  512. /package/node_modules/{@microsoft/teams.apps/node_modules/jose → jose}/dist/browser/runtime/key_to_jwk.js +0 -0
  513. /package/node_modules/{@microsoft/teams.apps/node_modules/jose → jose}/dist/browser/runtime/pbes2kw.js +0 -0
  514. /package/node_modules/{@microsoft/teams.apps/node_modules/jose → jose}/dist/browser/runtime/random.js +0 -0
  515. /package/node_modules/{@microsoft/teams.apps/node_modules/jose → jose}/dist/browser/runtime/rsaes.js +0 -0
  516. /package/node_modules/{@microsoft/teams.apps/node_modules/jose → jose}/dist/browser/runtime/runtime.js +0 -0
  517. /package/node_modules/{@microsoft/teams.apps/node_modules/jose → jose}/dist/browser/runtime/sign.js +0 -0
  518. /package/node_modules/{@microsoft/teams.apps/node_modules/jose → jose}/dist/browser/runtime/subtle_dsa.js +0 -0
  519. /package/node_modules/{@microsoft/teams.apps/node_modules/jose → jose}/dist/browser/runtime/subtle_rsaes.js +0 -0
  520. /package/node_modules/{@microsoft/teams.apps/node_modules/jose → jose}/dist/browser/runtime/timing_safe_equal.js +0 -0
  521. /package/node_modules/{@microsoft/teams.apps/node_modules/jose → jose}/dist/browser/runtime/verify.js +0 -0
  522. /package/node_modules/{@microsoft/teams.apps/node_modules/jose → jose}/dist/browser/runtime/webcrypto.js +0 -0
  523. /package/node_modules/{@microsoft/teams.apps/node_modules/jose → jose}/dist/browser/runtime/zlib.js +0 -0
  524. /package/node_modules/{@microsoft/teams.apps/node_modules/jose → jose}/dist/browser/util/base64url.js +0 -0
  525. /package/node_modules/{@microsoft/teams.apps/node_modules/jose → jose}/dist/browser/util/decode_jwt.js +0 -0
  526. /package/node_modules/{@microsoft/teams.apps/node_modules/jose → jose}/dist/browser/util/decode_protected_header.js +0 -0
  527. /package/node_modules/{@microsoft/teams.apps/node_modules/jose → jose}/dist/browser/util/errors.js +0 -0
  528. /package/node_modules/{@microsoft/teams.apps/node_modules/jose → jose}/dist/browser/util/runtime.js +0 -0
  529. /package/node_modules/{@microsoft/teams.apps/node_modules/jose → jose}/dist/node/cjs/index.js +0 -0
  530. /package/node_modules/{@microsoft/teams.apps/node_modules/jose → jose}/dist/node/cjs/jwe/compact/decrypt.js +0 -0
  531. /package/node_modules/{@microsoft/teams.apps/node_modules/jose → jose}/dist/node/cjs/jwe/compact/encrypt.js +0 -0
  532. /package/node_modules/{@microsoft/teams.apps/node_modules/jose → jose}/dist/node/cjs/jwe/flattened/decrypt.js +0 -0
  533. /package/node_modules/{@microsoft/teams.apps/node_modules/jose → jose}/dist/node/cjs/jwe/flattened/encrypt.js +0 -0
  534. /package/node_modules/{@microsoft/teams.apps/node_modules/jose → jose}/dist/node/cjs/jwe/general/decrypt.js +0 -0
  535. /package/node_modules/{@microsoft/teams.apps/node_modules/jose → jose}/dist/node/cjs/jwe/general/encrypt.js +0 -0
  536. /package/node_modules/{@microsoft/teams.apps/node_modules/jose → jose}/dist/node/cjs/jwk/embedded.js +0 -0
  537. /package/node_modules/{@microsoft/teams.apps/node_modules/jose → jose}/dist/node/cjs/jwk/thumbprint.js +0 -0
  538. /package/node_modules/{@microsoft/teams.apps/node_modules/jose → jose}/dist/node/cjs/jwks/local.js +0 -0
  539. /package/node_modules/{@microsoft/teams.apps/node_modules/jose → jose}/dist/node/cjs/jwks/remote.js +0 -0
  540. /package/node_modules/{@microsoft/teams.apps/node_modules/jose → jose}/dist/node/cjs/jws/compact/sign.js +0 -0
  541. /package/node_modules/{@microsoft/teams.apps/node_modules/jose → jose}/dist/node/cjs/jws/compact/verify.js +0 -0
  542. /package/node_modules/{@microsoft/teams.apps/node_modules/jose → jose}/dist/node/cjs/jws/flattened/sign.js +0 -0
  543. /package/node_modules/{@microsoft/teams.apps/node_modules/jose → jose}/dist/node/cjs/jws/flattened/verify.js +0 -0
  544. /package/node_modules/{@microsoft/teams.apps/node_modules/jose → jose}/dist/node/cjs/jws/general/sign.js +0 -0
  545. /package/node_modules/{@microsoft/teams.apps/node_modules/jose → jose}/dist/node/cjs/jws/general/verify.js +0 -0
  546. /package/node_modules/{@microsoft/teams.apps/node_modules/jose → jose}/dist/node/cjs/jwt/decrypt.js +0 -0
  547. /package/node_modules/{@microsoft/teams.apps/node_modules/jose → jose}/dist/node/cjs/jwt/encrypt.js +0 -0
  548. /package/node_modules/{@microsoft/teams.apps/node_modules/jose → jose}/dist/node/cjs/jwt/produce.js +0 -0
  549. /package/node_modules/{@microsoft/teams.apps/node_modules/jose → jose}/dist/node/cjs/jwt/sign.js +0 -0
  550. /package/node_modules/{@microsoft/teams.apps/node_modules/jose → jose}/dist/node/cjs/jwt/unsecured.js +0 -0
  551. /package/node_modules/{@microsoft/teams.apps/node_modules/jose → jose}/dist/node/cjs/jwt/verify.js +0 -0
  552. /package/node_modules/{@microsoft/teams.apps/node_modules/jose → jose}/dist/node/cjs/key/export.js +0 -0
  553. /package/node_modules/{@microsoft/teams.apps/node_modules/jose → jose}/dist/node/cjs/key/generate_key_pair.js +0 -0
  554. /package/node_modules/{@microsoft/teams.apps/node_modules/jose → jose}/dist/node/cjs/key/generate_secret.js +0 -0
  555. /package/node_modules/{@microsoft/teams.apps/node_modules/jose → jose}/dist/node/cjs/key/import.js +0 -0
  556. /package/node_modules/{@microsoft/teams.apps/node_modules/jose → jose}/dist/node/cjs/lib/aesgcmkw.js +0 -0
  557. /package/node_modules/{@microsoft/teams.apps/node_modules/jose → jose}/dist/node/cjs/lib/buffer_utils.js +0 -0
  558. /package/node_modules/{@microsoft/teams.apps/node_modules/jose → jose}/dist/node/cjs/lib/cek.js +0 -0
  559. /package/node_modules/{@microsoft/teams.apps/node_modules/jose → jose}/dist/node/cjs/lib/check_iv_length.js +0 -0
  560. /package/node_modules/{@microsoft/teams.apps/node_modules/jose → jose}/dist/node/cjs/lib/check_key_type.js +0 -0
  561. /package/node_modules/{@microsoft/teams.apps/node_modules/jose → jose}/dist/node/cjs/lib/check_p2s.js +0 -0
  562. /package/node_modules/{@microsoft/teams.apps/node_modules/jose → jose}/dist/node/cjs/lib/crypto_key.js +0 -0
  563. /package/node_modules/{@microsoft/teams.apps/node_modules/jose → jose}/dist/node/cjs/lib/decrypt_key_management.js +0 -0
  564. /package/node_modules/{@microsoft/teams.apps/node_modules/jose → jose}/dist/node/cjs/lib/encrypt_key_management.js +0 -0
  565. /package/node_modules/{@microsoft/teams.apps/node_modules/jose → jose}/dist/node/cjs/lib/epoch.js +0 -0
  566. /package/node_modules/{@microsoft/teams.apps/node_modules/jose → jose}/dist/node/cjs/lib/invalid_key_input.js +0 -0
  567. /package/node_modules/{@microsoft/teams.apps/node_modules/jose → jose}/dist/node/cjs/lib/is_disjoint.js +0 -0
  568. /package/node_modules/{@microsoft/teams.apps/node_modules/jose → jose}/dist/node/cjs/lib/is_object.js +0 -0
  569. /package/node_modules/{@microsoft/teams.apps/node_modules/jose → jose}/dist/node/cjs/lib/iv.js +0 -0
  570. /package/node_modules/{@microsoft/teams.apps/node_modules/jose → jose}/dist/node/cjs/lib/jwt_claims_set.js +0 -0
  571. /package/node_modules/{@microsoft/teams.apps/node_modules/jose → jose}/dist/node/cjs/lib/secs.js +0 -0
  572. /package/node_modules/{@microsoft/teams.apps/node_modules/jose → jose}/dist/node/cjs/lib/validate_algorithms.js +0 -0
  573. /package/node_modules/{@microsoft/teams.apps/node_modules/jose → jose}/dist/node/cjs/lib/validate_crit.js +0 -0
  574. /package/node_modules/{@microsoft/teams.apps/node_modules/jose → jose}/dist/node/cjs/runtime/aeskw.js +0 -0
  575. /package/node_modules/{@microsoft/teams.apps/node_modules/jose → jose}/dist/node/cjs/runtime/asn1.js +0 -0
  576. /package/node_modules/{@microsoft/teams.apps/node_modules/jose → jose}/dist/node/cjs/runtime/asn1_sequence_decoder.js +0 -0
  577. /package/node_modules/{@microsoft/teams.apps/node_modules/jose → jose}/dist/node/cjs/runtime/asn1_sequence_encoder.js +0 -0
  578. /package/node_modules/{@microsoft/teams.apps/node_modules/jose → jose}/dist/node/cjs/runtime/base64url.js +0 -0
  579. /package/node_modules/{@microsoft/teams.apps/node_modules/jose → jose}/dist/node/cjs/runtime/cbc_tag.js +0 -0
  580. /package/node_modules/{@microsoft/teams.apps/node_modules/jose → jose}/dist/node/cjs/runtime/check_cek_length.js +0 -0
  581. /package/node_modules/{@microsoft/teams.apps/node_modules/jose → jose}/dist/node/cjs/runtime/check_modulus_length.js +0 -0
  582. /package/node_modules/{@microsoft/teams.apps/node_modules/jose → jose}/dist/node/cjs/runtime/ciphers.js +0 -0
  583. /package/node_modules/{@microsoft/teams.apps/node_modules/jose → jose}/dist/node/cjs/runtime/decrypt.js +0 -0
  584. /package/node_modules/{@microsoft/teams.apps/node_modules/jose → jose}/dist/node/cjs/runtime/digest.js +0 -0
  585. /package/node_modules/{@microsoft/teams.apps/node_modules/jose → jose}/dist/node/cjs/runtime/dsa_digest.js +0 -0
  586. /package/node_modules/{@microsoft/teams.apps/node_modules/jose → jose}/dist/node/cjs/runtime/ecdhes.js +0 -0
  587. /package/node_modules/{@microsoft/teams.apps/node_modules/jose → jose}/dist/node/cjs/runtime/encrypt.js +0 -0
  588. /package/node_modules/{@microsoft/teams.apps/node_modules/jose → jose}/dist/node/cjs/runtime/fetch_jwks.js +0 -0
  589. /package/node_modules/{@microsoft/teams.apps/node_modules/jose → jose}/dist/node/cjs/runtime/flags.js +0 -0
  590. /package/node_modules/{@microsoft/teams.apps/node_modules/jose → jose}/dist/node/cjs/runtime/generate.js +0 -0
  591. /package/node_modules/{@microsoft/teams.apps/node_modules/jose → jose}/dist/node/cjs/runtime/get_named_curve.js +0 -0
  592. /package/node_modules/{@microsoft/teams.apps/node_modules/jose → jose}/dist/node/cjs/runtime/get_sign_verify_key.js +0 -0
  593. /package/node_modules/{@microsoft/teams.apps/node_modules/jose → jose}/dist/node/cjs/runtime/hmac_digest.js +0 -0
  594. /package/node_modules/{@microsoft/teams.apps/node_modules/jose → jose}/dist/node/cjs/runtime/is_key_like.js +0 -0
  595. /package/node_modules/{@microsoft/teams.apps/node_modules/jose → jose}/dist/node/cjs/runtime/is_key_object.js +0 -0
  596. /package/node_modules/{@microsoft/teams.apps/node_modules/jose → jose}/dist/node/cjs/runtime/jwk_to_key.js +0 -0
  597. /package/node_modules/{@microsoft/teams.apps/node_modules/jose → jose}/dist/node/cjs/runtime/key_to_jwk.js +0 -0
  598. /package/node_modules/{@microsoft/teams.apps/node_modules/jose → jose}/dist/node/cjs/runtime/node_key.js +0 -0
  599. /package/node_modules/{@microsoft/teams.apps/node_modules/jose → jose}/dist/node/cjs/runtime/pbes2kw.js +0 -0
  600. /package/node_modules/{@microsoft/teams.apps/node_modules/jose → jose}/dist/node/cjs/runtime/random.js +0 -0
  601. /package/node_modules/{@microsoft/teams.apps/node_modules/jose → jose}/dist/node/cjs/runtime/rsaes.js +0 -0
  602. /package/node_modules/{@microsoft/teams.apps/node_modules/jose → jose}/dist/node/cjs/runtime/runtime.js +0 -0
  603. /package/node_modules/{@microsoft/teams.apps/node_modules/jose → jose}/dist/node/cjs/runtime/sign.js +0 -0
  604. /package/node_modules/{@microsoft/teams.apps/node_modules/jose → jose}/dist/node/cjs/runtime/timing_safe_equal.js +0 -0
  605. /package/node_modules/{@microsoft/teams.apps/node_modules/jose → jose}/dist/node/cjs/runtime/verify.js +0 -0
  606. /package/node_modules/{@microsoft/teams.apps/node_modules/jose → jose}/dist/node/cjs/runtime/webcrypto.js +0 -0
  607. /package/node_modules/{@microsoft/teams.apps/node_modules/jose → jose}/dist/node/cjs/runtime/zlib.js +0 -0
  608. /package/node_modules/{@microsoft/teams.apps/node_modules/jose → jose}/dist/node/cjs/util/base64url.js +0 -0
  609. /package/node_modules/{@microsoft/teams.apps/node_modules/jose → jose}/dist/node/cjs/util/decode_jwt.js +0 -0
  610. /package/node_modules/{@microsoft/teams.apps/node_modules/jose → jose}/dist/node/cjs/util/decode_protected_header.js +0 -0
  611. /package/node_modules/{@microsoft/teams.apps/node_modules/jose → jose}/dist/node/cjs/util/errors.js +0 -0
  612. /package/node_modules/{@microsoft/teams.apps/node_modules/jose → jose}/dist/node/cjs/util/runtime.js +0 -0
  613. /package/node_modules/{@microsoft/teams.apps/node_modules/jose → jose}/dist/node/esm/index.js +0 -0
  614. /package/node_modules/{@microsoft/teams.apps/node_modules/jose → jose}/dist/node/esm/jwe/compact/decrypt.js +0 -0
  615. /package/node_modules/{@microsoft/teams.apps/node_modules/jose → jose}/dist/node/esm/jwe/compact/encrypt.js +0 -0
  616. /package/node_modules/{@microsoft/teams.apps/node_modules/jose → jose}/dist/node/esm/jwe/flattened/decrypt.js +0 -0
  617. /package/node_modules/{@microsoft/teams.apps/node_modules/jose → jose}/dist/node/esm/jwe/flattened/encrypt.js +0 -0
  618. /package/node_modules/{@microsoft/teams.apps/node_modules/jose → jose}/dist/node/esm/jwe/general/decrypt.js +0 -0
  619. /package/node_modules/{@microsoft/teams.apps/node_modules/jose → jose}/dist/node/esm/jwe/general/encrypt.js +0 -0
  620. /package/node_modules/{@microsoft/teams.apps/node_modules/jose → jose}/dist/node/esm/jwk/embedded.js +0 -0
  621. /package/node_modules/{@microsoft/teams.apps/node_modules/jose → jose}/dist/node/esm/jwk/thumbprint.js +0 -0
  622. /package/node_modules/{@microsoft/teams.apps/node_modules/jose → jose}/dist/node/esm/jwks/local.js +0 -0
  623. /package/node_modules/{@microsoft/teams.apps/node_modules/jose → jose}/dist/node/esm/jwks/remote.js +0 -0
  624. /package/node_modules/{@microsoft/teams.apps/node_modules/jose → jose}/dist/node/esm/jws/compact/sign.js +0 -0
  625. /package/node_modules/{@microsoft/teams.apps/node_modules/jose → jose}/dist/node/esm/jws/compact/verify.js +0 -0
  626. /package/node_modules/{@microsoft/teams.apps/node_modules/jose → jose}/dist/node/esm/jws/flattened/sign.js +0 -0
  627. /package/node_modules/{@microsoft/teams.apps/node_modules/jose → jose}/dist/node/esm/jws/flattened/verify.js +0 -0
  628. /package/node_modules/{@microsoft/teams.apps/node_modules/jose → jose}/dist/node/esm/jws/general/sign.js +0 -0
  629. /package/node_modules/{@microsoft/teams.apps/node_modules/jose → jose}/dist/node/esm/jws/general/verify.js +0 -0
  630. /package/node_modules/{@microsoft/teams.apps/node_modules/jose → jose}/dist/node/esm/jwt/decrypt.js +0 -0
  631. /package/node_modules/{@microsoft/teams.apps/node_modules/jose → jose}/dist/node/esm/jwt/encrypt.js +0 -0
  632. /package/node_modules/{@microsoft/teams.apps/node_modules/jose → jose}/dist/node/esm/jwt/produce.js +0 -0
  633. /package/node_modules/{@microsoft/teams.apps/node_modules/jose → jose}/dist/node/esm/jwt/sign.js +0 -0
  634. /package/node_modules/{@microsoft/teams.apps/node_modules/jose → jose}/dist/node/esm/jwt/unsecured.js +0 -0
  635. /package/node_modules/{@microsoft/teams.apps/node_modules/jose → jose}/dist/node/esm/jwt/verify.js +0 -0
  636. /package/node_modules/{@microsoft/teams.apps/node_modules/jose → jose}/dist/node/esm/key/export.js +0 -0
  637. /package/node_modules/{@microsoft/teams.apps/node_modules/jose → jose}/dist/node/esm/key/generate_key_pair.js +0 -0
  638. /package/node_modules/{@microsoft/teams.apps/node_modules/jose → jose}/dist/node/esm/key/generate_secret.js +0 -0
  639. /package/node_modules/{@microsoft/teams.apps/node_modules/jose → jose}/dist/node/esm/key/import.js +0 -0
  640. /package/node_modules/{@microsoft/teams.apps/node_modules/jose → jose}/dist/node/esm/lib/aesgcmkw.js +0 -0
  641. /package/node_modules/{@microsoft/teams.apps/node_modules/jose → jose}/dist/node/esm/lib/buffer_utils.js +0 -0
  642. /package/node_modules/{@microsoft/teams.apps/node_modules/jose → jose}/dist/node/esm/lib/cek.js +0 -0
  643. /package/node_modules/{@microsoft/teams.apps/node_modules/jose → jose}/dist/node/esm/lib/check_iv_length.js +0 -0
  644. /package/node_modules/{@microsoft/teams.apps/node_modules/jose → jose}/dist/node/esm/lib/check_key_type.js +0 -0
  645. /package/node_modules/{@microsoft/teams.apps/node_modules/jose → jose}/dist/node/esm/lib/check_p2s.js +0 -0
  646. /package/node_modules/{@microsoft/teams.apps/node_modules/jose → jose}/dist/node/esm/lib/crypto_key.js +0 -0
  647. /package/node_modules/{@microsoft/teams.apps/node_modules/jose → jose}/dist/node/esm/lib/decrypt_key_management.js +0 -0
  648. /package/node_modules/{@microsoft/teams.apps/node_modules/jose → jose}/dist/node/esm/lib/encrypt_key_management.js +0 -0
  649. /package/node_modules/{@microsoft/teams.apps/node_modules/jose → jose}/dist/node/esm/lib/epoch.js +0 -0
  650. /package/node_modules/{@microsoft/teams.apps/node_modules/jose → jose}/dist/node/esm/lib/invalid_key_input.js +0 -0
  651. /package/node_modules/{@microsoft/teams.apps/node_modules/jose → jose}/dist/node/esm/lib/is_disjoint.js +0 -0
  652. /package/node_modules/{@microsoft/teams.apps/node_modules/jose → jose}/dist/node/esm/lib/is_object.js +0 -0
  653. /package/node_modules/{@microsoft/teams.apps/node_modules/jose → jose}/dist/node/esm/lib/iv.js +0 -0
  654. /package/node_modules/{@microsoft/teams.apps/node_modules/jose → jose}/dist/node/esm/lib/jwt_claims_set.js +0 -0
  655. /package/node_modules/{@microsoft/teams.apps/node_modules/jose → jose}/dist/node/esm/lib/secs.js +0 -0
  656. /package/node_modules/{@microsoft/teams.apps/node_modules/jose → jose}/dist/node/esm/lib/validate_algorithms.js +0 -0
  657. /package/node_modules/{@microsoft/teams.apps/node_modules/jose → jose}/dist/node/esm/lib/validate_crit.js +0 -0
  658. /package/node_modules/{@microsoft/teams.apps/node_modules/jose → jose}/dist/node/esm/package.json +0 -0
  659. /package/node_modules/{@microsoft/teams.apps/node_modules/jose → jose}/dist/node/esm/runtime/aeskw.js +0 -0
  660. /package/node_modules/{@microsoft/teams.apps/node_modules/jose → jose}/dist/node/esm/runtime/asn1.js +0 -0
  661. /package/node_modules/{@microsoft/teams.apps/node_modules/jose → jose}/dist/node/esm/runtime/asn1_sequence_decoder.js +0 -0
  662. /package/node_modules/{@microsoft/teams.apps/node_modules/jose → jose}/dist/node/esm/runtime/asn1_sequence_encoder.js +0 -0
  663. /package/node_modules/{@microsoft/teams.apps/node_modules/jose → jose}/dist/node/esm/runtime/base64url.js +0 -0
  664. /package/node_modules/{@microsoft/teams.apps/node_modules/jose → jose}/dist/node/esm/runtime/cbc_tag.js +0 -0
  665. /package/node_modules/{@microsoft/teams.apps/node_modules/jose → jose}/dist/node/esm/runtime/check_cek_length.js +0 -0
  666. /package/node_modules/{@microsoft/teams.apps/node_modules/jose → jose}/dist/node/esm/runtime/check_modulus_length.js +0 -0
  667. /package/node_modules/{@microsoft/teams.apps/node_modules/jose → jose}/dist/node/esm/runtime/ciphers.js +0 -0
  668. /package/node_modules/{@microsoft/teams.apps/node_modules/jose → jose}/dist/node/esm/runtime/decrypt.js +0 -0
  669. /package/node_modules/{@microsoft/teams.apps/node_modules/jose → jose}/dist/node/esm/runtime/digest.js +0 -0
  670. /package/node_modules/{@microsoft/teams.apps/node_modules/jose → jose}/dist/node/esm/runtime/dsa_digest.js +0 -0
  671. /package/node_modules/{@microsoft/teams.apps/node_modules/jose → jose}/dist/node/esm/runtime/ecdhes.js +0 -0
  672. /package/node_modules/{@microsoft/teams.apps/node_modules/jose → jose}/dist/node/esm/runtime/encrypt.js +0 -0
  673. /package/node_modules/{@microsoft/teams.apps/node_modules/jose → jose}/dist/node/esm/runtime/fetch_jwks.js +0 -0
  674. /package/node_modules/{@microsoft/teams.apps/node_modules/jose → jose}/dist/node/esm/runtime/flags.js +0 -0
  675. /package/node_modules/{@microsoft/teams.apps/node_modules/jose → jose}/dist/node/esm/runtime/generate.js +0 -0
  676. /package/node_modules/{@microsoft/teams.apps/node_modules/jose → jose}/dist/node/esm/runtime/get_named_curve.js +0 -0
  677. /package/node_modules/{@microsoft/teams.apps/node_modules/jose → jose}/dist/node/esm/runtime/get_sign_verify_key.js +0 -0
  678. /package/node_modules/{@microsoft/teams.apps/node_modules/jose → jose}/dist/node/esm/runtime/hmac_digest.js +0 -0
  679. /package/node_modules/{@microsoft/teams.apps/node_modules/jose → jose}/dist/node/esm/runtime/is_key_like.js +0 -0
  680. /package/node_modules/{@microsoft/teams.apps/node_modules/jose → jose}/dist/node/esm/runtime/is_key_object.js +0 -0
  681. /package/node_modules/{@microsoft/teams.apps/node_modules/jose → jose}/dist/node/esm/runtime/jwk_to_key.js +0 -0
  682. /package/node_modules/{@microsoft/teams.apps/node_modules/jose → jose}/dist/node/esm/runtime/key_to_jwk.js +0 -0
  683. /package/node_modules/{@microsoft/teams.apps/node_modules/jose → jose}/dist/node/esm/runtime/node_key.js +0 -0
  684. /package/node_modules/{@microsoft/teams.apps/node_modules/jose → jose}/dist/node/esm/runtime/pbes2kw.js +0 -0
  685. /package/node_modules/{@microsoft/teams.apps/node_modules/jose → jose}/dist/node/esm/runtime/random.js +0 -0
  686. /package/node_modules/{@microsoft/teams.apps/node_modules/jose → jose}/dist/node/esm/runtime/rsaes.js +0 -0
  687. /package/node_modules/{@microsoft/teams.apps/node_modules/jose → jose}/dist/node/esm/runtime/runtime.js +0 -0
  688. /package/node_modules/{@microsoft/teams.apps/node_modules/jose → jose}/dist/node/esm/runtime/sign.js +0 -0
  689. /package/node_modules/{@microsoft/teams.apps/node_modules/jose → jose}/dist/node/esm/runtime/timing_safe_equal.js +0 -0
  690. /package/node_modules/{@microsoft/teams.apps/node_modules/jose → jose}/dist/node/esm/runtime/verify.js +0 -0
  691. /package/node_modules/{@microsoft/teams.apps/node_modules/jose → jose}/dist/node/esm/runtime/webcrypto.js +0 -0
  692. /package/node_modules/{@microsoft/teams.apps/node_modules/jose → jose}/dist/node/esm/runtime/zlib.js +0 -0
  693. /package/node_modules/{@microsoft/teams.apps/node_modules/jose → jose}/dist/node/esm/util/base64url.js +0 -0
  694. /package/node_modules/{@microsoft/teams.apps/node_modules/jose → jose}/dist/node/esm/util/decode_jwt.js +0 -0
  695. /package/node_modules/{@microsoft/teams.apps/node_modules/jose → jose}/dist/node/esm/util/decode_protected_header.js +0 -0
  696. /package/node_modules/{@microsoft/teams.apps/node_modules/jose → jose}/dist/node/esm/util/errors.js +0 -0
  697. /package/node_modules/{@microsoft/teams.apps/node_modules/jose → jose}/dist/node/esm/util/runtime.js +0 -0
  698. /package/node_modules/{@microsoft/teams.apps/node_modules/jose → jose}/dist/types/jwt/produce.d.ts +0 -0
  699. /package/node_modules/{@microsoft/teams.apps/node_modules/jose → jose}/dist/types/util/runtime.d.ts +0 -0
  700. /package/node_modules/{@microsoft/teams.apps/node_modules/lru-cache → lru-cache}/LICENSE +0 -0
  701. /package/node_modules/{@microsoft/teams.apps/node_modules/lru-cache → lru-cache}/index.js +0 -0
@@ -1,1400 +0,0 @@
1
- /**
2
- * @module LRUCache
3
- */
4
- import type { Perf } from './perf.js';
5
- export type { Perf } from './perf.js';
6
- declare const TYPE: unique symbol;
7
- export type PosInt = number & {
8
- [TYPE]: 'Positive Integer';
9
- };
10
- export type Index = number & {
11
- [TYPE]: 'LRUCache Index';
12
- };
13
- export type UintArray = Uint8Array | Uint16Array | Uint32Array;
14
- export type NumberArray = UintArray | number[];
15
- declare class ZeroArray extends Array<number> {
16
- constructor(size: number);
17
- }
18
- export type { ZeroArray };
19
- export type { Stack };
20
- export type StackLike = Stack | Index[];
21
- declare class Stack {
22
- #private;
23
- heap: NumberArray;
24
- length: number;
25
- static create(max: number): StackLike;
26
- constructor(max: number, HeapCls: {
27
- new (n: number): NumberArray;
28
- });
29
- push(n: Index): void;
30
- pop(): Index;
31
- }
32
- /**
33
- * Promise representing an in-progress {@link LRUCache#fetch} call
34
- */
35
- export type BackgroundFetch<V> = Promise<V | undefined> & {
36
- __returned: BackgroundFetch<V> | undefined;
37
- __abortController: AbortController;
38
- __staleWhileFetching: V | undefined;
39
- };
40
- export type DisposeTask<K, V> = [
41
- value: V,
42
- key: K,
43
- reason: LRUCache.DisposeReason
44
- ];
45
- export declare namespace LRUCache {
46
- /**
47
- * An integer greater than 0, reflecting the calculated size of items
48
- */
49
- type Size = number;
50
- /**
51
- * Integer greater than 0, representing some number of milliseconds, or the
52
- * time at which a TTL started counting from.
53
- */
54
- type Milliseconds = number;
55
- /**
56
- * An integer greater than 0, reflecting a number of items
57
- */
58
- type Count = number;
59
- /**
60
- * The reason why an item was removed from the cache, passed
61
- * to the {@link Disposer} methods.
62
- *
63
- * - `evict`: The item was evicted because it is the least recently used,
64
- * and the cache is full.
65
- * - `set`: A new value was set, overwriting the old value being disposed.
66
- * - `delete`: The item was explicitly deleted, either by calling
67
- * {@link LRUCache#delete}, {@link LRUCache#clear}, or
68
- * {@link LRUCache#set} with an undefined value.
69
- * - `expire`: The item was removed due to exceeding its TTL.
70
- * - `fetch`: A {@link OptionsBase#fetchMethod} operation returned
71
- * `undefined` or was aborted, causing the item to be deleted.
72
- */
73
- type DisposeReason = 'evict' | 'set' | 'delete' | 'expire' | 'fetch';
74
- /**
75
- * A method called upon item removal, passed as the
76
- * {@link OptionsBase.dispose} and/or
77
- * {@link OptionsBase.disposeAfter} options.
78
- */
79
- type Disposer<K, V> = (value: V, key: K, reason: DisposeReason) => void;
80
- /**
81
- * The reason why an item was added to the cache, passed
82
- * to the {@link Inserter} methods.
83
- *
84
- * - `add`: the item was not found in the cache, and was added
85
- * - `update`: the item was in the cache, with the same value provided
86
- * - `replace`: the item was in the cache, and replaced
87
- */
88
- type InsertReason = 'add' | 'update' | 'replace';
89
- /**
90
- * A method called upon item insertion, passed as the
91
- * {@link OptionsBase.insert}
92
- */
93
- type Inserter<K, V> = (value: V, key: K, reason: InsertReason) => void;
94
- /**
95
- * A function that returns the effective calculated size
96
- * of an entry in the cache.
97
- */
98
- type SizeCalculator<K, V> = (value: V, key: K) => Size;
99
- /**
100
- * Options provided to the
101
- * {@link OptionsBase.fetchMethod} function.
102
- */
103
- interface FetcherOptions<K, V, FC = unknown> {
104
- signal: AbortSignal;
105
- options: FetcherFetchOptions<K, V, FC>;
106
- /**
107
- * Object provided in the {@link FetchOptions.context} option to
108
- * {@link LRUCache#fetch}
109
- */
110
- context: FC;
111
- }
112
- /**
113
- * Occasionally, it may be useful to track the internal behavior of the
114
- * cache, particularly for logging, debugging, or for behavior within the
115
- * `fetchMethod`. To do this, you can pass a `status` object to the
116
- * {@link LRUCache#fetch}, {@link LRUCache#get}, {@link LRUCache#set},
117
- * {@link LRUCache#memo}, and {@link LRUCache#has} methods.
118
- *
119
- * The `status` option should be a plain JavaScript object. The following
120
- * fields will be set on it appropriately, depending on the situation.
121
- *
122
- * These objects are also the context objects passed to listeners on the
123
- * `lru-cache:metrics` diagnostic channel, and the `lru-cache` tracing
124
- * channels, in platforms that support them.
125
- */
126
- interface Status<K, V, FC = unknown> {
127
- /**
128
- * The operation being performed
129
- */
130
- op?: 'get' | 'set' | 'memo' | 'fetch' | 'delete' | 'has' | 'peek';
131
- /**
132
- * The status of a set() operation.
133
- *
134
- * - add: the item was not found in the cache, and was added
135
- * - update: the item was in the cache, with the same value provided
136
- * - replace: the item was in the cache, and replaced
137
- * - miss: the item was not added to the cache for some reason
138
- */
139
- set?: 'add' | 'update' | 'replace' | 'miss' | 'deleted';
140
- /**
141
- * The status of a delete() operation.
142
- */
143
- delete?: LRUCache.DisposeReason;
144
- /**
145
- * The result of a peek() operation
146
- *
147
- * - hit: the item was found and returned
148
- * - stale: the item is in the cache, but past its ttl and not returned
149
- * - miss: item not in the cache
150
- */
151
- peek?: 'hit' | 'miss' | 'stale';
152
- /**
153
- * The status of a memo() operation.
154
- *
155
- * - 'hit': the item was found in the cache and returned
156
- * - 'miss': the `memoMethod` function was called
157
- */
158
- memo?: 'hit' | 'miss';
159
- /**
160
- * The `context` option provided to a memo or fetch operation
161
- *
162
- * In practice, of course, this will be the same type as the `FC`
163
- * fetch context param used to instantiate the LRUCache, but the
164
- * convolutions of threading that through would get quite complicated,
165
- * and preclude forcing/forbidding the passing of a `context` param
166
- * where it is/isn't expected, which is more valuable for error
167
- * prevention.
168
- */
169
- context?: unknown;
170
- /**
171
- * the ttl stored for the item, or undefined if ttls are not used.
172
- */
173
- ttl?: Milliseconds;
174
- /**
175
- * the start time for the item, or undefined if ttls are not used.
176
- */
177
- start?: Milliseconds;
178
- /**
179
- * The timestamp used for TTL calculation
180
- */
181
- now?: Milliseconds;
182
- /**
183
- * the remaining ttl for the item, or undefined if ttls are not used.
184
- */
185
- remainingTTL?: Milliseconds;
186
- /**
187
- * The calculated size for the item, if sizes are used.
188
- */
189
- entrySize?: Size;
190
- /**
191
- * The total calculated size of the cache, if sizes are used.
192
- */
193
- totalCalculatedSize?: Size;
194
- /**
195
- * A flag indicating that the item was not stored, due to exceeding the
196
- * {@link OptionsBase.maxEntrySize}
197
- */
198
- maxEntrySizeExceeded?: true;
199
- /**
200
- * The key that was set or retrieved
201
- */
202
- key?: K;
203
- /**
204
- * The value that was set
205
- */
206
- value?: V;
207
- /**
208
- * The old value, specified in the case of `set:'replace'`
209
- */
210
- oldValue?: V;
211
- /**
212
- * The results of a {@link LRUCache#has} operation
213
- *
214
- * - hit: the item was found in the cache
215
- * - stale: the item was found in the cache, but is stale
216
- * - miss: the item was not found in the cache
217
- */
218
- has?: 'hit' | 'stale' | 'miss';
219
- /**
220
- * The status of a {@link LRUCache#fetch} operation.
221
- * Note that this can change as the underlying fetch() moves through
222
- * various states.
223
- *
224
- * - inflight: there is another fetch() for this key which is in process
225
- * - get: there is no {@link OptionsBase.fetchMethod}, so
226
- * {@link LRUCache#get} was called.
227
- * - miss: the item is not in cache, and will be fetched.
228
- * - hit: the item is in the cache, and was resolved immediately.
229
- * - stale: the item is in the cache, but stale.
230
- * - refresh: the item is in the cache, and not stale, but
231
- * {@link FetchOptions.forceRefresh} was specified.
232
- */
233
- fetch?: 'get' | 'inflight' | 'miss' | 'hit' | 'stale' | 'refresh';
234
- /**
235
- * `forceRefresh` option was used for either a fetch or memo operation
236
- */
237
- forceRefresh?: boolean;
238
- /**
239
- * The {@link OptionsBase.fetchMethod} was called
240
- */
241
- fetchDispatched?: true;
242
- /**
243
- * The cached value was updated after a successful call to
244
- * {@link OptionsBase.fetchMethod}
245
- */
246
- fetchUpdated?: true;
247
- /**
248
- * The reason for a fetch() rejection. Either the error raised by the
249
- * {@link OptionsBase.fetchMethod}, or the reason for an
250
- * AbortSignal.
251
- */
252
- fetchError?: Error;
253
- /**
254
- * The fetch received an abort signal
255
- */
256
- fetchAborted?: true;
257
- /**
258
- * The abort signal received was ignored, and the fetch was allowed to
259
- * continue in the background.
260
- */
261
- fetchAbortIgnored?: true;
262
- /**
263
- * The fetchMethod promise resolved successfully
264
- */
265
- fetchResolved?: true;
266
- /**
267
- * The fetchMethod promise was rejected
268
- */
269
- fetchRejected?: true;
270
- /**
271
- * The status of a {@link LRUCache#get} operation.
272
- *
273
- * - fetching: The item is currently being fetched. If a previous value
274
- * is present and allowed, that will be returned.
275
- * - stale: The item is in the cache, and is stale. If it was returned,
276
- * then the `returnedStale` flag will be set.
277
- * - stale-fetching: The value is being fetched in the background, but is
278
- * currently stale. If the stale value was returned, then the
279
- * `returnedStale` flag will be set.
280
- * - hit: the item is in the cache
281
- * - miss: the item is not in the cache
282
- */
283
- get?: 'stale' | 'hit' | 'miss' | 'fetching' | 'stale-fetching';
284
- /**
285
- * A fetch or get operation returned a stale value.
286
- */
287
- returnedStale?: true;
288
- /**
289
- * A tracingChannel trace was started for this operation
290
- */
291
- trace?: boolean;
292
- /**
293
- * A reference to the cache instance associated with this operation
294
- */
295
- cache?: LRUCache<K & {}, V & {}, FC>;
296
- }
297
- /**
298
- * options which override the options set in the LRUCache constructor
299
- * when calling {@link LRUCache#fetch}.
300
- *
301
- * This is the union of {@link GetOptions} and {@link SetOptions}, plus
302
- * {@link OptionsBase.noDeleteOnFetchRejection},
303
- * {@link OptionsBase.allowStaleOnFetchRejection},
304
- * {@link FetchOptions.forceRefresh}, and
305
- * {@link FetcherOptions.context}
306
- *
307
- * Any of these may be modified in the {@link OptionsBase.fetchMethod}
308
- * function, but the {@link GetOptions} fields will of course have no
309
- * effect, as the {@link LRUCache#get} call already happened by the time
310
- * the fetchMethod is called.
311
- */
312
- interface FetcherFetchOptions<K, V, FC = unknown> extends Pick<OptionsBase<K, V, FC>, 'allowStale' | 'updateAgeOnGet' | 'noDeleteOnStaleGet' | 'sizeCalculation' | 'ttl' | 'noDisposeOnSet' | 'noUpdateTTL' | 'noDeleteOnFetchRejection' | 'allowStaleOnFetchRejection' | 'ignoreFetchAbort' | 'allowStaleOnFetchAbort'> {
313
- status?: Status<K, V, FC>;
314
- size?: Size;
315
- }
316
- /**
317
- * Options that may be passed to the {@link LRUCache#fetch} method.
318
- */
319
- interface FetchOptions<K, V, FC> extends FetcherFetchOptions<K, V, FC> {
320
- /**
321
- * Set to true to force a re-load of the existing data, even if it
322
- * is not yet stale.
323
- */
324
- forceRefresh?: boolean;
325
- /**
326
- * Context provided to the {@link OptionsBase.fetchMethod} as
327
- * the {@link FetcherOptions.context} param.
328
- *
329
- * If the FC type is specified as unknown (the default),
330
- * undefined or void, then this is optional. Otherwise, it will
331
- * be required.
332
- */
333
- context?: FC;
334
- signal?: AbortSignal;
335
- status?: Status<K, V, FC>;
336
- }
337
- /**
338
- * Options provided to {@link LRUCache#fetch} when the FC type is something
339
- * other than `unknown`, `undefined`, or `void`
340
- */
341
- interface FetchOptionsWithContext<K, V, FC> extends FetchOptions<K, V, FC> {
342
- context: FC;
343
- }
344
- /**
345
- * Options provided to {@link LRUCache#fetch} when the FC type is
346
- * `undefined` or `void`
347
- */
348
- interface FetchOptionsNoContext<K, V, FC extends undefined | void = undefined> extends FetchOptions<K, V, FC> {
349
- context?: undefined;
350
- }
351
- interface MemoOptions<K, V, FC = unknown> extends Pick<OptionsBase<K, V, FC>, 'allowStale' | 'updateAgeOnGet' | 'noDeleteOnStaleGet' | 'sizeCalculation' | 'ttl' | 'noDisposeOnSet' | 'noUpdateTTL' | 'noDeleteOnFetchRejection' | 'allowStaleOnFetchRejection' | 'ignoreFetchAbort' | 'allowStaleOnFetchAbort'> {
352
- /**
353
- * Set to true to force a re-load of the existing data, even if it
354
- * is not yet stale.
355
- */
356
- forceRefresh?: boolean;
357
- /**
358
- * Context provided to the {@link OptionsBase.memoMethod} as
359
- * the {@link MemoizerOptions.context} param.
360
- *
361
- * If the FC type is specified as unknown (the default),
362
- * undefined or void, then this is optional. Otherwise, it will
363
- * be required.
364
- */
365
- context?: FC;
366
- status?: Status<K, V, FC>;
367
- }
368
- /**
369
- * Options provided to {@link LRUCache#memo} when the FC type is something
370
- * other than `unknown`, `undefined`, or `void`
371
- */
372
- interface MemoOptionsWithContext<K, V, FC> extends MemoOptions<K, V, FC> {
373
- context: FC;
374
- }
375
- /**
376
- * Options provided to {@link LRUCache#memo} when the FC type is
377
- * `undefined` or `void`
378
- */
379
- interface MemoOptionsNoContext<K, V, FC extends undefined | void = undefined> extends MemoOptions<K, V, FC> {
380
- context?: undefined;
381
- }
382
- /**
383
- * Options provided to the
384
- * {@link OptionsBase.memoMethod} function.
385
- */
386
- interface MemoizerOptions<K, V, FC = unknown> {
387
- options: MemoizerMemoOptions<K, V, FC>;
388
- /**
389
- * Object provided in the {@link MemoOptions.context} option to
390
- * {@link LRUCache#memo}
391
- */
392
- context: FC;
393
- }
394
- /**
395
- * options which override the options set in the LRUCache constructor
396
- * when calling {@link LRUCache#memo}.
397
- *
398
- * This is the union of {@link GetOptions} and {@link SetOptions}, plus
399
- * {@link MemoOptions.forceRefresh}, and
400
- * {@link MemoOptions.context}
401
- *
402
- * Any of these may be modified in the {@link OptionsBase.memoMethod}
403
- * function, but the {@link GetOptions} fields will of course have no
404
- * effect, as the {@link LRUCache#get} call already happened by the time
405
- * the memoMethod is called.
406
- */
407
- interface MemoizerMemoOptions<K, V, FC = unknown> extends Pick<OptionsBase<K, V, FC>, 'allowStale' | 'updateAgeOnGet' | 'noDeleteOnStaleGet' | 'sizeCalculation' | 'ttl' | 'noDisposeOnSet' | 'noUpdateTTL'> {
408
- status?: Status<K, V, FC>;
409
- size?: Size;
410
- start?: Milliseconds;
411
- }
412
- /**
413
- * Options that may be passed to the {@link LRUCache#has} method.
414
- */
415
- interface HasOptions<K, V, FC> extends Pick<OptionsBase<K, V, FC>, 'updateAgeOnHas'> {
416
- status?: Status<K, V, FC>;
417
- }
418
- /**
419
- * Options that may be passed to the {@link LRUCache#get} method.
420
- */
421
- interface GetOptions<K, V, FC> extends Pick<OptionsBase<K, V, FC>, 'allowStale' | 'updateAgeOnGet' | 'noDeleteOnStaleGet'> {
422
- status?: Status<K, V, FC>;
423
- }
424
- /**
425
- * Options that may be passed to the {@link LRUCache#peek} method.
426
- */
427
- interface PeekOptions<K, V, FC> extends Pick<OptionsBase<K, V, FC>, 'allowStale'> {
428
- status?: Status<K, V, FC>;
429
- }
430
- /**
431
- * Options that may be passed to the {@link LRUCache#set} method.
432
- */
433
- interface SetOptions<K, V, FC> extends Pick<OptionsBase<K, V, FC>, 'sizeCalculation' | 'ttl' | 'noDisposeOnSet' | 'noUpdateTTL'> {
434
- /**
435
- * If size tracking is enabled, then setting an explicit size
436
- * in the {@link LRUCache#set} call will prevent calling the
437
- * {@link OptionsBase.sizeCalculation} function.
438
- */
439
- size?: Size;
440
- /**
441
- * If TTL tracking is enabled, then setting an explicit start
442
- * time in the {@link LRUCache#set} call will override the
443
- * default time from `performance.now()` or `Date.now()`.
444
- *
445
- * Note that it must be a valid value for whichever time-tracking
446
- * method is in use.
447
- */
448
- start?: Milliseconds;
449
- status?: Status<K, V, FC>;
450
- }
451
- /**
452
- * The type signature for the {@link OptionsBase.fetchMethod} option.
453
- */
454
- type Fetcher<K, V, FC = unknown> = (key: K, staleValue: V | undefined, options: FetcherOptions<K, V, FC>) => Promise<V | undefined | void> | V | undefined | void;
455
- /**
456
- * the type signature for the {@link OptionsBase.memoMethod} option.
457
- */
458
- type Memoizer<K, V, FC = unknown> = (key: K, staleValue: V | undefined, options: MemoizerOptions<K, V, FC>) => V;
459
- /**
460
- * Options which may be passed to the {@link LRUCache} constructor.
461
- *
462
- * Most of these may be overridden in the various options that use
463
- * them.
464
- *
465
- * Despite all being technically optional, the constructor requires that
466
- * a cache is at minimum limited by one or more of {@link OptionsBase.max},
467
- * {@link OptionsBase.ttl}, or {@link OptionsBase.maxSize}.
468
- *
469
- * If {@link OptionsBase.ttl} is used alone, then it is strongly advised
470
- * (and in fact required by the type definitions here) that the cache
471
- * also set {@link OptionsBase.ttlAutopurge}, to prevent potentially
472
- * unbounded storage.
473
- *
474
- * All options are also available on the {@link LRUCache} instance, making
475
- * it safe to pass an LRUCache instance as the options argumemnt to
476
- * make another empty cache of the same type.
477
- *
478
- * Some options are marked as read-only, because changing them after
479
- * instantiation is not safe. Changing any of the other options will of
480
- * course only have an effect on subsequent method calls.
481
- */
482
- interface OptionsBase<K, V, FC> {
483
- /**
484
- * The maximum number of items to store in the cache before evicting
485
- * old entries. This is read-only on the {@link LRUCache} instance,
486
- * and may not be overridden.
487
- *
488
- * If set, then storage space will be pre-allocated at construction
489
- * time, and the cache will perform significantly faster.
490
- *
491
- * Note that significantly fewer items may be stored, if
492
- * {@link OptionsBase.maxSize} and/or {@link OptionsBase.ttl} are also
493
- * set.
494
- *
495
- * **It is strongly recommended to set a `max` to prevent unbounded growth
496
- * of the cache.**
497
- */
498
- max?: Count;
499
- /**
500
- * Max time in milliseconds for items to live in cache before they are
501
- * considered stale. Note that stale items are NOT preemptively removed by
502
- * default, and MAY live in the cache, contributing to its LRU max, long
503
- * after they have expired, unless {@link OptionsBase.ttlAutopurge} is
504
- * set.
505
- *
506
- * If set to `0` (the default value), then that means "do not track
507
- * TTL", not "expire immediately".
508
- *
509
- * Also, as this cache is optimized for LRU/MRU operations, some of
510
- * the staleness/TTL checks will reduce performance, as they will incur
511
- * overhead by deleting items.
512
- *
513
- * This is not primarily a TTL cache, and does not make strong TTL
514
- * guarantees. There is no pre-emptive pruning of expired items, but you
515
- * _may_ set a TTL on the cache, and it will treat expired items as missing
516
- * when they are fetched, and delete them.
517
- *
518
- * Optional, but must be a non-negative integer in ms if specified.
519
- *
520
- * This may be overridden by passing an options object to `cache.set()`.
521
- *
522
- * At least one of `max`, `maxSize`, or `TTL` is required. This must be a
523
- * positive integer if set.
524
- *
525
- * Even if ttl tracking is enabled, **it is strongly recommended to set a
526
- * `max` to prevent unbounded growth of the cache.**
527
- *
528
- * If ttl tracking is enabled, and `max` and `maxSize` are not set,
529
- * and `ttlAutopurge` is not set, then a warning will be emitted
530
- * cautioning about the potential for unbounded memory consumption.
531
- * (The TypeScript definitions will also discourage this.)
532
- */
533
- ttl?: Milliseconds;
534
- /**
535
- * Minimum amount of time in ms in which to check for staleness.
536
- * Defaults to 1, which means that the current time is checked
537
- * at most once per millisecond.
538
- *
539
- * Set to 0 to check the current time every time staleness is tested.
540
- * (This reduces performance, and is theoretically unnecessary.)
541
- *
542
- * Setting this to a higher value will improve performance somewhat
543
- * while using ttl tracking, albeit at the expense of keeping stale
544
- * items around a bit longer than their TTLs would indicate.
545
- *
546
- * @default 1
547
- */
548
- ttlResolution?: Milliseconds;
549
- /**
550
- * Preemptively remove stale items from the cache.
551
- *
552
- * Note that this may *significantly* degrade performance, especially if
553
- * the cache is storing a large number of items. It is almost always best
554
- * to just leave the stale items in the cache, and let them fall out as new
555
- * items are added.
556
- *
557
- * Note that this means that {@link OptionsBase.allowStale} is a bit
558
- * pointless, as stale items will be deleted almost as soon as they
559
- * expire.
560
- *
561
- * Use with caution!
562
- */
563
- ttlAutopurge?: boolean;
564
- /**
565
- * When using time-expiring entries with `ttl`, setting this to `true` will
566
- * make each item's age reset to 0 whenever it is retrieved from cache with
567
- * {@link LRUCache#get}, causing it to not expire. (It can still fall out
568
- * of cache based on recency of use, of course.)
569
- *
570
- * Has no effect if {@link OptionsBase.ttl} is not set.
571
- *
572
- * This may be overridden by passing an options object to `cache.get()`.
573
- */
574
- updateAgeOnGet?: boolean;
575
- /**
576
- * When using time-expiring entries with `ttl`, setting this to `true` will
577
- * make each item's age reset to 0 whenever its presence in the cache is
578
- * checked with {@link LRUCache#has}, causing it to not expire. (It can
579
- * still fall out of cache based on recency of use, of course.)
580
- *
581
- * Has no effect if {@link OptionsBase.ttl} is not set.
582
- */
583
- updateAgeOnHas?: boolean;
584
- /**
585
- * Allow {@link LRUCache#get} and {@link LRUCache#fetch} calls to return
586
- * stale data, if available.
587
- *
588
- * By default, if you set `ttl`, stale items will only be deleted from the
589
- * cache when you `get(key)`. That is, it's not preemptively pruning items,
590
- * unless {@link OptionsBase.ttlAutopurge} is set.
591
- *
592
- * If you set `allowStale:true`, it'll return the stale value *as well as*
593
- * deleting it. If you don't set this, then it'll return `undefined` when
594
- * you try to get a stale entry.
595
- *
596
- * Note that when a stale entry is fetched, _even if it is returned due to
597
- * `allowStale` being set_, it is removed from the cache immediately. You
598
- * can suppress this behavior by setting
599
- * {@link OptionsBase.noDeleteOnStaleGet}, either in the constructor, or in
600
- * the options provided to {@link LRUCache#get}.
601
- *
602
- * This may be overridden by passing an options object to `cache.get()`.
603
- * The `cache.has()` method will always return `false` for stale items.
604
- *
605
- * Only relevant if a ttl is set.
606
- */
607
- allowStale?: boolean;
608
- /**
609
- * Function that is called on items when they are dropped from the
610
- * cache, as `dispose(value, key, reason)`.
611
- *
612
- * This can be handy if you want to close file descriptors or do
613
- * other cleanup tasks when items are no longer stored in the cache.
614
- *
615
- * **NOTE**: It is called _before_ the item has been fully removed
616
- * from the cache, so if you want to put it right back in, you need
617
- * to wait until the next tick. If you try to add it back in during
618
- * the `dispose()` function call, it will break things in subtle and
619
- * weird ways.
620
- *
621
- * Unlike several other options, this may _not_ be overridden by
622
- * passing an option to `set()`, for performance reasons.
623
- *
624
- * The `reason` will be one of the following strings, corresponding
625
- * to the reason for the item's deletion:
626
- *
627
- * - `evict` Item was evicted to make space for a new addition
628
- * - `set` Item was overwritten by a new value
629
- * - `expire` Item expired its TTL
630
- * - `fetch` Item was deleted due to a failed or aborted fetch, or a
631
- * fetchMethod returning `undefined.
632
- * - `delete` Item was removed by explicit `cache.delete(key)`,
633
- * `cache.clear()`, or `cache.set(key, undefined)`.
634
- */
635
- dispose?: Disposer<K, V>;
636
- /**
637
- * Function that is called when new items are inserted into the cache,
638
- * as `onInsert(value, key, reason)`.
639
- *
640
- * This can be useful if you need to perform actions when an item is
641
- * added, such as logging or tracking insertions.
642
- *
643
- * Unlike some other options, this may _not_ be overridden by passing
644
- * an option to `set()`, for performance and consistency reasons.
645
- */
646
- onInsert?: Inserter<K, V>;
647
- /**
648
- * The same as {@link OptionsBase.dispose}, but called *after* the entry
649
- * is completely removed and the cache is once again in a clean state.
650
- *
651
- * It is safe to add an item right back into the cache at this point.
652
- * However, note that it is *very* easy to inadvertently create infinite
653
- * recursion this way.
654
- */
655
- disposeAfter?: Disposer<K, V>;
656
- /**
657
- * Set to true to suppress calling the
658
- * {@link OptionsBase.dispose} function if the entry key is
659
- * still accessible within the cache.
660
- *
661
- * This may be overridden by passing an options object to
662
- * {@link LRUCache#set}.
663
- *
664
- * Only relevant if `dispose` or `disposeAfter` are set.
665
- */
666
- noDisposeOnSet?: boolean;
667
- /**
668
- * Boolean flag to tell the cache to not update the TTL when setting a new
669
- * value for an existing key (ie, when updating a value rather than
670
- * inserting a new value). Note that the TTL value is _always_ set (if
671
- * provided) when adding a new entry into the cache.
672
- *
673
- * Has no effect if a {@link OptionsBase.ttl} is not set.
674
- *
675
- * May be passed as an option to {@link LRUCache#set}.
676
- */
677
- noUpdateTTL?: boolean;
678
- /**
679
- * Set to a positive integer to track the sizes of items added to the
680
- * cache, and automatically evict items in order to stay below this size.
681
- * Note that this may result in fewer than `max` items being stored.
682
- *
683
- * Attempting to add an item to the cache whose calculated size is greater
684
- * that this amount will be a no-op. The item will not be cached, and no
685
- * other items will be evicted.
686
- *
687
- * Optional, must be a positive integer if provided.
688
- *
689
- * Sets `maxEntrySize` to the same value, unless a different value is
690
- * provided for `maxEntrySize`.
691
- *
692
- * At least one of `max`, `maxSize`, or `TTL` is required. This must be a
693
- * positive integer if set.
694
- *
695
- * Even if size tracking is enabled, **it is strongly recommended to set a
696
- * `max` to prevent unbounded growth of the cache.**
697
- *
698
- * Note also that size tracking can negatively impact performance,
699
- * though for most cases, only minimally.
700
- */
701
- maxSize?: Size;
702
- /**
703
- * The effective size for background fetch promises.
704
- *
705
- * This has no effect unless `maxSize` and `sizeCalculation` are used,
706
- * and a {@link LRUCache.OptionsBase.fetchMethod} is provided to
707
- * support {@link LRUCache#fetch}.
708
- *
709
- * If a stale value is present in the cache, then the effective size of
710
- * the background fetch is the size of the stale item it will eventually
711
- * replace. If not, then this value is used as its effective size.
712
- *
713
- * @default 1
714
- */
715
- backgroundFetchSize?: number;
716
- /**
717
- * The maximum allowed size for any single item in the cache.
718
- *
719
- * If a larger item is passed to {@link LRUCache#set} or returned by a
720
- * {@link OptionsBase.fetchMethod} or {@link OptionsBase.memoMethod}, then
721
- * it will not be stored in the cache.
722
- *
723
- * Attempting to add an item whose calculated size is greater than
724
- * this amount will not cache the item or evict any old items, but
725
- * WILL delete an existing value if one is already present.
726
- *
727
- * Optional, must be a positive integer if provided. Defaults to
728
- * the value of `maxSize` if provided.
729
- */
730
- maxEntrySize?: Size;
731
- /**
732
- * A function that returns a number indicating the item's size.
733
- *
734
- * Requires {@link OptionsBase.maxSize} to be set.
735
- *
736
- * If not provided, and {@link OptionsBase.maxSize} or
737
- * {@link OptionsBase.maxEntrySize} are set, then all
738
- * {@link LRUCache#set} calls **must** provide an explicit
739
- * {@link SetOptions.size} or sizeCalculation param.
740
- */
741
- sizeCalculation?: SizeCalculator<K, V>;
742
- /**
743
- * Method that provides the implementation for {@link LRUCache#fetch}
744
- *
745
- * ```ts
746
- * fetchMethod(key, staleValue, { signal, options, context })
747
- * ```
748
- *
749
- * If `fetchMethod` is not provided, then `cache.fetch(key)` is equivalent
750
- * to `Promise.resolve(cache.get(key))`.
751
- *
752
- * If at any time, `signal.aborted` is set to `true`, or if the
753
- * `signal.onabort` method is called, or if it emits an `'abort'` event
754
- * which you can listen to with `addEventListener`, then that means that
755
- * the fetch should be abandoned. This may be passed along to async
756
- * functions aware of AbortController/AbortSignal behavior.
757
- *
758
- * The `fetchMethod` should **only** return `undefined` or a Promise
759
- * resolving to `undefined` if the AbortController signaled an `abort`
760
- * event. In all other cases, it should return or resolve to a value
761
- * suitable for adding to the cache.
762
- *
763
- * The `options` object is a union of the options that may be provided to
764
- * `set()` and `get()`. If they are modified, then that will result in
765
- * modifying the settings to `cache.set()` when the value is resolved, and
766
- * in the case of
767
- * {@link OptionsBase.noDeleteOnFetchRejection} and
768
- * {@link OptionsBase.allowStaleOnFetchRejection}, the handling of
769
- * `fetchMethod` failures.
770
- *
771
- * For example, a DNS cache may update the TTL based on the value returned
772
- * from a remote DNS server by changing `options.ttl` in the `fetchMethod`.
773
- */
774
- fetchMethod?: Fetcher<K, V, FC>;
775
- /**
776
- * Method that provides the implementation for {@link LRUCache#memo}
777
- */
778
- memoMethod?: Memoizer<K, V, FC>;
779
- /**
780
- * Set to true to suppress the deletion of stale data when a
781
- * {@link OptionsBase.fetchMethod} returns a rejected promise.
782
- */
783
- noDeleteOnFetchRejection?: boolean;
784
- /**
785
- * Do not delete stale items when they are retrieved with
786
- * {@link LRUCache#get}.
787
- *
788
- * Note that the `get` return value will still be `undefined`
789
- * unless {@link OptionsBase.allowStale} is true.
790
- *
791
- * When using time-expiring entries with `ttl`, by default stale
792
- * items will be removed from the cache when the key is accessed
793
- * with `cache.get()`.
794
- *
795
- * Setting this option will cause stale items to remain in the cache, until
796
- * they are explicitly deleted with `cache.delete(key)`, or retrieved with
797
- * `noDeleteOnStaleGet` set to `false`.
798
- *
799
- * This may be overridden by passing an options object to `cache.get()`.
800
- *
801
- * Only relevant if a ttl is used.
802
- */
803
- noDeleteOnStaleGet?: boolean;
804
- /**
805
- * Set to true to allow returning stale data when a
806
- * {@link OptionsBase.fetchMethod} throws an error or returns a rejected
807
- * promise.
808
- *
809
- * This differs from using {@link OptionsBase.allowStale} in that stale
810
- * data will ONLY be returned in the case that the {@link LRUCache#fetch}
811
- * fails, not any other times.
812
- *
813
- * If a `fetchMethod` fails, and there is no stale value available, the
814
- * `fetch()` will resolve to `undefined`. Ie, all `fetchMethod` errors are
815
- * suppressed.
816
- *
817
- * Implies `noDeleteOnFetchRejection`.
818
- *
819
- * This may be set in calls to `fetch()`, or defaulted on the constructor,
820
- * or overridden by modifying the options object in the `fetchMethod`.
821
- */
822
- allowStaleOnFetchRejection?: boolean;
823
- /**
824
- * Set to true to return a stale value from the cache when the
825
- * `AbortSignal` passed to the {@link OptionsBase.fetchMethod} dispatches
826
- * an `'abort'` event, whether user-triggered, or due to internal cache
827
- * behavior.
828
- *
829
- * Unless {@link OptionsBase.ignoreFetchAbort} is also set, the underlying
830
- * {@link OptionsBase.fetchMethod} will still be considered canceled, and
831
- * any value it returns will be ignored and not cached.
832
- *
833
- * Caveat: since fetches are aborted when a new value is explicitly
834
- * set in the cache, this can lead to fetch returning a stale value,
835
- * since that was the fallback value _at the moment the `fetch()` was
836
- * initiated_, even though the new updated value is now present in
837
- * the cache.
838
- *
839
- * For example:
840
- *
841
- * ```ts
842
- * const cache = new LRUCache<string, any>({
843
- * ttl: 100,
844
- * fetchMethod: async (url, oldValue, { signal }) => {
845
- * const res = await fetch(url, { signal })
846
- * return await res.json()
847
- * }
848
- * })
849
- * cache.set('https://example.com/', { some: 'data' })
850
- * // 100ms go by...
851
- * const result = cache.fetch('https://example.com/')
852
- * cache.set('https://example.com/', { other: 'thing' })
853
- * console.log(await result) // { some: 'data' }
854
- * console.log(cache.get('https://example.com/')) // { other: 'thing' }
855
- * ```
856
- */
857
- allowStaleOnFetchAbort?: boolean;
858
- /**
859
- * Set to true to ignore the `abort` event emitted by the `AbortSignal`
860
- * object passed to {@link OptionsBase.fetchMethod}, and still cache the
861
- * resulting resolution value, as long as it is not `undefined`.
862
- *
863
- * When used on its own, this means aborted {@link LRUCache#fetch} calls
864
- * are not immediately resolved or rejected when they are aborted, and
865
- * instead take the full time to await.
866
- *
867
- * When used with {@link OptionsBase.allowStaleOnFetchAbort}, aborted
868
- * {@link LRUCache#fetch} calls will resolve immediately to their stale
869
- * cached value or `undefined`, and will continue to process and eventually
870
- * update the cache when they resolve, as long as the resulting value is
871
- * not `undefined`, thus supporting a "return stale on timeout while
872
- * refreshing" mechanism by passing `AbortSignal.timeout(n)` as the signal.
873
- *
874
- * For example:
875
- *
876
- * ```ts
877
- * const c = new LRUCache({
878
- * ttl: 100,
879
- * ignoreFetchAbort: true,
880
- * allowStaleOnFetchAbort: true,
881
- * fetchMethod: async (key, oldValue, { signal }) => {
882
- * // note: do NOT pass the signal to fetch()!
883
- * // let's say this fetch can take a long time.
884
- * const res = await fetch(`https://slow-backend-server/${key}`)
885
- * return await res.json()
886
- * },
887
- * })
888
- *
889
- * // this will return the stale value after 100ms, while still
890
- * // updating in the background for next time.
891
- * const val = await c.fetch('key', { signal: AbortSignal.timeout(100) })
892
- * ```
893
- *
894
- * **Note**: regardless of this setting, an `abort` event _is still
895
- * emitted on the `AbortSignal` object_, so may result in invalid results
896
- * when passed to other underlying APIs that use AbortSignals.
897
- *
898
- * This may be overridden in the {@link OptionsBase.fetchMethod} or the
899
- * call to {@link LRUCache#fetch}.
900
- */
901
- ignoreFetchAbort?: boolean;
902
- /**
903
- * In some cases, you may want to swap out the performance/Date object
904
- * used for TTL tracking. This should almost certainly NOT be done in
905
- * production environments!
906
- *
907
- * This value defaults to `global.performance` if it has a `now()` method,
908
- * or the `global.Date` object otherwise.
909
- */
910
- perf?: Perf;
911
- }
912
- interface OptionsMaxLimit<K, V, FC> extends OptionsBase<K, V, FC> {
913
- max: Count;
914
- }
915
- interface OptionsTTLLimit<K, V, FC> extends OptionsBase<K, V, FC> {
916
- ttl: Milliseconds;
917
- ttlAutopurge: boolean;
918
- }
919
- interface OptionsSizeLimit<K, V, FC> extends OptionsBase<K, V, FC> {
920
- maxSize: Size;
921
- }
922
- /**
923
- * The valid safe options for the {@link LRUCache} constructor
924
- */
925
- type Options<K, V, FC> = OptionsMaxLimit<K, V, FC> | OptionsSizeLimit<K, V, FC> | OptionsTTLLimit<K, V, FC>;
926
- /**
927
- * Entry objects used by {@link LRUCache#load} and {@link LRUCache#dump},
928
- * and returned by {@link LRUCache#info}.
929
- */
930
- interface Entry<V> {
931
- value: V;
932
- ttl?: Milliseconds;
933
- size?: Size;
934
- start?: Milliseconds;
935
- }
936
- }
937
- /**
938
- * Default export, the thing you're using this module to get.
939
- *
940
- * The `K` and `V` types define the key and value types, respectively. The
941
- * optional `FC` type defines the type of the `context` object passed to
942
- * `cache.fetch()` and `cache.memo()`.
943
- *
944
- * Keys and values **must not** be `null` or `undefined`.
945
- *
946
- * All properties from the options object (with the exception of `max`,
947
- * `maxSize`, `fetchMethod`, `memoMethod`, `dispose` and `disposeAfter`) are
948
- * added as normal public members. (The listed options are read-only getters.)
949
- *
950
- * Changing any of these will alter the defaults for subsequent method calls.
951
- */
952
- export declare class LRUCache<K extends {}, V extends {}, FC = unknown> {
953
- #private;
954
- /**
955
- * {@link LRUCache.OptionsBase.perf}
956
- */
957
- get perf(): Perf;
958
- /**
959
- * {@link LRUCache.OptionsBase.ttl}
960
- */
961
- ttl: LRUCache.Milliseconds;
962
- /**
963
- * {@link LRUCache.OptionsBase.ttlResolution}
964
- */
965
- ttlResolution: LRUCache.Milliseconds;
966
- /**
967
- * {@link LRUCache.OptionsBase.ttlAutopurge}
968
- */
969
- ttlAutopurge: boolean;
970
- /**
971
- * {@link LRUCache.OptionsBase.updateAgeOnGet}
972
- */
973
- updateAgeOnGet: boolean;
974
- /**
975
- * {@link LRUCache.OptionsBase.updateAgeOnHas}
976
- */
977
- updateAgeOnHas: boolean;
978
- /**
979
- * {@link LRUCache.OptionsBase.allowStale}
980
- */
981
- allowStale: boolean;
982
- /**
983
- * {@link LRUCache.OptionsBase.noDisposeOnSet}
984
- */
985
- noDisposeOnSet: boolean;
986
- /**
987
- * {@link LRUCache.OptionsBase.noUpdateTTL}
988
- */
989
- noUpdateTTL: boolean;
990
- /**
991
- * {@link LRUCache.OptionsBase.maxEntrySize}
992
- */
993
- maxEntrySize: LRUCache.Size;
994
- /**
995
- * {@link LRUCache.OptionsBase.sizeCalculation}
996
- */
997
- sizeCalculation?: LRUCache.SizeCalculator<K, V>;
998
- /**
999
- * {@link LRUCache.OptionsBase.noDeleteOnFetchRejection}
1000
- */
1001
- noDeleteOnFetchRejection: boolean;
1002
- /**
1003
- * {@link LRUCache.OptionsBase.noDeleteOnStaleGet}
1004
- */
1005
- noDeleteOnStaleGet: boolean;
1006
- /**
1007
- * {@link LRUCache.OptionsBase.allowStaleOnFetchAbort}
1008
- */
1009
- allowStaleOnFetchAbort: boolean;
1010
- /**
1011
- * {@link LRUCache.OptionsBase.allowStaleOnFetchRejection}
1012
- */
1013
- allowStaleOnFetchRejection: boolean;
1014
- /**
1015
- * {@link LRUCache.OptionsBase.ignoreFetchAbort}
1016
- */
1017
- ignoreFetchAbort: boolean;
1018
- /** {@link LRUCache.OptionsBase.backgroundFetchSize} */
1019
- backgroundFetchSize: number;
1020
- /**
1021
- * Do not call this method unless you need to inspect the
1022
- * inner workings of the cache. If anything returned by this
1023
- * object is modified in any way, strange breakage may occur.
1024
- *
1025
- * These fields are private for a reason!
1026
- *
1027
- * @internal
1028
- */
1029
- static unsafeExposeInternals<K extends {}, V extends {}, FC extends unknown = unknown>(c: LRUCache<K, V, FC>): {
1030
- starts: ZeroArray | undefined;
1031
- ttls: ZeroArray | undefined;
1032
- autopurgeTimers: (NodeJS.Timeout | undefined)[] | undefined;
1033
- sizes: ZeroArray | undefined;
1034
- keyMap: Map<K, number>;
1035
- keyList: (K | undefined)[];
1036
- valList: (V | BackgroundFetch<V> | undefined)[];
1037
- next: NumberArray;
1038
- prev: NumberArray;
1039
- readonly head: Index;
1040
- readonly tail: Index;
1041
- free: StackLike;
1042
- isBackgroundFetch: (p: unknown) => p is BackgroundFetch<V>;
1043
- backgroundFetch: (k: K, index: number | undefined, options: LRUCache.FetchOptions<K, V, FC>, context: unknown) => BackgroundFetch<V>;
1044
- moveToTail: (index: number) => void;
1045
- indexes: (options?: {
1046
- allowStale: boolean;
1047
- }) => Generator<Index, void, unknown>;
1048
- rindexes: (options?: {
1049
- allowStale: boolean;
1050
- }) => Generator<Index, void, unknown>;
1051
- isStale: (index: number | undefined) => boolean;
1052
- };
1053
- /**
1054
- * {@link LRUCache.OptionsBase.max} (read-only)
1055
- */
1056
- get max(): LRUCache.Count;
1057
- /**
1058
- * {@link LRUCache.OptionsBase.maxSize} (read-only)
1059
- */
1060
- get maxSize(): LRUCache.Count;
1061
- /**
1062
- * The total computed size of items in the cache (read-only)
1063
- */
1064
- get calculatedSize(): LRUCache.Size;
1065
- /**
1066
- * The number of items stored in the cache (read-only)
1067
- */
1068
- get size(): LRUCache.Count;
1069
- /**
1070
- * {@link LRUCache.OptionsBase.fetchMethod} (read-only)
1071
- */
1072
- get fetchMethod(): LRUCache.Fetcher<K, V, FC> | undefined;
1073
- get memoMethod(): LRUCache.Memoizer<K, V, FC> | undefined;
1074
- /**
1075
- * {@link LRUCache.OptionsBase.dispose} (read-only)
1076
- */
1077
- get dispose(): LRUCache.Disposer<K, V> | undefined;
1078
- /**
1079
- * {@link LRUCache.OptionsBase.onInsert} (read-only)
1080
- */
1081
- get onInsert(): LRUCache.Inserter<K, V> | undefined;
1082
- /**
1083
- * {@link LRUCache.OptionsBase.disposeAfter} (read-only)
1084
- */
1085
- get disposeAfter(): LRUCache.Disposer<K, V> | undefined;
1086
- constructor(options: LRUCache.Options<K, V, FC> | LRUCache<K, V, FC>);
1087
- /**
1088
- * Return the number of ms left in the item's TTL. If item is not in cache,
1089
- * returns `0`. Returns `Infinity` if item is in cache without a defined TTL.
1090
- */
1091
- getRemainingTTL(key: K): number;
1092
- /**
1093
- * Return a generator yielding `[key, value]` pairs,
1094
- * in order from most recently used to least recently used.
1095
- */
1096
- entries(): Generator<[K, V], void, unknown>;
1097
- /**
1098
- * Inverse order version of {@link LRUCache.entries}
1099
- *
1100
- * Return a generator yielding `[key, value]` pairs,
1101
- * in order from least recently used to most recently used.
1102
- */
1103
- rentries(): Generator<(K | V)[], void, unknown>;
1104
- /**
1105
- * Return a generator yielding the keys in the cache,
1106
- * in order from most recently used to least recently used.
1107
- */
1108
- keys(): Generator<K, void, unknown>;
1109
- /**
1110
- * Inverse order version of {@link LRUCache.keys}
1111
- *
1112
- * Return a generator yielding the keys in the cache,
1113
- * in order from least recently used to most recently used.
1114
- */
1115
- rkeys(): Generator<K, void, unknown>;
1116
- /**
1117
- * Return a generator yielding the values in the cache,
1118
- * in order from most recently used to least recently used.
1119
- */
1120
- values(): Generator<V, void, unknown>;
1121
- /**
1122
- * Inverse order version of {@link LRUCache.values}
1123
- *
1124
- * Return a generator yielding the values in the cache,
1125
- * in order from least recently used to most recently used.
1126
- */
1127
- rvalues(): Generator<V | undefined, void, unknown>;
1128
- /**
1129
- * Iterating over the cache itself yields the same results as
1130
- * {@link LRUCache.entries}
1131
- */
1132
- [Symbol.iterator](): Generator<[K, V], void, unknown>;
1133
- /**
1134
- * A String value that is used in the creation of the default string
1135
- * description of an object. Called by the built-in method
1136
- * `Object.prototype.toString`.
1137
- */
1138
- [Symbol.toStringTag]: string;
1139
- /**
1140
- * Find a value for which the supplied fn method returns a truthy value,
1141
- * similar to `Array.find()`. fn is called as `fn(value, key, cache)`.
1142
- */
1143
- find(fn: (v: V, k: K, self: LRUCache<K, V, FC>) => boolean, getOptions?: LRUCache.GetOptions<K, V, FC>): V | undefined;
1144
- /**
1145
- * Call the supplied function on each item in the cache, in order from most
1146
- * recently used to least recently used.
1147
- *
1148
- * `fn` is called as `fn(value, key, cache)`.
1149
- *
1150
- * If `thisp` is provided, function will be called in the `this`-context of
1151
- * the provided object, or the cache if no `thisp` object is provided.
1152
- *
1153
- * Does not update age or recenty of use, or iterate over stale values.
1154
- */
1155
- forEach(fn: (v: V, k: K, self: LRUCache<K, V, FC>) => unknown, thisp?: unknown): void;
1156
- /**
1157
- * The same as {@link LRUCache.forEach} but items are iterated over in
1158
- * reverse order. (ie, less recently used items are iterated over first.)
1159
- */
1160
- rforEach(fn: (v: V, k: K, self: LRUCache<K, V, FC>) => unknown, thisp?: unknown): void;
1161
- /**
1162
- * Delete any stale entries. Returns true if anything was removed,
1163
- * false otherwise.
1164
- */
1165
- purgeStale(): boolean;
1166
- /**
1167
- * Get the extended info about a given entry, to get its value, size, and
1168
- * TTL info simultaneously. Returns `undefined` if the key is not present.
1169
- *
1170
- * Unlike {@link LRUCache#dump}, which is designed to be portable and survive
1171
- * serialization, the `start` value is always the current timestamp, and the
1172
- * `ttl` is a calculated remaining time to live (negative if expired).
1173
- *
1174
- * Always returns stale values, if their info is found in the cache, so be
1175
- * sure to check for expirations (ie, a negative {@link LRUCache.Entry#ttl})
1176
- * if relevant.
1177
- */
1178
- info(key: K): LRUCache.Entry<V> | undefined;
1179
- /**
1180
- * Return an array of [key, {@link LRUCache.Entry}] tuples which can be
1181
- * passed to {@link LRUCache#load}.
1182
- *
1183
- * The `start` fields are calculated relative to a portable `Date.now()`
1184
- * timestamp, even if `performance.now()` is available.
1185
- *
1186
- * Stale entries are always included in the `dump`, even if
1187
- * {@link LRUCache.OptionsBase.allowStale} is false.
1188
- *
1189
- * Note: this returns an actual array, not a generator, so it can be more
1190
- * easily passed around.
1191
- */
1192
- dump(): [K, LRUCache.Entry<V>][];
1193
- /**
1194
- * Reset the cache and load in the items in entries in the order listed.
1195
- *
1196
- * The shape of the resulting cache may be different if the same options are
1197
- * not used in both caches.
1198
- *
1199
- * The `start` fields are assumed to be calculated relative to a portable
1200
- * `Date.now()` timestamp, even if `performance.now()` is available.
1201
- */
1202
- load(arr: [K, LRUCache.Entry<V>][]): void;
1203
- /**
1204
- * Add a value to the cache.
1205
- *
1206
- * Note: if `undefined` is specified as a value, this is an alias for
1207
- * {@link LRUCache#delete}
1208
- *
1209
- * Fields on the {@link LRUCache.SetOptions} options param will override
1210
- * their corresponding values in the constructor options for the scope
1211
- * of this single `set()` operation.
1212
- *
1213
- * If `start` is provided, then that will set the effective start
1214
- * time for the TTL calculation. Note that this must be a previous
1215
- * value of `performance.now()` if supported, or a previous value of
1216
- * `Date.now()` if not.
1217
- *
1218
- * Options object may also include `size`, which will prevent
1219
- * calling the `sizeCalculation` function and just use the specified
1220
- * number if it is a positive integer, and `noDisposeOnSet` which
1221
- * will prevent calling a `dispose` function in the case of
1222
- * overwrites.
1223
- *
1224
- * If the `size` (or return value of `sizeCalculation`) for a given
1225
- * entry is greater than `maxEntrySize`, then the item will not be
1226
- * added to the cache.
1227
- *
1228
- * Will update the recency of the entry.
1229
- *
1230
- * If the value is `undefined`, then this is an alias for
1231
- * `cache.delete(key)`. `undefined` is never stored in the cache.
1232
- */
1233
- set(k: K, v: V | undefined, setOptions?: LRUCache.SetOptions<K, V, FC>): this;
1234
- /**
1235
- * Evict the least recently used item, returning its value or
1236
- * `undefined` if cache is empty.
1237
- */
1238
- pop(): V | undefined;
1239
- /**
1240
- * Check if a key is in the cache, without updating the recency of use.
1241
- * Will return false if the item is stale, even though it is technically
1242
- * in the cache.
1243
- *
1244
- * Check if a key is in the cache, without updating the recency of
1245
- * use. Age is updated if {@link LRUCache.OptionsBase.updateAgeOnHas} is set
1246
- * to `true` in either the options or the constructor.
1247
- *
1248
- * Will return `false` if the item is stale, even though it is technically in
1249
- * the cache. The difference can be determined (if it matters) by using a
1250
- * `status` argument, and inspecting the `has` field.
1251
- *
1252
- * Will not update item age unless
1253
- * {@link LRUCache.OptionsBase.updateAgeOnHas} is set.
1254
- */
1255
- has(k: K, hasOptions?: LRUCache.HasOptions<K, V, FC>): boolean;
1256
- /**
1257
- * Like {@link LRUCache#get} but doesn't update recency or delete stale
1258
- * items.
1259
- *
1260
- * Returns `undefined` if the item is stale, unless
1261
- * {@link LRUCache.OptionsBase.allowStale} is set.
1262
- */
1263
- peek(k: K, peekOptions?: LRUCache.PeekOptions<K, V, FC>): V | undefined;
1264
- /**
1265
- * Make an asynchronous cached fetch using the
1266
- * {@link LRUCache.OptionsBase.fetchMethod} function.
1267
- *
1268
- * If the value is in the cache and not stale, then the returned
1269
- * Promise resolves to the value.
1270
- *
1271
- * If not in the cache, or beyond its TTL staleness, then
1272
- * `fetchMethod(key, staleValue, { options, signal, context })` is
1273
- * called, and the value returned will be added to the cache once
1274
- * resolved.
1275
- *
1276
- * If called with `allowStale`, and an asynchronous fetch is
1277
- * currently in progress to reload a stale value, then the former
1278
- * stale value will be returned.
1279
- *
1280
- * If called with `forceRefresh`, then the cached item will be
1281
- * re-fetched, even if it is not stale. However, if `allowStale` is also
1282
- * set, then the old value will still be returned. This is useful
1283
- * in cases where you want to force a reload of a cached value. If
1284
- * a background fetch is already in progress, then `forceRefresh`
1285
- * has no effect.
1286
- *
1287
- * If multiple fetches for the same key are issued, then they will all be
1288
- * coalesced into a single call to fetchMethod.
1289
- *
1290
- * Note that this means that handling options such as
1291
- * {@link LRUCache.OptionsBase.allowStaleOnFetchAbort},
1292
- * {@link LRUCache.FetchOptions.signal},
1293
- * and {@link LRUCache.OptionsBase.allowStaleOnFetchRejection} will be
1294
- * determined by the FIRST fetch() call for a given key.
1295
- *
1296
- * This is a known (fixable) shortcoming which will be addresed on when
1297
- * someone complains about it, as the fix would involve added complexity and
1298
- * may not be worth the costs for this edge case.
1299
- *
1300
- * If {@link LRUCache.OptionsBase.fetchMethod} is not specified, then this is
1301
- * effectively an alias for `Promise.resolve(cache.get(key))`.
1302
- *
1303
- * When the fetch method resolves to a value, if the fetch has not
1304
- * been aborted due to deletion, eviction, or being overwritten,
1305
- * then it is added to the cache using the options provided.
1306
- *
1307
- * If the key is evicted or deleted before the `fetchMethod`
1308
- * resolves, then the AbortSignal passed to the `fetchMethod` will
1309
- * receive an `abort` event, and the promise returned by `fetch()`
1310
- * will reject with the reason for the abort.
1311
- *
1312
- * If a `signal` is passed to the `fetch()` call, then aborting the
1313
- * signal will abort the fetch and cause the `fetch()` promise to
1314
- * reject with the reason provided.
1315
- *
1316
- * **Setting `context`**
1317
- *
1318
- * If an `FC` type is set to a type other than `unknown`, `void`, or
1319
- * `undefined` in the {@link LRUCache} constructor, then all
1320
- * calls to `cache.fetch()` _must_ provide a `context` option. If
1321
- * set to `undefined` or `void`, then calls to fetch _must not_
1322
- * provide a `context` option.
1323
- *
1324
- * The `context` param allows you to provide arbitrary data that
1325
- * might be relevant in the course of fetching the data. It is only
1326
- * relevant for the course of a single `fetch()` operation, and
1327
- * discarded afterwards.
1328
- *
1329
- * **Note: `fetch()` calls are inflight-unique**
1330
- *
1331
- * If you call `fetch()` multiple times with the same key value,
1332
- * then every call after the first will resolve on the same
1333
- * promise<sup>1</sup>,
1334
- * _even if they have different settings that would otherwise change
1335
- * the behavior of the fetch_, such as `noDeleteOnFetchRejection`
1336
- * or `ignoreFetchAbort`.
1337
- *
1338
- * In most cases, this is not a problem (in fact, only fetching
1339
- * something once is what you probably want, if you're caching in
1340
- * the first place). If you are changing the fetch() options
1341
- * dramatically between runs, there's a good chance that you might
1342
- * be trying to fit divergent semantics into a single object, and
1343
- * would be better off with multiple cache instances.
1344
- *
1345
- * **1**: Ie, they're not the "same Promise", but they resolve at
1346
- * the same time, because they're both waiting on the same
1347
- * underlying fetchMethod response.
1348
- */
1349
- fetch(k: K, fetchOptions: unknown extends FC ? LRUCache.FetchOptions<K, V, FC> : FC extends undefined | void ? LRUCache.FetchOptionsNoContext<K, V, FC> : LRUCache.FetchOptionsWithContext<K, V, FC>): Promise<undefined | V>;
1350
- fetch(k: unknown extends FC ? K : FC extends undefined | void ? K : never, fetchOptions?: unknown extends FC ? LRUCache.FetchOptions<K, V, FC> : FC extends undefined | void ? LRUCache.FetchOptionsNoContext<K, V, FC> : never): Promise<undefined | V>;
1351
- /**
1352
- * In some cases, `cache.fetch()` may resolve to `undefined`, either because
1353
- * a {@link LRUCache.OptionsBase#fetchMethod} was not provided (turning
1354
- * `cache.fetch(k)` into just an async wrapper around `cache.get(k)`) or
1355
- * because `ignoreFetchAbort` was specified (either to the constructor or
1356
- * in the {@link LRUCache.FetchOptions}). Also, the
1357
- * {@link LRUCache.OptionsBase.fetchMethod} may return `undefined` or `void`, making
1358
- * the test even more complicated.
1359
- *
1360
- * Because inferring the cases where `undefined` might be returned are so
1361
- * cumbersome, but testing for `undefined` can also be annoying, this method
1362
- * can be used, which will reject if `this.fetch()` resolves to undefined.
1363
- */
1364
- forceFetch(k: K, fetchOptions: unknown extends FC ? LRUCache.FetchOptions<K, V, FC> : FC extends undefined | void ? LRUCache.FetchOptionsNoContext<K, V, FC> : LRUCache.FetchOptionsWithContext<K, V, FC>): Promise<V>;
1365
- forceFetch(k: unknown extends FC ? K : FC extends undefined | void ? K : never, fetchOptions?: unknown extends FC ? LRUCache.FetchOptions<K, V, FC> : FC extends undefined | void ? LRUCache.FetchOptionsNoContext<K, V, FC> : never): Promise<V>;
1366
- /**
1367
- * If the key is found in the cache, then this is equivalent to
1368
- * {@link LRUCache#get}. If not, in the cache, then calculate the value using
1369
- * the {@link LRUCache.OptionsBase.memoMethod}, and add it to the cache.
1370
- *
1371
- * If an `FC` type is set to a type other than `unknown`, `void`, or
1372
- * `undefined` in the LRUCache constructor, then all calls to `cache.memo()`
1373
- * _must_ provide a `context` option. If set to `undefined` or `void`, then
1374
- * calls to memo _must not_ provide a `context` option.
1375
- *
1376
- * The `context` param allows you to provide arbitrary data that might be
1377
- * relevant in the course of fetching the data. It is only relevant for the
1378
- * course of a single `memo()` operation, and discarded afterwards.
1379
- */
1380
- memo(k: K, memoOptions: unknown extends FC ? LRUCache.MemoOptions<K, V, FC> : FC extends undefined | void ? LRUCache.MemoOptionsNoContext<K, V, FC> : LRUCache.MemoOptionsWithContext<K, V, FC>): V;
1381
- memo(k: unknown extends FC ? K : FC extends undefined | void ? K : never, memoOptions?: unknown extends FC ? LRUCache.MemoOptions<K, V, FC> : FC extends undefined | void ? LRUCache.MemoOptionsNoContext<K, V, FC> : never): V;
1382
- /**
1383
- * Return a value from the cache. Will update the recency of the cache
1384
- * entry found.
1385
- *
1386
- * If the key is not found, get() will return `undefined`.
1387
- */
1388
- get(k: K, getOptions?: LRUCache.GetOptions<K, V, FC>): V | undefined;
1389
- /**
1390
- * Deletes a key out of the cache.
1391
- *
1392
- * Returns true if the key was deleted, false otherwise.
1393
- */
1394
- delete(k: K): boolean;
1395
- /**
1396
- * Clear the cache entirely, throwing away all values.
1397
- */
1398
- clear(): void;
1399
- }
1400
- //# sourceMappingURL=index.d.ts.map