@bleedingdev/modern-js-utils 3.9.0-ultramodern.1 → 3.9.0-ultramodern.11

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 (335) hide show
  1. package/dist/cjs/cli/require.js +10 -1
  2. package/dist/cjs/universal/index.js +5 -25
  3. package/dist/compiled/chokidar/types/index.d.ts +1 -1
  4. package/dist/compiled/fast-glob/@nodelib/fs.scandir/out/adapters/fs.d.ts +1 -1
  5. package/dist/compiled/fast-glob/@nodelib/fs.scandir/out/settings.d.ts +1 -1
  6. package/dist/compiled/fast-glob/@nodelib/fs.walk/out/index.d.ts +1 -1
  7. package/dist/compiled/fast-glob/@nodelib/fs.walk/out/readers/async.d.ts +1 -1
  8. package/dist/compiled/fast-glob/@nodelib/fs.walk/out/settings.d.ts +1 -1
  9. package/dist/compiled/fast-glob/@nodelib/fs.walk/out/types/index.d.ts +1 -1
  10. package/dist/compiled/fast-glob/out/types/index.d.ts +1 -1
  11. package/dist/compiled/inquirer/lib/prompts/base.d.ts +100 -0
  12. package/dist/compiled/inquirer/lib/prompts/checkbox.d.ts +116 -0
  13. package/dist/compiled/inquirer/lib/prompts/confirm.d.ts +53 -0
  14. package/dist/compiled/inquirer/lib/prompts/editor.d.ts +101 -0
  15. package/dist/compiled/inquirer/lib/prompts/expand.d.ts +149 -0
  16. package/dist/compiled/inquirer/lib/prompts/input.d.ts +82 -0
  17. package/dist/compiled/inquirer/lib/prompts/list.d.ts +89 -0
  18. package/dist/compiled/inquirer/lib/prompts/number.d.ts +32 -0
  19. package/dist/compiled/inquirer/lib/prompts/password.d.ts +82 -0
  20. package/dist/compiled/inquirer/lib/prompts/rawlist.d.ts +111 -0
  21. package/dist/compiled/inquirer/lib/utils/events.d.ts +72 -0
  22. package/dist/compiled/inquirer/lib/utils/incrementListIndex.d.ts +23 -0
  23. package/dist/compiled/inquirer/lib/utils/paginator.d.ts +55 -0
  24. package/dist/compiled/inquirer/lib/utils/readline.d.ts +56 -0
  25. package/dist/compiled/inquirer/lib/utils/screen-manager.d.ts +90 -0
  26. package/dist/compiled/inquirer/lib/utils/utils.d.ts +30 -0
  27. package/dist/compiled/inquirer/rxjs/LICENSE.txt +202 -0
  28. package/dist/compiled/inquirer/rxjs/ajax/index.d.ts +5 -0
  29. package/dist/compiled/inquirer/rxjs/fetch/index.d.ts +2 -0
  30. package/dist/compiled/inquirer/rxjs/index.d.ts +173 -0
  31. package/dist/compiled/inquirer/rxjs/internal/AnyCatcher.d.ts +10 -0
  32. package/dist/compiled/inquirer/rxjs/internal/AsyncSubject.d.ts +13 -0
  33. package/dist/compiled/inquirer/rxjs/internal/BehaviorSubject.d.ts +13 -0
  34. package/dist/compiled/inquirer/rxjs/internal/Notification.d.ts +175 -0
  35. package/dist/compiled/inquirer/rxjs/internal/NotificationFactories.d.ts +2 -0
  36. package/dist/compiled/inquirer/rxjs/internal/Observable.d.ts +121 -0
  37. package/dist/compiled/inquirer/rxjs/internal/Operator.d.ts +9 -0
  38. package/dist/compiled/inquirer/rxjs/internal/ReplaySubject.d.ts +49 -0
  39. package/dist/compiled/inquirer/rxjs/internal/Scheduler.d.ts +53 -0
  40. package/dist/compiled/inquirer/rxjs/internal/Subject.d.ts +54 -0
  41. package/dist/compiled/inquirer/rxjs/internal/Subscriber.d.ts +72 -0
  42. package/dist/compiled/inquirer/rxjs/internal/Subscription.d.ts +92 -0
  43. package/dist/compiled/inquirer/rxjs/internal/ajax/AjaxResponse.d.ts +115 -0
  44. package/dist/compiled/inquirer/rxjs/internal/ajax/ajax.d.ts +227 -0
  45. package/dist/compiled/inquirer/rxjs/internal/ajax/errors.d.ts +65 -0
  46. package/dist/compiled/inquirer/rxjs/internal/ajax/getXHRResponse.d.ts +14 -0
  47. package/dist/compiled/inquirer/rxjs/internal/ajax/types.d.ts +200 -0
  48. package/dist/compiled/inquirer/rxjs/internal/config.d.ts +73 -0
  49. package/dist/compiled/inquirer/rxjs/internal/firstValueFrom.d.ts +7 -0
  50. package/dist/compiled/inquirer/rxjs/internal/lastValueFrom.d.ts +7 -0
  51. package/dist/compiled/inquirer/rxjs/internal/observable/ConnectableObservable.d.ts +42 -0
  52. package/dist/compiled/inquirer/rxjs/internal/observable/bindCallback.d.ts +5 -0
  53. package/dist/compiled/inquirer/rxjs/internal/observable/bindCallbackInternals.d.ts +4 -0
  54. package/dist/compiled/inquirer/rxjs/internal/observable/bindNodeCallback.d.ts +5 -0
  55. package/dist/compiled/inquirer/rxjs/internal/observable/combineLatest.d.ts +33 -0
  56. package/dist/compiled/inquirer/rxjs/internal/observable/concat.d.ts +5 -0
  57. package/dist/compiled/inquirer/rxjs/internal/observable/connectable.d.ts +27 -0
  58. package/dist/compiled/inquirer/rxjs/internal/observable/defer.d.ts +51 -0
  59. package/dist/compiled/inquirer/rxjs/internal/observable/dom/WebSocketSubject.d.ts +173 -0
  60. package/dist/compiled/inquirer/rxjs/internal/observable/dom/animationFrames.d.ts +76 -0
  61. package/dist/compiled/inquirer/rxjs/internal/observable/dom/fetch.d.ts +7 -0
  62. package/dist/compiled/inquirer/rxjs/internal/observable/dom/webSocket.d.ts +159 -0
  63. package/dist/compiled/inquirer/rxjs/internal/observable/empty.d.ts +72 -0
  64. package/dist/compiled/inquirer/rxjs/internal/observable/forkJoin.d.ts +24 -0
  65. package/dist/compiled/inquirer/rxjs/internal/observable/from.d.ts +6 -0
  66. package/dist/compiled/inquirer/rxjs/internal/observable/fromEvent.d.ts +45 -0
  67. package/dist/compiled/inquirer/rxjs/internal/observable/fromEventPattern.d.ts +5 -0
  68. package/dist/compiled/inquirer/rxjs/internal/observable/fromSubscribable.d.ts +14 -0
  69. package/dist/compiled/inquirer/rxjs/internal/observable/generate.d.ts +314 -0
  70. package/dist/compiled/inquirer/rxjs/internal/observable/iif.d.ts +82 -0
  71. package/dist/compiled/inquirer/rxjs/internal/observable/innerFrom.d.ts +21 -0
  72. package/dist/compiled/inquirer/rxjs/internal/observable/interval.d.ts +48 -0
  73. package/dist/compiled/inquirer/rxjs/internal/observable/merge.d.ts +9 -0
  74. package/dist/compiled/inquirer/rxjs/internal/observable/never.d.ts +40 -0
  75. package/dist/compiled/inquirer/rxjs/internal/observable/of.d.ts +14 -0
  76. package/dist/compiled/inquirer/rxjs/internal/observable/onErrorResumeNext.d.ts +5 -0
  77. package/dist/compiled/inquirer/rxjs/internal/observable/pairs.d.ts +19 -0
  78. package/dist/compiled/inquirer/rxjs/internal/observable/partition.d.ts +9 -0
  79. package/dist/compiled/inquirer/rxjs/internal/observable/race.d.ts +12 -0
  80. package/dist/compiled/inquirer/rxjs/internal/observable/range.d.ts +8 -0
  81. package/dist/compiled/inquirer/rxjs/internal/observable/throwError.d.ts +115 -0
  82. package/dist/compiled/inquirer/rxjs/internal/observable/timer.d.ts +126 -0
  83. package/dist/compiled/inquirer/rxjs/internal/observable/using.d.ts +30 -0
  84. package/dist/compiled/inquirer/rxjs/internal/observable/zip.d.ts +7 -0
  85. package/dist/compiled/inquirer/rxjs/internal/operators/OperatorSubscriber.d.ts +41 -0
  86. package/dist/compiled/inquirer/rxjs/internal/operators/audit.d.ts +48 -0
  87. package/dist/compiled/inquirer/rxjs/internal/operators/auditTime.d.ts +50 -0
  88. package/dist/compiled/inquirer/rxjs/internal/operators/buffer.d.ts +41 -0
  89. package/dist/compiled/inquirer/rxjs/internal/operators/bufferCount.d.ts +54 -0
  90. package/dist/compiled/inquirer/rxjs/internal/operators/bufferTime.d.ts +5 -0
  91. package/dist/compiled/inquirer/rxjs/internal/operators/bufferToggle.d.ts +46 -0
  92. package/dist/compiled/inquirer/rxjs/internal/operators/bufferWhen.d.ts +41 -0
  93. package/dist/compiled/inquirer/rxjs/internal/operators/catchError.d.ts +4 -0
  94. package/dist/compiled/inquirer/rxjs/internal/operators/combineAll.d.ts +6 -0
  95. package/dist/compiled/inquirer/rxjs/internal/operators/combineLatest.d.ts +10 -0
  96. package/dist/compiled/inquirer/rxjs/internal/operators/combineLatestAll.d.ts +6 -0
  97. package/dist/compiled/inquirer/rxjs/internal/operators/combineLatestWith.d.ts +43 -0
  98. package/dist/compiled/inquirer/rxjs/internal/operators/concat.d.ts +6 -0
  99. package/dist/compiled/inquirer/rxjs/internal/operators/concatAll.d.ts +59 -0
  100. package/dist/compiled/inquirer/rxjs/internal/operators/concatMap.d.ts +7 -0
  101. package/dist/compiled/inquirer/rxjs/internal/operators/concatMapTo.d.ts +8 -0
  102. package/dist/compiled/inquirer/rxjs/internal/operators/concatWith.d.ts +43 -0
  103. package/dist/compiled/inquirer/rxjs/internal/operators/connect.d.ts +87 -0
  104. package/dist/compiled/inquirer/rxjs/internal/operators/count.d.ts +58 -0
  105. package/dist/compiled/inquirer/rxjs/internal/operators/debounce.d.ts +61 -0
  106. package/dist/compiled/inquirer/rxjs/internal/operators/debounceTime.d.ts +59 -0
  107. package/dist/compiled/inquirer/rxjs/internal/operators/defaultIfEmpty.d.ts +38 -0
  108. package/dist/compiled/inquirer/rxjs/internal/operators/delay.d.ts +59 -0
  109. package/dist/compiled/inquirer/rxjs/internal/operators/delayWhen.d.ts +6 -0
  110. package/dist/compiled/inquirer/rxjs/internal/operators/dematerialize.d.ts +51 -0
  111. package/dist/compiled/inquirer/rxjs/internal/operators/distinct.d.ts +60 -0
  112. package/dist/compiled/inquirer/rxjs/internal/operators/distinctUntilChanged.d.ts +4 -0
  113. package/dist/compiled/inquirer/rxjs/internal/operators/distinctUntilKeyChanged.d.ts +4 -0
  114. package/dist/compiled/inquirer/rxjs/internal/operators/elementAt.d.ts +51 -0
  115. package/dist/compiled/inquirer/rxjs/internal/operators/endWith.d.ts +7 -0
  116. package/dist/compiled/inquirer/rxjs/internal/operators/every.d.ts +9 -0
  117. package/dist/compiled/inquirer/rxjs/internal/operators/exhaust.d.ts +6 -0
  118. package/dist/compiled/inquirer/rxjs/internal/operators/exhaustAll.d.ts +47 -0
  119. package/dist/compiled/inquirer/rxjs/internal/operators/exhaustMap.d.ts +7 -0
  120. package/dist/compiled/inquirer/rxjs/internal/operators/expand.d.ts +9 -0
  121. package/dist/compiled/inquirer/rxjs/internal/operators/filter.d.ts +9 -0
  122. package/dist/compiled/inquirer/rxjs/internal/operators/finalize.d.ts +64 -0
  123. package/dist/compiled/inquirer/rxjs/internal/operators/find.d.ts +12 -0
  124. package/dist/compiled/inquirer/rxjs/internal/operators/findIndex.d.ts +9 -0
  125. package/dist/compiled/inquirer/rxjs/internal/operators/first.d.ts +9 -0
  126. package/dist/compiled/inquirer/rxjs/internal/operators/flatMap.d.ts +6 -0
  127. package/dist/compiled/inquirer/rxjs/internal/operators/groupBy.d.ts +119 -0
  128. package/dist/compiled/inquirer/rxjs/internal/operators/ignoreElements.d.ts +38 -0
  129. package/dist/compiled/inquirer/rxjs/internal/operators/isEmpty.d.ts +64 -0
  130. package/dist/compiled/inquirer/rxjs/internal/operators/joinAllInternals.d.ts +14 -0
  131. package/dist/compiled/inquirer/rxjs/internal/operators/last.d.ts +8 -0
  132. package/dist/compiled/inquirer/rxjs/internal/operators/map.d.ts +5 -0
  133. package/dist/compiled/inquirer/rxjs/internal/operators/mapTo.d.ts +10 -0
  134. package/dist/compiled/inquirer/rxjs/internal/operators/materialize.d.ts +52 -0
  135. package/dist/compiled/inquirer/rxjs/internal/operators/max.d.ts +50 -0
  136. package/dist/compiled/inquirer/rxjs/internal/operators/merge.d.ts +10 -0
  137. package/dist/compiled/inquirer/rxjs/internal/operators/mergeAll.d.ts +62 -0
  138. package/dist/compiled/inquirer/rxjs/internal/operators/mergeInternals.d.ts +18 -0
  139. package/dist/compiled/inquirer/rxjs/internal/operators/mergeMap.d.ts +7 -0
  140. package/dist/compiled/inquirer/rxjs/internal/operators/mergeMapTo.d.ts +9 -0
  141. package/dist/compiled/inquirer/rxjs/internal/operators/mergeScan.d.ts +68 -0
  142. package/dist/compiled/inquirer/rxjs/internal/operators/mergeWith.d.ts +44 -0
  143. package/dist/compiled/inquirer/rxjs/internal/operators/min.d.ts +50 -0
  144. package/dist/compiled/inquirer/rxjs/internal/operators/multicast.d.ts +63 -0
  145. package/dist/compiled/inquirer/rxjs/internal/operators/observeOn.d.ts +56 -0
  146. package/dist/compiled/inquirer/rxjs/internal/operators/onErrorResumeNextWith.d.ts +8 -0
  147. package/dist/compiled/inquirer/rxjs/internal/operators/pairwise.d.ts +46 -0
  148. package/dist/compiled/inquirer/rxjs/internal/operators/partition.d.ts +54 -0
  149. package/dist/compiled/inquirer/rxjs/internal/operators/pluck.d.ts +18 -0
  150. package/dist/compiled/inquirer/rxjs/internal/operators/publish.d.ts +30 -0
  151. package/dist/compiled/inquirer/rxjs/internal/operators/publishBehavior.d.ts +19 -0
  152. package/dist/compiled/inquirer/rxjs/internal/operators/publishLast.d.ts +69 -0
  153. package/dist/compiled/inquirer/rxjs/internal/operators/publishReplay.d.ts +56 -0
  154. package/dist/compiled/inquirer/rxjs/internal/operators/race.d.ts +6 -0
  155. package/dist/compiled/inquirer/rxjs/internal/operators/raceWith.d.ts +29 -0
  156. package/dist/compiled/inquirer/rxjs/internal/operators/reduce.d.ts +5 -0
  157. package/dist/compiled/inquirer/rxjs/internal/operators/refCount.d.ts +61 -0
  158. package/dist/compiled/inquirer/rxjs/internal/operators/repeat.d.ts +108 -0
  159. package/dist/compiled/inquirer/rxjs/internal/operators/repeatWhen.d.ts +38 -0
  160. package/dist/compiled/inquirer/rxjs/internal/operators/retry.d.ts +28 -0
  161. package/dist/compiled/inquirer/rxjs/internal/operators/retryWhen.d.ts +61 -0
  162. package/dist/compiled/inquirer/rxjs/internal/operators/sample.d.ts +43 -0
  163. package/dist/compiled/inquirer/rxjs/internal/operators/sampleTime.d.ts +46 -0
  164. package/dist/compiled/inquirer/rxjs/internal/operators/scan.d.ts +5 -0
  165. package/dist/compiled/inquirer/rxjs/internal/operators/scanInternals.d.ts +12 -0
  166. package/dist/compiled/inquirer/rxjs/internal/operators/sequenceEqual.d.ts +60 -0
  167. package/dist/compiled/inquirer/rxjs/internal/operators/share.d.ts +43 -0
  168. package/dist/compiled/inquirer/rxjs/internal/operators/shareReplay.d.ts +10 -0
  169. package/dist/compiled/inquirer/rxjs/internal/operators/single.d.ts +5 -0
  170. package/dist/compiled/inquirer/rxjs/internal/operators/skip.d.ts +36 -0
  171. package/dist/compiled/inquirer/rxjs/internal/operators/skipLast.d.ts +45 -0
  172. package/dist/compiled/inquirer/rxjs/internal/operators/skipUntil.d.ts +48 -0
  173. package/dist/compiled/inquirer/rxjs/internal/operators/skipWhile.d.ts +5 -0
  174. package/dist/compiled/inquirer/rxjs/internal/operators/startWith.d.ts +7 -0
  175. package/dist/compiled/inquirer/rxjs/internal/operators/subscribeOn.d.ts +62 -0
  176. package/dist/compiled/inquirer/rxjs/internal/operators/switchAll.d.ts +61 -0
  177. package/dist/compiled/inquirer/rxjs/internal/operators/switchMap.d.ts +7 -0
  178. package/dist/compiled/inquirer/rxjs/internal/operators/switchMapTo.d.ts +8 -0
  179. package/dist/compiled/inquirer/rxjs/internal/operators/switchScan.d.ts +20 -0
  180. package/dist/compiled/inquirer/rxjs/internal/operators/take.d.ts +45 -0
  181. package/dist/compiled/inquirer/rxjs/internal/operators/takeLast.d.ts +42 -0
  182. package/dist/compiled/inquirer/rxjs/internal/operators/takeUntil.d.ts +41 -0
  183. package/dist/compiled/inquirer/rxjs/internal/operators/takeWhile.d.ts +8 -0
  184. package/dist/compiled/inquirer/rxjs/internal/operators/tap.d.ts +72 -0
  185. package/dist/compiled/inquirer/rxjs/internal/operators/throttle.d.ts +78 -0
  186. package/dist/compiled/inquirer/rxjs/internal/operators/throttleTime.d.ts +53 -0
  187. package/dist/compiled/inquirer/rxjs/internal/operators/throwIfEmpty.d.ts +39 -0
  188. package/dist/compiled/inquirer/rxjs/internal/operators/timeInterval.d.ts +50 -0
  189. package/dist/compiled/inquirer/rxjs/internal/operators/timeout.d.ts +255 -0
  190. package/dist/compiled/inquirer/rxjs/internal/operators/timeoutWith.d.ts +8 -0
  191. package/dist/compiled/inquirer/rxjs/internal/operators/timestamp.d.ts +35 -0
  192. package/dist/compiled/inquirer/rxjs/internal/operators/toArray.d.ts +33 -0
  193. package/dist/compiled/inquirer/rxjs/internal/operators/window.d.ts +48 -0
  194. package/dist/compiled/inquirer/rxjs/internal/operators/windowCount.d.ts +65 -0
  195. package/dist/compiled/inquirer/rxjs/internal/operators/windowTime.d.ts +6 -0
  196. package/dist/compiled/inquirer/rxjs/internal/operators/windowToggle.d.ts +49 -0
  197. package/dist/compiled/inquirer/rxjs/internal/operators/windowWhen.d.ts +49 -0
  198. package/dist/compiled/inquirer/rxjs/internal/operators/withLatestFrom.d.ts +4 -0
  199. package/dist/compiled/inquirer/rxjs/internal/operators/zip.d.ts +10 -0
  200. package/dist/compiled/inquirer/rxjs/internal/operators/zipAll.d.ts +14 -0
  201. package/dist/compiled/inquirer/rxjs/internal/operators/zipWith.d.ts +26 -0
  202. package/dist/compiled/inquirer/rxjs/internal/scheduled/scheduleArray.d.ts +4 -0
  203. package/dist/compiled/inquirer/rxjs/internal/scheduled/scheduleAsyncIterable.d.ts +4 -0
  204. package/dist/compiled/inquirer/rxjs/internal/scheduled/scheduleIterable.d.ts +9 -0
  205. package/dist/compiled/inquirer/rxjs/internal/scheduled/scheduleObservable.d.ts +3 -0
  206. package/dist/compiled/inquirer/rxjs/internal/scheduled/schedulePromise.d.ts +3 -0
  207. package/dist/compiled/inquirer/rxjs/internal/scheduled/scheduleReadableStreamLike.d.ts +4 -0
  208. package/dist/compiled/inquirer/rxjs/internal/scheduled/scheduled.d.ts +15 -0
  209. package/dist/compiled/inquirer/rxjs/internal/scheduler/Action.d.ts +30 -0
  210. package/dist/compiled/inquirer/rxjs/internal/scheduler/AnimationFrameAction.d.ts +12 -0
  211. package/dist/compiled/inquirer/rxjs/internal/scheduler/AnimationFrameScheduler.d.ts +6 -0
  212. package/dist/compiled/inquirer/rxjs/internal/scheduler/AsapAction.d.ts +12 -0
  213. package/dist/compiled/inquirer/rxjs/internal/scheduler/AsapScheduler.d.ts +6 -0
  214. package/dist/compiled/inquirer/rxjs/internal/scheduler/AsyncAction.d.ts +24 -0
  215. package/dist/compiled/inquirer/rxjs/internal/scheduler/AsyncScheduler.d.ts +9 -0
  216. package/dist/compiled/inquirer/rxjs/internal/scheduler/QueueAction.d.ts +14 -0
  217. package/dist/compiled/inquirer/rxjs/internal/scheduler/QueueScheduler.d.ts +4 -0
  218. package/dist/compiled/inquirer/rxjs/internal/scheduler/VirtualTimeScheduler.d.ts +48 -0
  219. package/dist/compiled/inquirer/rxjs/internal/scheduler/animationFrame.d.ts +38 -0
  220. package/dist/compiled/inquirer/rxjs/internal/scheduler/animationFrameProvider.d.ts +13 -0
  221. package/dist/compiled/inquirer/rxjs/internal/scheduler/asap.d.ts +41 -0
  222. package/dist/compiled/inquirer/rxjs/internal/scheduler/async.d.ts +53 -0
  223. package/dist/compiled/inquirer/rxjs/internal/scheduler/dateTimestampProvider.d.ts +7 -0
  224. package/dist/compiled/inquirer/rxjs/internal/scheduler/immediateProvider.d.ts +14 -0
  225. package/dist/compiled/inquirer/rxjs/internal/scheduler/intervalProvider.d.ts +14 -0
  226. package/dist/compiled/inquirer/rxjs/internal/scheduler/performanceTimestampProvider.d.ts +7 -0
  227. package/dist/compiled/inquirer/rxjs/internal/scheduler/queue.d.ts +69 -0
  228. package/dist/compiled/inquirer/rxjs/internal/scheduler/timeoutProvider.d.ts +14 -0
  229. package/dist/compiled/inquirer/rxjs/internal/scheduler/timerHandle.d.ts +2 -0
  230. package/dist/compiled/inquirer/rxjs/internal/symbol/iterator.d.ts +3 -0
  231. package/dist/compiled/inquirer/rxjs/internal/symbol/observable.d.ts +8 -0
  232. package/dist/compiled/inquirer/rxjs/internal/testing/ColdObservable.d.ts +16 -0
  233. package/dist/compiled/inquirer/rxjs/internal/testing/HotObservable.d.ts +15 -0
  234. package/dist/compiled/inquirer/rxjs/internal/testing/SubscriptionLog.d.ts +6 -0
  235. package/dist/compiled/inquirer/rxjs/internal/testing/SubscriptionLoggable.d.ts +9 -0
  236. package/dist/compiled/inquirer/rxjs/internal/testing/TestMessage.d.ts +7 -0
  237. package/dist/compiled/inquirer/rxjs/internal/testing/TestScheduler.d.ts +88 -0
  238. package/dist/compiled/inquirer/rxjs/internal/types.d.ts +307 -0
  239. package/dist/compiled/inquirer/rxjs/internal/util/ArgumentOutOfRangeError.d.ts +19 -0
  240. package/dist/compiled/inquirer/rxjs/internal/util/EmptyError.d.ts +21 -0
  241. package/dist/compiled/inquirer/rxjs/internal/util/Immediate.d.ts +14 -0
  242. package/dist/compiled/inquirer/rxjs/internal/util/NotFoundError.d.ts +17 -0
  243. package/dist/compiled/inquirer/rxjs/internal/util/ObjectUnsubscribedError.d.ts +20 -0
  244. package/dist/compiled/inquirer/rxjs/internal/util/SequenceError.d.ts +17 -0
  245. package/dist/compiled/inquirer/rxjs/internal/util/UnsubscriptionError.d.ts +16 -0
  246. package/dist/compiled/inquirer/rxjs/internal/util/applyMixins.d.ts +2 -0
  247. package/dist/compiled/inquirer/rxjs/internal/util/args.d.ts +5 -0
  248. package/dist/compiled/inquirer/rxjs/internal/util/argsArgArrayOrObject.d.ts +11 -0
  249. package/dist/compiled/inquirer/rxjs/internal/util/argsOrArgArray.d.ts +6 -0
  250. package/dist/compiled/inquirer/rxjs/internal/util/arrRemove.d.ts +7 -0
  251. package/dist/compiled/inquirer/rxjs/internal/util/createErrorClass.d.ts +11 -0
  252. package/dist/compiled/inquirer/rxjs/internal/util/createObject.d.ts +2 -0
  253. package/dist/compiled/inquirer/rxjs/internal/util/errorContext.d.ts +14 -0
  254. package/dist/compiled/inquirer/rxjs/internal/util/executeSchedule.d.ts +5 -0
  255. package/dist/compiled/inquirer/rxjs/internal/util/identity.d.ts +44 -0
  256. package/dist/compiled/inquirer/rxjs/internal/util/isArrayLike.d.ts +2 -0
  257. package/dist/compiled/inquirer/rxjs/internal/util/isAsyncIterable.d.ts +2 -0
  258. package/dist/compiled/inquirer/rxjs/internal/util/isDate.d.ts +9 -0
  259. package/dist/compiled/inquirer/rxjs/internal/util/isFunction.d.ts +6 -0
  260. package/dist/compiled/inquirer/rxjs/internal/util/isInteropObservable.d.ts +4 -0
  261. package/dist/compiled/inquirer/rxjs/internal/util/isIterable.d.ts +3 -0
  262. package/dist/compiled/inquirer/rxjs/internal/util/isObservable.d.ts +8 -0
  263. package/dist/compiled/inquirer/rxjs/internal/util/isPromise.d.ts +6 -0
  264. package/dist/compiled/inquirer/rxjs/internal/util/isReadableStreamLike.d.ts +4 -0
  265. package/dist/compiled/inquirer/rxjs/internal/util/isScheduler.d.ts +3 -0
  266. package/dist/compiled/inquirer/rxjs/internal/util/lift.d.ts +15 -0
  267. package/dist/compiled/inquirer/rxjs/internal/util/mapOneOrManyArgs.d.ts +7 -0
  268. package/dist/compiled/inquirer/rxjs/internal/util/noop.d.ts +2 -0
  269. package/dist/compiled/inquirer/rxjs/internal/util/not.d.ts +2 -0
  270. package/dist/compiled/inquirer/rxjs/internal/util/pipe.d.ts +14 -0
  271. package/dist/compiled/inquirer/rxjs/internal/util/reportUnhandledError.d.ts +11 -0
  272. package/dist/compiled/inquirer/rxjs/internal/util/subscribeToArray.d.ts +7 -0
  273. package/dist/compiled/inquirer/rxjs/internal/util/throwUnobservableError.d.ts +6 -0
  274. package/dist/compiled/inquirer/rxjs/internal/util/workarounds.d.ts +2 -0
  275. package/dist/compiled/inquirer/rxjs/operators/index.d.ts +114 -0
  276. package/dist/compiled/inquirer/rxjs/testing/index.d.ts +2 -0
  277. package/dist/compiled/inquirer/rxjs/webSocket/index.d.ts +3 -0
  278. package/dist/compiled/inquirer/types-license +21 -0
  279. package/dist/compiled/lodash/index.d.ts +1 -11
  280. package/dist/compiled/upath/upath.d.ts +2 -2
  281. package/dist/esm/cli/require.mjs +10 -1
  282. package/dist/esm/universal/index.mjs +0 -2
  283. package/dist/esm-node/cli/require.mjs +10 -1
  284. package/dist/esm-node/universal/index.mjs +0 -2
  285. package/dist/types/universal/index.d.ts +0 -2
  286. package/package.json +7 -6
  287. package/rslib.config.mts +2 -0
  288. package/dist/cjs/universal/backend-federation-contract/build-artifact.js +0 -185
  289. package/dist/cjs/universal/backend-federation-contract/constants.js +0 -92
  290. package/dist/cjs/universal/backend-federation-contract/delivery-unit.js +0 -130
  291. package/dist/cjs/universal/backend-federation-contract/index.js +0 -137
  292. package/dist/cjs/universal/backend-federation-contract/metadata.js +0 -133
  293. package/dist/cjs/universal/backend-federation-contract/types.js +0 -18
  294. package/dist/cjs/universal/backend-federation-contract/validation-core.js +0 -85
  295. package/dist/cjs/universal/surface-resolution/env-static-provider.js +0 -318
  296. package/dist/cjs/universal/surface-resolution/index.js +0 -69
  297. package/dist/cjs/universal/surface-resolution/surface-ref.js +0 -132
  298. package/dist/cjs/universal/surface-resolution/types.js +0 -18
  299. package/dist/cjs/universal/surface-resolution/validation.js +0 -202
  300. package/dist/esm/universal/backend-federation-contract/build-artifact.mjs +0 -135
  301. package/dist/esm/universal/backend-federation-contract/constants.mjs +0 -18
  302. package/dist/esm/universal/backend-federation-contract/delivery-unit.mjs +0 -74
  303. package/dist/esm/universal/backend-federation-contract/index.mjs +0 -5
  304. package/dist/esm/universal/backend-federation-contract/metadata.mjs +0 -80
  305. package/dist/esm/universal/backend-federation-contract/types.mjs +0 -0
  306. package/dist/esm/universal/backend-federation-contract/validation-core.mjs +0 -29
  307. package/dist/esm/universal/surface-resolution/env-static-provider.mjs +0 -274
  308. package/dist/esm/universal/surface-resolution/index.mjs +0 -3
  309. package/dist/esm/universal/surface-resolution/surface-ref.mjs +0 -88
  310. package/dist/esm/universal/surface-resolution/types.mjs +0 -0
  311. package/dist/esm/universal/surface-resolution/validation.mjs +0 -155
  312. package/dist/esm-node/universal/backend-federation-contract/build-artifact.mjs +0 -136
  313. package/dist/esm-node/universal/backend-federation-contract/constants.mjs +0 -19
  314. package/dist/esm-node/universal/backend-federation-contract/delivery-unit.mjs +0 -75
  315. package/dist/esm-node/universal/backend-federation-contract/index.mjs +0 -6
  316. package/dist/esm-node/universal/backend-federation-contract/metadata.mjs +0 -81
  317. package/dist/esm-node/universal/backend-federation-contract/types.mjs +0 -1
  318. package/dist/esm-node/universal/backend-federation-contract/validation-core.mjs +0 -30
  319. package/dist/esm-node/universal/surface-resolution/env-static-provider.mjs +0 -275
  320. package/dist/esm-node/universal/surface-resolution/index.mjs +0 -4
  321. package/dist/esm-node/universal/surface-resolution/surface-ref.mjs +0 -89
  322. package/dist/esm-node/universal/surface-resolution/types.mjs +0 -1
  323. package/dist/esm-node/universal/surface-resolution/validation.mjs +0 -156
  324. package/dist/types/universal/backend-federation-contract/build-artifact.d.ts +0 -9
  325. package/dist/types/universal/backend-federation-contract/constants.d.ts +0 -14
  326. package/dist/types/universal/backend-federation-contract/delivery-unit.d.ts +0 -9
  327. package/dist/types/universal/backend-federation-contract/index.d.ts +0 -7
  328. package/dist/types/universal/backend-federation-contract/metadata.d.ts +0 -7
  329. package/dist/types/universal/backend-federation-contract/types.d.ts +0 -60
  330. package/dist/types/universal/backend-federation-contract/validation-core.d.ts +0 -8
  331. package/dist/types/universal/surface-resolution/env-static-provider.d.ts +0 -107
  332. package/dist/types/universal/surface-resolution/index.d.ts +0 -4
  333. package/dist/types/universal/surface-resolution/surface-ref.d.ts +0 -72
  334. package/dist/types/universal/surface-resolution/types.d.ts +0 -102
  335. package/dist/types/universal/surface-resolution/validation.d.ts +0 -53
@@ -0,0 +1,33 @@
1
+ import { Observable } from '../Observable';
2
+ import { ObservableInput, SchedulerLike, ObservedValueOf, ObservableInputTuple } from '../types';
3
+ import { Subscriber } from '../Subscriber';
4
+ import { AnyCatcher } from '../AnyCatcher';
5
+ /**
6
+ * You have passed `any` here, we can't figure out if it is
7
+ * an array or an object, so you're getting `unknown`. Use better types.
8
+ * @param arg Something typed as `any`
9
+ */
10
+ export declare function combineLatest<T extends AnyCatcher>(arg: T): Observable<unknown>;
11
+ export declare function combineLatest(sources: []): Observable<never>;
12
+ export declare function combineLatest<A extends readonly unknown[]>(sources: readonly [...ObservableInputTuple<A>]): Observable<A>;
13
+ /** @deprecated The `scheduler` parameter will be removed in v8. Use `scheduled` and `combineLatestAll`. Details: https://rxjs.dev/deprecations/scheduler-argument */
14
+ export declare function combineLatest<A extends readonly unknown[], R>(sources: readonly [...ObservableInputTuple<A>], resultSelector: (...values: A) => R, scheduler: SchedulerLike): Observable<R>;
15
+ export declare function combineLatest<A extends readonly unknown[], R>(sources: readonly [...ObservableInputTuple<A>], resultSelector: (...values: A) => R): Observable<R>;
16
+ /** @deprecated The `scheduler` parameter will be removed in v8. Use `scheduled` and `combineLatestAll`. Details: https://rxjs.dev/deprecations/scheduler-argument */
17
+ export declare function combineLatest<A extends readonly unknown[]>(sources: readonly [...ObservableInputTuple<A>], scheduler: SchedulerLike): Observable<A>;
18
+ /** @deprecated Pass an array of sources instead. The rest-parameters signature will be removed in v8. Details: https://rxjs.dev/deprecations/array-argument */
19
+ export declare function combineLatest<A extends readonly unknown[]>(...sources: [...ObservableInputTuple<A>]): Observable<A>;
20
+ /** @deprecated The `scheduler` parameter will be removed in v8. Use `scheduled` and `combineLatestAll`. Details: https://rxjs.dev/deprecations/scheduler-argument */
21
+ export declare function combineLatest<A extends readonly unknown[], R>(...sourcesAndResultSelectorAndScheduler: [...ObservableInputTuple<A>, (...values: A) => R, SchedulerLike]): Observable<R>;
22
+ /** @deprecated Pass an array of sources instead. The rest-parameters signature will be removed in v8. Details: https://rxjs.dev/deprecations/array-argument */
23
+ export declare function combineLatest<A extends readonly unknown[], R>(...sourcesAndResultSelector: [...ObservableInputTuple<A>, (...values: A) => R]): Observable<R>;
24
+ /** @deprecated The `scheduler` parameter will be removed in v8. Use `scheduled` and `combineLatestAll`. Details: https://rxjs.dev/deprecations/scheduler-argument */
25
+ export declare function combineLatest<A extends readonly unknown[]>(...sourcesAndScheduler: [...ObservableInputTuple<A>, SchedulerLike]): Observable<A>;
26
+ export declare function combineLatest(sourcesObject: {
27
+ [K in any]: never;
28
+ }): Observable<never>;
29
+ export declare function combineLatest<T extends Record<string, ObservableInput<any>>>(sourcesObject: T): Observable<{
30
+ [K in keyof T]: ObservedValueOf<T[K]>;
31
+ }>;
32
+ export declare function combineLatestInit(observables: ObservableInput<any>[], scheduler?: SchedulerLike, valueTransform?: (values: any[]) => any): (subscriber: Subscriber<any>) => void;
33
+ //# sourceMappingURL=combineLatest.d.ts.map
@@ -0,0 +1,5 @@
1
+ import { Observable } from '../Observable';
2
+ import { ObservableInputTuple, SchedulerLike } from '../types';
3
+ export declare function concat<T extends readonly unknown[]>(...inputs: [...ObservableInputTuple<T>]): Observable<T[number]>;
4
+ export declare function concat<T extends readonly unknown[]>(...inputsAndScheduler: [...ObservableInputTuple<T>, SchedulerLike]): Observable<T[number]>;
5
+ //# sourceMappingURL=concat.d.ts.map
@@ -0,0 +1,27 @@
1
+ import { Connectable, ObservableInput, SubjectLike } from '../types';
2
+ export interface ConnectableConfig<T> {
3
+ /**
4
+ * A factory function used to create the Subject through which the source
5
+ * is multicast. By default this creates a {@link Subject}.
6
+ */
7
+ connector: () => SubjectLike<T>;
8
+ /**
9
+ * If true, the resulting observable will reset internal state upon disconnection
10
+ * and return to a "cold" state. This allows the resulting observable to be
11
+ * reconnected.
12
+ * If false, upon disconnection, the connecting subject will remain the
13
+ * connecting subject, meaning the resulting observable will not go "cold" again,
14
+ * and subsequent repeats or resubscriptions will resubscribe to that same subject.
15
+ */
16
+ resetOnDisconnect?: boolean;
17
+ }
18
+ /**
19
+ * Creates an observable that multicasts once `connect()` is called on it.
20
+ *
21
+ * @param source The observable source to make connectable.
22
+ * @param config The configuration object for `connectable`.
23
+ * @returns A "connectable" observable, that has a `connect()` method, that you must call to
24
+ * connect the source to all consumers through the subject provided as the connector.
25
+ */
26
+ export declare function connectable<T>(source: ObservableInput<T>, config?: ConnectableConfig<T>): Connectable<T>;
27
+ //# sourceMappingURL=connectable.d.ts.map
@@ -0,0 +1,51 @@
1
+ import { Observable } from '../Observable';
2
+ import { ObservedValueOf, ObservableInput } from '../types';
3
+ /**
4
+ * Creates an Observable that, on subscribe, calls an Observable factory to
5
+ * make an Observable for each new Observer.
6
+ *
7
+ * <span class="informal">Creates the Observable lazily, that is, only when it
8
+ * is subscribed.
9
+ * </span>
10
+ *
11
+ * ![](defer.png)
12
+ *
13
+ * `defer` allows you to create an Observable only when the Observer
14
+ * subscribes. It waits until an Observer subscribes to it, calls the given
15
+ * factory function to get an Observable -- where a factory function typically
16
+ * generates a new Observable -- and subscribes the Observer to this Observable.
17
+ * In case the factory function returns a falsy value, then EMPTY is used as
18
+ * Observable instead. Last but not least, an exception during the factory
19
+ * function call is transferred to the Observer by calling `error`.
20
+ *
21
+ * ## Example
22
+ *
23
+ * Subscribe to either an Observable of clicks or an Observable of interval, at random
24
+ *
25
+ * ```ts
26
+ * import { defer, fromEvent, interval } from '../..';
27
+ *
28
+ * const clicksOrInterval = defer(() => {
29
+ * return Math.random() > 0.5
30
+ * ? fromEvent(document, 'click')
31
+ * : interval(1000);
32
+ * });
33
+ * clicksOrInterval.subscribe(x => console.log(x));
34
+ *
35
+ * // Results in the following behavior:
36
+ * // If the result of Math.random() is greater than 0.5 it will listen
37
+ * // for clicks anywhere on the "document"; when document is clicked it
38
+ * // will log a MouseEvent object to the console. If the result is less
39
+ * // than 0.5 it will emit ascending numbers, one every second(1000ms).
40
+ * ```
41
+ *
42
+ * @see {@link Observable}
43
+ *
44
+ * @param observableFactory The Observable factory function to invoke for each
45
+ * Observer that subscribes to the output Observable. May also return any
46
+ * `ObservableInput`, which will be converted on the fly to an Observable.
47
+ * @return An Observable whose Observers' subscriptions trigger an invocation of the
48
+ * given Observable factory function.
49
+ */
50
+ export declare function defer<R extends ObservableInput<any>>(observableFactory: () => R): Observable<ObservedValueOf<R>>;
51
+ //# sourceMappingURL=defer.d.ts.map
@@ -0,0 +1,173 @@
1
+ import { AnonymousSubject } from '../../Subject';
2
+ import { Observable } from '../../Observable';
3
+ import { Operator } from '../../Operator';
4
+ import { Observer, NextObserver } from '../../types';
5
+ /**
6
+ * WebSocketSubjectConfig is a plain Object that allows us to make our
7
+ * webSocket configurable.
8
+ *
9
+ * <span class="informal">Provides flexibility to {@link webSocket}</span>
10
+ *
11
+ * It defines a set of properties to provide custom behavior in specific
12
+ * moments of the socket's lifecycle. When the connection opens we can
13
+ * use `openObserver`, when the connection is closed `closeObserver`, if we
14
+ * are interested in listening for data coming from server: `deserializer`,
15
+ * which allows us to customize the deserialization strategy of data before passing it
16
+ * to the socket client. By default, `deserializer` is going to apply `JSON.parse` to each message coming
17
+ * from the Server.
18
+ *
19
+ * ## Examples
20
+ *
21
+ * **deserializer**, the default for this property is `JSON.parse` but since there are just two options
22
+ * for incoming data, either be text or binary data. We can apply a custom deserialization strategy
23
+ * or just simply skip the default behaviour.
24
+ *
25
+ * ```ts
26
+ * import { webSocket } from 'rxjs/webSocket';
27
+ *
28
+ * const wsSubject = webSocket({
29
+ * url: 'ws://localhost:8081',
30
+ * //Apply any transformation of your choice.
31
+ * deserializer: ({ data }) => data
32
+ * });
33
+ *
34
+ * wsSubject.subscribe(console.log);
35
+ *
36
+ * // Let's suppose we have this on the Server: ws.send('This is a msg from the server')
37
+ * //output
38
+ * //
39
+ * // This is a msg from the server
40
+ * ```
41
+ *
42
+ * **serializer** allows us to apply custom serialization strategy but for the outgoing messages.
43
+ *
44
+ * ```ts
45
+ * import { webSocket } from 'rxjs/webSocket';
46
+ *
47
+ * const wsSubject = webSocket({
48
+ * url: 'ws://localhost:8081',
49
+ * // Apply any transformation of your choice.
50
+ * serializer: msg => JSON.stringify({ channel: 'webDevelopment', msg: msg })
51
+ * });
52
+ *
53
+ * wsSubject.subscribe(() => subject.next('msg to the server'));
54
+ *
55
+ * // Let's suppose we have this on the Server:
56
+ * // ws.on('message', msg => console.log);
57
+ * // ws.send('This is a msg from the server');
58
+ * // output at server side:
59
+ * //
60
+ * // {"channel":"webDevelopment","msg":"msg to the server"}
61
+ * ```
62
+ *
63
+ * **closeObserver** allows us to set a custom error when an error raises up.
64
+ *
65
+ * ```ts
66
+ * import { webSocket } from 'rxjs/webSocket';
67
+ *
68
+ * const wsSubject = webSocket({
69
+ * url: 'ws://localhost:8081',
70
+ * closeObserver: {
71
+ * next() {
72
+ * const customError = { code: 6666, reason: 'Custom evil reason' }
73
+ * console.log(`code: ${ customError.code }, reason: ${ customError.reason }`);
74
+ * }
75
+ * }
76
+ * });
77
+ *
78
+ * // output
79
+ * // code: 6666, reason: Custom evil reason
80
+ * ```
81
+ *
82
+ * **openObserver**, Let's say we need to make some kind of init task before sending/receiving msgs to the
83
+ * webSocket or sending notification that the connection was successful, this is when
84
+ * openObserver is useful for.
85
+ *
86
+ * ```ts
87
+ * import { webSocket } from 'rxjs/webSocket';
88
+ *
89
+ * const wsSubject = webSocket({
90
+ * url: 'ws://localhost:8081',
91
+ * openObserver: {
92
+ * next: () => {
93
+ * console.log('Connection ok');
94
+ * }
95
+ * }
96
+ * });
97
+ *
98
+ * // output
99
+ * // Connection ok
100
+ * ```
101
+ */
102
+ export interface WebSocketSubjectConfig<T> {
103
+ /** The url of the socket server to connect to */
104
+ url: string;
105
+ /** The protocol to use to connect */
106
+ protocol?: string | Array<string>;
107
+ /** @deprecated Will be removed in v8. Use {@link deserializer} instead. */
108
+ resultSelector?: (e: MessageEvent) => T;
109
+ /**
110
+ * A serializer used to create messages from passed values before the
111
+ * messages are sent to the server. Defaults to JSON.stringify.
112
+ */
113
+ serializer?: (value: T) => WebSocketMessage;
114
+ /**
115
+ * A deserializer used for messages arriving on the socket from the
116
+ * server. Defaults to JSON.parse.
117
+ */
118
+ deserializer?: (e: MessageEvent) => T;
119
+ /**
120
+ * An Observer that watches when open events occur on the underlying web socket.
121
+ */
122
+ openObserver?: NextObserver<Event>;
123
+ /**
124
+ * An Observer that watches when close events occur on the underlying web socket
125
+ */
126
+ closeObserver?: NextObserver<CloseEvent>;
127
+ /**
128
+ * An Observer that watches when a close is about to occur due to
129
+ * unsubscription.
130
+ */
131
+ closingObserver?: NextObserver<void>;
132
+ /**
133
+ * A WebSocket constructor to use. This is useful for situations like using a
134
+ * WebSocket impl in Node (WebSocket is a DOM API), or for mocking a WebSocket
135
+ * for testing purposes
136
+ */
137
+ WebSocketCtor?: {
138
+ new (url: string, protocols?: string | string[]): WebSocket;
139
+ };
140
+ /** Sets the `binaryType` property of the underlying WebSocket. */
141
+ binaryType?: 'blob' | 'arraybuffer';
142
+ }
143
+ export declare type WebSocketMessage = string | ArrayBuffer | Blob | ArrayBufferView;
144
+ export declare class WebSocketSubject<T> extends AnonymousSubject<T> {
145
+ private _config;
146
+ private _socket;
147
+ constructor(urlConfigOrSource: string | WebSocketSubjectConfig<T> | Observable<T>, destination?: Observer<T>);
148
+ /** @deprecated Internal implementation detail, do not use directly. Will be made internal in v8. */
149
+ lift<R>(operator: Operator<T, R>): WebSocketSubject<R>;
150
+ private _resetState;
151
+ /**
152
+ * Creates an {@link Observable}, that when subscribed to, sends a message,
153
+ * defined by the `subMsg` function, to the server over the socket to begin a
154
+ * subscription to data over that socket. Once data arrives, the
155
+ * `messageFilter` argument will be used to select the appropriate data for
156
+ * the resulting Observable. When finalization occurs, either due to
157
+ * unsubscription, completion, or error, a message defined by the `unsubMsg`
158
+ * argument will be sent to the server over the WebSocketSubject.
159
+ *
160
+ * @param subMsg A function to generate the subscription message to be sent to
161
+ * the server. This will still be processed by the serializer in the
162
+ * WebSocketSubject's config. (Which defaults to JSON serialization)
163
+ * @param unsubMsg A function to generate the unsubscription message to be
164
+ * sent to the server at finalization. This will still be processed by the
165
+ * serializer in the WebSocketSubject's config.
166
+ * @param messageFilter A predicate for selecting the appropriate messages
167
+ * from the server for the output stream.
168
+ */
169
+ multiplex(subMsg: () => any, unsubMsg: () => any, messageFilter: (value: T) => boolean): Observable<T>;
170
+ private _connectSocket;
171
+ unsubscribe(): void;
172
+ }
173
+ //# sourceMappingURL=WebSocketSubject.d.ts.map
@@ -0,0 +1,76 @@
1
+ import { Observable } from '../../Observable';
2
+ import { TimestampProvider } from '../../types';
3
+ /**
4
+ * An observable of animation frames
5
+ *
6
+ * Emits the amount of time elapsed since subscription and the timestamp on each animation frame.
7
+ * Defaults to milliseconds provided to the requestAnimationFrame's callback. Does not end on its own.
8
+ *
9
+ * Every subscription will start a separate animation loop. Since animation frames are always scheduled
10
+ * by the browser to occur directly before a repaint, scheduling more than one animation frame synchronously
11
+ * should not be much different or have more overhead than looping over an array of events during
12
+ * a single animation frame. However, if for some reason the developer would like to ensure the
13
+ * execution of animation-related handlers are all executed during the same task by the engine,
14
+ * the `share` operator can be used.
15
+ *
16
+ * This is useful for setting up animations with RxJS.
17
+ *
18
+ * ## Examples
19
+ *
20
+ * Tweening a div to move it on the screen
21
+ *
22
+ * ```ts
23
+ * import { animationFrames, map, takeWhile, endWith } from '../../..';
24
+ *
25
+ * function tween(start: number, end: number, duration: number) {
26
+ * const diff = end - start;
27
+ * return animationFrames().pipe(
28
+ * // Figure out what percentage of time has passed
29
+ * map(({ elapsed }) => elapsed / duration),
30
+ * // Take the vector while less than 100%
31
+ * takeWhile(v => v < 1),
32
+ * // Finish with 100%
33
+ * endWith(1),
34
+ * // Calculate the distance traveled between start and end
35
+ * map(v => v * diff + start)
36
+ * );
37
+ * }
38
+ *
39
+ * // Setup a div for us to move around
40
+ * const div = document.createElement('div');
41
+ * document.body.appendChild(div);
42
+ * div.style.position = 'absolute';
43
+ * div.style.width = '40px';
44
+ * div.style.height = '40px';
45
+ * div.style.backgroundColor = 'lime';
46
+ * div.style.transform = 'translate3d(10px, 0, 0)';
47
+ *
48
+ * tween(10, 200, 4000).subscribe(x => {
49
+ * div.style.transform = `translate3d(${ x }px, 0, 0)`;
50
+ * });
51
+ * ```
52
+ *
53
+ * Providing a custom timestamp provider
54
+ *
55
+ * ```ts
56
+ * import { animationFrames, TimestampProvider } from '../../..';
57
+ *
58
+ * // A custom timestamp provider
59
+ * let now = 0;
60
+ * const customTSProvider: TimestampProvider = {
61
+ * now() { return now++; }
62
+ * };
63
+ *
64
+ * const source$ = animationFrames(customTSProvider);
65
+ *
66
+ * // Log increasing numbers 0...1...2... on every animation frame.
67
+ * source$.subscribe(({ elapsed }) => console.log(elapsed));
68
+ * ```
69
+ *
70
+ * @param timestampProvider An object with a `now` method that provides a numeric timestamp
71
+ */
72
+ export declare function animationFrames(timestampProvider?: TimestampProvider): Observable<{
73
+ timestamp: number;
74
+ elapsed: number;
75
+ }>;
76
+ //# sourceMappingURL=animationFrames.d.ts.map
@@ -0,0 +1,7 @@
1
+ import { Observable } from '../../Observable';
2
+ import { ObservableInput } from '../../types';
3
+ export declare function fromFetch<T>(input: string | Request, init: RequestInit & {
4
+ selector: (response: Response) => ObservableInput<T>;
5
+ }): Observable<T>;
6
+ export declare function fromFetch(input: string | Request, init?: RequestInit): Observable<Response>;
7
+ //# sourceMappingURL=fetch.d.ts.map
@@ -0,0 +1,159 @@
1
+ import { WebSocketSubject, WebSocketSubjectConfig } from './WebSocketSubject';
2
+ /**
3
+ * Wrapper around the w3c-compatible WebSocket object provided by the browser.
4
+ *
5
+ * <span class="informal">{@link Subject} that communicates with a server via WebSocket</span>
6
+ *
7
+ * `webSocket` is a factory function that produces a `WebSocketSubject`,
8
+ * which can be used to make WebSocket connection with an arbitrary endpoint.
9
+ * `webSocket` accepts as an argument either a string with url of WebSocket endpoint, or an
10
+ * {@link WebSocketSubjectConfig} object for providing additional configuration, as
11
+ * well as Observers for tracking lifecycle of WebSocket connection.
12
+ *
13
+ * When `WebSocketSubject` is subscribed, it attempts to make a socket connection,
14
+ * unless there is one made already. This means that many subscribers will always listen
15
+ * on the same socket, thus saving resources. If however, two instances are made of `WebSocketSubject`,
16
+ * even if these two were provided with the same url, they will attempt to make separate
17
+ * connections. When consumer of a `WebSocketSubject` unsubscribes, socket connection is closed,
18
+ * only if there are no more subscribers still listening. If after some time a consumer starts
19
+ * subscribing again, connection is reestablished.
20
+ *
21
+ * Once connection is made, whenever a new message comes from the server, `WebSocketSubject` will emit that
22
+ * message as a value in the stream. By default, a message from the socket is parsed via `JSON.parse`. If you
23
+ * want to customize how deserialization is handled (if at all), you can provide custom `resultSelector`
24
+ * function in {@link WebSocketSubject}. When connection closes, stream will complete, provided it happened without
25
+ * any errors. If at any point (starting, maintaining or closing a connection) there is an error,
26
+ * stream will also error with whatever WebSocket API has thrown.
27
+ *
28
+ * By virtue of being a {@link Subject}, `WebSocketSubject` allows for receiving and sending messages from the server. In order
29
+ * to communicate with a connected endpoint, use `next`, `error` and `complete` methods. `next` sends a value to the server, so bear in mind
30
+ * that this value will not be serialized beforehand. Because of This, `JSON.stringify` will have to be called on a value by hand,
31
+ * before calling `next` with a result. Note also that if at the moment of nexting value
32
+ * there is no socket connection (for example no one is subscribing), those values will be buffered, and sent when connection
33
+ * is finally established. `complete` method closes socket connection. `error` does the same,
34
+ * as well as notifying the server that something went wrong via status code and string with details of what happened.
35
+ * Since status code is required in WebSocket API, `WebSocketSubject` does not allow, like regular `Subject`,
36
+ * arbitrary values being passed to the `error` method. It needs to be called with an object that has `code`
37
+ * property with status code number and optional `reason` property with string describing details
38
+ * of an error.
39
+ *
40
+ * Calling `next` does not affect subscribers of `WebSocketSubject` - they have no
41
+ * information that something was sent to the server (unless of course the server
42
+ * responds somehow to a message). On the other hand, since calling `complete` triggers
43
+ * an attempt to close socket connection. If that connection is closed without any errors, stream will
44
+ * complete, thus notifying all subscribers. And since calling `error` closes
45
+ * socket connection as well, just with a different status code for the server, if closing itself proceeds
46
+ * without errors, subscribed Observable will not error, as one might expect, but complete as usual. In both cases
47
+ * (calling `complete` or `error`), if process of closing socket connection results in some errors, *then* stream
48
+ * will error.
49
+ *
50
+ * **Multiplexing**
51
+ *
52
+ * `WebSocketSubject` has an additional operator, not found in other Subjects. It is called `multiplex` and it is
53
+ * used to simulate opening several socket connections, while in reality maintaining only one.
54
+ * For example, an application has both chat panel and real-time notifications about sport news. Since these are two distinct functions,
55
+ * it would make sense to have two separate connections for each. Perhaps there could even be two separate services with WebSocket
56
+ * endpoints, running on separate machines with only GUI combining them together. Having a socket connection
57
+ * for each functionality could become too resource expensive. It is a common pattern to have single
58
+ * WebSocket endpoint that acts as a gateway for the other services (in this case chat and sport news services).
59
+ * Even though there is a single connection in a client app, having the ability to manipulate streams as if it
60
+ * were two separate sockets is desirable. This eliminates manually registering and unregistering in a gateway for
61
+ * given service and filter out messages of interest. This is exactly what `multiplex` method is for.
62
+ *
63
+ * Method accepts three parameters. First two are functions returning subscription and unsubscription messages
64
+ * respectively. These are messages that will be sent to the server, whenever consumer of resulting Observable
65
+ * subscribes and unsubscribes. Server can use them to verify that some kind of messages should start or stop
66
+ * being forwarded to the client. In case of the above example application, after getting subscription message with proper identifier,
67
+ * gateway server can decide that it should connect to real sport news service and start forwarding messages from it.
68
+ * Note that both messages will be sent as returned by the functions, they are by default serialized using JSON.stringify, just
69
+ * as messages pushed via `next`. Also bear in mind that these messages will be sent on *every* subscription and
70
+ * unsubscription. This is potentially dangerous, because one consumer of an Observable may unsubscribe and the server
71
+ * might stop sending messages, since it got unsubscription message. This needs to be handled
72
+ * on the server or using {@link publish} on a Observable returned from 'multiplex'.
73
+ *
74
+ * Last argument to `multiplex` is a `messageFilter` function which should return a boolean. It is used to filter out messages
75
+ * sent by the server to only those that belong to simulated WebSocket stream. For example, server might mark these
76
+ * messages with some kind of string identifier on a message object and `messageFilter` would return `true`
77
+ * if there is such identifier on an object emitted by the socket. Messages which returns `false` in `messageFilter` are simply skipped,
78
+ * and are not passed down the stream.
79
+ *
80
+ * Return value of `multiplex` is an Observable with messages incoming from emulated socket connection. Note that this
81
+ * is not a `WebSocketSubject`, so calling `next` or `multiplex` again will fail. For pushing values to the
82
+ * server, use root `WebSocketSubject`.
83
+ *
84
+ * ## Examples
85
+ *
86
+ * Listening for messages from the server
87
+ *
88
+ * ```ts
89
+ * import { webSocket } from 'rxjs/webSocket';
90
+ *
91
+ * const subject = webSocket('ws://localhost:8081');
92
+ *
93
+ * subject.subscribe({
94
+ * next: msg => console.log('message received: ' + msg), // Called whenever there is a message from the server.
95
+ * error: err => console.log(err), // Called if at any point WebSocket API signals some kind of error.
96
+ * complete: () => console.log('complete') // Called when connection is closed (for whatever reason).
97
+ * });
98
+ * ```
99
+ *
100
+ * Pushing messages to the server
101
+ *
102
+ * ```ts
103
+ * import { webSocket } from 'rxjs/webSocket';
104
+ *
105
+ * const subject = webSocket('ws://localhost:8081');
106
+ *
107
+ * subject.subscribe();
108
+ * // Note that at least one consumer has to subscribe to the created subject - otherwise "nexted" values will be just buffered and not sent,
109
+ * // since no connection was established!
110
+ *
111
+ * subject.next({ message: 'some message' });
112
+ * // This will send a message to the server once a connection is made. Remember value is serialized with JSON.stringify by default!
113
+ *
114
+ * subject.complete(); // Closes the connection.
115
+ *
116
+ * subject.error({ code: 4000, reason: 'I think our app just broke!' });
117
+ * // Also closes the connection, but let's the server know that this closing is caused by some error.
118
+ * ```
119
+ *
120
+ * Multiplexing WebSocket
121
+ *
122
+ * ```ts
123
+ * import { webSocket } from 'rxjs/webSocket';
124
+ *
125
+ * const subject = webSocket('ws://localhost:8081');
126
+ *
127
+ * const observableA = subject.multiplex(
128
+ * () => ({ subscribe: 'A' }), // When server gets this message, it will start sending messages for 'A'...
129
+ * () => ({ unsubscribe: 'A' }), // ...and when gets this one, it will stop.
130
+ * message => message.type === 'A' // If the function returns `true` message is passed down the stream. Skipped if the function returns false.
131
+ * );
132
+ *
133
+ * const observableB = subject.multiplex( // And the same goes for 'B'.
134
+ * () => ({ subscribe: 'B' }),
135
+ * () => ({ unsubscribe: 'B' }),
136
+ * message => message.type === 'B'
137
+ * );
138
+ *
139
+ * const subA = observableA.subscribe(messageForA => console.log(messageForA));
140
+ * // At this moment WebSocket connection is established. Server gets '{"subscribe": "A"}' message and starts sending messages for 'A',
141
+ * // which we log here.
142
+ *
143
+ * const subB = observableB.subscribe(messageForB => console.log(messageForB));
144
+ * // Since we already have a connection, we just send '{"subscribe": "B"}' message to the server. It starts sending messages for 'B',
145
+ * // which we log here.
146
+ *
147
+ * subB.unsubscribe();
148
+ * // Message '{"unsubscribe": "B"}' is sent to the server, which stops sending 'B' messages.
149
+ *
150
+ * subA.unsubscribe();
151
+ * // Message '{"unsubscribe": "A"}' makes the server stop sending messages for 'A'. Since there is no more subscribers to root Subject,
152
+ * // socket connection closes.
153
+ * ```
154
+ *
155
+ * @param urlConfigOrSource The WebSocket endpoint as an url or an object with configuration and additional Observers.
156
+ * @return Subject which allows to both send and receive messages via WebSocket connection.
157
+ */
158
+ export declare function webSocket<T>(urlConfigOrSource: string | WebSocketSubjectConfig<T>): WebSocketSubject<T>;
159
+ //# sourceMappingURL=webSocket.d.ts.map
@@ -0,0 +1,72 @@
1
+ import { Observable } from '../Observable';
2
+ import { SchedulerLike } from '../types';
3
+ /**
4
+ * A simple Observable that emits no items to the Observer and immediately
5
+ * emits a complete notification.
6
+ *
7
+ * <span class="informal">Just emits 'complete', and nothing else.</span>
8
+ *
9
+ * ![](empty.png)
10
+ *
11
+ * A simple Observable that only emits the complete notification. It can be used
12
+ * for composing with other Observables, such as in a {@link mergeMap}.
13
+ *
14
+ * ## Examples
15
+ *
16
+ * Log complete notification
17
+ *
18
+ * ```ts
19
+ * import { EMPTY } from '../..';
20
+ *
21
+ * EMPTY.subscribe({
22
+ * next: () => console.log('Next'),
23
+ * complete: () => console.log('Complete!')
24
+ * });
25
+ *
26
+ * // Outputs
27
+ * // Complete!
28
+ * ```
29
+ *
30
+ * Emit the number 7, then complete
31
+ *
32
+ * ```ts
33
+ * import { EMPTY, startWith } from '../..';
34
+ *
35
+ * const result = EMPTY.pipe(startWith(7));
36
+ * result.subscribe(x => console.log(x));
37
+ *
38
+ * // Outputs
39
+ * // 7
40
+ * ```
41
+ *
42
+ * Map and flatten only odd numbers to the sequence `'a'`, `'b'`, `'c'`
43
+ *
44
+ * ```ts
45
+ * import { interval, mergeMap, of, EMPTY } from '../..';
46
+ *
47
+ * const interval$ = interval(1000);
48
+ * const result = interval$.pipe(
49
+ * mergeMap(x => x % 2 === 1 ? of('a', 'b', 'c') : EMPTY),
50
+ * );
51
+ * result.subscribe(x => console.log(x));
52
+ *
53
+ * // Results in the following to the console:
54
+ * // x is equal to the count on the interval, e.g. (0, 1, 2, 3, ...)
55
+ * // x will occur every 1000ms
56
+ * // if x % 2 is equal to 1, print a, b, c (each on its own)
57
+ * // if x % 2 is not equal to 1, nothing will be output
58
+ * ```
59
+ *
60
+ * @see {@link Observable}
61
+ * @see {@link NEVER}
62
+ * @see {@link of}
63
+ * @see {@link throwError}
64
+ */
65
+ export declare const EMPTY: Observable<never>;
66
+ /**
67
+ * @param scheduler A {@link SchedulerLike} to use for scheduling
68
+ * the emission of the complete notification.
69
+ * @deprecated Replaced with the {@link EMPTY} constant or {@link scheduled} (e.g. `scheduled([], scheduler)`). Will be removed in v8.
70
+ */
71
+ export declare function empty(scheduler?: SchedulerLike): Observable<never>;
72
+ //# sourceMappingURL=empty.d.ts.map
@@ -0,0 +1,24 @@
1
+ import { Observable } from '../Observable';
2
+ import { ObservedValueOf, ObservableInputTuple, ObservableInput } from '../types';
3
+ import { AnyCatcher } from '../AnyCatcher';
4
+ /**
5
+ * You have passed `any` here, we can't figure out if it is
6
+ * an array or an object, so you're getting `unknown`. Use better types.
7
+ * @param arg Something typed as `any`
8
+ */
9
+ export declare function forkJoin<T extends AnyCatcher>(arg: T): Observable<unknown>;
10
+ export declare function forkJoin(scheduler: null | undefined): Observable<never>;
11
+ export declare function forkJoin(sources: readonly []): Observable<never>;
12
+ export declare function forkJoin<A extends readonly unknown[]>(sources: readonly [...ObservableInputTuple<A>]): Observable<A>;
13
+ export declare function forkJoin<A extends readonly unknown[], R>(sources: readonly [...ObservableInputTuple<A>], resultSelector: (...values: A) => R): Observable<R>;
14
+ /** @deprecated Pass an array of sources instead. The rest-parameters signature will be removed in v8. Details: https://rxjs.dev/deprecations/array-argument */
15
+ export declare function forkJoin<A extends readonly unknown[]>(...sources: [...ObservableInputTuple<A>]): Observable<A>;
16
+ /** @deprecated Pass an array of sources instead. The rest-parameters signature will be removed in v8. Details: https://rxjs.dev/deprecations/array-argument */
17
+ export declare function forkJoin<A extends readonly unknown[], R>(...sourcesAndResultSelector: [...ObservableInputTuple<A>, (...values: A) => R]): Observable<R>;
18
+ export declare function forkJoin(sourcesObject: {
19
+ [K in any]: never;
20
+ }): Observable<never>;
21
+ export declare function forkJoin<T extends Record<string, ObservableInput<any>>>(sourcesObject: T): Observable<{
22
+ [K in keyof T]: ObservedValueOf<T[K]>;
23
+ }>;
24
+ //# sourceMappingURL=forkJoin.d.ts.map
@@ -0,0 +1,6 @@
1
+ import { Observable } from '../Observable';
2
+ import { ObservableInput, SchedulerLike, ObservedValueOf } from '../types';
3
+ export declare function from<O extends ObservableInput<any>>(input: O): Observable<ObservedValueOf<O>>;
4
+ /** @deprecated The `scheduler` parameter will be removed in v8. Use `scheduled`. Details: https://rxjs.dev/deprecations/scheduler-argument */
5
+ export declare function from<O extends ObservableInput<any>>(input: O, scheduler: SchedulerLike | undefined): Observable<ObservedValueOf<O>>;
6
+ //# sourceMappingURL=from.d.ts.map