@outfoxx/sunday 1.1.0-beta.9 → 2.0.0-beta.1

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 (427) hide show
  1. package/README.md +2 -0
  2. package/build/date-time-types.d.ts +35 -0
  3. package/build/date-time-types.js +699 -0
  4. package/build/date-time-types.js.map +1 -0
  5. package/build/{esm/event-parser.d.ts → event-parser.d.ts} +1 -1
  6. package/build/{esm/event-parser.js → event-parser.js} +10 -12
  7. package/build/event-parser.js.map +1 -0
  8. package/build/{esm/fetch-event-source.d.ts → fetch-event-source.d.ts} +26 -18
  9. package/build/fetch-event-source.js +365 -0
  10. package/build/fetch-event-source.js.map +1 -0
  11. package/build/fetch-transport.d.ts +32 -0
  12. package/build/fetch-transport.js +311 -0
  13. package/build/fetch-transport.js.map +1 -0
  14. package/build/fetch.d.ts +9 -0
  15. package/build/fetch.js +140 -0
  16. package/build/fetch.js.map +1 -0
  17. package/build/{esnext/header-parameters.js → header-parameters.js} +31 -2
  18. package/build/header-parameters.js.map +1 -0
  19. package/build/index.d.ts +27 -0
  20. package/build/index.js +42 -0
  21. package/build/index.js.map +1 -0
  22. package/build/{main/logger.d.ts → logger.d.ts} +9 -0
  23. package/build/logger.js +36 -0
  24. package/build/logger.js.map +1 -0
  25. package/build/media-type-codecs/any-text-decoder.d.ts +7 -0
  26. package/build/{esm/media-type-codecs → media-type-codecs}/any-text-decoder.js +9 -9
  27. package/build/media-type-codecs/any-text-decoder.js.map +1 -0
  28. package/build/media-type-codecs/any-text-encoder.d.ts +6 -0
  29. package/build/{esm/media-type-codecs → media-type-codecs}/any-text-encoder.js +9 -5
  30. package/build/media-type-codecs/any-text-encoder.js.map +1 -0
  31. package/build/media-type-codecs/binary-decoder.d.ts +7 -0
  32. package/build/{esnext/media-type-codecs → media-type-codecs}/binary-decoder.js +13 -9
  33. package/build/media-type-codecs/binary-decoder.js.map +1 -0
  34. package/build/media-type-codecs/binary-encoder.d.ts +6 -0
  35. package/build/{esnext/media-type-codecs → media-type-codecs}/binary-encoder.js +12 -8
  36. package/build/media-type-codecs/binary-encoder.js.map +1 -0
  37. package/build/media-type-codecs/cbor-decoder.d.ts +13 -0
  38. package/build/media-type-codecs/cbor-decoder.js +38 -0
  39. package/build/media-type-codecs/cbor-decoder.js.map +1 -0
  40. package/build/media-type-codecs/cbor-encoder.d.ts +12 -0
  41. package/build/media-type-codecs/cbor-encoder.js +36 -0
  42. package/build/media-type-codecs/cbor-encoder.js.map +1 -0
  43. package/build/{esm/media-type-codecs → media-type-codecs}/cbor-tags.d.ts +2 -0
  44. package/build/{esnext/media-type-codecs → media-type-codecs}/cbor-tags.js +2 -0
  45. package/build/media-type-codecs/cbor-tags.js.map +1 -0
  46. package/build/media-type-codecs/default-policies.d.ts +3 -0
  47. package/build/media-type-codecs/default-policies.js +33 -0
  48. package/build/media-type-codecs/default-policies.js.map +1 -0
  49. package/build/media-type-codecs/json-decoder.d.ts +14 -0
  50. package/build/media-type-codecs/json-decoder.js +40 -0
  51. package/build/media-type-codecs/json-decoder.js.map +1 -0
  52. package/build/media-type-codecs/json-encoder.d.ts +13 -0
  53. package/build/media-type-codecs/json-encoder.js +43 -0
  54. package/build/media-type-codecs/json-encoder.js.map +1 -0
  55. package/build/media-type-codecs/media-type-decoder.d.ts +14 -0
  56. package/build/{esm/media-type-codecs → media-type-codecs}/media-type-decoder.js +1 -2
  57. package/build/media-type-codecs/media-type-decoder.js.map +1 -0
  58. package/build/{main/media-type-codecs → media-type-codecs}/media-type-decoders.d.ts +6 -8
  59. package/build/media-type-codecs/media-type-decoders.js +63 -0
  60. package/build/media-type-codecs/media-type-decoders.js.map +1 -0
  61. package/build/{main/media-type-codecs → media-type-codecs}/media-type-encoder.d.ts +3 -3
  62. package/build/{esnext/media-type-codecs → media-type-codecs}/media-type-encoder.js +2 -4
  63. package/build/media-type-codecs/media-type-encoder.js.map +1 -0
  64. package/build/{esnext/media-type-codecs → media-type-codecs}/media-type-encoders.d.ts +6 -8
  65. package/build/media-type-codecs/media-type-encoders.js +65 -0
  66. package/build/media-type-codecs/media-type-encoders.js.map +1 -0
  67. package/build/media-type-codecs/www-form-url-encoder.d.ts +31 -0
  68. package/build/media-type-codecs/www-form-url-encoder.js +281 -0
  69. package/build/media-type-codecs/www-form-url-encoder.js.map +1 -0
  70. package/build/{esm/media-type.js → media-type.js} +23 -23
  71. package/build/media-type.js.map +1 -0
  72. package/build/operation-response.d.ts +33 -0
  73. package/build/operation-response.js +140 -0
  74. package/build/operation-response.js.map +1 -0
  75. package/build/operation.d.ts +54 -0
  76. package/build/operation.js +87 -0
  77. package/build/operation.js.map +1 -0
  78. package/build/problem.d.ts +35 -0
  79. package/build/problem.js +122 -0
  80. package/build/problem.js.map +1 -0
  81. package/build/request-adapters.d.ts +23 -0
  82. package/build/request-adapters.js +53 -0
  83. package/build/request-adapters.js.map +1 -0
  84. package/build/schema-builtins.d.ts +21 -0
  85. package/build/schema-builtins.js +201 -0
  86. package/build/schema-builtins.js.map +1 -0
  87. package/build/schema-policy.d.ts +31 -0
  88. package/build/schema-policy.js +41 -0
  89. package/build/schema-policy.js.map +1 -0
  90. package/build/schema-runtime.d.ts +36 -0
  91. package/build/schema-runtime.js +77 -0
  92. package/build/schema-runtime.js.map +1 -0
  93. package/build/{esnext/sunday-error.d.ts → sunday-error.d.ts} +2 -3
  94. package/build/{esm/sunday-error.js → sunday-error.js} +9 -4
  95. package/build/sunday-error.js.map +1 -0
  96. package/build/transport.d.ts +39 -0
  97. package/build/{esnext/logger.js → transport.js} +1 -1
  98. package/build/transport.js.map +1 -0
  99. package/build/{esm/url-template.js → url-template.js} +5 -3
  100. package/build/url-template.js.map +1 -0
  101. package/build/util/async-iterables.d.ts +15 -0
  102. package/build/util/async-iterables.js +179 -0
  103. package/build/util/async-iterables.js.map +1 -0
  104. package/build/util/errors.js +65 -0
  105. package/build/util/errors.js.map +1 -0
  106. package/build/util/nullify.d.ts +5 -0
  107. package/build/util/nullify.js +37 -0
  108. package/build/util/nullify.js.map +1 -0
  109. package/build/util/numbers.d.ts +11 -0
  110. package/build/{esnext/util/temporal.js → util/numbers.js} +14 -4
  111. package/build/util/numbers.js.map +1 -0
  112. package/build/util/subscriptions.d.ts +16 -0
  113. package/build/util/subscriptions.js +78 -0
  114. package/build/util/subscriptions.js.map +1 -0
  115. package/build/{esm/util/any.js → util/unknowns.js} +2 -3
  116. package/build/util/unknowns.js.map +1 -0
  117. package/package.json +58 -58
  118. package/build/esm/any-type.d.ts +0 -4
  119. package/build/esm/any-type.js +0 -15
  120. package/build/esm/any-type.js.map +0 -1
  121. package/build/esm/class-type.d.ts +0 -2
  122. package/build/esm/class-type.js +0 -15
  123. package/build/esm/class-type.js.map +0 -1
  124. package/build/esm/date-time-types.d.ts +0 -2
  125. package/build/esm/date-time-types.js +0 -16
  126. package/build/esm/date-time-types.js.map +0 -1
  127. package/build/esm/event-parser.js.map +0 -1
  128. package/build/esm/fetch-event-source.js +0 -290
  129. package/build/esm/fetch-event-source.js.map +0 -1
  130. package/build/esm/fetch-request-factory.d.ts +0 -34
  131. package/build/esm/fetch-request-factory.js +0 -181
  132. package/build/esm/fetch-request-factory.js.map +0 -1
  133. package/build/esm/fetch.d.ts +0 -7
  134. package/build/esm/fetch.js +0 -90
  135. package/build/esm/fetch.js.map +0 -1
  136. package/build/esm/header-parameters.js +0 -53
  137. package/build/esm/header-parameters.js.map +0 -1
  138. package/build/esm/index.d.ts +0 -26
  139. package/build/esm/index.js +0 -40
  140. package/build/esm/index.js.map +0 -1
  141. package/build/esm/logger.d.ts +0 -8
  142. package/build/esm/logger.js +0 -15
  143. package/build/esm/logger.js.map +0 -1
  144. package/build/esm/media-type-codecs/any-text-decoder.d.ts +0 -7
  145. package/build/esm/media-type-codecs/any-text-decoder.js.map +0 -1
  146. package/build/esm/media-type-codecs/any-text-encoder.d.ts +0 -5
  147. package/build/esm/media-type-codecs/any-text-encoder.js.map +0 -1
  148. package/build/esm/media-type-codecs/binary-decoder.d.ts +0 -6
  149. package/build/esm/media-type-codecs/binary-decoder.js +0 -29
  150. package/build/esm/media-type-codecs/binary-decoder.js.map +0 -1
  151. package/build/esm/media-type-codecs/binary-encoder.d.ts +0 -5
  152. package/build/esm/media-type-codecs/binary-encoder.js +0 -26
  153. package/build/esm/media-type-codecs/binary-encoder.js.map +0 -1
  154. package/build/esm/media-type-codecs/cbor-decoder.d.ts +0 -39
  155. package/build/esm/media-type-codecs/cbor-decoder.js +0 -426
  156. package/build/esm/media-type-codecs/cbor-decoder.js.map +0 -1
  157. package/build/esm/media-type-codecs/cbor-encoder.d.ts +0 -43
  158. package/build/esm/media-type-codecs/cbor-encoder.js +0 -236
  159. package/build/esm/media-type-codecs/cbor-encoder.js.map +0 -1
  160. package/build/esm/media-type-codecs/cbor-tags.js +0 -18
  161. package/build/esm/media-type-codecs/cbor-tags.js.map +0 -1
  162. package/build/esm/media-type-codecs/json-decoder.d.ts +0 -39
  163. package/build/esm/media-type-codecs/json-decoder.js +0 -380
  164. package/build/esm/media-type-codecs/json-decoder.js.map +0 -1
  165. package/build/esm/media-type-codecs/json-encoder.d.ts +0 -44
  166. package/build/esm/media-type-codecs/json-encoder.js +0 -273
  167. package/build/esm/media-type-codecs/json-encoder.js.map +0 -1
  168. package/build/esm/media-type-codecs/media-type-decoder.d.ts +0 -11
  169. package/build/esm/media-type-codecs/media-type-decoder.js.map +0 -1
  170. package/build/esm/media-type-codecs/media-type-decoders.d.ts +0 -18
  171. package/build/esm/media-type-codecs/media-type-decoders.js +0 -58
  172. package/build/esm/media-type-codecs/media-type-decoders.js.map +0 -1
  173. package/build/esm/media-type-codecs/media-type-encoder.d.ts +0 -12
  174. package/build/esm/media-type-codecs/media-type-encoder.js +0 -24
  175. package/build/esm/media-type-codecs/media-type-encoder.js.map +0 -1
  176. package/build/esm/media-type-codecs/media-type-encoders.d.ts +0 -18
  177. package/build/esm/media-type-codecs/media-type-encoders.js +0 -60
  178. package/build/esm/media-type-codecs/media-type-encoders.js.map +0 -1
  179. package/build/esm/media-type-codecs/www-form-url-encoder.d.ts +0 -59
  180. package/build/esm/media-type-codecs/www-form-url-encoder.js +0 -192
  181. package/build/esm/media-type-codecs/www-form-url-encoder.js.map +0 -1
  182. package/build/esm/media-type.js.map +0 -1
  183. package/build/esm/problem.d.ts +0 -31
  184. package/build/esm/problem.js +0 -158
  185. package/build/esm/problem.js.map +0 -1
  186. package/build/esm/request-factory.d.ts +0 -44
  187. package/build/esm/request-factory.js +0 -15
  188. package/build/esm/request-factory.js.map +0 -1
  189. package/build/esm/result-response.d.ts +0 -4
  190. package/build/esm/result-response.js +0 -15
  191. package/build/esm/result-response.js.map +0 -1
  192. package/build/esm/sunday-error.d.ts +0 -11
  193. package/build/esm/sunday-error.js.map +0 -1
  194. package/build/esm/url-template.js.map +0 -1
  195. package/build/esm/util/any.js.map +0 -1
  196. package/build/esm/util/base64.d.ts +0 -5
  197. package/build/esm/util/base64.js +0 -77
  198. package/build/esm/util/base64.js.map +0 -1
  199. package/build/esm/util/error.js +0 -26
  200. package/build/esm/util/error.js.map +0 -1
  201. package/build/esm/util/hex.d.ts +0 -4
  202. package/build/esm/util/hex.js +0 -32
  203. package/build/esm/util/hex.js.map +0 -1
  204. package/build/esm/util/rxjs.d.ts +0 -5
  205. package/build/esm/util/rxjs.js +0 -31
  206. package/build/esm/util/rxjs.js.map +0 -1
  207. package/build/esm/util/stream-rxjs.d.ts +0 -2
  208. package/build/esm/util/stream-rxjs.js +0 -39
  209. package/build/esm/util/stream-rxjs.js.map +0 -1
  210. package/build/esm/util/temporal.d.ts +0 -2
  211. package/build/esm/util/temporal.js +0 -31
  212. package/build/esm/util/temporal.js.map +0 -1
  213. package/build/esnext/any-type.d.ts +0 -4
  214. package/build/esnext/any-type.js +0 -15
  215. package/build/esnext/any-type.js.map +0 -1
  216. package/build/esnext/class-type.d.ts +0 -2
  217. package/build/esnext/class-type.js +0 -15
  218. package/build/esnext/class-type.js.map +0 -1
  219. package/build/esnext/date-time-types.d.ts +0 -2
  220. package/build/esnext/date-time-types.js +0 -16
  221. package/build/esnext/date-time-types.js.map +0 -1
  222. package/build/esnext/event-parser.d.ts +0 -17
  223. package/build/esnext/event-parser.js +0 -153
  224. package/build/esnext/event-parser.js.map +0 -1
  225. package/build/esnext/fetch-event-source.d.ts +0 -58
  226. package/build/esnext/fetch-event-source.js +0 -290
  227. package/build/esnext/fetch-event-source.js.map +0 -1
  228. package/build/esnext/fetch-request-factory.d.ts +0 -34
  229. package/build/esnext/fetch-request-factory.js +0 -181
  230. package/build/esnext/fetch-request-factory.js.map +0 -1
  231. package/build/esnext/fetch.d.ts +0 -7
  232. package/build/esnext/fetch.js +0 -90
  233. package/build/esnext/fetch.js.map +0 -1
  234. package/build/esnext/header-parameters.d.ts +0 -3
  235. package/build/esnext/header-parameters.js.map +0 -1
  236. package/build/esnext/index.d.ts +0 -26
  237. package/build/esnext/index.js +0 -40
  238. package/build/esnext/index.js.map +0 -1
  239. package/build/esnext/logger.d.ts +0 -8
  240. package/build/esnext/logger.js.map +0 -1
  241. package/build/esnext/media-type-codecs/any-text-decoder.d.ts +0 -7
  242. package/build/esnext/media-type-codecs/any-text-decoder.js +0 -29
  243. package/build/esnext/media-type-codecs/any-text-decoder.js.map +0 -1
  244. package/build/esnext/media-type-codecs/any-text-encoder.d.ts +0 -5
  245. package/build/esnext/media-type-codecs/any-text-encoder.js +0 -23
  246. package/build/esnext/media-type-codecs/any-text-encoder.js.map +0 -1
  247. package/build/esnext/media-type-codecs/binary-decoder.d.ts +0 -6
  248. package/build/esnext/media-type-codecs/binary-decoder.js.map +0 -1
  249. package/build/esnext/media-type-codecs/binary-encoder.d.ts +0 -5
  250. package/build/esnext/media-type-codecs/binary-encoder.js.map +0 -1
  251. package/build/esnext/media-type-codecs/cbor-decoder.d.ts +0 -39
  252. package/build/esnext/media-type-codecs/cbor-decoder.js +0 -426
  253. package/build/esnext/media-type-codecs/cbor-decoder.js.map +0 -1
  254. package/build/esnext/media-type-codecs/cbor-encoder.d.ts +0 -43
  255. package/build/esnext/media-type-codecs/cbor-encoder.js +0 -236
  256. package/build/esnext/media-type-codecs/cbor-encoder.js.map +0 -1
  257. package/build/esnext/media-type-codecs/cbor-tags.d.ts +0 -4
  258. package/build/esnext/media-type-codecs/cbor-tags.js.map +0 -1
  259. package/build/esnext/media-type-codecs/json-decoder.d.ts +0 -39
  260. package/build/esnext/media-type-codecs/json-decoder.js +0 -380
  261. package/build/esnext/media-type-codecs/json-decoder.js.map +0 -1
  262. package/build/esnext/media-type-codecs/json-encoder.d.ts +0 -44
  263. package/build/esnext/media-type-codecs/json-encoder.js +0 -273
  264. package/build/esnext/media-type-codecs/json-encoder.js.map +0 -1
  265. package/build/esnext/media-type-codecs/media-type-decoder.d.ts +0 -11
  266. package/build/esnext/media-type-codecs/media-type-decoder.js +0 -19
  267. package/build/esnext/media-type-codecs/media-type-decoder.js.map +0 -1
  268. package/build/esnext/media-type-codecs/media-type-decoders.d.ts +0 -18
  269. package/build/esnext/media-type-codecs/media-type-decoders.js +0 -58
  270. package/build/esnext/media-type-codecs/media-type-decoders.js.map +0 -1
  271. package/build/esnext/media-type-codecs/media-type-encoder.d.ts +0 -12
  272. package/build/esnext/media-type-codecs/media-type-encoder.js.map +0 -1
  273. package/build/esnext/media-type-codecs/media-type-encoders.js +0 -60
  274. package/build/esnext/media-type-codecs/media-type-encoders.js.map +0 -1
  275. package/build/esnext/media-type-codecs/www-form-url-encoder.d.ts +0 -59
  276. package/build/esnext/media-type-codecs/www-form-url-encoder.js +0 -192
  277. package/build/esnext/media-type-codecs/www-form-url-encoder.js.map +0 -1
  278. package/build/esnext/media-type.d.ts +0 -94
  279. package/build/esnext/media-type.js +0 -305
  280. package/build/esnext/media-type.js.map +0 -1
  281. package/build/esnext/problem.d.ts +0 -31
  282. package/build/esnext/problem.js +0 -158
  283. package/build/esnext/problem.js.map +0 -1
  284. package/build/esnext/request-factory.d.ts +0 -44
  285. package/build/esnext/request-factory.js +0 -15
  286. package/build/esnext/request-factory.js.map +0 -1
  287. package/build/esnext/result-response.d.ts +0 -4
  288. package/build/esnext/result-response.js +0 -15
  289. package/build/esnext/result-response.js.map +0 -1
  290. package/build/esnext/sunday-error.js +0 -31
  291. package/build/esnext/sunday-error.js.map +0 -1
  292. package/build/esnext/url-template.d.ts +0 -6
  293. package/build/esnext/url-template.js +0 -31
  294. package/build/esnext/url-template.js.map +0 -1
  295. package/build/esnext/util/any.d.ts +0 -2
  296. package/build/esnext/util/any.js +0 -24
  297. package/build/esnext/util/any.js.map +0 -1
  298. package/build/esnext/util/base64.d.ts +0 -5
  299. package/build/esnext/util/base64.js +0 -77
  300. package/build/esnext/util/base64.js.map +0 -1
  301. package/build/esnext/util/error.d.ts +0 -2
  302. package/build/esnext/util/error.js +0 -26
  303. package/build/esnext/util/error.js.map +0 -1
  304. package/build/esnext/util/hex.d.ts +0 -4
  305. package/build/esnext/util/hex.js +0 -32
  306. package/build/esnext/util/hex.js.map +0 -1
  307. package/build/esnext/util/rxjs.d.ts +0 -5
  308. package/build/esnext/util/rxjs.js +0 -31
  309. package/build/esnext/util/rxjs.js.map +0 -1
  310. package/build/esnext/util/stream-rxjs.d.ts +0 -2
  311. package/build/esnext/util/stream-rxjs.js +0 -39
  312. package/build/esnext/util/stream-rxjs.js.map +0 -1
  313. package/build/esnext/util/temporal.d.ts +0 -2
  314. package/build/esnext/util/temporal.js.map +0 -1
  315. package/build/main/any-type.d.ts +0 -4
  316. package/build/main/any-type.js +0 -16
  317. package/build/main/any-type.js.map +0 -1
  318. package/build/main/class-type.d.ts +0 -2
  319. package/build/main/class-type.js +0 -16
  320. package/build/main/class-type.js.map +0 -1
  321. package/build/main/date-time-types.d.ts +0 -2
  322. package/build/main/date-time-types.js +0 -27
  323. package/build/main/date-time-types.js.map +0 -1
  324. package/build/main/event-parser.d.ts +0 -17
  325. package/build/main/event-parser.js +0 -157
  326. package/build/main/event-parser.js.map +0 -1
  327. package/build/main/fetch-event-source.d.ts +0 -58
  328. package/build/main/fetch-event-source.js +0 -294
  329. package/build/main/fetch-event-source.js.map +0 -1
  330. package/build/main/fetch-request-factory.d.ts +0 -34
  331. package/build/main/fetch-request-factory.js +0 -185
  332. package/build/main/fetch-request-factory.js.map +0 -1
  333. package/build/main/fetch.d.ts +0 -7
  334. package/build/main/fetch.js +0 -94
  335. package/build/main/fetch.js.map +0 -1
  336. package/build/main/header-parameters.d.ts +0 -3
  337. package/build/main/header-parameters.js +0 -56
  338. package/build/main/header-parameters.js.map +0 -1
  339. package/build/main/index.d.ts +0 -26
  340. package/build/main/index.js +0 -52
  341. package/build/main/index.js.map +0 -1
  342. package/build/main/logger.js +0 -16
  343. package/build/main/logger.js.map +0 -1
  344. package/build/main/media-type-codecs/any-text-decoder.d.ts +0 -7
  345. package/build/main/media-type-codecs/any-text-decoder.js +0 -33
  346. package/build/main/media-type-codecs/any-text-decoder.js.map +0 -1
  347. package/build/main/media-type-codecs/any-text-encoder.d.ts +0 -5
  348. package/build/main/media-type-codecs/any-text-encoder.js +0 -27
  349. package/build/main/media-type-codecs/any-text-encoder.js.map +0 -1
  350. package/build/main/media-type-codecs/binary-decoder.d.ts +0 -6
  351. package/build/main/media-type-codecs/binary-decoder.js +0 -33
  352. package/build/main/media-type-codecs/binary-decoder.js.map +0 -1
  353. package/build/main/media-type-codecs/binary-encoder.d.ts +0 -5
  354. package/build/main/media-type-codecs/binary-encoder.js +0 -30
  355. package/build/main/media-type-codecs/binary-encoder.js.map +0 -1
  356. package/build/main/media-type-codecs/cbor-decoder.d.ts +0 -39
  357. package/build/main/media-type-codecs/cbor-decoder.js +0 -430
  358. package/build/main/media-type-codecs/cbor-decoder.js.map +0 -1
  359. package/build/main/media-type-codecs/cbor-encoder.d.ts +0 -43
  360. package/build/main/media-type-codecs/cbor-encoder.js +0 -240
  361. package/build/main/media-type-codecs/cbor-encoder.js.map +0 -1
  362. package/build/main/media-type-codecs/cbor-tags.d.ts +0 -4
  363. package/build/main/media-type-codecs/cbor-tags.js +0 -21
  364. package/build/main/media-type-codecs/cbor-tags.js.map +0 -1
  365. package/build/main/media-type-codecs/json-decoder.d.ts +0 -39
  366. package/build/main/media-type-codecs/json-decoder.js +0 -384
  367. package/build/main/media-type-codecs/json-decoder.js.map +0 -1
  368. package/build/main/media-type-codecs/json-encoder.d.ts +0 -44
  369. package/build/main/media-type-codecs/json-encoder.js +0 -277
  370. package/build/main/media-type-codecs/json-encoder.js.map +0 -1
  371. package/build/main/media-type-codecs/media-type-decoder.d.ts +0 -11
  372. package/build/main/media-type-codecs/media-type-decoder.js +0 -23
  373. package/build/main/media-type-codecs/media-type-decoder.js.map +0 -1
  374. package/build/main/media-type-codecs/media-type-decoders.js +0 -62
  375. package/build/main/media-type-codecs/media-type-decoders.js.map +0 -1
  376. package/build/main/media-type-codecs/media-type-encoder.js +0 -29
  377. package/build/main/media-type-codecs/media-type-encoder.js.map +0 -1
  378. package/build/main/media-type-codecs/media-type-encoders.d.ts +0 -18
  379. package/build/main/media-type-codecs/media-type-encoders.js +0 -64
  380. package/build/main/media-type-codecs/media-type-encoders.js.map +0 -1
  381. package/build/main/media-type-codecs/www-form-url-encoder.d.ts +0 -59
  382. package/build/main/media-type-codecs/www-form-url-encoder.js +0 -196
  383. package/build/main/media-type-codecs/www-form-url-encoder.js.map +0 -1
  384. package/build/main/media-type.d.ts +0 -94
  385. package/build/main/media-type.js +0 -309
  386. package/build/main/media-type.js.map +0 -1
  387. package/build/main/problem.d.ts +0 -31
  388. package/build/main/problem.js +0 -161
  389. package/build/main/problem.js.map +0 -1
  390. package/build/main/request-factory.d.ts +0 -44
  391. package/build/main/request-factory.js +0 -16
  392. package/build/main/request-factory.js.map +0 -1
  393. package/build/main/result-response.d.ts +0 -4
  394. package/build/main/result-response.js +0 -16
  395. package/build/main/result-response.js.map +0 -1
  396. package/build/main/sunday-error.d.ts +0 -11
  397. package/build/main/sunday-error.js +0 -35
  398. package/build/main/sunday-error.js.map +0 -1
  399. package/build/main/url-template.d.ts +0 -6
  400. package/build/main/url-template.js +0 -35
  401. package/build/main/url-template.js.map +0 -1
  402. package/build/main/util/any.d.ts +0 -2
  403. package/build/main/util/any.js +0 -29
  404. package/build/main/util/any.js.map +0 -1
  405. package/build/main/util/base64.d.ts +0 -5
  406. package/build/main/util/base64.js +0 -80
  407. package/build/main/util/base64.js.map +0 -1
  408. package/build/main/util/error.d.ts +0 -2
  409. package/build/main/util/error.js +0 -31
  410. package/build/main/util/error.js.map +0 -1
  411. package/build/main/util/hex.d.ts +0 -4
  412. package/build/main/util/hex.js +0 -35
  413. package/build/main/util/hex.js.map +0 -1
  414. package/build/main/util/rxjs.d.ts +0 -5
  415. package/build/main/util/rxjs.js +0 -36
  416. package/build/main/util/rxjs.js.map +0 -1
  417. package/build/main/util/stream-rxjs.d.ts +0 -2
  418. package/build/main/util/stream-rxjs.js +0 -43
  419. package/build/main/util/stream-rxjs.js.map +0 -1
  420. package/build/main/util/temporal.d.ts +0 -2
  421. package/build/main/util/temporal.js +0 -36
  422. package/build/main/util/temporal.js.map +0 -1
  423. /package/build/{esm/header-parameters.d.ts → header-parameters.d.ts} +0 -0
  424. /package/build/{esm/media-type.d.ts → media-type.d.ts} +0 -0
  425. /package/build/{esm/url-template.d.ts → url-template.d.ts} +0 -0
  426. /package/build/{esm/util/error.d.ts → util/errors.d.ts} +0 -0
  427. /package/build/{esm/util/any.d.ts → util/unknowns.d.ts} +0 -0
@@ -0,0 +1,179 @@
1
+ // Copyright 2020 Outfox, Inc.
2
+ //
3
+ // Licensed under the Apache License, Version 2.0 (the "License");
4
+ // you may not use this file except in compliance with the License.
5
+ // You may obtain a copy of the License at
6
+ //
7
+ // http://www.apache.org/licenses/LICENSE-2.0
8
+ //
9
+ // Unless required by applicable law or agreed to in writing, software
10
+ // distributed under the License is distributed on an "AS IS" BASIS,
11
+ // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ // See the License for the specific language governing permissions and
13
+ // limitations under the License.
14
+ export async function firstValueFrom(iterable) {
15
+ const next = await iterable[Symbol.asyncIterator]().next();
16
+ if (next.done) {
17
+ throw new Error('No value');
18
+ }
19
+ return next.value;
20
+ }
21
+ export function fromEvent(target, type, options = {}) {
22
+ const overflow = options.overflow ?? 'preserve';
23
+ const highWaterMark = options.highWaterMark ?? 1;
24
+ if (!Number.isFinite(highWaterMark) || highWaterMark < 0) {
25
+ throw new TypeError('fromEventTarget highWaterMark must be a finite number >= 0');
26
+ }
27
+ let finalized = false;
28
+ let eventListenerRegistered = false;
29
+ let abortListenerRegistered = false;
30
+ let controllerRef;
31
+ const finalize = () => {
32
+ if (finalized) {
33
+ return;
34
+ }
35
+ finalized = true;
36
+ if (eventListenerRegistered) {
37
+ target.removeEventListener(type, onEvent);
38
+ eventListenerRegistered = false;
39
+ }
40
+ if (abortListenerRegistered) {
41
+ options.signal?.removeEventListener('abort', onAbort);
42
+ abortListenerRegistered = false;
43
+ }
44
+ };
45
+ const onAbort = () => {
46
+ const controller = controllerRef;
47
+ if (!controller || finalized) {
48
+ return;
49
+ }
50
+ finalize();
51
+ controller.close();
52
+ };
53
+ const onEvent = (event) => {
54
+ const controller = controllerRef;
55
+ if (!controller || finalized) {
56
+ return;
57
+ }
58
+ if (overflow !== 'preserve') {
59
+ const desiredSize = controller.desiredSize;
60
+ if (desiredSize !== null && desiredSize <= 0) {
61
+ if (overflow === 'drop') {
62
+ return;
63
+ }
64
+ finalize();
65
+ controller.error(new Error(`fromEventTarget("${type}") stream buffer overflow`));
66
+ return;
67
+ }
68
+ }
69
+ controller.enqueue(event);
70
+ };
71
+ const stream = new ReadableStream({
72
+ start(controller) {
73
+ controllerRef = controller;
74
+ if (options.signal?.aborted) {
75
+ finalize();
76
+ controller.close();
77
+ return;
78
+ }
79
+ target.addEventListener(type, onEvent);
80
+ eventListenerRegistered = true;
81
+ if (options.signal) {
82
+ options.signal.addEventListener('abort', onAbort, { once: true });
83
+ abortListenerRegistered = true;
84
+ }
85
+ },
86
+ cancel() {
87
+ finalize();
88
+ },
89
+ }, { highWaterMark });
90
+ async function* iterate() {
91
+ const reader = stream.getReader();
92
+ try {
93
+ while (true) {
94
+ const next = await reader.read();
95
+ if (next.done) {
96
+ break;
97
+ }
98
+ yield next.value;
99
+ }
100
+ }
101
+ finally {
102
+ try {
103
+ await reader.cancel();
104
+ }
105
+ catch {
106
+ // no-op
107
+ }
108
+ reader.releaseLock();
109
+ }
110
+ }
111
+ return {
112
+ [Symbol.asyncIterator]() {
113
+ return iterate();
114
+ },
115
+ };
116
+ }
117
+ export function subscribe(stream, observer) {
118
+ const iterator = stream[Symbol.asyncIterator]();
119
+ let closed = false;
120
+ let stopPromise;
121
+ const stop = () => {
122
+ if (stopPromise !== undefined) {
123
+ return stopPromise;
124
+ }
125
+ closed = true;
126
+ stopPromise = (async () => {
127
+ if (typeof iterator.return === 'function') {
128
+ await iterator.return();
129
+ }
130
+ })().catch(() => undefined);
131
+ return stopPromise;
132
+ };
133
+ const done = (async () => {
134
+ try {
135
+ while (!closed) {
136
+ const next = await iterator.next();
137
+ if (closed) {
138
+ break;
139
+ }
140
+ if (next.done) {
141
+ await observer.complete?.();
142
+ closed = true;
143
+ break;
144
+ }
145
+ await observer.next(next.value);
146
+ }
147
+ }
148
+ catch (error) {
149
+ if (!closed) {
150
+ if (observer.error) {
151
+ await observer.error(error);
152
+ await stop();
153
+ return;
154
+ }
155
+ await stop();
156
+ throw error;
157
+ }
158
+ }
159
+ finally {
160
+ if (stopPromise !== undefined) {
161
+ await stopPromise;
162
+ }
163
+ closed = true;
164
+ }
165
+ })();
166
+ return {
167
+ get closed() {
168
+ return closed;
169
+ },
170
+ unsubscribe() {
171
+ if (closed) {
172
+ return;
173
+ }
174
+ void stop();
175
+ },
176
+ done,
177
+ };
178
+ }
179
+ //# sourceMappingURL=async-iterables.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"async-iterables.js","sourceRoot":"","sources":["../../src/util/async-iterables.ts"],"names":[],"mappings":"AAAA,8BAA8B;AAC9B,EAAE;AACF,kEAAk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AAC;IACH,CAAC,CAAC,EAAE,CAAC;IAEL,OAAO;QACL,IAAI,MAAM;YACR,OAAO,MAAM,CAAC;QAChB,CAAC;QACD,WAAW;YACT,IAAI,MAAM,EAAE,CAAC;gBACX,OAAO;YACT,CAAC;YACD,KAAK,IAAI,EAAE,CAAC;QACd,CAAC;QACD,IAAI;KACL,CAAC;AACJ,CAAC"}
@@ -0,0 +1,65 @@
1
+ // Copyright 2020 Outfox, Inc.
2
+ //
3
+ // Licensed under the Apache License, Version 2.0 (the "License");
4
+ // you may not use this file except in compliance with the License.
5
+ // You may obtain a copy of the License at
6
+ //
7
+ // http://www.apache.org/licenses/LICENSE-2.0
8
+ //
9
+ // Unless required by applicable law or agreed to in writing, software
10
+ // distributed under the License is distributed on an "AS IS" BASIS,
11
+ // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ // See the License for the specific language governing permissions and
13
+ // limitations under the License.
14
+ export function isError(value) {
15
+ return value instanceof Error;
16
+ }
17
+ export function errorToMessage(value, defMsg) {
18
+ return isError(value) ? value.message : defMsg ?? fmtMsg(value);
19
+ }
20
+ function fmtMsg(value) {
21
+ if (typeof value === 'string') {
22
+ return value;
23
+ }
24
+ if (value === null) {
25
+ return 'null';
26
+ }
27
+ if (value === undefined) {
28
+ return 'undefined';
29
+ }
30
+ if (typeof value === 'function') {
31
+ return value.name ? `[function ${value.name}]` : '[function]';
32
+ }
33
+ if (typeof value === 'symbol') {
34
+ return value.toString();
35
+ }
36
+ if (typeof value === 'bigint') {
37
+ return `${value}n`;
38
+ }
39
+ if (typeof value === 'object') {
40
+ return fmtObj(value);
41
+ }
42
+ return String(value);
43
+ }
44
+ function fmtObj(value) {
45
+ const ctorName = value.constructor?.name;
46
+ try {
47
+ const json = JSON.stringify(value);
48
+ if (json != null) {
49
+ if (ctorName &&
50
+ ctorName !== 'Object' &&
51
+ ctorName !== 'Array') {
52
+ return `${ctorName} ${json}`;
53
+ }
54
+ return json;
55
+ }
56
+ }
57
+ catch {
58
+ // ignore and fall back below
59
+ }
60
+ if (ctorName) {
61
+ return `[${ctorName}]`;
62
+ }
63
+ return '[object]';
64
+ }
65
+ //# sourceMappingURL=errors.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"errors.js","sourceRoot":"","sources":["../../src/util/errors.ts"],"names":[],"mappings":"AAAA,8BAA8B;AAC9B,EAAE;AACF,kEAAkE;AAClE,mEAAmE;AACnE,0CAA0C;AAC1C,EAAE;AACF,gDAAgD;AAChD,EAAE;AACF,sEAAsE;AACtE,oEAAoE;AACpE,2EAA2E;AAC3E,sEAAsE;AACtE,iCAAiC;AAEjC,MAAM,UAAU,OAAO,CAAC,KAAc;IACpC,OAAO,KAAK,YAAY,KAAK,CAAC;AAChC,CAAC;AAED,MAAM,UAAU,cAAc,CAAC,KAAc,EAAE,MAAe;IAC5D,OAAO,OAAO,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,MAAM,IAAI,MAAM,CAAC,KAAK,CAAC,CAAC;AAClE,CAAC;AAED,SAAS,MAAM,CAAC,KAAc;IAC5B,IAAI,OAAO,KAAK,KAAK,QAAQ,EAAE,CAAC;QAC9B,OAAO,KAAK,CAAC;IACf,CAAC;IAED,IAAI,KAAK,KAAK,IAAI,EAAE,CAAC;QACnB,OAAO,MAAM,CAAC;IAChB,CAAC;IAED,IAAI,KAAK,KAAK,SAAS,EAAE,CAAC;QACxB,OAAO,WAAW,CAAC;IACrB,CAAC;IAED,IAAI,OAAO,KAAK,KAAK,UAAU,EAAE,CAAC;QAChC,OAAO,KAAK,CAAC,IAAI,CAAC,CAAC,CAAC,aAAa,KAAK,CAAC,IAAI,GAAG,CAAC,CAAC,CAAC,YAAY,CAAC;IAChE,CAAC;IAED,IAAI,OAAO,KAAK,KAAK,QAAQ,EAAE,CAAC;QAC9B,OAAO,KAAK,CAAC,QAAQ,EAAE,CAAC;IAC1B,CAAC;IAED,IAAI,OAAO,KAAK,KAAK,QAAQ,EAAE,CAAC;QAC9B,OAAO,GAAG,KAAK,GAAG,CAAC;IACrB,CAAC;IAED,IAAI,OAAO,KAAK,KAAK,QAAQ,EAAE,CAAC;QAC9B,OAAO,MAAM,CAAC,KAAK,CAAC,CAAC;IACvB,CAAC;IAED,OAAO,MAAM,CAAC,KAAK,CAAC,CAAC;AACvB,CAAC;AAED,SAAS,MAAM,CAAC,KAAa;IAC3B,MAAM,QAAQ,GAAG,KAAK,CAAC,WAAW,EAAE,IAAI,CAAC;IAEzC,IAAI,CAAC;QACH,MAAM,IAAI,GAAG,IAAI,CAAC,SAAS,CAAC,KAAK,CAAC,CAAC;QACnC,IAAI,IAAI,IAAI,IAAI,EAAE,CAAC;YACjB,IACE,QAAQ;gBACR,QAAQ,KAAK,QAAQ;gBACrB,QAAQ,KAAK,OAAO,EACpB,CAAC;gBACD,OAAO,GAAG,QAAQ,IAAI,IAAI,EAAE,CAAC;YAC/B,CAAC;YACD,OAAO,IAAI,CAAC;QACd,CAAC;IACH,CAAC;IAAC,MAAM,CAAC;QACP,6BAA6B;IAC/B,CAAC;IAED,IAAI,QAAQ,EAAE,CAAC;QACb,OAAO,IAAI,QAAQ,GAAG,CAAC;IACzB,CAAC;IAED,OAAO,UAAU,CAAC;AACpB,CAAC"}
@@ -0,0 +1,5 @@
1
+ import { z } from 'zod';
2
+ import { Problem } from '../problem.js';
3
+ export type ProblemMatcher = z.ZodType<Problem> | ((problem: Problem) => boolean);
4
+ export declare function nullifyNotFound<T>(promise: Promise<T>): Promise<T | null>;
5
+ export declare function nullifyProblem<T>(promise: Promise<T>, statuses: number[], problemTypes: ProblemMatcher[]): Promise<T | null>;
@@ -0,0 +1,37 @@
1
+ // Copyright 2020 Outfox, Inc.
2
+ //
3
+ // Licensed under the Apache License, Version 2.0 (the "License");
4
+ // you may not use this file except in compliance with the License.
5
+ // You may obtain a copy of the License at
6
+ //
7
+ // http://www.apache.org/licenses/LICENSE-2.0
8
+ //
9
+ // Unless required by applicable law or agreed to in writing, software
10
+ // distributed under the License is distributed on an "AS IS" BASIS,
11
+ // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ // See the License for the specific language governing permissions and
13
+ // limitations under the License.
14
+ import { Problem } from '../problem.js';
15
+ export async function nullifyNotFound(promise) {
16
+ return await nullifyProblem(promise, [404], []);
17
+ }
18
+ export async function nullifyProblem(promise, statuses, problemTypes) {
19
+ try {
20
+ return await promise;
21
+ }
22
+ catch (error) {
23
+ if (error instanceof Problem && matchesProblem(error, statuses, problemTypes)) {
24
+ return null;
25
+ }
26
+ throw error;
27
+ }
28
+ }
29
+ function matchesProblem(error, statuses, problemTypes) {
30
+ if (statuses.includes(error.status)) {
31
+ return true;
32
+ }
33
+ return problemTypes.some((matcher) => typeof matcher === 'function'
34
+ ? matcher(error)
35
+ : matcher.safeParse(error).success);
36
+ }
37
+ //# sourceMappingURL=nullify.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"nullify.js","sourceRoot":"","sources":["../../src/util/nullify.ts"],"names":[],"mappings":"AAAA,8BAA8B;AAC9B,EAAE;AACF,kEAAkE;AAClE,mEAAmE;AACnE,0CAA0C;AAC1C,EAAE;AACF,gDAAgD;AAChD,EAAE;AACF,sEAAsE;AACtE,oEAAoE;AACpE,2EAA2E;AAC3E,sEAAsE;AACtE,iCAAiC;AAGjC,OAAO,EAAE,OAAO,EAAE,MAAM,eAAe,CAAC;AAIxC,MAAM,CAAC,KAAK,UAAU,eAAe,CAAI,OAAmB;IAC1D,OAAO,MAAM,cAAc,CAAC,OAAO,EAAE,CAAC,GAAG,CAAC,EAAE,EAAE,CAAC,CAAC;AAClD,CAAC;AAED,MAAM,CAAC,KAAK,UAAU,cAAc,CAClC,OAAmB,EACnB,QAAkB,EAClB,YAA8B;IAE9B,IAAI,CAAC;QACH,OAAO,MAAM,OAAO,CAAC;IACvB,CAAC;IAAC,OAAO,KAAK,EAAE,CAAC;QACf,IAAI,KAAK,YAAY,OAAO,IAAI,cAAc,CAAC,KAAK,EAAE,QAAQ,EAAE,YAAY,CAAC,EAAE,CAAC;YAC9E,OAAO,IAAI,CAAC;QACd,CAAC;QACD,MAAM,KAAK,CAAC;IACd,CAAC;AACH,CAAC;AAED,SAAS,cAAc,CACrB,KAAc,EACd,QAAkB,EAClB,YAA8B;IAE9B,IAAI,QAAQ,CAAC,QAAQ,CAAC,KAAK,CAAC,MAAM,CAAC,EAAE,CAAC;QACpC,OAAO,IAAI,CAAC;IACd,CAAC;IAED,OAAO,YAAY,CAAC,IAAI,CAAC,CAAC,OAAO,EAAE,EAAE,CACnC,OAAO,OAAO,KAAK,UAAU;QAC3B,CAAC,CAAC,OAAO,CAAC,KAAK,CAAC;QAChB,CAAC,CAAC,OAAO,CAAC,SAAS,CAAC,KAAK,CAAC,CAAC,OAAO,CACrC,CAAC;AACJ,CAAC"}
@@ -0,0 +1,11 @@
1
+ export declare function secondsToNumber(seconds: number, nanos: number): number;
2
+ /**
3
+ * Encodes seconds and fraction into an array of numbers that matches
4
+ * Jackson's optional second/fraction timestamp fields.
5
+ */
6
+ export declare function encodeNumericArray(seconds: number, fraction: number): number[];
7
+ /**
8
+ * Appends Jackson-style optional second/fraction fields to a required
9
+ * date/time prefix (such as year-month-day-hour-minute).
10
+ */
11
+ export declare function appendNumericTimeFields(prefix: number[], seconds: number, fraction: number): number[];
@@ -15,10 +15,13 @@ export function secondsToNumber(seconds, nanos) {
15
15
  if (nanos == 0) {
16
16
  return seconds;
17
17
  }
18
- const nanoStr = nanos.toString();
19
- return parseFloat(`${seconds}.${'0'.repeat(9 - nanoStr.length)}${nanos}`);
18
+ return seconds + (nanos / 1e9);
20
19
  }
21
- export function encodeSeconds(seconds, fraction) {
20
+ /**
21
+ * Encodes seconds and fraction into an array of numbers that matches
22
+ * Jackson's optional second/fraction timestamp fields.
23
+ */
24
+ export function encodeNumericArray(seconds, fraction) {
22
25
  const result = [];
23
26
  if (seconds != 0 || fraction != 0) {
24
27
  result.push(seconds);
@@ -28,4 +31,11 @@ export function encodeSeconds(seconds, fraction) {
28
31
  }
29
32
  return result;
30
33
  }
31
- //# sourceMappingURL=temporal.js.map
34
+ /**
35
+ * Appends Jackson-style optional second/fraction fields to a required
36
+ * date/time prefix (such as year-month-day-hour-minute).
37
+ */
38
+ export function appendNumericTimeFields(prefix, seconds, fraction) {
39
+ return [...prefix, ...encodeNumericArray(seconds, fraction)];
40
+ }
41
+ //# sourceMappingURL=numbers.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"numbers.js","sourceRoot":"","sources":["../../src/util/numbers.ts"],"names":[],"mappings":"AAAA,8BAA8B;AAC9B,EAAE;AACF,kEAAkE;AAClE,mEAAmE;AACnE,0CAA0C;AAC1C,EAAE;AACF,gDAAgD;AAChD,EAAE;AACF,sEAAsE;AACtE,oEAAoE;AACpE,2EAA2E;AAC3E,sEAAsE;AACtE,iCAAiC;AAEjC,MAAM,UAAU,eAAe,CAAC,OAAe,EAAE,KAAa;IAC5D,IAAI,KAAK,IAAI,CAAC,EAAE,CAAC;QACf,OAAO,OAAO,CAAC;IACjB,CAAC;IACD,OAAO,OAAO,GAAG,CAAC,KAAK,GAAG,GAAG,CAAC,CAAC;AACjC,CAAC;AAED;;;GAGG;AACH,MAAM,UAAU,kBAAkB,CAAC,OAAe,EAAE,QAAgB;IAClE,MAAM,MAAM,GAAG,EAAE,CAAC;IAClB,IAAI,OAAO,IAAI,CAAC,IAAI,QAAQ,IAAI,CAAC,EAAE,CAAC;QAClC,MAAM,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACrB,IAAI,QAAQ,IAAI,CAAC,EAAE,CAAC;YAClB,MAAM,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;QACxB,CAAC;IACH,CAAC;IACD,OAAO,MAAM,CAAC;AAChB,CAAC;AAED;;;GAGG;AACH,MAAM,UAAU,uBAAuB,CACrC,MAAgB,EAChB,OAAe,EACf,QAAgB;IAEhB,OAAO,CAAC,GAAG,MAAM,EAAE,GAAG,kBAAkB,CAAC,OAAO,EAAE,QAAQ,CAAC,CAAC,CAAC;AAC/D,CAAC"}
@@ -0,0 +1,16 @@
1
+ export interface Unsubscribable {
2
+ unsubscribe(): void;
3
+ }
4
+ export interface SubscriptionLike extends Unsubscribable {
5
+ readonly closed: boolean;
6
+ readonly done: Promise<void>;
7
+ }
8
+ export declare class Subscription implements SubscriptionLike {
9
+ private readonly _collection;
10
+ private readonly _done;
11
+ closed: boolean;
12
+ add(sub: (() => unknown) | Unsubscribable): void;
13
+ remove(sub: (() => void) | Unsubscribable): void;
14
+ unsubscribe(): void;
15
+ get done(): Promise<void>;
16
+ }
@@ -0,0 +1,78 @@
1
+ // Copyright 2020 Outfox, Inc.
2
+ //
3
+ // Licensed under the Apache License, Version 2.0 (the "License");
4
+ // you may not use this file except in compliance with the License.
5
+ // You may obtain a copy of the License at
6
+ //
7
+ // http://www.apache.org/licenses/LICENSE-2.0
8
+ //
9
+ // Unless required by applicable law or agreed to in writing, software
10
+ // distributed under the License is distributed on an "AS IS" BASIS,
11
+ // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ // See the License for the specific language governing permissions and
13
+ // limitations under the License.
14
+ export class Subscription {
15
+ _collection = new Set();
16
+ _done = Promise.withResolvers();
17
+ closed = false;
18
+ add(sub) {
19
+ let unsub;
20
+ if (typeof sub == 'function') {
21
+ unsub = {
22
+ unsubscribe: sub,
23
+ };
24
+ }
25
+ else if (Object.hasOwn(sub, 'unsubscribe')) {
26
+ unsub = sub;
27
+ }
28
+ else {
29
+ throw new TypeError('Invalid argument');
30
+ }
31
+ this._collection.add(unsub);
32
+ }
33
+ remove(sub) {
34
+ let unsub = undefined;
35
+ if (typeof sub == 'function') {
36
+ for (const curUnsub of this._collection) {
37
+ if (curUnsub.unsubscribe === sub) {
38
+ unsub = curUnsub;
39
+ break;
40
+ }
41
+ }
42
+ if (!unsub) {
43
+ return;
44
+ }
45
+ }
46
+ else if (Object.hasOwn(sub, 'unsubscribe')) {
47
+ unsub = sub;
48
+ }
49
+ else {
50
+ throw new TypeError('Invalid argument');
51
+ }
52
+ this._collection.delete(unsub);
53
+ }
54
+ unsubscribe() {
55
+ if (this.closed) {
56
+ return;
57
+ }
58
+ this.closed = true;
59
+ try {
60
+ this._collection.forEach((sub) => {
61
+ try {
62
+ sub.unsubscribe();
63
+ }
64
+ catch {
65
+ // Ensure all subscriptions are attempted even if any `unsubscribe` fails.
66
+ }
67
+ });
68
+ }
69
+ finally {
70
+ this._collection.clear();
71
+ this._done.resolve();
72
+ }
73
+ }
74
+ get done() {
75
+ return this._done.promise;
76
+ }
77
+ }
78
+ //# sourceMappingURL=subscriptions.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"subscriptions.js","sourceRoot":"","sources":["../../src/util/subscriptions.ts"],"names":[],"mappings":"AAAA,8BAA8B;AAC9B,EAAE;AACF,kEAAkE;AAClE,mEAAmE;AACnE,0CAA0C;AAC1C,EAAE;AACF,gDAAgD;AAChD,EAAE;AACF,sEAAsE;AACtE,oEAAoE;AACpE,2EAA2E;AAC3E,sEAAsE;AACtE,iCAAiC;AAWjC,MAAM,OAAO,YAAY;IACN,WAAW,GAAG,IAAI,GAAG,EAAkB,CAAC;IACxC,KAAK,GAAG,OAAO,CAAC,aAAa,EAAQ,CAAC;IACvD,MAAM,GAAG,KAAK,CAAC;IAEf,GAAG,CAAC,GAAqC;QACvC,IAAI,KAAqB,CAAC;QAC1B,IAAI,OAAO,GAAG,IAAI,UAAU,EAAE,CAAC;YAC7B,KAAK,GAAG;gBACN,WAAW,EAAE,GAAG;aACjB,CAAC;QACJ,CAAC;aAAM,IAAI,MAAM,CAAC,MAAM,CAAC,GAAG,EAAE,aAAa,CAAC,EAAE,CAAC;YAC7C,KAAK,GAAG,GAAG,CAAC;QACd,CAAC;aAAM,CAAC;YACN,MAAM,IAAI,SAAS,CAAC,kBAAkB,CAAC,CAAC;QAC1C,CAAC;QACD,IAAI,CAAC,WAAW,CAAC,GAAG,CA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 +12,7 @@
12
12
  // See the License for the specific language governing permissions and
13
13
  // limitations under the License.
14
14
  export function unknownGet(obj, key) {
15
- var _a;
16
- return (_a = obj) === null || _a === void 0 ? void 0 : _a[key];
15
+ return obj?.[key];
17
16
  }
18
17
  export function unknownSet(obj, key, value) {
19
18
  if (obj == null) {
@@ -21,4 +20,4 @@ export function unknownSet(obj, key, value) {
21
20
  }
22
21
  obj[key] = value;
23
22
  }
24
- //# sourceMappingURL=any.js.map
23
+ //# sourceMappingURL=unknowns.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"unknowns.js","sourceRoot":"","sources":["../../src/util/unknowns.ts"],"names":[],"mappings":"AAAA,8BAA8B;AAC9B,EAAE;AACF,kEAAkE;AAClE,mEAAmE;AACnE,0CAA0C;AAC1C,EAAE;AACF,gDAAgD;AAChD,EAAE;AACF,sEAAsE;AACtE,oEAAoE;AACpE,2EAA2E;AAC3E,sEAAsE;AACtE,iCAAiC;AAEjC,MAAM,UAAU,UAAU,CAAc,GAAY,EAAE,GAAW;IAC/D,OAAQ,GAA+B,EAAE,CAAC,GAAG,CAAM,CAAC;AACtD,CAAC;AAED,MAAM,UAAU,UAAU,CAAI,GAAY,EAAE,GAAW,EAAE,KAAQ;IAC/D,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QAChB,OAAO;IACT,CAAC;IACA,GAA+B,CAAC,GAAG,CAAC,GAAG,KAAK,CAAC;AAChD,CAAC"}
package/package.json CHANGED
@@ -1,32 +1,46 @@
1
1
  {
2
2
  "name": "@outfoxx/sunday",
3
- "version": "1.1.0-beta.9",
3
+ "version": "v2.0.0-beta.1",
4
4
  "description": "Sunday 🙏 The framework of REST for TypeScript/JavaScript",
5
- "main": "build/main/index.js",
6
- "module": "build/esm/index.js",
7
- "esnext": "build/esnext/index.js",
8
- "types": "build/main/index.js",
5
+ "packageManager": "bun@1.3.10",
6
+ "type": "module",
7
+ "types": "build/index.d.ts",
8
+ "exports": {
9
+ ".": {
10
+ "types": "./build/index.d.ts",
11
+ "import": "./build/index.js"
12
+ },
13
+ "./*": {
14
+ "types": "./build/*.d.ts",
15
+ "import": "./build/*.js"
16
+ },
17
+ "./package.json": "./package.json"
18
+ },
19
+ "engines": {
20
+ "node": ">=22"
21
+ },
9
22
  "files": [
10
23
  "build",
11
24
  "LICENSE.txt",
12
25
  "README.md"
13
26
  ],
14
27
  "scripts": {
15
- "test:main": "karma start karma-main.config.js --singleRun",
16
- "test:esm": "karma start karma-esm.config.js --singleRun",
17
- "test:esnext": "karma start karma-esnext.config.js --singleRun",
18
- "test:main:watch": "karma start karma-main.config.js",
19
- "test:esm:watch": "karma start karma-esm.config.js",
20
- "test:esnext:watch": "karma start karma-esnext.config.js",
21
- "test:main:allbrowsers": "karma start karma-main.config.js --singleRun --browsers ChromeHeadless,SafariNative,Firefox",
22
- "test:esm:allbrowsers": "karma start karma-esm.config.js --singleRun --browsers ChromeHeadless,SafariNative,Firefox",
23
- "test:esnext:allbrowsers": "karma start karma-esnext.config.js --singleRun --browsers ChromeHeadless,SafariNative,Firefox",
24
- "build": "tsc --build tsconfig-main.json tsconfig-esm.json tsconfig-esnext.json",
28
+ "test": "mkdir -p reports reports/coverage && bun test -r ./test/setup.ts --coverage --coverage-reporter=lcov --coverage-dir=reports/coverage --reporter=junit --reporter-outfile=reports/test-report.xml",
29
+ "test:watch": "bun test -r ./test/setup.ts --watch",
30
+ "typecheck": "tsc -p tsconfig.build.json --noEmit && tsc -p tsconfig.test.json --noEmit",
31
+ "build": "tsc -p tsconfig.build.json",
32
+ "build:watch": "tsc -p tsconfig.build.json --watch",
33
+ "check": "bun run lint && bun run typecheck && bun run test && bun run build",
25
34
  "clean": "rimraf build docs reports",
26
35
  "pretty": "prettier src test",
27
- "lint": "eslint -f json -o reports/lint.json src test",
28
- "docs": "typedoc --excludeInternal --excludePrivate src/index.ts",
29
- "prepublishOnly": "npm run clean && npm run lint && npm run build"
36
+ "lint": "mkdir -p reports && eslint -f json -o reports/lint.json src test",
37
+ "lint:html": "mkdir -p reports && eslint -f html -o reports/lint.html src test",
38
+ "docs": "typedoc --excludeInternal --excludePrivate --tsconfig tsconfig.build.json src/index.ts",
39
+ "prepublishOnly": "bun run clean && bun run check",
40
+ "publish:dry-run": "bun publish --dry-run",
41
+ "smoke:esm:bun": "bun ./tools/ci/esm-smoke.mjs",
42
+ "smoke:esm:node": "node ./tools/ci/esm-smoke.mjs",
43
+ "build:stub": "dts-bundle-generator --project tools/stub/tsconfig.json --no-check --out-file tools/stub/out/index.d.ts tools/stub/index.ts"
30
44
  },
31
45
  "husky": {
32
46
  "hooks": {
@@ -43,50 +57,36 @@
43
57
  "REST",
44
58
  "fetch"
45
59
  ],
60
+ "repository": {
61
+ "type": "git",
62
+ "url": "https://github.com/outfoxx/sunday-js"
63
+ },
46
64
  "author": "kdubb",
47
65
  "license": "Apache-2.0",
48
66
  "dependencies": {
49
- "@js-joda/core": "5.2.x",
50
- "@outfoxx/cbor-redux": "0.3.x",
51
- "@outfoxx/jackson-js": "1.4.x",
52
- "tslib": "2.4.x",
53
- "uri-template-lite": "^22.9.0"
54
- },
55
- "peerDependencies": {
56
- "rxjs": "7.x"
67
+ "@js-joda/core": "^5.7.0",
68
+ "cbor-redux": "^1.0.0",
69
+ "tslib": "^2.8.1",
70
+ "uri-template": "^2.0.0",
71
+ "zod": "^4.3.6"
57
72
  },
73
+ "peerDependencies": {},
58
74
  "devDependencies": {
59
- "@types/jasmine": "^4.3.1",
60
- "@types/uri-template-lite": "19.12.x",
61
- "@typescript-eslint/eslint-plugin": "^5.25.0",
62
- "@typescript-eslint/parser": "^5.25.0",
63
- "coverage-istanbul-loader": "^3.0.5",
64
- "eslint": "^8.15.0",
65
- "eslint-config-prettier": "^8.5.0",
66
- "eslint-plugin-header": "^3.1.1",
67
- "eslint-plugin-prettier": "^4.0.0",
68
- "fetch-mock": "^9.11.0",
69
- "husky": "^4.3.0",
70
- "install": "^0.13.0",
71
- "karma": "^6.3.20",
72
- "karma-chrome-launcher": "^3.1.1",
73
- "karma-cli": "^2.0.0",
74
- "karma-coverage-istanbul-reporter": "^3.0.3",
75
- "karma-firefox-launcher": "^2.1.2",
76
- "karma-jasmine": "^5.1.0",
77
- "karma-safarinative-launcher": "^1.1.0",
78
- "karma-sonarqube-unit-reporter": "^0.0.23",
79
- "karma-sourcemap-loader": "^0.3.8",
80
- "karma-spec-reporter": "^0.0.36",
81
- "karma-webpack": "^5.0.0",
82
- "lint-staged": "^10.4.0",
83
- "prettier": "^2.1.2",
84
- "pretty-quick": "^3.0.2",
85
- "rimraf": "^3.0.2",
86
- "ts-loader": "^9.4.2",
87
- "typedoc": "^0.22.18",
88
- "typescript": "~4.4",
89
- "webpack": "^5.75.0",
90
- "webpack-cli": "^5.0.1"
75
+ "@eslint/js": "^10.0.1",
76
+ "@types/bun": "^1.3.9",
77
+ "@typescript-eslint/eslint-plugin": "^8.56.1",
78
+ "@typescript-eslint/parser": "^8.56.1",
79
+ "dts-bundle-generator": "^9.5.1",
80
+ "eslint": "^10.0.2",
81
+ "eslint-config-prettier": "^10.1.8",
82
+ "fetch-mock": "^12.6.0",
83
+ "globals": "^17.3.0",
84
+ "husky": "^9.1.7",
85
+ "lint-staged": "^16.2.7",
86
+ "prettier": "^3.8.1",
87
+ "pretty-quick": "^4.2.2",
88
+ "rimraf": "^6.1.3",
89
+ "typedoc": "^0.28.17",
90
+ "typescript": "^5.9.3"
91
91
  }
92
92
  }
@@ -1,4 +0,0 @@
1
- import { ClassList, ClassType } from '@outfoxx/jackson-js/dist/@types';
2
- import { ConstructableClassType } from './class-type';
3
- export declare type AnyType = ClassList<ClassType<any>>;
4
- export declare type AnyConstructableType = ClassList<ConstructableClassType<any>>;
@@ -1,15 +0,0 @@
1
- // Copyright 2020 Outfox, Inc.
2
- //
3
- // Licensed under the Apache License, Version 2.0 (the "License");
4
- // you may not use this file except in compliance with the License.
5
- // You may obtain a copy of the License at
6
- //
7
- // http://www.apache.org/licenses/LICENSE-2.0
8
- //
9
- // Unless required by applicable law or agreed to in writing, software
10
- // distributed under the License is distributed on an "AS IS" BASIS,
11
- // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
- // See the License for the specific language governing permissions and
13
- // limitations under the License.
14
- export {};
15
- //# sourceMappingURL=any-type.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"any-type.js","sourceRoot":"","sources":["../../src/any-type.ts"],"names":[],"mappings":"AAAA,8BAA8B;AAC9B,EAAE;AACF,kEAAkE;AAClE,mEAAmE;AACnE,0CAA0C;AAC1C,EAAE;AACF,gDAAgD;AAChD,EAAE;AACF,sEAAsE;AACtE,oEAAoE;AACpE,2EAA2E;AAC3E,sEAAsE;AACtE,iCAAiC"}
@@ -1,2 +0,0 @@
1
- export declare type ClassType<T> = (abstract new () => T) | (abstract new (...args: any[]) => T);
2
- export declare type ConstructableClassType<T> = (new () => T) | (new (...args: any[]) => T);