@bleedingdev/modern-js-utils 3.9.0-ultramodern.2 → 3.9.0-ultramodern.21

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 (361) hide show
  1. package/dist/cjs/cli/applyOptionsChain.js +1 -1
  2. package/dist/cjs/cli/get/config.js +1 -1
  3. package/dist/cjs/cli/require.js +13 -8
  4. package/dist/cjs/compiled.js +1 -9
  5. package/dist/cjs/universal/index.js +5 -25
  6. package/dist/compiled/browserslist/index.js +37 -35
  7. package/dist/compiled/chokidar/types/index.d.ts +1 -1
  8. package/dist/compiled/commander/index.js +2 -3
  9. package/dist/compiled/debug/index.js +1 -1
  10. package/dist/compiled/execa/index.js +8 -6
  11. package/dist/compiled/fast-glob/@nodelib/fs.scandir/out/adapters/fs.d.ts +1 -1
  12. package/dist/compiled/fast-glob/@nodelib/fs.scandir/out/settings.d.ts +1 -1
  13. package/dist/compiled/fast-glob/@nodelib/fs.walk/out/index.d.ts +1 -1
  14. package/dist/compiled/fast-glob/@nodelib/fs.walk/out/readers/async.d.ts +1 -1
  15. package/dist/compiled/fast-glob/@nodelib/fs.walk/out/settings.d.ts +1 -1
  16. package/dist/compiled/fast-glob/@nodelib/fs.walk/out/types/index.d.ts +1 -1
  17. package/dist/compiled/fast-glob/out/types/index.d.ts +1 -1
  18. package/dist/compiled/fs-extra/index.js +39 -35
  19. package/dist/compiled/glob/index.js +17 -15
  20. package/dist/compiled/inquirer/index.js +29 -25
  21. package/dist/compiled/inquirer/lib/prompts/base.d.ts +100 -0
  22. package/dist/compiled/inquirer/lib/prompts/checkbox.d.ts +116 -0
  23. package/dist/compiled/inquirer/lib/prompts/confirm.d.ts +53 -0
  24. package/dist/compiled/inquirer/lib/prompts/editor.d.ts +101 -0
  25. package/dist/compiled/inquirer/lib/prompts/expand.d.ts +149 -0
  26. package/dist/compiled/inquirer/lib/prompts/input.d.ts +82 -0
  27. package/dist/compiled/inquirer/lib/prompts/list.d.ts +89 -0
  28. package/dist/compiled/inquirer/lib/prompts/number.d.ts +32 -0
  29. package/dist/compiled/inquirer/lib/prompts/password.d.ts +82 -0
  30. package/dist/compiled/inquirer/lib/prompts/rawlist.d.ts +111 -0
  31. package/dist/compiled/inquirer/lib/utils/events.d.ts +72 -0
  32. package/dist/compiled/inquirer/lib/utils/incrementListIndex.d.ts +23 -0
  33. package/dist/compiled/inquirer/lib/utils/paginator.d.ts +55 -0
  34. package/dist/compiled/inquirer/lib/utils/readline.d.ts +56 -0
  35. package/dist/compiled/inquirer/lib/utils/screen-manager.d.ts +90 -0
  36. package/dist/compiled/inquirer/lib/utils/utils.d.ts +30 -0
  37. package/dist/compiled/inquirer/rxjs/LICENSE.txt +202 -0
  38. package/dist/compiled/inquirer/rxjs/ajax/index.d.ts +5 -0
  39. package/dist/compiled/inquirer/rxjs/fetch/index.d.ts +2 -0
  40. package/dist/compiled/inquirer/rxjs/index.d.ts +173 -0
  41. package/dist/compiled/inquirer/rxjs/internal/AnyCatcher.d.ts +10 -0
  42. package/dist/compiled/inquirer/rxjs/internal/AsyncSubject.d.ts +13 -0
  43. package/dist/compiled/inquirer/rxjs/internal/BehaviorSubject.d.ts +13 -0
  44. package/dist/compiled/inquirer/rxjs/internal/Notification.d.ts +175 -0
  45. package/dist/compiled/inquirer/rxjs/internal/NotificationFactories.d.ts +2 -0
  46. package/dist/compiled/inquirer/rxjs/internal/Observable.d.ts +121 -0
  47. package/dist/compiled/inquirer/rxjs/internal/Operator.d.ts +9 -0
  48. package/dist/compiled/inquirer/rxjs/internal/ReplaySubject.d.ts +49 -0
  49. package/dist/compiled/inquirer/rxjs/internal/Scheduler.d.ts +53 -0
  50. package/dist/compiled/inquirer/rxjs/internal/Subject.d.ts +54 -0
  51. package/dist/compiled/inquirer/rxjs/internal/Subscriber.d.ts +72 -0
  52. package/dist/compiled/inquirer/rxjs/internal/Subscription.d.ts +92 -0
  53. package/dist/compiled/inquirer/rxjs/internal/ajax/AjaxResponse.d.ts +115 -0
  54. package/dist/compiled/inquirer/rxjs/internal/ajax/ajax.d.ts +227 -0
  55. package/dist/compiled/inquirer/rxjs/internal/ajax/errors.d.ts +65 -0
  56. package/dist/compiled/inquirer/rxjs/internal/ajax/getXHRResponse.d.ts +14 -0
  57. package/dist/compiled/inquirer/rxjs/internal/ajax/types.d.ts +200 -0
  58. package/dist/compiled/inquirer/rxjs/internal/config.d.ts +73 -0
  59. package/dist/compiled/inquirer/rxjs/internal/firstValueFrom.d.ts +7 -0
  60. package/dist/compiled/inquirer/rxjs/internal/lastValueFrom.d.ts +7 -0
  61. package/dist/compiled/inquirer/rxjs/internal/observable/ConnectableObservable.d.ts +42 -0
  62. package/dist/compiled/inquirer/rxjs/internal/observable/bindCallback.d.ts +5 -0
  63. package/dist/compiled/inquirer/rxjs/internal/observable/bindCallbackInternals.d.ts +4 -0
  64. package/dist/compiled/inquirer/rxjs/internal/observable/bindNodeCallback.d.ts +5 -0
  65. package/dist/compiled/inquirer/rxjs/internal/observable/combineLatest.d.ts +33 -0
  66. package/dist/compiled/inquirer/rxjs/internal/observable/concat.d.ts +5 -0
  67. package/dist/compiled/inquirer/rxjs/internal/observable/connectable.d.ts +27 -0
  68. package/dist/compiled/inquirer/rxjs/internal/observable/defer.d.ts +51 -0
  69. package/dist/compiled/inquirer/rxjs/internal/observable/dom/WebSocketSubject.d.ts +173 -0
  70. package/dist/compiled/inquirer/rxjs/internal/observable/dom/animationFrames.d.ts +76 -0
  71. package/dist/compiled/inquirer/rxjs/internal/observable/dom/fetch.d.ts +7 -0
  72. package/dist/compiled/inquirer/rxjs/internal/observable/dom/webSocket.d.ts +159 -0
  73. package/dist/compiled/inquirer/rxjs/internal/observable/empty.d.ts +72 -0
  74. package/dist/compiled/inquirer/rxjs/internal/observable/forkJoin.d.ts +24 -0
  75. package/dist/compiled/inquirer/rxjs/internal/observable/from.d.ts +6 -0
  76. package/dist/compiled/inquirer/rxjs/internal/observable/fromEvent.d.ts +45 -0
  77. package/dist/compiled/inquirer/rxjs/internal/observable/fromEventPattern.d.ts +5 -0
  78. package/dist/compiled/inquirer/rxjs/internal/observable/fromSubscribable.d.ts +14 -0
  79. package/dist/compiled/inquirer/rxjs/internal/observable/generate.d.ts +314 -0
  80. package/dist/compiled/inquirer/rxjs/internal/observable/iif.d.ts +82 -0
  81. package/dist/compiled/inquirer/rxjs/internal/observable/innerFrom.d.ts +21 -0
  82. package/dist/compiled/inquirer/rxjs/internal/observable/interval.d.ts +48 -0
  83. package/dist/compiled/inquirer/rxjs/internal/observable/merge.d.ts +9 -0
  84. package/dist/compiled/inquirer/rxjs/internal/observable/never.d.ts +40 -0
  85. package/dist/compiled/inquirer/rxjs/internal/observable/of.d.ts +14 -0
  86. package/dist/compiled/inquirer/rxjs/internal/observable/onErrorResumeNext.d.ts +5 -0
  87. package/dist/compiled/inquirer/rxjs/internal/observable/pairs.d.ts +19 -0
  88. package/dist/compiled/inquirer/rxjs/internal/observable/partition.d.ts +9 -0
  89. package/dist/compiled/inquirer/rxjs/internal/observable/race.d.ts +12 -0
  90. package/dist/compiled/inquirer/rxjs/internal/observable/range.d.ts +8 -0
  91. package/dist/compiled/inquirer/rxjs/internal/observable/throwError.d.ts +115 -0
  92. package/dist/compiled/inquirer/rxjs/internal/observable/timer.d.ts +126 -0
  93. package/dist/compiled/inquirer/rxjs/internal/observable/using.d.ts +30 -0
  94. package/dist/compiled/inquirer/rxjs/internal/observable/zip.d.ts +7 -0
  95. package/dist/compiled/inquirer/rxjs/internal/operators/OperatorSubscriber.d.ts +41 -0
  96. package/dist/compiled/inquirer/rxjs/internal/operators/audit.d.ts +48 -0
  97. package/dist/compiled/inquirer/rxjs/internal/operators/auditTime.d.ts +50 -0
  98. package/dist/compiled/inquirer/rxjs/internal/operators/buffer.d.ts +41 -0
  99. package/dist/compiled/inquirer/rxjs/internal/operators/bufferCount.d.ts +54 -0
  100. package/dist/compiled/inquirer/rxjs/internal/operators/bufferTime.d.ts +5 -0
  101. package/dist/compiled/inquirer/rxjs/internal/operators/bufferToggle.d.ts +46 -0
  102. package/dist/compiled/inquirer/rxjs/internal/operators/bufferWhen.d.ts +41 -0
  103. package/dist/compiled/inquirer/rxjs/internal/operators/catchError.d.ts +4 -0
  104. package/dist/compiled/inquirer/rxjs/internal/operators/combineAll.d.ts +6 -0
  105. package/dist/compiled/inquirer/rxjs/internal/operators/combineLatest.d.ts +10 -0
  106. package/dist/compiled/inquirer/rxjs/internal/operators/combineLatestAll.d.ts +6 -0
  107. package/dist/compiled/inquirer/rxjs/internal/operators/combineLatestWith.d.ts +43 -0
  108. package/dist/compiled/inquirer/rxjs/internal/operators/concat.d.ts +6 -0
  109. package/dist/compiled/inquirer/rxjs/internal/operators/concatAll.d.ts +59 -0
  110. package/dist/compiled/inquirer/rxjs/internal/operators/concatMap.d.ts +7 -0
  111. package/dist/compiled/inquirer/rxjs/internal/operators/concatMapTo.d.ts +8 -0
  112. package/dist/compiled/inquirer/rxjs/internal/operators/concatWith.d.ts +43 -0
  113. package/dist/compiled/inquirer/rxjs/internal/operators/connect.d.ts +87 -0
  114. package/dist/compiled/inquirer/rxjs/internal/operators/count.d.ts +58 -0
  115. package/dist/compiled/inquirer/rxjs/internal/operators/debounce.d.ts +61 -0
  116. package/dist/compiled/inquirer/rxjs/internal/operators/debounceTime.d.ts +59 -0
  117. package/dist/compiled/inquirer/rxjs/internal/operators/defaultIfEmpty.d.ts +38 -0
  118. package/dist/compiled/inquirer/rxjs/internal/operators/delay.d.ts +59 -0
  119. package/dist/compiled/inquirer/rxjs/internal/operators/delayWhen.d.ts +6 -0
  120. package/dist/compiled/inquirer/rxjs/internal/operators/dematerialize.d.ts +51 -0
  121. package/dist/compiled/inquirer/rxjs/internal/operators/distinct.d.ts +60 -0
  122. package/dist/compiled/inquirer/rxjs/internal/operators/distinctUntilChanged.d.ts +4 -0
  123. package/dist/compiled/inquirer/rxjs/internal/operators/distinctUntilKeyChanged.d.ts +4 -0
  124. package/dist/compiled/inquirer/rxjs/internal/operators/elementAt.d.ts +51 -0
  125. package/dist/compiled/inquirer/rxjs/internal/operators/endWith.d.ts +7 -0
  126. package/dist/compiled/inquirer/rxjs/internal/operators/every.d.ts +9 -0
  127. package/dist/compiled/inquirer/rxjs/internal/operators/exhaust.d.ts +6 -0
  128. package/dist/compiled/inquirer/rxjs/internal/operators/exhaustAll.d.ts +47 -0
  129. package/dist/compiled/inquirer/rxjs/internal/operators/exhaustMap.d.ts +7 -0
  130. package/dist/compiled/inquirer/rxjs/internal/operators/expand.d.ts +9 -0
  131. package/dist/compiled/inquirer/rxjs/internal/operators/filter.d.ts +9 -0
  132. package/dist/compiled/inquirer/rxjs/internal/operators/finalize.d.ts +64 -0
  133. package/dist/compiled/inquirer/rxjs/internal/operators/find.d.ts +12 -0
  134. package/dist/compiled/inquirer/rxjs/internal/operators/findIndex.d.ts +9 -0
  135. package/dist/compiled/inquirer/rxjs/internal/operators/first.d.ts +9 -0
  136. package/dist/compiled/inquirer/rxjs/internal/operators/flatMap.d.ts +6 -0
  137. package/dist/compiled/inquirer/rxjs/internal/operators/groupBy.d.ts +119 -0
  138. package/dist/compiled/inquirer/rxjs/internal/operators/ignoreElements.d.ts +38 -0
  139. package/dist/compiled/inquirer/rxjs/internal/operators/isEmpty.d.ts +64 -0
  140. package/dist/compiled/inquirer/rxjs/internal/operators/joinAllInternals.d.ts +14 -0
  141. package/dist/compiled/inquirer/rxjs/internal/operators/last.d.ts +8 -0
  142. package/dist/compiled/inquirer/rxjs/internal/operators/map.d.ts +5 -0
  143. package/dist/compiled/inquirer/rxjs/internal/operators/mapTo.d.ts +10 -0
  144. package/dist/compiled/inquirer/rxjs/internal/operators/materialize.d.ts +52 -0
  145. package/dist/compiled/inquirer/rxjs/internal/operators/max.d.ts +50 -0
  146. package/dist/compiled/inquirer/rxjs/internal/operators/merge.d.ts +10 -0
  147. package/dist/compiled/inquirer/rxjs/internal/operators/mergeAll.d.ts +62 -0
  148. package/dist/compiled/inquirer/rxjs/internal/operators/mergeInternals.d.ts +18 -0
  149. package/dist/compiled/inquirer/rxjs/internal/operators/mergeMap.d.ts +7 -0
  150. package/dist/compiled/inquirer/rxjs/internal/operators/mergeMapTo.d.ts +9 -0
  151. package/dist/compiled/inquirer/rxjs/internal/operators/mergeScan.d.ts +68 -0
  152. package/dist/compiled/inquirer/rxjs/internal/operators/mergeWith.d.ts +44 -0
  153. package/dist/compiled/inquirer/rxjs/internal/operators/min.d.ts +50 -0
  154. package/dist/compiled/inquirer/rxjs/internal/operators/multicast.d.ts +63 -0
  155. package/dist/compiled/inquirer/rxjs/internal/operators/observeOn.d.ts +56 -0
  156. package/dist/compiled/inquirer/rxjs/internal/operators/onErrorResumeNextWith.d.ts +8 -0
  157. package/dist/compiled/inquirer/rxjs/internal/operators/pairwise.d.ts +46 -0
  158. package/dist/compiled/inquirer/rxjs/internal/operators/partition.d.ts +54 -0
  159. package/dist/compiled/inquirer/rxjs/internal/operators/pluck.d.ts +18 -0
  160. package/dist/compiled/inquirer/rxjs/internal/operators/publish.d.ts +30 -0
  161. package/dist/compiled/inquirer/rxjs/internal/operators/publishBehavior.d.ts +19 -0
  162. package/dist/compiled/inquirer/rxjs/internal/operators/publishLast.d.ts +69 -0
  163. package/dist/compiled/inquirer/rxjs/internal/operators/publishReplay.d.ts +56 -0
  164. package/dist/compiled/inquirer/rxjs/internal/operators/race.d.ts +6 -0
  165. package/dist/compiled/inquirer/rxjs/internal/operators/raceWith.d.ts +29 -0
  166. package/dist/compiled/inquirer/rxjs/internal/operators/reduce.d.ts +5 -0
  167. package/dist/compiled/inquirer/rxjs/internal/operators/refCount.d.ts +61 -0
  168. package/dist/compiled/inquirer/rxjs/internal/operators/repeat.d.ts +108 -0
  169. package/dist/compiled/inquirer/rxjs/internal/operators/repeatWhen.d.ts +38 -0
  170. package/dist/compiled/inquirer/rxjs/internal/operators/retry.d.ts +28 -0
  171. package/dist/compiled/inquirer/rxjs/internal/operators/retryWhen.d.ts +61 -0
  172. package/dist/compiled/inquirer/rxjs/internal/operators/sample.d.ts +43 -0
  173. package/dist/compiled/inquirer/rxjs/internal/operators/sampleTime.d.ts +46 -0
  174. package/dist/compiled/inquirer/rxjs/internal/operators/scan.d.ts +5 -0
  175. package/dist/compiled/inquirer/rxjs/internal/operators/scanInternals.d.ts +12 -0
  176. package/dist/compiled/inquirer/rxjs/internal/operators/sequenceEqual.d.ts +60 -0
  177. package/dist/compiled/inquirer/rxjs/internal/operators/share.d.ts +43 -0
  178. package/dist/compiled/inquirer/rxjs/internal/operators/shareReplay.d.ts +10 -0
  179. package/dist/compiled/inquirer/rxjs/internal/operators/single.d.ts +5 -0
  180. package/dist/compiled/inquirer/rxjs/internal/operators/skip.d.ts +36 -0
  181. package/dist/compiled/inquirer/rxjs/internal/operators/skipLast.d.ts +45 -0
  182. package/dist/compiled/inquirer/rxjs/internal/operators/skipUntil.d.ts +48 -0
  183. package/dist/compiled/inquirer/rxjs/internal/operators/skipWhile.d.ts +5 -0
  184. package/dist/compiled/inquirer/rxjs/internal/operators/startWith.d.ts +7 -0
  185. package/dist/compiled/inquirer/rxjs/internal/operators/subscribeOn.d.ts +62 -0
  186. package/dist/compiled/inquirer/rxjs/internal/operators/switchAll.d.ts +61 -0
  187. package/dist/compiled/inquirer/rxjs/internal/operators/switchMap.d.ts +7 -0
  188. package/dist/compiled/inquirer/rxjs/internal/operators/switchMapTo.d.ts +8 -0
  189. package/dist/compiled/inquirer/rxjs/internal/operators/switchScan.d.ts +20 -0
  190. package/dist/compiled/inquirer/rxjs/internal/operators/take.d.ts +45 -0
  191. package/dist/compiled/inquirer/rxjs/internal/operators/takeLast.d.ts +42 -0
  192. package/dist/compiled/inquirer/rxjs/internal/operators/takeUntil.d.ts +41 -0
  193. package/dist/compiled/inquirer/rxjs/internal/operators/takeWhile.d.ts +8 -0
  194. package/dist/compiled/inquirer/rxjs/internal/operators/tap.d.ts +72 -0
  195. package/dist/compiled/inquirer/rxjs/internal/operators/throttle.d.ts +78 -0
  196. package/dist/compiled/inquirer/rxjs/internal/operators/throttleTime.d.ts +53 -0
  197. package/dist/compiled/inquirer/rxjs/internal/operators/throwIfEmpty.d.ts +39 -0
  198. package/dist/compiled/inquirer/rxjs/internal/operators/timeInterval.d.ts +50 -0
  199. package/dist/compiled/inquirer/rxjs/internal/operators/timeout.d.ts +255 -0
  200. package/dist/compiled/inquirer/rxjs/internal/operators/timeoutWith.d.ts +8 -0
  201. package/dist/compiled/inquirer/rxjs/internal/operators/timestamp.d.ts +35 -0
  202. package/dist/compiled/inquirer/rxjs/internal/operators/toArray.d.ts +33 -0
  203. package/dist/compiled/inquirer/rxjs/internal/operators/window.d.ts +48 -0
  204. package/dist/compiled/inquirer/rxjs/internal/operators/windowCount.d.ts +65 -0
  205. package/dist/compiled/inquirer/rxjs/internal/operators/windowTime.d.ts +6 -0
  206. package/dist/compiled/inquirer/rxjs/internal/operators/windowToggle.d.ts +49 -0
  207. package/dist/compiled/inquirer/rxjs/internal/operators/windowWhen.d.ts +49 -0
  208. package/dist/compiled/inquirer/rxjs/internal/operators/withLatestFrom.d.ts +4 -0
  209. package/dist/compiled/inquirer/rxjs/internal/operators/zip.d.ts +10 -0
  210. package/dist/compiled/inquirer/rxjs/internal/operators/zipAll.d.ts +14 -0
  211. package/dist/compiled/inquirer/rxjs/internal/operators/zipWith.d.ts +26 -0
  212. package/dist/compiled/inquirer/rxjs/internal/scheduled/scheduleArray.d.ts +4 -0
  213. package/dist/compiled/inquirer/rxjs/internal/scheduled/scheduleAsyncIterable.d.ts +4 -0
  214. package/dist/compiled/inquirer/rxjs/internal/scheduled/scheduleIterable.d.ts +9 -0
  215. package/dist/compiled/inquirer/rxjs/internal/scheduled/scheduleObservable.d.ts +3 -0
  216. package/dist/compiled/inquirer/rxjs/internal/scheduled/schedulePromise.d.ts +3 -0
  217. package/dist/compiled/inquirer/rxjs/internal/scheduled/scheduleReadableStreamLike.d.ts +4 -0
  218. package/dist/compiled/inquirer/rxjs/internal/scheduled/scheduled.d.ts +15 -0
  219. package/dist/compiled/inquirer/rxjs/internal/scheduler/Action.d.ts +30 -0
  220. package/dist/compiled/inquirer/rxjs/internal/scheduler/AnimationFrameAction.d.ts +12 -0
  221. package/dist/compiled/inquirer/rxjs/internal/scheduler/AnimationFrameScheduler.d.ts +6 -0
  222. package/dist/compiled/inquirer/rxjs/internal/scheduler/AsapAction.d.ts +12 -0
  223. package/dist/compiled/inquirer/rxjs/internal/scheduler/AsapScheduler.d.ts +6 -0
  224. package/dist/compiled/inquirer/rxjs/internal/scheduler/AsyncAction.d.ts +24 -0
  225. package/dist/compiled/inquirer/rxjs/internal/scheduler/AsyncScheduler.d.ts +9 -0
  226. package/dist/compiled/inquirer/rxjs/internal/scheduler/QueueAction.d.ts +14 -0
  227. package/dist/compiled/inquirer/rxjs/internal/scheduler/QueueScheduler.d.ts +4 -0
  228. package/dist/compiled/inquirer/rxjs/internal/scheduler/VirtualTimeScheduler.d.ts +48 -0
  229. package/dist/compiled/inquirer/rxjs/internal/scheduler/animationFrame.d.ts +38 -0
  230. package/dist/compiled/inquirer/rxjs/internal/scheduler/animationFrameProvider.d.ts +13 -0
  231. package/dist/compiled/inquirer/rxjs/internal/scheduler/asap.d.ts +41 -0
  232. package/dist/compiled/inquirer/rxjs/internal/scheduler/async.d.ts +53 -0
  233. package/dist/compiled/inquirer/rxjs/internal/scheduler/dateTimestampProvider.d.ts +7 -0
  234. package/dist/compiled/inquirer/rxjs/internal/scheduler/immediateProvider.d.ts +14 -0
  235. package/dist/compiled/inquirer/rxjs/internal/scheduler/intervalProvider.d.ts +14 -0
  236. package/dist/compiled/inquirer/rxjs/internal/scheduler/performanceTimestampProvider.d.ts +7 -0
  237. package/dist/compiled/inquirer/rxjs/internal/scheduler/queue.d.ts +69 -0
  238. package/dist/compiled/inquirer/rxjs/internal/scheduler/timeoutProvider.d.ts +14 -0
  239. package/dist/compiled/inquirer/rxjs/internal/scheduler/timerHandle.d.ts +2 -0
  240. package/dist/compiled/inquirer/rxjs/internal/symbol/iterator.d.ts +3 -0
  241. package/dist/compiled/inquirer/rxjs/internal/symbol/observable.d.ts +8 -0
  242. package/dist/compiled/inquirer/rxjs/internal/testing/ColdObservable.d.ts +16 -0
  243. package/dist/compiled/inquirer/rxjs/internal/testing/HotObservable.d.ts +15 -0
  244. package/dist/compiled/inquirer/rxjs/internal/testing/SubscriptionLog.d.ts +6 -0
  245. package/dist/compiled/inquirer/rxjs/internal/testing/SubscriptionLoggable.d.ts +9 -0
  246. package/dist/compiled/inquirer/rxjs/internal/testing/TestMessage.d.ts +7 -0
  247. package/dist/compiled/inquirer/rxjs/internal/testing/TestScheduler.d.ts +88 -0
  248. package/dist/compiled/inquirer/rxjs/internal/types.d.ts +307 -0
  249. package/dist/compiled/inquirer/rxjs/internal/util/ArgumentOutOfRangeError.d.ts +19 -0
  250. package/dist/compiled/inquirer/rxjs/internal/util/EmptyError.d.ts +21 -0
  251. package/dist/compiled/inquirer/rxjs/internal/util/Immediate.d.ts +14 -0
  252. package/dist/compiled/inquirer/rxjs/internal/util/NotFoundError.d.ts +17 -0
  253. package/dist/compiled/inquirer/rxjs/internal/util/ObjectUnsubscribedError.d.ts +20 -0
  254. package/dist/compiled/inquirer/rxjs/internal/util/SequenceError.d.ts +17 -0
  255. package/dist/compiled/inquirer/rxjs/internal/util/UnsubscriptionError.d.ts +16 -0
  256. package/dist/compiled/inquirer/rxjs/internal/util/applyMixins.d.ts +2 -0
  257. package/dist/compiled/inquirer/rxjs/internal/util/args.d.ts +5 -0
  258. package/dist/compiled/inquirer/rxjs/internal/util/argsArgArrayOrObject.d.ts +11 -0
  259. package/dist/compiled/inquirer/rxjs/internal/util/argsOrArgArray.d.ts +6 -0
  260. package/dist/compiled/inquirer/rxjs/internal/util/arrRemove.d.ts +7 -0
  261. package/dist/compiled/inquirer/rxjs/internal/util/createErrorClass.d.ts +11 -0
  262. package/dist/compiled/inquirer/rxjs/internal/util/createObject.d.ts +2 -0
  263. package/dist/compiled/inquirer/rxjs/internal/util/errorContext.d.ts +14 -0
  264. package/dist/compiled/inquirer/rxjs/internal/util/executeSchedule.d.ts +5 -0
  265. package/dist/compiled/inquirer/rxjs/internal/util/identity.d.ts +44 -0
  266. package/dist/compiled/inquirer/rxjs/internal/util/isArrayLike.d.ts +2 -0
  267. package/dist/compiled/inquirer/rxjs/internal/util/isAsyncIterable.d.ts +2 -0
  268. package/dist/compiled/inquirer/rxjs/internal/util/isDate.d.ts +9 -0
  269. package/dist/compiled/inquirer/rxjs/internal/util/isFunction.d.ts +6 -0
  270. package/dist/compiled/inquirer/rxjs/internal/util/isInteropObservable.d.ts +4 -0
  271. package/dist/compiled/inquirer/rxjs/internal/util/isIterable.d.ts +3 -0
  272. package/dist/compiled/inquirer/rxjs/internal/util/isObservable.d.ts +8 -0
  273. package/dist/compiled/inquirer/rxjs/internal/util/isPromise.d.ts +6 -0
  274. package/dist/compiled/inquirer/rxjs/internal/util/isReadableStreamLike.d.ts +4 -0
  275. package/dist/compiled/inquirer/rxjs/internal/util/isScheduler.d.ts +3 -0
  276. package/dist/compiled/inquirer/rxjs/internal/util/lift.d.ts +15 -0
  277. package/dist/compiled/inquirer/rxjs/internal/util/mapOneOrManyArgs.d.ts +7 -0
  278. package/dist/compiled/inquirer/rxjs/internal/util/noop.d.ts +2 -0
  279. package/dist/compiled/inquirer/rxjs/internal/util/not.d.ts +2 -0
  280. package/dist/compiled/inquirer/rxjs/internal/util/pipe.d.ts +14 -0
  281. package/dist/compiled/inquirer/rxjs/internal/util/reportUnhandledError.d.ts +11 -0
  282. package/dist/compiled/inquirer/rxjs/internal/util/subscribeToArray.d.ts +7 -0
  283. package/dist/compiled/inquirer/rxjs/internal/util/throwUnobservableError.d.ts +6 -0
  284. package/dist/compiled/inquirer/rxjs/internal/util/workarounds.d.ts +2 -0
  285. package/dist/compiled/inquirer/rxjs/operators/index.d.ts +114 -0
  286. package/dist/compiled/inquirer/rxjs/testing/index.d.ts +2 -0
  287. package/dist/compiled/inquirer/rxjs/webSocket/index.d.ts +3 -0
  288. package/dist/compiled/inquirer/types-license +21 -0
  289. package/dist/compiled/js-yaml/index.js +1 -2
  290. package/dist/compiled/js-yaml/index.mjs +1 -2
  291. package/dist/compiled/lodash/index.d.ts +1 -11
  292. package/dist/compiled/minimist/index.js +1 -2
  293. package/dist/compiled/ora/index.js +17 -15
  294. package/dist/compiled/semver/index.js +12 -13
  295. package/dist/compiled/signale/index.js +3 -3
  296. package/dist/compiled/upath/index.js +15 -11
  297. package/dist/compiled/upath/upath.d.ts +2 -2
  298. package/dist/compiled/webpack-chain/index.js +5 -3
  299. package/dist/esm/cli/applyOptionsChain.mjs +1 -1
  300. package/dist/esm/cli/get/config.mjs +1 -1
  301. package/dist/esm/cli/require.mjs +14 -6
  302. package/dist/esm/compiled.mjs +1 -10
  303. package/dist/esm/universal/index.mjs +0 -2
  304. package/dist/esm-node/cli/applyOptionsChain.mjs +1 -1
  305. package/dist/esm-node/cli/get/config.mjs +1 -1
  306. package/dist/esm-node/cli/require.mjs +14 -6
  307. package/dist/esm-node/compiled.mjs +1 -9
  308. package/dist/esm-node/universal/index.mjs +0 -2
  309. package/dist/types/cli/require.d.ts +0 -1
  310. package/dist/types/universal/index.d.ts +0 -2
  311. package/package.json +7 -6
  312. package/rslib.config.mts +2 -0
  313. package/dist/cjs/universal/backend-federation-contract/build-artifact.js +0 -185
  314. package/dist/cjs/universal/backend-federation-contract/constants.js +0 -92
  315. package/dist/cjs/universal/backend-federation-contract/delivery-unit.js +0 -130
  316. package/dist/cjs/universal/backend-federation-contract/index.js +0 -137
  317. package/dist/cjs/universal/backend-federation-contract/metadata.js +0 -133
  318. package/dist/cjs/universal/backend-federation-contract/types.js +0 -18
  319. package/dist/cjs/universal/backend-federation-contract/validation-core.js +0 -85
  320. package/dist/cjs/universal/surface-resolution/env-static-provider.js +0 -318
  321. package/dist/cjs/universal/surface-resolution/index.js +0 -69
  322. package/dist/cjs/universal/surface-resolution/surface-ref.js +0 -132
  323. package/dist/cjs/universal/surface-resolution/types.js +0 -18
  324. package/dist/cjs/universal/surface-resolution/validation.js +0 -202
  325. package/dist/esm/rslib-runtime~1.mjs +0 -12
  326. package/dist/esm/universal/backend-federation-contract/build-artifact.mjs +0 -135
  327. package/dist/esm/universal/backend-federation-contract/constants.mjs +0 -18
  328. package/dist/esm/universal/backend-federation-contract/delivery-unit.mjs +0 -74
  329. package/dist/esm/universal/backend-federation-contract/index.mjs +0 -5
  330. package/dist/esm/universal/backend-federation-contract/metadata.mjs +0 -80
  331. package/dist/esm/universal/backend-federation-contract/types.mjs +0 -0
  332. package/dist/esm/universal/backend-federation-contract/validation-core.mjs +0 -29
  333. package/dist/esm/universal/surface-resolution/env-static-provider.mjs +0 -274
  334. package/dist/esm/universal/surface-resolution/index.mjs +0 -3
  335. package/dist/esm/universal/surface-resolution/surface-ref.mjs +0 -88
  336. package/dist/esm/universal/surface-resolution/types.mjs +0 -0
  337. package/dist/esm/universal/surface-resolution/validation.mjs +0 -155
  338. package/dist/esm-node/universal/backend-federation-contract/build-artifact.mjs +0 -136
  339. package/dist/esm-node/universal/backend-federation-contract/constants.mjs +0 -19
  340. package/dist/esm-node/universal/backend-federation-contract/delivery-unit.mjs +0 -75
  341. package/dist/esm-node/universal/backend-federation-contract/index.mjs +0 -6
  342. package/dist/esm-node/universal/backend-federation-contract/metadata.mjs +0 -81
  343. package/dist/esm-node/universal/backend-federation-contract/types.mjs +0 -1
  344. package/dist/esm-node/universal/backend-federation-contract/validation-core.mjs +0 -30
  345. package/dist/esm-node/universal/surface-resolution/env-static-provider.mjs +0 -275
  346. package/dist/esm-node/universal/surface-resolution/index.mjs +0 -4
  347. package/dist/esm-node/universal/surface-resolution/surface-ref.mjs +0 -89
  348. package/dist/esm-node/universal/surface-resolution/types.mjs +0 -1
  349. package/dist/esm-node/universal/surface-resolution/validation.mjs +0 -156
  350. package/dist/types/universal/backend-federation-contract/build-artifact.d.ts +0 -9
  351. package/dist/types/universal/backend-federation-contract/constants.d.ts +0 -14
  352. package/dist/types/universal/backend-federation-contract/delivery-unit.d.ts +0 -9
  353. package/dist/types/universal/backend-federation-contract/index.d.ts +0 -7
  354. package/dist/types/universal/backend-federation-contract/metadata.d.ts +0 -7
  355. package/dist/types/universal/backend-federation-contract/types.d.ts +0 -60
  356. package/dist/types/universal/backend-federation-contract/validation-core.d.ts +0 -8
  357. package/dist/types/universal/surface-resolution/env-static-provider.d.ts +0 -107
  358. package/dist/types/universal/surface-resolution/index.d.ts +0 -4
  359. package/dist/types/universal/surface-resolution/surface-ref.d.ts +0 -72
  360. package/dist/types/universal/surface-resolution/types.d.ts +0 -102
  361. package/dist/types/universal/surface-resolution/validation.d.ts +0 -53
@@ -0,0 +1,54 @@
1
+ import { Operator } from './Operator';
2
+ import { Observable } from './Observable';
3
+ import { Observer, SubscriptionLike } from './types';
4
+ /**
5
+ * A Subject is a special type of Observable that allows values to be
6
+ * multicasted to many Observers. Subjects are like EventEmitters.
7
+ *
8
+ * Every Subject is an Observable and an Observer. You can subscribe to a
9
+ * Subject, and you can call next to feed values as well as error and complete.
10
+ */
11
+ export declare class Subject<T> extends Observable<T> implements SubscriptionLike {
12
+ closed: boolean;
13
+ private currentObservers;
14
+ /** @deprecated Internal implementation detail, do not use directly. Will be made internal in v8. */
15
+ observers: Observer<T>[];
16
+ /** @deprecated Internal implementation detail, do not use directly. Will be made internal in v8. */
17
+ isStopped: boolean;
18
+ /** @deprecated Internal implementation detail, do not use directly. Will be made internal in v8. */
19
+ hasError: boolean;
20
+ /** @deprecated Internal implementation detail, do not use directly. Will be made internal in v8. */
21
+ thrownError: any;
22
+ /**
23
+ * Creates a "subject" by basically gluing an observer to an observable.
24
+ *
25
+ * @deprecated Recommended you do not use. Will be removed at some point in the future. Plans for replacement still under discussion.
26
+ */
27
+ static create: (...args: any[]) => any;
28
+ constructor();
29
+ /** @deprecated Internal implementation detail, do not use directly. Will be made internal in v8. */
30
+ lift<R>(operator: Operator<T, R>): Observable<R>;
31
+ next(value: T): void;
32
+ error(err: any): void;
33
+ complete(): void;
34
+ unsubscribe(): void;
35
+ get observed(): boolean;
36
+ /**
37
+ * Creates a new Observable with this Subject as the source. You can do this
38
+ * to create custom Observer-side logic of the Subject and conceal it from
39
+ * code that uses the Observable.
40
+ * @return Observable that this Subject casts to.
41
+ */
42
+ asObservable(): Observable<T>;
43
+ }
44
+ export declare class AnonymousSubject<T> extends Subject<T> {
45
+ /** @deprecated Internal implementation detail, do not use directly. Will be made internal in v8. */
46
+ destination?: Observer<T> | undefined;
47
+ constructor(
48
+ /** @deprecated Internal implementation detail, do not use directly. Will be made internal in v8. */
49
+ destination?: Observer<T> | undefined, source?: Observable<T>);
50
+ next(value: T): void;
51
+ error(err: any): void;
52
+ complete(): void;
53
+ }
54
+ //# sourceMappingURL=Subject.d.ts.map
@@ -0,0 +1,72 @@
1
+ import { Observer } from './types';
2
+ import { Subscription } from './Subscription';
3
+ /**
4
+ * Implements the {@link Observer} interface and extends the
5
+ * {@link Subscription} class. While the {@link Observer} is the public API for
6
+ * consuming the values of an {@link Observable}, all Observers get converted to
7
+ * a Subscriber, in order to provide Subscription-like capabilities such as
8
+ * `unsubscribe`. Subscriber is a common type in RxJS, and crucial for
9
+ * implementing operators, but it is rarely used as a public API.
10
+ */
11
+ export declare class Subscriber<T> extends Subscription implements Observer<T> {
12
+ /**
13
+ * A static factory for a Subscriber, given a (potentially partial) definition
14
+ * of an Observer.
15
+ * @param next The `next` callback of an Observer.
16
+ * @param error The `error` callback of an
17
+ * Observer.
18
+ * @param complete The `complete` callback of an
19
+ * Observer.
20
+ * @return A Subscriber wrapping the (partially defined)
21
+ * Observer represented by the given arguments.
22
+ * @deprecated Do not use. Will be removed in v8. There is no replacement for this
23
+ * method, and there is no reason to be creating instances of `Subscriber` directly.
24
+ * If you have a specific use case, please file an issue.
25
+ */
26
+ static create<T>(next?: (x?: T) => void, error?: (e?: any) => void, complete?: () => void): Subscriber<T>;
27
+ /** @deprecated Internal implementation detail, do not use directly. Will be made internal in v8. */
28
+ protected isStopped: boolean;
29
+ /** @deprecated Internal implementation detail, do not use directly. Will be made internal in v8. */
30
+ protected destination: Subscriber<any> | Observer<any>;
31
+ /**
32
+ * @deprecated Internal implementation detail, do not use directly. Will be made internal in v8.
33
+ * There is no reason to directly create an instance of Subscriber. This type is exported for typings reasons.
34
+ */
35
+ constructor(destination?: Subscriber<any> | Observer<any>);
36
+ /**
37
+ * The {@link Observer} callback to receive notifications of type `next` from
38
+ * the Observable, with a value. The Observable may call this method 0 or more
39
+ * times.
40
+ * @param value The `next` value.
41
+ */
42
+ next(value: T): void;
43
+ /**
44
+ * The {@link Observer} callback to receive notifications of type `error` from
45
+ * the Observable, with an attached `Error`. Notifies the Observer that
46
+ * the Observable has experienced an error condition.
47
+ * @param err The `error` exception.
48
+ */
49
+ error(err?: any): void;
50
+ /**
51
+ * The {@link Observer} callback to receive a valueless notification of type
52
+ * `complete` from the Observable. Notifies the Observer that the Observable
53
+ * has finished sending push-based notifications.
54
+ */
55
+ complete(): void;
56
+ unsubscribe(): void;
57
+ protected _next(value: T): void;
58
+ protected _error(err: any): void;
59
+ protected _complete(): void;
60
+ }
61
+ export declare class SafeSubscriber<T> extends Subscriber<T> {
62
+ constructor(observerOrNext?: Partial<Observer<T>> | ((value: T) => void) | null, error?: ((e?: any) => void) | null, complete?: (() => void) | null);
63
+ }
64
+ /**
65
+ * The observer used as a stub for subscriptions where the user did not
66
+ * pass any arguments to `subscribe`. Comes with the default error handling
67
+ * behavior.
68
+ */
69
+ export declare const EMPTY_OBSERVER: Readonly<Observer<any>> & {
70
+ closed: true;
71
+ };
72
+ //# sourceMappingURL=Subscriber.d.ts.map
@@ -0,0 +1,92 @@
1
+ import { SubscriptionLike, TeardownLogic } from './types';
2
+ /**
3
+ * Represents a disposable resource, such as the execution of an Observable. A
4
+ * Subscription has one important method, `unsubscribe`, that takes no argument
5
+ * and just disposes the resource held by the subscription.
6
+ *
7
+ * Additionally, subscriptions may be grouped together through the `add()`
8
+ * method, which will attach a child Subscription to the current Subscription.
9
+ * When a Subscription is unsubscribed, all its children (and its grandchildren)
10
+ * will be unsubscribed as well.
11
+ */
12
+ export declare class Subscription implements SubscriptionLike {
13
+ private initialTeardown?;
14
+ static EMPTY: Subscription;
15
+ /**
16
+ * A flag to indicate whether this Subscription has already been unsubscribed.
17
+ */
18
+ closed: boolean;
19
+ private _parentage;
20
+ /**
21
+ * The list of registered finalizers to execute upon unsubscription. Adding and removing from this
22
+ * list occurs in the {@link #add} and {@link #remove} methods.
23
+ */
24
+ private _finalizers;
25
+ /**
26
+ * @param initialTeardown A function executed first as part of the finalization
27
+ * process that is kicked off when {@link #unsubscribe} is called.
28
+ */
29
+ constructor(initialTeardown?: (() => void) | undefined);
30
+ /**
31
+ * Disposes the resources held by the subscription. May, for instance, cancel
32
+ * an ongoing Observable execution or cancel any other type of work that
33
+ * started when the Subscription was created.
34
+ */
35
+ unsubscribe(): void;
36
+ /**
37
+ * Adds a finalizer to this subscription, so that finalization will be unsubscribed/called
38
+ * when this subscription is unsubscribed. If this subscription is already {@link #closed},
39
+ * because it has already been unsubscribed, then whatever finalizer is passed to it
40
+ * will automatically be executed (unless the finalizer itself is also a closed subscription).
41
+ *
42
+ * Closed Subscriptions cannot be added as finalizers to any subscription. Adding a closed
43
+ * subscription to a any subscription will result in no operation. (A noop).
44
+ *
45
+ * Adding a subscription to itself, or adding `null` or `undefined` will not perform any
46
+ * operation at all. (A noop).
47
+ *
48
+ * `Subscription` instances that are added to this instance will automatically remove themselves
49
+ * if they are unsubscribed. Functions and {@link Unsubscribable} objects that you wish to remove
50
+ * will need to be removed manually with {@link #remove}
51
+ *
52
+ * @param teardown The finalization logic to add to this subscription.
53
+ */
54
+ add(teardown: TeardownLogic): void;
55
+ /**
56
+ * Checks to see if a this subscription already has a particular parent.
57
+ * This will signal that this subscription has already been added to the parent in question.
58
+ * @param parent the parent to check for
59
+ */
60
+ private _hasParent;
61
+ /**
62
+ * Adds a parent to this subscription so it can be removed from the parent if it
63
+ * unsubscribes on it's own.
64
+ *
65
+ * NOTE: THIS ASSUMES THAT {@link _hasParent} HAS ALREADY BEEN CHECKED.
66
+ * @param parent The parent subscription to add
67
+ */
68
+ private _addParent;
69
+ /**
70
+ * Called on a child when it is removed via {@link #remove}.
71
+ * @param parent The parent to remove
72
+ */
73
+ private _removeParent;
74
+ /**
75
+ * Removes a finalizer from this subscription that was previously added with the {@link #add} method.
76
+ *
77
+ * Note that `Subscription` instances, when unsubscribed, will automatically remove themselves
78
+ * from every other `Subscription` they have been added to. This means that using the `remove` method
79
+ * is not a common thing and should be used thoughtfully.
80
+ *
81
+ * If you add the same finalizer instance of a function or an unsubscribable object to a `Subscription` instance
82
+ * more than once, you will need to call `remove` the same number of times to remove all instances.
83
+ *
84
+ * All finalizer instances are removed to free up memory upon unsubscription.
85
+ *
86
+ * @param teardown The finalizer to remove from this subscription
87
+ */
88
+ remove(teardown: Exclude<TeardownLogic, void>): void;
89
+ }
90
+ export declare const EMPTY_SUBSCRIPTION: Subscription;
91
+ export declare function isSubscription(value: any): value is Subscription;
92
+ //# sourceMappingURL=Subscription.d.ts.map
@@ -0,0 +1,115 @@
1
+ import { AjaxRequest, AjaxResponseType } from './types';
2
+ /**
3
+ * A normalized response from an AJAX request. To get the data from the response,
4
+ * you will want to read the `response` property.
5
+ *
6
+ * - DO NOT create instances of this class directly.
7
+ * - DO NOT subclass this class.
8
+ *
9
+ * It is advised not to hold this object in memory, as it has a reference to
10
+ * the original XHR used to make the request, as well as properties containing
11
+ * request and response data.
12
+ *
13
+ * @see {@link ajax}
14
+ * @see {@link AjaxConfig}
15
+ */
16
+ export declare class AjaxResponse<T> {
17
+ /**
18
+ * The original event object from the raw XHR event.
19
+ */
20
+ readonly originalEvent: ProgressEvent;
21
+ /**
22
+ * The XMLHttpRequest object used to make the request.
23
+ * NOTE: It is advised not to hold this in memory, as it will retain references to all of it's event handlers
24
+ * and many other things related to the request.
25
+ */
26
+ readonly xhr: XMLHttpRequest;
27
+ /**
28
+ * The request parameters used to make the HTTP request.
29
+ */
30
+ readonly request: AjaxRequest;
31
+ /**
32
+ * The event type. This can be used to discern between different events
33
+ * if you're using progress events with {@link includeDownloadProgress} or
34
+ * {@link includeUploadProgress} settings in {@link AjaxConfig}.
35
+ *
36
+ * The event type consists of two parts: the {@link AjaxDirection} and the
37
+ * the event type. Merged with `_`, they form the `type` string. The
38
+ * direction can be an `upload` or a `download` direction, while an event can
39
+ * be `loadstart`, `progress` or `load`.
40
+ *
41
+ * `download_load` is the type of event when download has finished and the
42
+ * response is available.
43
+ */
44
+ readonly type: AjaxResponseType;
45
+ /** The HTTP status code */
46
+ readonly status: number;
47
+ /**
48
+ * The response data, if any. Note that this will automatically be converted to the proper type
49
+ */
50
+ readonly response: T;
51
+ /**
52
+ * The responseType set on the request. (For example: `""`, `"arraybuffer"`, `"blob"`, `"document"`, `"json"`, or `"text"`)
53
+ * @deprecated There isn't much reason to examine this. It's the same responseType set (or defaulted) on the ajax config.
54
+ * If you really need to examine this value, you can check it on the `request` or the `xhr`. Will be removed in v8.
55
+ */
56
+ readonly responseType: XMLHttpRequestResponseType;
57
+ /**
58
+ * The total number of bytes loaded so far. To be used with {@link total} while
59
+ * calculating progress. (You will want to set {@link includeDownloadProgress} or
60
+ * {@link includeDownloadProgress})
61
+ */
62
+ readonly loaded: number;
63
+ /**
64
+ * The total number of bytes to be loaded. To be used with {@link loaded} while
65
+ * calculating progress. (You will want to set {@link includeDownloadProgress} or
66
+ * {@link includeDownloadProgress})
67
+ */
68
+ readonly total: number;
69
+ /**
70
+ * A dictionary of the response headers.
71
+ */
72
+ readonly responseHeaders: Record<string, string>;
73
+ /**
74
+ * A normalized response from an AJAX request. To get the data from the response,
75
+ * you will want to read the `response` property.
76
+ *
77
+ * - DO NOT create instances of this class directly.
78
+ * - DO NOT subclass this class.
79
+ *
80
+ * @param originalEvent The original event object from the XHR `onload` event.
81
+ * @param xhr The `XMLHttpRequest` object used to make the request. This is useful for examining status code, etc.
82
+ * @param request The request settings used to make the HTTP request.
83
+ * @param type The type of the event emitted by the {@link ajax} Observable
84
+ */
85
+ constructor(
86
+ /**
87
+ * The original event object from the raw XHR event.
88
+ */
89
+ originalEvent: ProgressEvent,
90
+ /**
91
+ * The XMLHttpRequest object used to make the request.
92
+ * NOTE: It is advised not to hold this in memory, as it will retain references to all of it's event handlers
93
+ * and many other things related to the request.
94
+ */
95
+ xhr: XMLHttpRequest,
96
+ /**
97
+ * The request parameters used to make the HTTP request.
98
+ */
99
+ request: AjaxRequest,
100
+ /**
101
+ * The event type. This can be used to discern between different events
102
+ * if you're using progress events with {@link includeDownloadProgress} or
103
+ * {@link includeUploadProgress} settings in {@link AjaxConfig}.
104
+ *
105
+ * The event type consists of two parts: the {@link AjaxDirection} and the
106
+ * the event type. Merged with `_`, they form the `type` string. The
107
+ * direction can be an `upload` or a `download` direction, while an event can
108
+ * be `loadstart`, `progress` or `load`.
109
+ *
110
+ * `download_load` is the type of event when download has finished and the
111
+ * response is available.
112
+ */
113
+ type?: AjaxResponseType);
114
+ }
115
+ //# sourceMappingURL=AjaxResponse.d.ts.map
@@ -0,0 +1,227 @@
1
+ import { Observable } from '../Observable';
2
+ import { AjaxConfig } from './types';
3
+ import { AjaxResponse } from './AjaxResponse';
4
+ export interface AjaxCreationMethod {
5
+ /**
6
+ * Creates an observable that will perform an AJAX request using the
7
+ * [XMLHttpRequest](https://developer.mozilla.org/en-US/docs/Web/API/XMLHttpRequest) in
8
+ * global scope by default.
9
+ *
10
+ * This is the most configurable option, and the basis for all other AJAX calls in the library.
11
+ *
12
+ * ## Example
13
+ *
14
+ * ```ts
15
+ * import { ajax } from 'rxjs/ajax';
16
+ * import { map, catchError, of } from '../..';
17
+ *
18
+ * const obs$ = ajax({
19
+ * method: 'GET',
20
+ * url: 'https://api.github.com/users?per_page=5',
21
+ * responseType: 'json'
22
+ * }).pipe(
23
+ * map(userResponse => console.log('users: ', userResponse)),
24
+ * catchError(error => {
25
+ * console.log('error: ', error);
26
+ * return of(error);
27
+ * })
28
+ * );
29
+ * ```
30
+ */
31
+ <T>(config: AjaxConfig): Observable<AjaxResponse<T>>;
32
+ /**
33
+ * Perform an HTTP GET using the
34
+ * [XMLHttpRequest](https://developer.mozilla.org/en-US/docs/Web/API/XMLHttpRequest) in
35
+ * global scope. Defaults to a `responseType` of `"json"`.
36
+ *
37
+ * ## Example
38
+ *
39
+ * ```ts
40
+ * import { ajax } from 'rxjs/ajax';
41
+ * import { map, catchError, of } from '../..';
42
+ *
43
+ * const obs$ = ajax('https://api.github.com/users?per_page=5').pipe(
44
+ * map(userResponse => console.log('users: ', userResponse)),
45
+ * catchError(error => {
46
+ * console.log('error: ', error);
47
+ * return of(error);
48
+ * })
49
+ * );
50
+ * ```
51
+ */
52
+ <T>(url: string): Observable<AjaxResponse<T>>;
53
+ /**
54
+ * Performs an HTTP GET using the
55
+ * [XMLHttpRequest](https://developer.mozilla.org/en-US/docs/Web/API/XMLHttpRequest) in
56
+ * global scope by default, and a `responseType` of `"json"`.
57
+ *
58
+ * @param url The URL to get the resource from
59
+ * @param headers Optional headers. Case-Insensitive.
60
+ */
61
+ get<T>(url: string, headers?: Record<string, string>): Observable<AjaxResponse<T>>;
62
+ /**
63
+ * Performs an HTTP POST using the
64
+ * [XMLHttpRequest](https://developer.mozilla.org/en-US/docs/Web/API/XMLHttpRequest) in
65
+ * global scope by default, and a `responseType` of `"json"`.
66
+ *
67
+ * Before sending the value passed to the `body` argument, it is automatically serialized
68
+ * based on the specified `responseType`. By default, a JavaScript object will be serialized
69
+ * to JSON. A `responseType` of `application/x-www-form-urlencoded` will flatten any provided
70
+ * dictionary object to a url-encoded string.
71
+ *
72
+ * @param url The URL to get the resource from
73
+ * @param body The content to send. The body is automatically serialized.
74
+ * @param headers Optional headers. Case-Insensitive.
75
+ */
76
+ post<T>(url: string, body?: any, headers?: Record<string, string>): Observable<AjaxResponse<T>>;
77
+ /**
78
+ * Performs an HTTP PUT using the
79
+ * [XMLHttpRequest](https://developer.mozilla.org/en-US/docs/Web/API/XMLHttpRequest) in
80
+ * global scope by default, and a `responseType` of `"json"`.
81
+ *
82
+ * Before sending the value passed to the `body` argument, it is automatically serialized
83
+ * based on the specified `responseType`. By default, a JavaScript object will be serialized
84
+ * to JSON. A `responseType` of `application/x-www-form-urlencoded` will flatten any provided
85
+ * dictionary object to a url-encoded string.
86
+ *
87
+ * @param url The URL to get the resource from
88
+ * @param body The content to send. The body is automatically serialized.
89
+ * @param headers Optional headers. Case-Insensitive.
90
+ */
91
+ put<T>(url: string, body?: any, headers?: Record<string, string>): Observable<AjaxResponse<T>>;
92
+ /**
93
+ * Performs an HTTP PATCH using the
94
+ * [XMLHttpRequest](https://developer.mozilla.org/en-US/docs/Web/API/XMLHttpRequest) in
95
+ * global scope by default, and a `responseType` of `"json"`.
96
+ *
97
+ * Before sending the value passed to the `body` argument, it is automatically serialized
98
+ * based on the specified `responseType`. By default, a JavaScript object will be serialized
99
+ * to JSON. A `responseType` of `application/x-www-form-urlencoded` will flatten any provided
100
+ * dictionary object to a url-encoded string.
101
+ *
102
+ * @param url The URL to get the resource from
103
+ * @param body The content to send. The body is automatically serialized.
104
+ * @param headers Optional headers. Case-Insensitive.
105
+ */
106
+ patch<T>(url: string, body?: any, headers?: Record<string, string>): Observable<AjaxResponse<T>>;
107
+ /**
108
+ * Performs an HTTP DELETE using the
109
+ * [XMLHttpRequest](https://developer.mozilla.org/en-US/docs/Web/API/XMLHttpRequest) in
110
+ * global scope by default, and a `responseType` of `"json"`.
111
+ *
112
+ * @param url The URL to get the resource from
113
+ * @param headers Optional headers. Case-Insensitive.
114
+ */
115
+ delete<T>(url: string, headers?: Record<string, string>): Observable<AjaxResponse<T>>;
116
+ /**
117
+ * Performs an HTTP GET using the
118
+ * [XMLHttpRequest](https://developer.mozilla.org/en-US/docs/Web/API/XMLHttpRequest) in
119
+ * global scope by default, and returns the hydrated JavaScript object from the
120
+ * response.
121
+ *
122
+ * @param url The URL to get the resource from
123
+ * @param headers Optional headers. Case-Insensitive.
124
+ */
125
+ getJSON<T>(url: string, headers?: Record<string, string>): Observable<T>;
126
+ }
127
+ /**
128
+ * There is an ajax operator on the Rx object.
129
+ *
130
+ * It creates an observable for an Ajax request with either a request object with
131
+ * url, headers, etc or a string for a URL.
132
+ *
133
+ * ## Examples
134
+ *
135
+ * Using `ajax()` to fetch the response object that is being returned from API
136
+ *
137
+ * ```ts
138
+ * import { ajax } from 'rxjs/ajax';
139
+ * import { map, catchError, of } from '../..';
140
+ *
141
+ * const obs$ = ajax('https://api.github.com/users?per_page=5').pipe(
142
+ * map(userResponse => console.log('users: ', userResponse)),
143
+ * catchError(error => {
144
+ * console.log('error: ', error);
145
+ * return of(error);
146
+ * })
147
+ * );
148
+ *
149
+ * obs$.subscribe({
150
+ * next: value => console.log(value),
151
+ * error: err => console.log(err)
152
+ * });
153
+ * ```
154
+ *
155
+ * Using `ajax.getJSON()` to fetch data from API
156
+ *
157
+ * ```ts
158
+ * import { ajax } from 'rxjs/ajax';
159
+ * import { map, catchError, of } from '../..';
160
+ *
161
+ * const obs$ = ajax.getJSON('https://api.github.com/users?per_page=5').pipe(
162
+ * map(userResponse => console.log('users: ', userResponse)),
163
+ * catchError(error => {
164
+ * console.log('error: ', error);
165
+ * return of(error);
166
+ * })
167
+ * );
168
+ *
169
+ * obs$.subscribe({
170
+ * next: value => console.log(value),
171
+ * error: err => console.log(err)
172
+ * });
173
+ * ```
174
+ *
175
+ * Using `ajax()` with object as argument and method POST with a two seconds delay
176
+ *
177
+ * ```ts
178
+ * import { ajax } from 'rxjs/ajax';
179
+ * import { map, catchError, of } from '../..';
180
+ *
181
+ * const users = ajax({
182
+ * url: 'https://httpbin.org/delay/2',
183
+ * method: 'POST',
184
+ * headers: {
185
+ * 'Content-Type': 'application/json',
186
+ * 'rxjs-custom-header': 'Rxjs'
187
+ * },
188
+ * body: {
189
+ * rxjs: 'Hello World!'
190
+ * }
191
+ * }).pipe(
192
+ * map(response => console.log('response: ', response)),
193
+ * catchError(error => {
194
+ * console.log('error: ', error);
195
+ * return of(error);
196
+ * })
197
+ * );
198
+ *
199
+ * users.subscribe({
200
+ * next: value => console.log(value),
201
+ * error: err => console.log(err)
202
+ * });
203
+ * ```
204
+ *
205
+ * Using `ajax()` to fetch. An error object that is being returned from the request
206
+ *
207
+ * ```ts
208
+ * import { ajax } from 'rxjs/ajax';
209
+ * import { map, catchError, of } from '../..';
210
+ *
211
+ * const obs$ = ajax('https://api.github.com/404').pipe(
212
+ * map(userResponse => console.log('users: ', userResponse)),
213
+ * catchError(error => {
214
+ * console.log('error: ', error);
215
+ * return of(error);
216
+ * })
217
+ * );
218
+ *
219
+ * obs$.subscribe({
220
+ * next: value => console.log(value),
221
+ * error: err => console.log(err)
222
+ * });
223
+ * ```
224
+ */
225
+ export declare const ajax: AjaxCreationMethod;
226
+ export declare function fromAjax<T>(init: AjaxConfig): Observable<AjaxResponse<T>>;
227
+ //# sourceMappingURL=ajax.d.ts.map
@@ -0,0 +1,65 @@
1
+ import { AjaxRequest } from './types';
2
+ /**
3
+ * A normalized AJAX error.
4
+ *
5
+ * @see {@link ajax}
6
+ */
7
+ export interface AjaxError extends Error {
8
+ /**
9
+ * The XHR instance associated with the error.
10
+ */
11
+ xhr: XMLHttpRequest;
12
+ /**
13
+ * The AjaxRequest associated with the error.
14
+ */
15
+ request: AjaxRequest;
16
+ /**
17
+ * The HTTP status code, if the request has completed. If not,
18
+ * it is set to `0`.
19
+ */
20
+ status: number;
21
+ /**
22
+ * The responseType (e.g. 'json', 'arraybuffer', or 'xml').
23
+ */
24
+ responseType: XMLHttpRequestResponseType;
25
+ /**
26
+ * The response data.
27
+ */
28
+ response: any;
29
+ }
30
+ export interface AjaxErrorCtor {
31
+ /**
32
+ * @deprecated Internal implementation detail. Do not construct error instances.
33
+ * Cannot be tagged as internal: https://github.com/ReactiveX/rxjs/issues/6269
34
+ */
35
+ new (message: string, xhr: XMLHttpRequest, request: AjaxRequest): AjaxError;
36
+ }
37
+ /**
38
+ * Thrown when an error occurs during an AJAX request.
39
+ * This is only exported because it is useful for checking to see if an error
40
+ * is an `instanceof AjaxError`. DO NOT create new instances of `AjaxError` with
41
+ * the constructor.
42
+ *
43
+ * @see {@link ajax}
44
+ */
45
+ export declare const AjaxError: AjaxErrorCtor;
46
+ export interface AjaxTimeoutError extends AjaxError {
47
+ }
48
+ export interface AjaxTimeoutErrorCtor {
49
+ /**
50
+ * @deprecated Internal implementation detail. Do not construct error instances.
51
+ * Cannot be tagged as internal: https://github.com/ReactiveX/rxjs/issues/6269
52
+ */
53
+ new (xhr: XMLHttpRequest, request: AjaxRequest): AjaxTimeoutError;
54
+ }
55
+ /**
56
+ * Thrown when an AJAX request times out. Not to be confused with {@link TimeoutError}.
57
+ *
58
+ * This is exported only because it is useful for checking to see if errors are an
59
+ * `instanceof AjaxTimeoutError`. DO NOT use the constructor to create an instance of
60
+ * this type.
61
+ *
62
+ * @see {@link ajax}
63
+ */
64
+ export declare const AjaxTimeoutError: AjaxTimeoutErrorCtor;
65
+ //# sourceMappingURL=errors.d.ts.map
@@ -0,0 +1,14 @@
1
+ /**
2
+ * Gets what should be in the `response` property of the XHR. However,
3
+ * since we still support the final versions of IE, we need to do a little
4
+ * checking here to make sure that we get the right thing back. Consequently,
5
+ * we need to do a JSON.parse() in here, which *could* throw if the response
6
+ * isn't valid JSON.
7
+ *
8
+ * This is used both in creating an AjaxResponse, and in creating certain errors
9
+ * that we throw, so we can give the user whatever was in the response property.
10
+ *
11
+ * @param xhr The XHR to examine the response of
12
+ */
13
+ export declare function getXHRResponse(xhr: XMLHttpRequest): any;
14
+ //# sourceMappingURL=getXHRResponse.d.ts.map