@windrun-huaiin/backend-core 12.0.0 → 14.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (298) hide show
  1. package/dist/_virtual/_commonjs-dynamic-modules.js +7 -0
  2. package/dist/_virtual/_commonjs-dynamic-modules.mjs +5 -0
  3. package/dist/_virtual/_commonjsHelpers.js +10 -0
  4. package/dist/_virtual/_commonjsHelpers.mjs +7 -0
  5. package/dist/_virtual/aes.js +5 -0
  6. package/dist/_virtual/aes.mjs +3 -0
  7. package/dist/_virtual/blowfish.js +5 -0
  8. package/dist/_virtual/blowfish.mjs +3 -0
  9. package/dist/_virtual/cipher-core.js +5 -0
  10. package/dist/_virtual/cipher-core.mjs +3 -0
  11. package/dist/_virtual/core.js +5 -0
  12. package/dist/_virtual/core.mjs +3 -0
  13. package/dist/_virtual/enc-base64.js +5 -0
  14. package/dist/_virtual/enc-base64.mjs +3 -0
  15. package/dist/_virtual/enc-base64url.js +5 -0
  16. package/dist/_virtual/enc-base64url.mjs +3 -0
  17. package/dist/_virtual/enc-utf16.js +5 -0
  18. package/dist/_virtual/enc-utf16.mjs +3 -0
  19. package/dist/_virtual/evpkdf.js +5 -0
  20. package/dist/_virtual/evpkdf.mjs +3 -0
  21. package/dist/_virtual/format-hex.js +5 -0
  22. package/dist/_virtual/format-hex.mjs +3 -0
  23. package/dist/_virtual/hmac.js +5 -0
  24. package/dist/_virtual/hmac.mjs +3 -0
  25. package/dist/_virtual/index.js +11 -0
  26. package/dist/_virtual/index.mjs +7 -0
  27. package/dist/_virtual/index2.js +5 -0
  28. package/dist/_virtual/index2.mjs +3 -0
  29. package/dist/_virtual/lib-typedarrays.js +5 -0
  30. package/dist/_virtual/lib-typedarrays.mjs +3 -0
  31. package/dist/_virtual/md5.js +5 -0
  32. package/dist/_virtual/md5.mjs +3 -0
  33. package/dist/_virtual/mode-cfb.js +5 -0
  34. package/dist/_virtual/mode-cfb.mjs +3 -0
  35. package/dist/_virtual/mode-ctr-gladman.js +5 -0
  36. package/dist/_virtual/mode-ctr-gladman.mjs +3 -0
  37. package/dist/_virtual/mode-ctr.js +5 -0
  38. package/dist/_virtual/mode-ctr.mjs +3 -0
  39. package/dist/_virtual/mode-ecb.js +5 -0
  40. package/dist/_virtual/mode-ecb.mjs +3 -0
  41. package/dist/_virtual/mode-ofb.js +5 -0
  42. package/dist/_virtual/mode-ofb.mjs +3 -0
  43. package/dist/_virtual/pad-ansix923.js +5 -0
  44. package/dist/_virtual/pad-ansix923.mjs +3 -0
  45. package/dist/_virtual/pad-iso10126.js +5 -0
  46. package/dist/_virtual/pad-iso10126.mjs +3 -0
  47. package/dist/_virtual/pad-iso97971.js +5 -0
  48. package/dist/_virtual/pad-iso97971.mjs +3 -0
  49. package/dist/_virtual/pad-nopadding.js +5 -0
  50. package/dist/_virtual/pad-nopadding.mjs +3 -0
  51. package/dist/_virtual/pad-zeropadding.js +5 -0
  52. package/dist/_virtual/pad-zeropadding.mjs +3 -0
  53. package/dist/_virtual/pbkdf2.js +5 -0
  54. package/dist/_virtual/pbkdf2.mjs +3 -0
  55. package/dist/_virtual/rabbit-legacy.js +5 -0
  56. package/dist/_virtual/rabbit-legacy.mjs +3 -0
  57. package/dist/_virtual/rabbit.js +5 -0
  58. package/dist/_virtual/rabbit.mjs +3 -0
  59. package/dist/_virtual/rc4.js +5 -0
  60. package/dist/_virtual/rc4.mjs +3 -0
  61. package/dist/_virtual/ripemd160.js +5 -0
  62. package/dist/_virtual/ripemd160.mjs +3 -0
  63. package/dist/_virtual/sha1.js +5 -0
  64. package/dist/_virtual/sha1.mjs +3 -0
  65. package/dist/_virtual/sha224.js +5 -0
  66. package/dist/_virtual/sha224.mjs +3 -0
  67. package/dist/_virtual/sha256.js +5 -0
  68. package/dist/_virtual/sha256.mjs +3 -0
  69. package/dist/_virtual/sha3.js +5 -0
  70. package/dist/_virtual/sha3.mjs +3 -0
  71. package/dist/_virtual/sha384.js +5 -0
  72. package/dist/_virtual/sha384.mjs +3 -0
  73. package/dist/_virtual/sha512.js +5 -0
  74. package/dist/_virtual/sha512.mjs +3 -0
  75. package/dist/_virtual/tripledes.js +5 -0
  76. package/dist/_virtual/tripledes.mjs +3 -0
  77. package/dist/_virtual/x64-core.js +5 -0
  78. package/dist/_virtual/x64-core.mjs +3 -0
  79. package/dist/index.js +48 -0
  80. package/dist/index.mjs +7 -0
  81. package/dist/lib/index.d.ts +2 -0
  82. package/dist/lib/index.d.ts.map +1 -1
  83. package/dist/lib/index.js +48 -0
  84. package/dist/lib/index.mjs +7 -0
  85. package/dist/lib/upstash/index.d.ts +7 -0
  86. package/dist/lib/upstash/index.d.ts.map +1 -0
  87. package/dist/lib/upstash/qstash.d.ts +36 -0
  88. package/dist/lib/upstash/qstash.d.ts.map +1 -0
  89. package/dist/lib/upstash/qstash.js +134 -0
  90. package/dist/lib/upstash/qstash.mjs +128 -0
  91. package/dist/lib/upstash/redis-counter.d.ts +17 -0
  92. package/dist/lib/upstash/redis-counter.d.ts.map +1 -0
  93. package/dist/lib/upstash/redis-counter.js +40 -0
  94. package/dist/lib/upstash/redis-counter.mjs +35 -0
  95. package/dist/lib/upstash/redis-favorite.d.ts +21 -0
  96. package/dist/lib/upstash/redis-favorite.d.ts.map +1 -0
  97. package/dist/lib/upstash/redis-favorite.js +60 -0
  98. package/dist/lib/upstash/redis-favorite.mjs +54 -0
  99. package/dist/lib/upstash/redis-like.d.ts +21 -0
  100. package/dist/lib/upstash/redis-like.d.ts.map +1 -0
  101. package/dist/lib/upstash/redis-like.js +60 -0
  102. package/dist/lib/upstash/redis-like.mjs +54 -0
  103. package/dist/lib/upstash/redis-lock.d.ts +13 -0
  104. package/dist/lib/upstash/redis-lock.d.ts.map +1 -0
  105. package/dist/lib/upstash/redis-lock.js +59 -0
  106. package/dist/lib/upstash/redis-lock.mjs +55 -0
  107. package/dist/lib/upstash/redis-structures.d.ts +63 -0
  108. package/dist/lib/upstash/redis-structures.d.ts.map +1 -0
  109. package/dist/lib/upstash/redis-structures.js +175 -0
  110. package/dist/lib/upstash/redis-structures.mjs +159 -0
  111. package/dist/lib/upstash-config.d.ts +19 -0
  112. package/dist/lib/upstash-config.d.ts.map +1 -0
  113. package/dist/lib/upstash-config.js +247 -0
  114. package/dist/lib/upstash-config.mjs +242 -0
  115. package/dist/node_modules/.pnpm/@upstash_qstash@2.10.1/node_modules/@upstash/qstash/chunk-35B33QW3.js +1848 -0
  116. package/dist/node_modules/.pnpm/@upstash_qstash@2.10.1/node_modules/@upstash/qstash/chunk-35B33QW3.mjs +1830 -0
  117. package/dist/node_modules/.pnpm/@upstash_redis@1.37.0/node_modules/@upstash/redis/chunk-IH7W44G6.js +5308 -0
  118. package/dist/node_modules/.pnpm/@upstash_redis@1.37.0/node_modules/@upstash/redis/chunk-IH7W44G6.mjs +5302 -0
  119. package/dist/node_modules/.pnpm/@upstash_redis@1.37.0/node_modules/@upstash/redis/nodejs.js +116 -0
  120. package/dist/node_modules/.pnpm/@upstash_redis@1.37.0/node_modules/@upstash/redis/nodejs.mjs +113 -0
  121. package/dist/node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/aes.js +248 -0
  122. package/dist/node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/aes.mjs +246 -0
  123. package/dist/node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/blowfish.js +485 -0
  124. package/dist/node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/blowfish.mjs +483 -0
  125. package/dist/node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/cipher-core.js +906 -0
  126. package/dist/node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/cipher-core.mjs +904 -0
  127. package/dist/node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/core.js +818 -0
  128. package/dist/node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/core.mjs +816 -0
  129. package/dist/node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/enc-base64.js +146 -0
  130. package/dist/node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/enc-base64.mjs +144 -0
  131. package/dist/node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/enc-base64url.js +158 -0
  132. package/dist/node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/enc-base64url.mjs +156 -0
  133. package/dist/node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/enc-utf16.js +159 -0
  134. package/dist/node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/enc-utf16.mjs +157 -0
  135. package/dist/node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/evpkdf.js +146 -0
  136. package/dist/node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/evpkdf.mjs +144 -0
  137. package/dist/node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/format-hex.js +77 -0
  138. package/dist/node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/format-hex.mjs +75 -0
  139. package/dist/node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/hmac.js +153 -0
  140. package/dist/node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/hmac.mjs +151 -0
  141. package/dist/node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/index.js +62 -0
  142. package/dist/node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/index.mjs +60 -0
  143. package/dist/node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/lib-typedarrays.js +86 -0
  144. package/dist/node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/lib-typedarrays.mjs +84 -0
  145. package/dist/node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/md5.js +278 -0
  146. package/dist/node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/md5.mjs +276 -0
  147. package/dist/node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/mode-cfb.js +91 -0
  148. package/dist/node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/mode-cfb.mjs +89 -0
  149. package/dist/node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/mode-ctr-gladman.js +127 -0
  150. package/dist/node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/mode-ctr-gladman.mjs +125 -0
  151. package/dist/node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/mode-ctr.js +69 -0
  152. package/dist/node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/mode-ctr.mjs +67 -0
  153. package/dist/node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/mode-ecb.js +51 -0
  154. package/dist/node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/mode-ecb.mjs +49 -0
  155. package/dist/node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/mode-ofb.js +65 -0
  156. package/dist/node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/mode-ofb.mjs +63 -0
  157. package/dist/node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/pad-ansix923.js +60 -0
  158. package/dist/node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/pad-ansix923.mjs +58 -0
  159. package/dist/node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/pad-iso10126.js +55 -0
  160. package/dist/node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/pad-iso10126.mjs +53 -0
  161. package/dist/node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/pad-iso97971.js +51 -0
  162. package/dist/node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/pad-iso97971.mjs +49 -0
  163. package/dist/node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/pad-nopadding.js +41 -0
  164. package/dist/node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/pad-nopadding.mjs +39 -0
  165. package/dist/node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/pad-zeropadding.js +58 -0
  166. package/dist/node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/pad-zeropadding.mjs +56 -0
  167. package/dist/node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/pbkdf2.js +157 -0
  168. package/dist/node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/pbkdf2.mjs +155 -0
  169. package/dist/node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/rabbit-legacy.js +204 -0
  170. package/dist/node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/rabbit-legacy.mjs +202 -0
  171. package/dist/node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/rabbit.js +206 -0
  172. package/dist/node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/rabbit.mjs +204 -0
  173. package/dist/node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/rc4.js +153 -0
  174. package/dist/node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/rc4.mjs +151 -0
  175. package/dist/node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/ripemd160.js +277 -0
  176. package/dist/node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/ripemd160.mjs +275 -0
  177. package/dist/node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/sha1.js +160 -0
  178. package/dist/node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/sha1.mjs +158 -0
  179. package/dist/node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/sha224.js +91 -0
  180. package/dist/node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/sha224.mjs +89 -0
  181. package/dist/node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/sha256.js +209 -0
  182. package/dist/node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/sha256.mjs +207 -0
  183. package/dist/node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/sha3.js +337 -0
  184. package/dist/node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/sha3.mjs +335 -0
  185. package/dist/node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/sha384.js +95 -0
  186. package/dist/node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/sha384.mjs +93 -0
  187. package/dist/node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/sha512.js +337 -0
  188. package/dist/node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/sha512.mjs +335 -0
  189. package/dist/node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/tripledes.js +793 -0
  190. package/dist/node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/tripledes.mjs +791 -0
  191. package/dist/node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/x64-core.js +314 -0
  192. package/dist/node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/x64-core.mjs +312 -0
  193. package/dist/node_modules/.pnpm/jose@5.10.0/node_modules/jose/dist/node/esm/jws/compact/verify.js +26 -0
  194. package/dist/node_modules/.pnpm/jose@5.10.0/node_modules/jose/dist/node/esm/jws/compact/verify.mjs +24 -0
  195. package/dist/node_modules/.pnpm/jose@5.10.0/node_modules/jose/dist/node/esm/jws/flattened/verify.js +127 -0
  196. package/dist/node_modules/.pnpm/jose@5.10.0/node_modules/jose/dist/node/esm/jws/flattened/verify.mjs +125 -0
  197. package/dist/node_modules/.pnpm/jose@5.10.0/node_modules/jose/dist/node/esm/jwt/verify.js +20 -0
  198. package/dist/node_modules/.pnpm/jose@5.10.0/node_modules/jose/dist/node/esm/jwt/verify.mjs +18 -0
  199. package/dist/node_modules/.pnpm/jose@5.10.0/node_modules/jose/dist/node/esm/key/import.js +31 -0
  200. package/dist/node_modules/.pnpm/jose@5.10.0/node_modules/jose/dist/node/esm/key/import.mjs +29 -0
  201. package/dist/node_modules/.pnpm/jose@5.10.0/node_modules/jose/dist/node/esm/lib/buffer_utils.js +18 -0
  202. package/dist/node_modules/.pnpm/jose@5.10.0/node_modules/jose/dist/node/esm/lib/buffer_utils.mjs +14 -0
  203. package/dist/node_modules/.pnpm/jose@5.10.0/node_modules/jose/dist/node/esm/lib/check_key_type.js +82 -0
  204. package/dist/node_modules/.pnpm/jose@5.10.0/node_modules/jose/dist/node/esm/lib/check_key_type.mjs +80 -0
  205. package/dist/node_modules/.pnpm/jose@5.10.0/node_modules/jose/dist/node/esm/lib/crypto_key.js +103 -0
  206. package/dist/node_modules/.pnpm/jose@5.10.0/node_modules/jose/dist/node/esm/lib/crypto_key.mjs +101 -0
  207. package/dist/node_modules/.pnpm/jose@5.10.0/node_modules/jose/dist/node/esm/lib/epoch.js +7 -0
  208. package/dist/node_modules/.pnpm/jose@5.10.0/node_modules/jose/dist/node/esm/lib/epoch.mjs +3 -0
  209. package/dist/node_modules/.pnpm/jose@5.10.0/node_modules/jose/dist/node/esm/lib/invalid_key_input.js +38 -0
  210. package/dist/node_modules/.pnpm/jose@5.10.0/node_modules/jose/dist/node/esm/lib/invalid_key_input.mjs +33 -0
  211. package/dist/node_modules/.pnpm/jose@5.10.0/node_modules/jose/dist/node/esm/lib/is_disjoint.js +27 -0
  212. package/dist/node_modules/.pnpm/jose@5.10.0/node_modules/jose/dist/node/esm/lib/is_disjoint.mjs +23 -0
  213. package/dist/node_modules/.pnpm/jose@5.10.0/node_modules/jose/dist/node/esm/lib/is_jwk.js +21 -0
  214. package/dist/node_modules/.pnpm/jose@5.10.0/node_modules/jose/dist/node/esm/lib/is_jwk.mjs +16 -0
  215. package/dist/node_modules/.pnpm/jose@5.10.0/node_modules/jose/dist/node/esm/lib/is_object.js +22 -0
  216. package/dist/node_modules/.pnpm/jose@5.10.0/node_modules/jose/dist/node/esm/lib/is_object.mjs +18 -0
  217. package/dist/node_modules/.pnpm/jose@5.10.0/node_modules/jose/dist/node/esm/lib/jwt_claims_set.js +111 -0
  218. package/dist/node_modules/.pnpm/jose@5.10.0/node_modules/jose/dist/node/esm/lib/jwt_claims_set.mjs +107 -0
  219. package/dist/node_modules/.pnpm/jose@5.10.0/node_modules/jose/dist/node/esm/lib/secs.js +61 -0
  220. package/dist/node_modules/.pnpm/jose@5.10.0/node_modules/jose/dist/node/esm/lib/secs.mjs +57 -0
  221. package/dist/node_modules/.pnpm/jose@5.10.0/node_modules/jose/dist/node/esm/lib/validate_algorithms.js +16 -0
  222. package/dist/node_modules/.pnpm/jose@5.10.0/node_modules/jose/dist/node/esm/lib/validate_algorithms.mjs +12 -0
  223. package/dist/node_modules/.pnpm/jose@5.10.0/node_modules/jose/dist/node/esm/lib/validate_crit.js +40 -0
  224. package/dist/node_modules/.pnpm/jose@5.10.0/node_modules/jose/dist/node/esm/lib/validate_crit.mjs +36 -0
  225. package/dist/node_modules/.pnpm/jose@5.10.0/node_modules/jose/dist/node/esm/runtime/base64url.js +15 -0
  226. package/dist/node_modules/.pnpm/jose@5.10.0/node_modules/jose/dist/node/esm/runtime/base64url.mjs +13 -0
  227. package/dist/node_modules/.pnpm/jose@5.10.0/node_modules/jose/dist/node/esm/runtime/check_key_length.js +23 -0
  228. package/dist/node_modules/.pnpm/jose@5.10.0/node_modules/jose/dist/node/esm/runtime/check_key_length.mjs +19 -0
  229. package/dist/node_modules/.pnpm/jose@5.10.0/node_modules/jose/dist/node/esm/runtime/dsa_digest.js +30 -0
  230. package/dist/node_modules/.pnpm/jose@5.10.0/node_modules/jose/dist/node/esm/runtime/dsa_digest.mjs +26 -0
  231. package/dist/node_modules/.pnpm/jose@5.10.0/node_modules/jose/dist/node/esm/runtime/get_named_curve.js +60 -0
  232. package/dist/node_modules/.pnpm/jose@5.10.0/node_modules/jose/dist/node/esm/runtime/get_named_curve.mjs +56 -0
  233. package/dist/node_modules/.pnpm/jose@5.10.0/node_modules/jose/dist/node/esm/runtime/get_sign_verify_key.js +35 -0
  234. package/dist/node_modules/.pnpm/jose@5.10.0/node_modules/jose/dist/node/esm/runtime/get_sign_verify_key.mjs +31 -0
  235. package/dist/node_modules/.pnpm/jose@5.10.0/node_modules/jose/dist/node/esm/runtime/hmac_digest.js +20 -0
  236. package/dist/node_modules/.pnpm/jose@5.10.0/node_modules/jose/dist/node/esm/runtime/hmac_digest.mjs +16 -0
  237. package/dist/node_modules/.pnpm/jose@5.10.0/node_modules/jose/dist/node/esm/runtime/is_key_like.js +15 -0
  238. package/dist/node_modules/.pnpm/jose@5.10.0/node_modules/jose/dist/node/esm/runtime/is_key_like.mjs +10 -0
  239. package/dist/node_modules/.pnpm/jose@5.10.0/node_modules/jose/dist/node/esm/runtime/is_key_object.js +28 -0
  240. package/dist/node_modules/.pnpm/jose@5.10.0/node_modules/jose/dist/node/esm/runtime/is_key_object.mjs +5 -0
  241. package/dist/node_modules/.pnpm/jose@5.10.0/node_modules/jose/dist/node/esm/runtime/jwk_to_key.js +14 -0
  242. package/dist/node_modules/.pnpm/jose@5.10.0/node_modules/jose/dist/node/esm/runtime/jwk_to_key.mjs +10 -0
  243. package/dist/node_modules/.pnpm/jose@5.10.0/node_modules/jose/dist/node/esm/runtime/node_key.js +115 -0
  244. package/dist/node_modules/.pnpm/jose@5.10.0/node_modules/jose/dist/node/esm/runtime/node_key.mjs +111 -0
  245. package/dist/node_modules/.pnpm/jose@5.10.0/node_modules/jose/dist/node/esm/runtime/sign.js +42 -0
  246. package/dist/node_modules/.pnpm/jose@5.10.0/node_modules/jose/dist/node/esm/runtime/sign.mjs +19 -0
  247. package/dist/node_modules/.pnpm/jose@5.10.0/node_modules/jose/dist/node/esm/runtime/verify.js +54 -0
  248. package/dist/node_modules/.pnpm/jose@5.10.0/node_modules/jose/dist/node/esm/runtime/verify.mjs +31 -0
  249. package/dist/node_modules/.pnpm/jose@5.10.0/node_modules/jose/dist/node/esm/runtime/webcrypto.js +32 -0
  250. package/dist/node_modules/.pnpm/jose@5.10.0/node_modules/jose/dist/node/esm/runtime/webcrypto.mjs +7 -0
  251. package/dist/node_modules/.pnpm/jose@5.10.0/node_modules/jose/dist/node/esm/util/errors.js +69 -0
  252. package/dist/node_modules/.pnpm/jose@5.10.0/node_modules/jose/dist/node/esm/util/errors.mjs +60 -0
  253. package/dist/node_modules/.pnpm/neverthrow@7.2.0/node_modules/neverthrow/dist/index.es.js +422 -0
  254. package/dist/node_modules/.pnpm/neverthrow@7.2.0/node_modules/neverthrow/dist/index.es.mjs +415 -0
  255. package/dist/node_modules/.pnpm/uncrypto@0.1.3/node_modules/uncrypto/dist/crypto.web.js +6 -0
  256. package/dist/node_modules/.pnpm/uncrypto@0.1.3/node_modules/uncrypto/dist/crypto.web.mjs +4 -0
  257. package/dist/prisma/prisma.d.ts +1 -1
  258. package/dist/prisma/prisma.d.ts.map +1 -1
  259. package/package.json +14 -11
  260. package/src/lib/index.ts +2 -0
  261. package/src/lib/upstash/index.ts +6 -0
  262. package/src/lib/upstash/qstash.ts +159 -0
  263. package/src/lib/upstash/redis-counter.ts +35 -0
  264. package/src/lib/upstash/redis-favorite.ts +56 -0
  265. package/src/lib/upstash/redis-like.ts +56 -0
  266. package/src/lib/upstash/redis-lock.ts +59 -0
  267. package/src/lib/upstash/redis-structures.ts +200 -0
  268. package/src/lib/upstash-config.ts +261 -0
  269. package/dist/node_modules/.pnpm/zod@4.1.12/node_modules/zod/v4/classic/errors.js +0 -54
  270. package/dist/node_modules/.pnpm/zod@4.1.12/node_modules/zod/v4/classic/errors.mjs +0 -51
  271. package/dist/node_modules/.pnpm/zod@4.1.12/node_modules/zod/v4/classic/iso.js +0 -44
  272. package/dist/node_modules/.pnpm/zod@4.1.12/node_modules/zod/v4/classic/iso.mjs +0 -35
  273. package/dist/node_modules/.pnpm/zod@4.1.12/node_modules/zod/v4/classic/parse.js +0 -31
  274. package/dist/node_modules/.pnpm/zod@4.1.12/node_modules/zod/v4/classic/parse.mjs +0 -18
  275. package/dist/node_modules/.pnpm/zod@4.1.12/node_modules/zod/v4/classic/schemas.js +0 -587
  276. package/dist/node_modules/.pnpm/zod@4.1.12/node_modules/zod/v4/classic/schemas.mjs +0 -527
  277. package/dist/node_modules/.pnpm/zod@4.1.12/node_modules/zod/v4/core/api.js +0 -447
  278. package/dist/node_modules/.pnpm/zod@4.1.12/node_modules/zod/v4/core/api.mjs +0 -399
  279. package/dist/node_modules/.pnpm/zod@4.1.12/node_modules/zod/v4/core/checks.js +0 -245
  280. package/dist/node_modules/.pnpm/zod@4.1.12/node_modules/zod/v4/core/checks.mjs +0 -232
  281. package/dist/node_modules/.pnpm/zod@4.1.12/node_modules/zod/v4/core/core.js +0 -68
  282. package/dist/node_modules/.pnpm/zod@4.1.12/node_modules/zod/v4/core/core.mjs +0 -62
  283. package/dist/node_modules/.pnpm/zod@4.1.12/node_modules/zod/v4/core/doc.js +0 -39
  284. package/dist/node_modules/.pnpm/zod@4.1.12/node_modules/zod/v4/core/doc.mjs +0 -37
  285. package/dist/node_modules/.pnpm/zod@4.1.12/node_modules/zod/v4/core/errors.js +0 -80
  286. package/dist/node_modules/.pnpm/zod@4.1.12/node_modules/zod/v4/core/errors.mjs +0 -75
  287. package/dist/node_modules/.pnpm/zod@4.1.12/node_modules/zod/v4/core/parse.js +0 -101
  288. package/dist/node_modules/.pnpm/zod@4.1.12/node_modules/zod/v4/core/parse.mjs +0 -86
  289. package/dist/node_modules/.pnpm/zod@4.1.12/node_modules/zod/v4/core/regexes.js +0 -102
  290. package/dist/node_modules/.pnpm/zod@4.1.12/node_modules/zod/v4/core/regexes.mjs +0 -76
  291. package/dist/node_modules/.pnpm/zod@4.1.12/node_modules/zod/v4/core/registries.js +0 -56
  292. package/dist/node_modules/.pnpm/zod@4.1.12/node_modules/zod/v4/core/registries.mjs +0 -52
  293. package/dist/node_modules/.pnpm/zod@4.1.12/node_modules/zod/v4/core/schemas.js +0 -1205
  294. package/dist/node_modules/.pnpm/zod@4.1.12/node_modules/zod/v4/core/schemas.mjs +0 -1157
  295. package/dist/node_modules/.pnpm/zod@4.1.12/node_modules/zod/v4/core/util.js +0 -407
  296. package/dist/node_modules/.pnpm/zod@4.1.12/node_modules/zod/v4/core/util.mjs +0 -374
  297. package/dist/node_modules/.pnpm/zod@4.1.12/node_modules/zod/v4/core/versions.js +0 -9
  298. package/dist/node_modules/.pnpm/zod@4.1.12/node_modules/zod/v4/core/versions.mjs +0 -7
@@ -1,399 +0,0 @@
1
- import { $ZodCheckOverwrite, $ZodCheckRegex, $ZodCheckIncludes, $ZodCheckStartsWith, $ZodCheckEndsWith, $ZodCheckMinLength, $ZodCheckMaxLength, $ZodCheckLengthEquals, $ZodCheckLowerCase, $ZodCheckUpperCase, $ZodCheck } from './checks.mjs';
2
- import { normalizeParams, issue } from './util.mjs';
3
-
4
- function _string(Class, params) {
5
- return new Class({
6
- type: "string",
7
- ...normalizeParams(params),
8
- });
9
- }
10
- function _email(Class, params) {
11
- return new Class({
12
- type: "string",
13
- format: "email",
14
- check: "string_format",
15
- abort: false,
16
- ...normalizeParams(params),
17
- });
18
- }
19
- function _guid(Class, params) {
20
- return new Class({
21
- type: "string",
22
- format: "guid",
23
- check: "string_format",
24
- abort: false,
25
- ...normalizeParams(params),
26
- });
27
- }
28
- function _uuid(Class, params) {
29
- return new Class({
30
- type: "string",
31
- format: "uuid",
32
- check: "string_format",
33
- abort: false,
34
- ...normalizeParams(params),
35
- });
36
- }
37
- function _uuidv4(Class, params) {
38
- return new Class({
39
- type: "string",
40
- format: "uuid",
41
- check: "string_format",
42
- abort: false,
43
- version: "v4",
44
- ...normalizeParams(params),
45
- });
46
- }
47
- function _uuidv6(Class, params) {
48
- return new Class({
49
- type: "string",
50
- format: "uuid",
51
- check: "string_format",
52
- abort: false,
53
- version: "v6",
54
- ...normalizeParams(params),
55
- });
56
- }
57
- function _uuidv7(Class, params) {
58
- return new Class({
59
- type: "string",
60
- format: "uuid",
61
- check: "string_format",
62
- abort: false,
63
- version: "v7",
64
- ...normalizeParams(params),
65
- });
66
- }
67
- function _url(Class, params) {
68
- return new Class({
69
- type: "string",
70
- format: "url",
71
- check: "string_format",
72
- abort: false,
73
- ...normalizeParams(params),
74
- });
75
- }
76
- function _emoji(Class, params) {
77
- return new Class({
78
- type: "string",
79
- format: "emoji",
80
- check: "string_format",
81
- abort: false,
82
- ...normalizeParams(params),
83
- });
84
- }
85
- function _nanoid(Class, params) {
86
- return new Class({
87
- type: "string",
88
- format: "nanoid",
89
- check: "string_format",
90
- abort: false,
91
- ...normalizeParams(params),
92
- });
93
- }
94
- function _cuid(Class, params) {
95
- return new Class({
96
- type: "string",
97
- format: "cuid",
98
- check: "string_format",
99
- abort: false,
100
- ...normalizeParams(params),
101
- });
102
- }
103
- function _cuid2(Class, params) {
104
- return new Class({
105
- type: "string",
106
- format: "cuid2",
107
- check: "string_format",
108
- abort: false,
109
- ...normalizeParams(params),
110
- });
111
- }
112
- function _ulid(Class, params) {
113
- return new Class({
114
- type: "string",
115
- format: "ulid",
116
- check: "string_format",
117
- abort: false,
118
- ...normalizeParams(params),
119
- });
120
- }
121
- function _xid(Class, params) {
122
- return new Class({
123
- type: "string",
124
- format: "xid",
125
- check: "string_format",
126
- abort: false,
127
- ...normalizeParams(params),
128
- });
129
- }
130
- function _ksuid(Class, params) {
131
- return new Class({
132
- type: "string",
133
- format: "ksuid",
134
- check: "string_format",
135
- abort: false,
136
- ...normalizeParams(params),
137
- });
138
- }
139
- function _ipv4(Class, params) {
140
- return new Class({
141
- type: "string",
142
- format: "ipv4",
143
- check: "string_format",
144
- abort: false,
145
- ...normalizeParams(params),
146
- });
147
- }
148
- function _ipv6(Class, params) {
149
- return new Class({
150
- type: "string",
151
- format: "ipv6",
152
- check: "string_format",
153
- abort: false,
154
- ...normalizeParams(params),
155
- });
156
- }
157
- function _cidrv4(Class, params) {
158
- return new Class({
159
- type: "string",
160
- format: "cidrv4",
161
- check: "string_format",
162
- abort: false,
163
- ...normalizeParams(params),
164
- });
165
- }
166
- function _cidrv6(Class, params) {
167
- return new Class({
168
- type: "string",
169
- format: "cidrv6",
170
- check: "string_format",
171
- abort: false,
172
- ...normalizeParams(params),
173
- });
174
- }
175
- function _base64(Class, params) {
176
- return new Class({
177
- type: "string",
178
- format: "base64",
179
- check: "string_format",
180
- abort: false,
181
- ...normalizeParams(params),
182
- });
183
- }
184
- function _base64url(Class, params) {
185
- return new Class({
186
- type: "string",
187
- format: "base64url",
188
- check: "string_format",
189
- abort: false,
190
- ...normalizeParams(params),
191
- });
192
- }
193
- function _e164(Class, params) {
194
- return new Class({
195
- type: "string",
196
- format: "e164",
197
- check: "string_format",
198
- abort: false,
199
- ...normalizeParams(params),
200
- });
201
- }
202
- function _jwt(Class, params) {
203
- return new Class({
204
- type: "string",
205
- format: "jwt",
206
- check: "string_format",
207
- abort: false,
208
- ...normalizeParams(params),
209
- });
210
- }
211
- function _isoDateTime(Class, params) {
212
- return new Class({
213
- type: "string",
214
- format: "datetime",
215
- check: "string_format",
216
- offset: false,
217
- local: false,
218
- precision: null,
219
- ...normalizeParams(params),
220
- });
221
- }
222
- function _isoDate(Class, params) {
223
- return new Class({
224
- type: "string",
225
- format: "date",
226
- check: "string_format",
227
- ...normalizeParams(params),
228
- });
229
- }
230
- function _isoTime(Class, params) {
231
- return new Class({
232
- type: "string",
233
- format: "time",
234
- check: "string_format",
235
- precision: null,
236
- ...normalizeParams(params),
237
- });
238
- }
239
- function _isoDuration(Class, params) {
240
- return new Class({
241
- type: "string",
242
- format: "duration",
243
- check: "string_format",
244
- ...normalizeParams(params),
245
- });
246
- }
247
- function _unknown(Class) {
248
- return new Class({
249
- type: "unknown",
250
- });
251
- }
252
- function _never(Class, params) {
253
- return new Class({
254
- type: "never",
255
- ...normalizeParams(params),
256
- });
257
- }
258
- function _maxLength(maximum, params) {
259
- const ch = new $ZodCheckMaxLength({
260
- check: "max_length",
261
- ...normalizeParams(params),
262
- maximum,
263
- });
264
- return ch;
265
- }
266
- function _minLength(minimum, params) {
267
- return new $ZodCheckMinLength({
268
- check: "min_length",
269
- ...normalizeParams(params),
270
- minimum,
271
- });
272
- }
273
- function _length(length, params) {
274
- return new $ZodCheckLengthEquals({
275
- check: "length_equals",
276
- ...normalizeParams(params),
277
- length,
278
- });
279
- }
280
- function _regex(pattern, params) {
281
- return new $ZodCheckRegex({
282
- check: "string_format",
283
- format: "regex",
284
- ...normalizeParams(params),
285
- pattern,
286
- });
287
- }
288
- function _lowercase(params) {
289
- return new $ZodCheckLowerCase({
290
- check: "string_format",
291
- format: "lowercase",
292
- ...normalizeParams(params),
293
- });
294
- }
295
- function _uppercase(params) {
296
- return new $ZodCheckUpperCase({
297
- check: "string_format",
298
- format: "uppercase",
299
- ...normalizeParams(params),
300
- });
301
- }
302
- function _includes(includes, params) {
303
- return new $ZodCheckIncludes({
304
- check: "string_format",
305
- format: "includes",
306
- ...normalizeParams(params),
307
- includes,
308
- });
309
- }
310
- function _startsWith(prefix, params) {
311
- return new $ZodCheckStartsWith({
312
- check: "string_format",
313
- format: "starts_with",
314
- ...normalizeParams(params),
315
- prefix,
316
- });
317
- }
318
- function _endsWith(suffix, params) {
319
- return new $ZodCheckEndsWith({
320
- check: "string_format",
321
- format: "ends_with",
322
- ...normalizeParams(params),
323
- suffix,
324
- });
325
- }
326
- function _overwrite(tx) {
327
- return new $ZodCheckOverwrite({
328
- check: "overwrite",
329
- tx,
330
- });
331
- }
332
- // normalize
333
- function _normalize(form) {
334
- return _overwrite((input) => input.normalize(form));
335
- }
336
- // trim
337
- function _trim() {
338
- return _overwrite((input) => input.trim());
339
- }
340
- // toLowerCase
341
- function _toLowerCase() {
342
- return _overwrite((input) => input.toLowerCase());
343
- }
344
- // toUpperCase
345
- function _toUpperCase() {
346
- return _overwrite((input) => input.toUpperCase());
347
- }
348
- function _array(Class, element, params) {
349
- return new Class({
350
- type: "array",
351
- element,
352
- // get element() {
353
- // return element;
354
- // },
355
- ...normalizeParams(params),
356
- });
357
- }
358
- // same as _custom but defaults to abort:false
359
- function _refine(Class, fn, _params) {
360
- const schema = new Class({
361
- type: "custom",
362
- check: "custom",
363
- fn: fn,
364
- ...normalizeParams(_params),
365
- });
366
- return schema;
367
- }
368
- function _superRefine(fn) {
369
- const ch = _check((payload) => {
370
- payload.addIssue = (issue$1) => {
371
- if (typeof issue$1 === "string") {
372
- payload.issues.push(issue(issue$1, payload.value, ch._zod.def));
373
- }
374
- else {
375
- // for Zod 3 backwards compatibility
376
- const _issue = issue$1;
377
- if (_issue.fatal)
378
- _issue.continue = false;
379
- _issue.code ?? (_issue.code = "custom");
380
- _issue.input ?? (_issue.input = payload.value);
381
- _issue.inst ?? (_issue.inst = ch);
382
- _issue.continue ?? (_issue.continue = !ch._zod.def.abort); // abort is always undefined, so this is always true...
383
- payload.issues.push(issue(_issue));
384
- }
385
- };
386
- return fn(payload.value, payload);
387
- });
388
- return ch;
389
- }
390
- function _check(fn, params) {
391
- const ch = new $ZodCheck({
392
- check: "custom",
393
- ...normalizeParams(params),
394
- });
395
- ch._zod.check = fn;
396
- return ch;
397
- }
398
-
399
- export { _array, _base64, _base64url, _check, _cidrv4, _cidrv6, _cuid, _cuid2, _e164, _email, _emoji, _endsWith, _guid, _includes, _ipv4, _ipv6, _isoDate, _isoDateTime, _isoDuration, _isoTime, _jwt, _ksuid, _length, _lowercase, _maxLength, _minLength, _nanoid, _never, _normalize, _overwrite, _refine, _regex, _startsWith, _string, _superRefine, _toLowerCase, _toUpperCase, _trim, _ulid, _unknown, _uppercase, _url, _uuid, _uuidv4, _uuidv6, _uuidv7, _xid };
@@ -1,245 +0,0 @@
1
- 'use strict';
2
-
3
- var core = require('./core.js');
4
- var regexes = require('./regexes.js');
5
- var util = require('./util.js');
6
-
7
- // import { $ZodType } from "./schemas.js";
8
- const $ZodCheck = /*@__PURE__*/ core.$constructor("$ZodCheck", (inst, def) => {
9
- var _a;
10
- inst._zod ?? (inst._zod = {});
11
- inst._zod.def = def;
12
- (_a = inst._zod).onattach ?? (_a.onattach = []);
13
- });
14
- const $ZodCheckMaxLength = /*@__PURE__*/ core.$constructor("$ZodCheckMaxLength", (inst, def) => {
15
- var _a;
16
- $ZodCheck.init(inst, def);
17
- (_a = inst._zod.def).when ?? (_a.when = (payload) => {
18
- const val = payload.value;
19
- return !util.nullish(val) && val.length !== undefined;
20
- });
21
- inst._zod.onattach.push((inst) => {
22
- const curr = (inst._zod.bag.maximum ?? Number.POSITIVE_INFINITY);
23
- if (def.maximum < curr)
24
- inst._zod.bag.maximum = def.maximum;
25
- });
26
- inst._zod.check = (payload) => {
27
- const input = payload.value;
28
- const length = input.length;
29
- if (length <= def.maximum)
30
- return;
31
- const origin = util.getLengthableOrigin(input);
32
- payload.issues.push({
33
- origin,
34
- code: "too_big",
35
- maximum: def.maximum,
36
- inclusive: true,
37
- input,
38
- inst,
39
- continue: !def.abort,
40
- });
41
- };
42
- });
43
- const $ZodCheckMinLength = /*@__PURE__*/ core.$constructor("$ZodCheckMinLength", (inst, def) => {
44
- var _a;
45
- $ZodCheck.init(inst, def);
46
- (_a = inst._zod.def).when ?? (_a.when = (payload) => {
47
- const val = payload.value;
48
- return !util.nullish(val) && val.length !== undefined;
49
- });
50
- inst._zod.onattach.push((inst) => {
51
- const curr = (inst._zod.bag.minimum ?? Number.NEGATIVE_INFINITY);
52
- if (def.minimum > curr)
53
- inst._zod.bag.minimum = def.minimum;
54
- });
55
- inst._zod.check = (payload) => {
56
- const input = payload.value;
57
- const length = input.length;
58
- if (length >= def.minimum)
59
- return;
60
- const origin = util.getLengthableOrigin(input);
61
- payload.issues.push({
62
- origin,
63
- code: "too_small",
64
- minimum: def.minimum,
65
- inclusive: true,
66
- input,
67
- inst,
68
- continue: !def.abort,
69
- });
70
- };
71
- });
72
- const $ZodCheckLengthEquals = /*@__PURE__*/ core.$constructor("$ZodCheckLengthEquals", (inst, def) => {
73
- var _a;
74
- $ZodCheck.init(inst, def);
75
- (_a = inst._zod.def).when ?? (_a.when = (payload) => {
76
- const val = payload.value;
77
- return !util.nullish(val) && val.length !== undefined;
78
- });
79
- inst._zod.onattach.push((inst) => {
80
- const bag = inst._zod.bag;
81
- bag.minimum = def.length;
82
- bag.maximum = def.length;
83
- bag.length = def.length;
84
- });
85
- inst._zod.check = (payload) => {
86
- const input = payload.value;
87
- const length = input.length;
88
- if (length === def.length)
89
- return;
90
- const origin = util.getLengthableOrigin(input);
91
- const tooBig = length > def.length;
92
- payload.issues.push({
93
- origin,
94
- ...(tooBig ? { code: "too_big", maximum: def.length } : { code: "too_small", minimum: def.length }),
95
- inclusive: true,
96
- exact: true,
97
- input: payload.value,
98
- inst,
99
- continue: !def.abort,
100
- });
101
- };
102
- });
103
- const $ZodCheckStringFormat = /*@__PURE__*/ core.$constructor("$ZodCheckStringFormat", (inst, def) => {
104
- var _a, _b;
105
- $ZodCheck.init(inst, def);
106
- inst._zod.onattach.push((inst) => {
107
- const bag = inst._zod.bag;
108
- bag.format = def.format;
109
- if (def.pattern) {
110
- bag.patterns ?? (bag.patterns = new Set());
111
- bag.patterns.add(def.pattern);
112
- }
113
- });
114
- if (def.pattern)
115
- (_a = inst._zod).check ?? (_a.check = (payload) => {
116
- def.pattern.lastIndex = 0;
117
- if (def.pattern.test(payload.value))
118
- return;
119
- payload.issues.push({
120
- origin: "string",
121
- code: "invalid_format",
122
- format: def.format,
123
- input: payload.value,
124
- ...(def.pattern ? { pattern: def.pattern.toString() } : {}),
125
- inst,
126
- continue: !def.abort,
127
- });
128
- });
129
- else
130
- (_b = inst._zod).check ?? (_b.check = () => { });
131
- });
132
- const $ZodCheckRegex = /*@__PURE__*/ core.$constructor("$ZodCheckRegex", (inst, def) => {
133
- $ZodCheckStringFormat.init(inst, def);
134
- inst._zod.check = (payload) => {
135
- def.pattern.lastIndex = 0;
136
- if (def.pattern.test(payload.value))
137
- return;
138
- payload.issues.push({
139
- origin: "string",
140
- code: "invalid_format",
141
- format: "regex",
142
- input: payload.value,
143
- pattern: def.pattern.toString(),
144
- inst,
145
- continue: !def.abort,
146
- });
147
- };
148
- });
149
- const $ZodCheckLowerCase = /*@__PURE__*/ core.$constructor("$ZodCheckLowerCase", (inst, def) => {
150
- def.pattern ?? (def.pattern = regexes.lowercase);
151
- $ZodCheckStringFormat.init(inst, def);
152
- });
153
- const $ZodCheckUpperCase = /*@__PURE__*/ core.$constructor("$ZodCheckUpperCase", (inst, def) => {
154
- def.pattern ?? (def.pattern = regexes.uppercase);
155
- $ZodCheckStringFormat.init(inst, def);
156
- });
157
- const $ZodCheckIncludes = /*@__PURE__*/ core.$constructor("$ZodCheckIncludes", (inst, def) => {
158
- $ZodCheck.init(inst, def);
159
- const escapedRegex = util.escapeRegex(def.includes);
160
- const pattern = new RegExp(typeof def.position === "number" ? `^.{${def.position}}${escapedRegex}` : escapedRegex);
161
- def.pattern = pattern;
162
- inst._zod.onattach.push((inst) => {
163
- const bag = inst._zod.bag;
164
- bag.patterns ?? (bag.patterns = new Set());
165
- bag.patterns.add(pattern);
166
- });
167
- inst._zod.check = (payload) => {
168
- if (payload.value.includes(def.includes, def.position))
169
- return;
170
- payload.issues.push({
171
- origin: "string",
172
- code: "invalid_format",
173
- format: "includes",
174
- includes: def.includes,
175
- input: payload.value,
176
- inst,
177
- continue: !def.abort,
178
- });
179
- };
180
- });
181
- const $ZodCheckStartsWith = /*@__PURE__*/ core.$constructor("$ZodCheckStartsWith", (inst, def) => {
182
- $ZodCheck.init(inst, def);
183
- const pattern = new RegExp(`^${util.escapeRegex(def.prefix)}.*`);
184
- def.pattern ?? (def.pattern = pattern);
185
- inst._zod.onattach.push((inst) => {
186
- const bag = inst._zod.bag;
187
- bag.patterns ?? (bag.patterns = new Set());
188
- bag.patterns.add(pattern);
189
- });
190
- inst._zod.check = (payload) => {
191
- if (payload.value.startsWith(def.prefix))
192
- return;
193
- payload.issues.push({
194
- origin: "string",
195
- code: "invalid_format",
196
- format: "starts_with",
197
- prefix: def.prefix,
198
- input: payload.value,
199
- inst,
200
- continue: !def.abort,
201
- });
202
- };
203
- });
204
- const $ZodCheckEndsWith = /*@__PURE__*/ core.$constructor("$ZodCheckEndsWith", (inst, def) => {
205
- $ZodCheck.init(inst, def);
206
- const pattern = new RegExp(`.*${util.escapeRegex(def.suffix)}$`);
207
- def.pattern ?? (def.pattern = pattern);
208
- inst._zod.onattach.push((inst) => {
209
- const bag = inst._zod.bag;
210
- bag.patterns ?? (bag.patterns = new Set());
211
- bag.patterns.add(pattern);
212
- });
213
- inst._zod.check = (payload) => {
214
- if (payload.value.endsWith(def.suffix))
215
- return;
216
- payload.issues.push({
217
- origin: "string",
218
- code: "invalid_format",
219
- format: "ends_with",
220
- suffix: def.suffix,
221
- input: payload.value,
222
- inst,
223
- continue: !def.abort,
224
- });
225
- };
226
- });
227
- const $ZodCheckOverwrite = /*@__PURE__*/ core.$constructor("$ZodCheckOverwrite", (inst, def) => {
228
- $ZodCheck.init(inst, def);
229
- inst._zod.check = (payload) => {
230
- payload.value = def.tx(payload.value);
231
- };
232
- });
233
-
234
- exports.$ZodCheck = $ZodCheck;
235
- exports.$ZodCheckEndsWith = $ZodCheckEndsWith;
236
- exports.$ZodCheckIncludes = $ZodCheckIncludes;
237
- exports.$ZodCheckLengthEquals = $ZodCheckLengthEquals;
238
- exports.$ZodCheckLowerCase = $ZodCheckLowerCase;
239
- exports.$ZodCheckMaxLength = $ZodCheckMaxLength;
240
- exports.$ZodCheckMinLength = $ZodCheckMinLength;
241
- exports.$ZodCheckOverwrite = $ZodCheckOverwrite;
242
- exports.$ZodCheckRegex = $ZodCheckRegex;
243
- exports.$ZodCheckStartsWith = $ZodCheckStartsWith;
244
- exports.$ZodCheckStringFormat = $ZodCheckStringFormat;
245
- exports.$ZodCheckUpperCase = $ZodCheckUpperCase;