@banumeow/n8n-nodes-oracle-cloud 1.3.7 → 1.3.8

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 (371) hide show
  1. package/dist/package.json +1 -1
  2. package/dist/tsconfig.tsbuildinfo +1 -1
  3. package/node_modules/@langchain/core/node_modules/@types/retry/LICENSE +21 -0
  4. package/node_modules/@langchain/core/node_modules/@types/retry/README.md +16 -0
  5. package/node_modules/@langchain/core/node_modules/@types/retry/index.d.ts +151 -0
  6. package/node_modules/@langchain/core/node_modules/@types/retry/package.json +28 -0
  7. package/node_modules/@langchain/core/node_modules/@types/uuid/LICENSE +21 -0
  8. package/node_modules/@langchain/core/node_modules/@types/uuid/README.md +15 -0
  9. package/node_modules/@langchain/core/node_modules/@types/uuid/index.d.mts +19 -0
  10. package/node_modules/@langchain/core/node_modules/@types/uuid/index.d.ts +113 -0
  11. package/node_modules/@langchain/core/node_modules/@types/uuid/package.json +54 -0
  12. package/node_modules/@langchain/core/node_modules/base64-js/LICENSE +21 -0
  13. package/node_modules/@langchain/core/node_modules/base64-js/README.md +34 -0
  14. package/node_modules/@langchain/core/node_modules/base64-js/base64js.min.js +1 -0
  15. package/node_modules/@langchain/core/node_modules/base64-js/index.d.ts +3 -0
  16. package/node_modules/@langchain/core/node_modules/base64-js/index.js +150 -0
  17. package/node_modules/@langchain/core/node_modules/base64-js/package.json +47 -0
  18. package/node_modules/@langchain/core/node_modules/chalk/index.d.ts +415 -0
  19. package/node_modules/@langchain/core/node_modules/chalk/license +9 -0
  20. package/node_modules/@langchain/core/node_modules/chalk/node_modules/ansi-styles/index.d.ts +345 -0
  21. package/node_modules/@langchain/core/node_modules/chalk/node_modules/ansi-styles/index.js +163 -0
  22. package/node_modules/@langchain/core/node_modules/chalk/node_modules/ansi-styles/license +9 -0
  23. package/node_modules/@langchain/core/node_modules/chalk/node_modules/ansi-styles/package.json +56 -0
  24. package/node_modules/@langchain/core/node_modules/chalk/node_modules/ansi-styles/readme.md +152 -0
  25. package/node_modules/@langchain/core/node_modules/chalk/node_modules/supports-color/browser.js +5 -0
  26. package/node_modules/@langchain/core/node_modules/chalk/node_modules/supports-color/index.js +135 -0
  27. package/node_modules/@langchain/core/node_modules/chalk/node_modules/supports-color/license +9 -0
  28. package/node_modules/@langchain/core/node_modules/chalk/node_modules/supports-color/package.json +53 -0
  29. package/node_modules/@langchain/core/node_modules/chalk/node_modules/supports-color/readme.md +76 -0
  30. package/node_modules/@langchain/core/node_modules/chalk/package.json +68 -0
  31. package/node_modules/@langchain/core/node_modules/chalk/readme.md +341 -0
  32. package/node_modules/@langchain/core/node_modules/chalk/source/index.js +229 -0
  33. package/node_modules/@langchain/core/node_modules/chalk/source/templates.js +134 -0
  34. package/node_modules/@langchain/core/node_modules/chalk/source/util.js +39 -0
  35. package/node_modules/@langchain/core/node_modules/console-table-printer/LICENSE +21 -0
  36. package/node_modules/@langchain/core/node_modules/console-table-printer/README.md +192 -0
  37. package/node_modules/@langchain/core/node_modules/console-table-printer/dist/index.d.ts +4 -0
  38. package/node_modules/@langchain/core/node_modules/console-table-printer/dist/index.js +11 -0
  39. package/node_modules/@langchain/core/node_modules/console-table-printer/dist/src/console-table-printer.d.ts +14 -0
  40. package/node_modules/@langchain/core/node_modules/console-table-printer/dist/src/console-table-printer.js +36 -0
  41. package/node_modules/@langchain/core/node_modules/console-table-printer/dist/src/internalTable/input-converter.d.ts +6 -0
  42. package/node_modules/@langchain/core/node_modules/console-table-printer/dist/src/internalTable/input-converter.js +20 -0
  43. package/node_modules/@langchain/core/node_modules/console-table-printer/dist/src/internalTable/internal-table-printer.d.ts +6 -0
  44. package/node_modules/@langchain/core/node_modules/console-table-printer/dist/src/internalTable/internal-table-printer.js +142 -0
  45. package/node_modules/@langchain/core/node_modules/console-table-printer/dist/src/internalTable/internal-table.d.ts +31 -0
  46. package/node_modules/@langchain/core/node_modules/console-table-printer/dist/src/internalTable/internal-table.js +100 -0
  47. package/node_modules/@langchain/core/node_modules/console-table-printer/dist/src/internalTable/table-pre-processors.d.ts +3 -0
  48. package/node_modules/@langchain/core/node_modules/console-table-printer/dist/src/internalTable/table-pre-processors.js +50 -0
  49. package/node_modules/@langchain/core/node_modules/console-table-printer/dist/src/models/common.d.ts +14 -0
  50. package/node_modules/@langchain/core/node_modules/console-table-printer/dist/src/models/common.js +2 -0
  51. package/node_modules/@langchain/core/node_modules/console-table-printer/dist/src/models/external-table.d.ts +99 -0
  52. package/node_modules/@langchain/core/node_modules/console-table-printer/dist/src/models/external-table.js +2 -0
  53. package/node_modules/@langchain/core/node_modules/console-table-printer/dist/src/models/internal-table.d.ts +24 -0
  54. package/node_modules/@langchain/core/node_modules/console-table-printer/dist/src/models/internal-table.js +2 -0
  55. package/node_modules/@langchain/core/node_modules/console-table-printer/dist/src/utils/colored-console-line.d.ts +12 -0
  56. package/node_modules/@langchain/core/node_modules/console-table-printer/dist/src/utils/colored-console-line.js +31 -0
  57. package/node_modules/@langchain/core/node_modules/console-table-printer/dist/src/utils/console-utils.d.ts +3 -0
  58. package/node_modules/@langchain/core/node_modules/console-table-printer/dist/src/utils/console-utils.js +23 -0
  59. package/node_modules/@langchain/core/node_modules/console-table-printer/dist/src/utils/string-utils.d.ts +4 -0
  60. package/node_modules/@langchain/core/node_modules/console-table-printer/dist/src/utils/string-utils.js +68 -0
  61. package/node_modules/@langchain/core/node_modules/console-table-printer/dist/src/utils/table-constants.d.ts +11 -0
  62. package/node_modules/@langchain/core/node_modules/console-table-printer/dist/src/utils/table-constants.js +55 -0
  63. package/node_modules/@langchain/core/node_modules/console-table-printer/dist/src/utils/table-helpers.d.ts +29 -0
  64. package/node_modules/@langchain/core/node_modules/console-table-printer/dist/src/utils/table-helpers.js +101 -0
  65. package/node_modules/@langchain/core/node_modules/console-table-printer/package.json +50 -0
  66. package/node_modules/@langchain/core/node_modules/eventemitter3/LICENSE +21 -0
  67. package/node_modules/@langchain/core/node_modules/eventemitter3/README.md +94 -0
  68. package/node_modules/@langchain/core/node_modules/eventemitter3/index.d.ts +134 -0
  69. package/node_modules/@langchain/core/node_modules/eventemitter3/index.js +336 -0
  70. package/node_modules/@langchain/core/node_modules/eventemitter3/package.json +56 -0
  71. package/node_modules/@langchain/core/node_modules/eventemitter3/umd/eventemitter3.js +340 -0
  72. package/node_modules/@langchain/core/node_modules/eventemitter3/umd/eventemitter3.min.js +1 -0
  73. package/node_modules/@langchain/core/node_modules/eventemitter3/umd/eventemitter3.min.js.map +1 -0
  74. package/node_modules/@langchain/core/node_modules/has-flag/index.d.ts +39 -0
  75. package/node_modules/@langchain/core/node_modules/has-flag/index.js +8 -0
  76. package/node_modules/@langchain/core/node_modules/has-flag/license +9 -0
  77. package/node_modules/@langchain/core/node_modules/has-flag/package.json +46 -0
  78. package/node_modules/@langchain/core/node_modules/has-flag/readme.md +89 -0
  79. package/node_modules/@langchain/core/node_modules/p-finally/index.js +15 -0
  80. package/node_modules/@langchain/core/node_modules/p-finally/license +21 -0
  81. package/node_modules/@langchain/core/node_modules/p-finally/package.json +42 -0
  82. package/node_modules/@langchain/core/node_modules/p-finally/readme.md +47 -0
  83. package/node_modules/@langchain/core/node_modules/p-timeout/index.d.ts +72 -0
  84. package/node_modules/@langchain/core/node_modules/p-timeout/index.js +57 -0
  85. package/node_modules/@langchain/core/node_modules/p-timeout/license +9 -0
  86. package/node_modules/@langchain/core/node_modules/p-timeout/package.json +45 -0
  87. package/node_modules/@langchain/core/node_modules/p-timeout/readme.md +87 -0
  88. package/node_modules/@langchain/core/node_modules/retry/License +21 -0
  89. package/node_modules/@langchain/core/node_modules/retry/README.md +227 -0
  90. package/node_modules/@langchain/core/node_modules/retry/example/dns.js +31 -0
  91. package/node_modules/@langchain/core/node_modules/retry/example/stop.js +40 -0
  92. package/node_modules/@langchain/core/node_modules/retry/index.js +1 -0
  93. package/node_modules/@langchain/core/node_modules/retry/lib/retry.js +100 -0
  94. package/node_modules/@langchain/core/node_modules/retry/lib/retry_operation.js +162 -0
  95. package/node_modules/@langchain/core/node_modules/retry/package.json +36 -0
  96. package/node_modules/@langchain/core/node_modules/semver/LICENSE +15 -0
  97. package/node_modules/@langchain/core/node_modules/semver/README.md +664 -0
  98. package/node_modules/@langchain/core/node_modules/semver/bin/semver.js +191 -0
  99. package/node_modules/@langchain/core/node_modules/semver/classes/comparator.js +143 -0
  100. package/node_modules/@langchain/core/node_modules/semver/classes/index.js +7 -0
  101. package/node_modules/@langchain/core/node_modules/semver/classes/range.js +557 -0
  102. package/node_modules/@langchain/core/node_modules/semver/classes/semver.js +333 -0
  103. package/node_modules/@langchain/core/node_modules/semver/functions/clean.js +8 -0
  104. package/node_modules/@langchain/core/node_modules/semver/functions/cmp.js +54 -0
  105. package/node_modules/@langchain/core/node_modules/semver/functions/coerce.js +62 -0
  106. package/node_modules/@langchain/core/node_modules/semver/functions/compare-build.js +9 -0
  107. package/node_modules/@langchain/core/node_modules/semver/functions/compare-loose.js +5 -0
  108. package/node_modules/@langchain/core/node_modules/semver/functions/compare.js +7 -0
  109. package/node_modules/@langchain/core/node_modules/semver/functions/diff.js +60 -0
  110. package/node_modules/@langchain/core/node_modules/semver/functions/eq.js +5 -0
  111. package/node_modules/@langchain/core/node_modules/semver/functions/gt.js +5 -0
  112. package/node_modules/@langchain/core/node_modules/semver/functions/gte.js +5 -0
  113. package/node_modules/@langchain/core/node_modules/semver/functions/inc.js +21 -0
  114. package/node_modules/@langchain/core/node_modules/semver/functions/lt.js +5 -0
  115. package/node_modules/@langchain/core/node_modules/semver/functions/lte.js +5 -0
  116. package/node_modules/@langchain/core/node_modules/semver/functions/major.js +5 -0
  117. package/node_modules/@langchain/core/node_modules/semver/functions/minor.js +5 -0
  118. package/node_modules/@langchain/core/node_modules/semver/functions/neq.js +5 -0
  119. package/node_modules/@langchain/core/node_modules/semver/functions/parse.js +18 -0
  120. package/node_modules/@langchain/core/node_modules/semver/functions/patch.js +5 -0
  121. package/node_modules/@langchain/core/node_modules/semver/functions/prerelease.js +8 -0
  122. package/node_modules/@langchain/core/node_modules/semver/functions/rcompare.js +5 -0
  123. package/node_modules/@langchain/core/node_modules/semver/functions/rsort.js +5 -0
  124. package/node_modules/@langchain/core/node_modules/semver/functions/satisfies.js +12 -0
  125. package/node_modules/@langchain/core/node_modules/semver/functions/sort.js +5 -0
  126. package/node_modules/@langchain/core/node_modules/semver/functions/valid.js +8 -0
  127. package/node_modules/@langchain/core/node_modules/semver/index.js +91 -0
  128. package/node_modules/@langchain/core/node_modules/semver/internal/constants.js +37 -0
  129. package/node_modules/@langchain/core/node_modules/semver/internal/debug.js +11 -0
  130. package/node_modules/@langchain/core/node_modules/semver/internal/identifiers.js +29 -0
  131. package/node_modules/@langchain/core/node_modules/semver/internal/lrucache.js +42 -0
  132. package/node_modules/@langchain/core/node_modules/semver/internal/parse-options.js +17 -0
  133. package/node_modules/@langchain/core/node_modules/semver/internal/re.js +223 -0
  134. package/node_modules/@langchain/core/node_modules/semver/package.json +78 -0
  135. package/node_modules/@langchain/core/node_modules/semver/preload.js +4 -0
  136. package/node_modules/@langchain/core/node_modules/semver/range.bnf +16 -0
  137. package/node_modules/@langchain/core/node_modules/semver/ranges/gtr.js +6 -0
  138. package/node_modules/@langchain/core/node_modules/semver/ranges/intersects.js +9 -0
  139. package/node_modules/@langchain/core/node_modules/semver/ranges/ltr.js +6 -0
  140. package/node_modules/@langchain/core/node_modules/semver/ranges/max-satisfying.js +27 -0
  141. package/node_modules/@langchain/core/node_modules/semver/ranges/min-satisfying.js +26 -0
  142. package/node_modules/@langchain/core/node_modules/semver/ranges/min-version.js +63 -0
  143. package/node_modules/@langchain/core/node_modules/semver/ranges/outside.js +82 -0
  144. package/node_modules/@langchain/core/node_modules/semver/ranges/simplify.js +49 -0
  145. package/node_modules/@langchain/core/node_modules/semver/ranges/subset.js +249 -0
  146. package/node_modules/@langchain/core/node_modules/semver/ranges/to-comparators.js +10 -0
  147. package/node_modules/@langchain/core/node_modules/semver/ranges/valid.js +13 -0
  148. package/node_modules/@langchain/core/node_modules/simple-wcswidth/LICENSE +21 -0
  149. package/node_modules/@langchain/core/node_modules/simple-wcswidth/README.md +89 -0
  150. package/node_modules/@langchain/core/node_modules/simple-wcswidth/dist/index.js +10 -0
  151. package/node_modules/@langchain/core/node_modules/simple-wcswidth/dist/src/binary-search.js +24 -0
  152. package/node_modules/@langchain/core/node_modules/simple-wcswidth/dist/src/models.js +2 -0
  153. package/node_modules/@langchain/core/node_modules/simple-wcswidth/dist/src/non-spacing-chars.js +149 -0
  154. package/node_modules/@langchain/core/node_modules/simple-wcswidth/dist/src/wcswidth.js +20 -0
  155. package/node_modules/@langchain/core/node_modules/simple-wcswidth/dist/src/wcwidth.js +67 -0
  156. package/node_modules/@langchain/core/node_modules/simple-wcswidth/index.d.ts +20 -0
  157. package/node_modules/@langchain/core/node_modules/simple-wcswidth/package.json +43 -0
  158. package/node_modules/@langchain/textsplitters/node_modules/@langchain/core/node_modules/@types/retry/LICENSE +21 -0
  159. package/node_modules/@langchain/textsplitters/node_modules/@langchain/core/node_modules/@types/retry/README.md +16 -0
  160. package/node_modules/@langchain/textsplitters/node_modules/@langchain/core/node_modules/@types/retry/index.d.ts +151 -0
  161. package/node_modules/@langchain/textsplitters/node_modules/@langchain/core/node_modules/@types/retry/package.json +28 -0
  162. package/node_modules/@langchain/textsplitters/node_modules/@langchain/core/node_modules/@types/uuid/LICENSE +21 -0
  163. package/node_modules/@langchain/textsplitters/node_modules/@langchain/core/node_modules/@types/uuid/README.md +15 -0
  164. package/node_modules/@langchain/textsplitters/node_modules/@langchain/core/node_modules/@types/uuid/index.d.mts +19 -0
  165. package/node_modules/@langchain/textsplitters/node_modules/@langchain/core/node_modules/@types/uuid/index.d.ts +113 -0
  166. package/node_modules/@langchain/textsplitters/node_modules/@langchain/core/node_modules/@types/uuid/package.json +54 -0
  167. package/node_modules/@langchain/textsplitters/node_modules/@langchain/core/node_modules/base64-js/LICENSE +21 -0
  168. package/node_modules/@langchain/textsplitters/node_modules/@langchain/core/node_modules/base64-js/README.md +34 -0
  169. package/node_modules/@langchain/textsplitters/node_modules/@langchain/core/node_modules/base64-js/base64js.min.js +1 -0
  170. package/node_modules/@langchain/textsplitters/node_modules/@langchain/core/node_modules/base64-js/index.d.ts +3 -0
  171. package/node_modules/@langchain/textsplitters/node_modules/@langchain/core/node_modules/base64-js/index.js +150 -0
  172. package/node_modules/@langchain/textsplitters/node_modules/@langchain/core/node_modules/base64-js/package.json +47 -0
  173. package/node_modules/@langchain/textsplitters/node_modules/@langchain/core/node_modules/chalk/index.d.ts +415 -0
  174. package/node_modules/@langchain/textsplitters/node_modules/@langchain/core/node_modules/chalk/license +9 -0
  175. package/node_modules/@langchain/textsplitters/node_modules/@langchain/core/node_modules/chalk/node_modules/ansi-styles/index.d.ts +345 -0
  176. package/node_modules/@langchain/textsplitters/node_modules/@langchain/core/node_modules/chalk/node_modules/ansi-styles/index.js +163 -0
  177. package/node_modules/@langchain/textsplitters/node_modules/@langchain/core/node_modules/chalk/node_modules/ansi-styles/license +9 -0
  178. package/node_modules/@langchain/textsplitters/node_modules/@langchain/core/node_modules/chalk/node_modules/ansi-styles/package.json +56 -0
  179. package/node_modules/@langchain/textsplitters/node_modules/@langchain/core/node_modules/chalk/node_modules/ansi-styles/readme.md +152 -0
  180. package/node_modules/@langchain/textsplitters/node_modules/@langchain/core/node_modules/chalk/node_modules/supports-color/browser.js +5 -0
  181. package/node_modules/@langchain/textsplitters/node_modules/@langchain/core/node_modules/chalk/node_modules/supports-color/index.js +135 -0
  182. package/node_modules/@langchain/textsplitters/node_modules/@langchain/core/node_modules/chalk/node_modules/supports-color/license +9 -0
  183. package/node_modules/@langchain/textsplitters/node_modules/@langchain/core/node_modules/chalk/node_modules/supports-color/package.json +53 -0
  184. package/node_modules/@langchain/textsplitters/node_modules/@langchain/core/node_modules/chalk/node_modules/supports-color/readme.md +76 -0
  185. package/node_modules/@langchain/textsplitters/node_modules/@langchain/core/node_modules/chalk/package.json +68 -0
  186. package/node_modules/@langchain/textsplitters/node_modules/@langchain/core/node_modules/chalk/readme.md +341 -0
  187. package/node_modules/@langchain/textsplitters/node_modules/@langchain/core/node_modules/chalk/source/index.js +229 -0
  188. package/node_modules/@langchain/textsplitters/node_modules/@langchain/core/node_modules/chalk/source/templates.js +134 -0
  189. package/node_modules/@langchain/textsplitters/node_modules/@langchain/core/node_modules/chalk/source/util.js +39 -0
  190. package/node_modules/@langchain/textsplitters/node_modules/@langchain/core/node_modules/console-table-printer/LICENSE +21 -0
  191. package/node_modules/@langchain/textsplitters/node_modules/@langchain/core/node_modules/console-table-printer/README.md +192 -0
  192. package/node_modules/@langchain/textsplitters/node_modules/@langchain/core/node_modules/console-table-printer/dist/index.d.ts +4 -0
  193. package/node_modules/@langchain/textsplitters/node_modules/@langchain/core/node_modules/console-table-printer/dist/index.js +11 -0
  194. package/node_modules/@langchain/textsplitters/node_modules/@langchain/core/node_modules/console-table-printer/dist/src/console-table-printer.d.ts +14 -0
  195. package/node_modules/@langchain/textsplitters/node_modules/@langchain/core/node_modules/console-table-printer/dist/src/console-table-printer.js +36 -0
  196. package/node_modules/@langchain/textsplitters/node_modules/@langchain/core/node_modules/console-table-printer/dist/src/internalTable/input-converter.d.ts +6 -0
  197. package/node_modules/@langchain/textsplitters/node_modules/@langchain/core/node_modules/console-table-printer/dist/src/internalTable/input-converter.js +20 -0
  198. package/node_modules/@langchain/textsplitters/node_modules/@langchain/core/node_modules/console-table-printer/dist/src/internalTable/internal-table-printer.d.ts +6 -0
  199. package/node_modules/@langchain/textsplitters/node_modules/@langchain/core/node_modules/console-table-printer/dist/src/internalTable/internal-table-printer.js +142 -0
  200. package/node_modules/@langchain/textsplitters/node_modules/@langchain/core/node_modules/console-table-printer/dist/src/internalTable/internal-table.d.ts +31 -0
  201. package/node_modules/@langchain/textsplitters/node_modules/@langchain/core/node_modules/console-table-printer/dist/src/internalTable/internal-table.js +100 -0
  202. package/node_modules/@langchain/textsplitters/node_modules/@langchain/core/node_modules/console-table-printer/dist/src/internalTable/table-pre-processors.d.ts +3 -0
  203. package/node_modules/@langchain/textsplitters/node_modules/@langchain/core/node_modules/console-table-printer/dist/src/internalTable/table-pre-processors.js +50 -0
  204. package/node_modules/@langchain/textsplitters/node_modules/@langchain/core/node_modules/console-table-printer/dist/src/models/common.d.ts +14 -0
  205. package/node_modules/@langchain/textsplitters/node_modules/@langchain/core/node_modules/console-table-printer/dist/src/models/common.js +2 -0
  206. package/node_modules/@langchain/textsplitters/node_modules/@langchain/core/node_modules/console-table-printer/dist/src/models/external-table.d.ts +99 -0
  207. package/node_modules/@langchain/textsplitters/node_modules/@langchain/core/node_modules/console-table-printer/dist/src/models/external-table.js +2 -0
  208. package/node_modules/@langchain/textsplitters/node_modules/@langchain/core/node_modules/console-table-printer/dist/src/models/internal-table.d.ts +24 -0
  209. package/node_modules/@langchain/textsplitters/node_modules/@langchain/core/node_modules/console-table-printer/dist/src/models/internal-table.js +2 -0
  210. package/node_modules/@langchain/textsplitters/node_modules/@langchain/core/node_modules/console-table-printer/dist/src/utils/colored-console-line.d.ts +12 -0
  211. package/node_modules/@langchain/textsplitters/node_modules/@langchain/core/node_modules/console-table-printer/dist/src/utils/colored-console-line.js +31 -0
  212. package/node_modules/@langchain/textsplitters/node_modules/@langchain/core/node_modules/console-table-printer/dist/src/utils/console-utils.d.ts +3 -0
  213. package/node_modules/@langchain/textsplitters/node_modules/@langchain/core/node_modules/console-table-printer/dist/src/utils/console-utils.js +23 -0
  214. package/node_modules/@langchain/textsplitters/node_modules/@langchain/core/node_modules/console-table-printer/dist/src/utils/string-utils.d.ts +4 -0
  215. package/node_modules/@langchain/textsplitters/node_modules/@langchain/core/node_modules/console-table-printer/dist/src/utils/string-utils.js +68 -0
  216. package/node_modules/@langchain/textsplitters/node_modules/@langchain/core/node_modules/console-table-printer/dist/src/utils/table-constants.d.ts +11 -0
  217. package/node_modules/@langchain/textsplitters/node_modules/@langchain/core/node_modules/console-table-printer/dist/src/utils/table-constants.js +55 -0
  218. package/node_modules/@langchain/textsplitters/node_modules/@langchain/core/node_modules/console-table-printer/dist/src/utils/table-helpers.d.ts +29 -0
  219. package/node_modules/@langchain/textsplitters/node_modules/@langchain/core/node_modules/console-table-printer/dist/src/utils/table-helpers.js +101 -0
  220. package/node_modules/@langchain/textsplitters/node_modules/@langchain/core/node_modules/console-table-printer/package.json +50 -0
  221. package/node_modules/@langchain/textsplitters/node_modules/@langchain/core/node_modules/eventemitter3/LICENSE +21 -0
  222. package/node_modules/@langchain/textsplitters/node_modules/@langchain/core/node_modules/eventemitter3/README.md +94 -0
  223. package/node_modules/@langchain/textsplitters/node_modules/@langchain/core/node_modules/eventemitter3/index.d.ts +134 -0
  224. package/node_modules/@langchain/textsplitters/node_modules/@langchain/core/node_modules/eventemitter3/index.js +336 -0
  225. package/node_modules/@langchain/textsplitters/node_modules/@langchain/core/node_modules/eventemitter3/package.json +56 -0
  226. package/node_modules/@langchain/textsplitters/node_modules/@langchain/core/node_modules/eventemitter3/umd/eventemitter3.js +340 -0
  227. package/node_modules/@langchain/textsplitters/node_modules/@langchain/core/node_modules/eventemitter3/umd/eventemitter3.min.js +1 -0
  228. package/node_modules/@langchain/textsplitters/node_modules/@langchain/core/node_modules/eventemitter3/umd/eventemitter3.min.js.map +1 -0
  229. package/node_modules/@langchain/textsplitters/node_modules/@langchain/core/node_modules/has-flag/index.d.ts +39 -0
  230. package/node_modules/@langchain/textsplitters/node_modules/@langchain/core/node_modules/has-flag/index.js +8 -0
  231. package/node_modules/@langchain/textsplitters/node_modules/@langchain/core/node_modules/has-flag/license +9 -0
  232. package/node_modules/@langchain/textsplitters/node_modules/@langchain/core/node_modules/has-flag/package.json +46 -0
  233. package/node_modules/@langchain/textsplitters/node_modules/@langchain/core/node_modules/has-flag/readme.md +89 -0
  234. package/node_modules/@langchain/textsplitters/node_modules/@langchain/core/node_modules/p-finally/index.js +15 -0
  235. package/node_modules/@langchain/textsplitters/node_modules/@langchain/core/node_modules/p-finally/license +21 -0
  236. package/node_modules/@langchain/textsplitters/node_modules/@langchain/core/node_modules/p-finally/package.json +42 -0
  237. package/node_modules/@langchain/textsplitters/node_modules/@langchain/core/node_modules/p-finally/readme.md +47 -0
  238. package/node_modules/@langchain/textsplitters/node_modules/@langchain/core/node_modules/p-timeout/index.d.ts +72 -0
  239. package/node_modules/@langchain/textsplitters/node_modules/@langchain/core/node_modules/p-timeout/index.js +57 -0
  240. package/node_modules/@langchain/textsplitters/node_modules/@langchain/core/node_modules/p-timeout/license +9 -0
  241. package/node_modules/@langchain/textsplitters/node_modules/@langchain/core/node_modules/p-timeout/package.json +45 -0
  242. package/node_modules/@langchain/textsplitters/node_modules/@langchain/core/node_modules/p-timeout/readme.md +87 -0
  243. package/node_modules/@langchain/textsplitters/node_modules/@langchain/core/node_modules/retry/License +21 -0
  244. package/node_modules/@langchain/textsplitters/node_modules/@langchain/core/node_modules/retry/README.md +227 -0
  245. package/node_modules/@langchain/textsplitters/node_modules/@langchain/core/node_modules/retry/example/dns.js +31 -0
  246. package/node_modules/@langchain/textsplitters/node_modules/@langchain/core/node_modules/retry/example/stop.js +40 -0
  247. package/node_modules/@langchain/textsplitters/node_modules/@langchain/core/node_modules/retry/index.js +1 -0
  248. package/node_modules/@langchain/textsplitters/node_modules/@langchain/core/node_modules/retry/lib/retry.js +100 -0
  249. package/node_modules/@langchain/textsplitters/node_modules/@langchain/core/node_modules/retry/lib/retry_operation.js +162 -0
  250. package/node_modules/@langchain/textsplitters/node_modules/@langchain/core/node_modules/retry/package.json +36 -0
  251. package/node_modules/@langchain/textsplitters/node_modules/@langchain/core/node_modules/semver/LICENSE +15 -0
  252. package/node_modules/@langchain/textsplitters/node_modules/@langchain/core/node_modules/semver/README.md +664 -0
  253. package/node_modules/@langchain/textsplitters/node_modules/@langchain/core/node_modules/semver/bin/semver.js +191 -0
  254. package/node_modules/@langchain/textsplitters/node_modules/@langchain/core/node_modules/semver/classes/comparator.js +143 -0
  255. package/node_modules/@langchain/textsplitters/node_modules/@langchain/core/node_modules/semver/classes/index.js +7 -0
  256. package/node_modules/@langchain/textsplitters/node_modules/@langchain/core/node_modules/semver/classes/range.js +557 -0
  257. package/node_modules/@langchain/textsplitters/node_modules/@langchain/core/node_modules/semver/classes/semver.js +333 -0
  258. package/node_modules/@langchain/textsplitters/node_modules/@langchain/core/node_modules/semver/functions/clean.js +8 -0
  259. package/node_modules/@langchain/textsplitters/node_modules/@langchain/core/node_modules/semver/functions/cmp.js +54 -0
  260. package/node_modules/@langchain/textsplitters/node_modules/@langchain/core/node_modules/semver/functions/coerce.js +62 -0
  261. package/node_modules/@langchain/textsplitters/node_modules/@langchain/core/node_modules/semver/functions/compare-build.js +9 -0
  262. package/node_modules/@langchain/textsplitters/node_modules/@langchain/core/node_modules/semver/functions/compare-loose.js +5 -0
  263. package/node_modules/@langchain/textsplitters/node_modules/@langchain/core/node_modules/semver/functions/compare.js +7 -0
  264. package/node_modules/@langchain/textsplitters/node_modules/@langchain/core/node_modules/semver/functions/diff.js +60 -0
  265. package/node_modules/@langchain/textsplitters/node_modules/@langchain/core/node_modules/semver/functions/eq.js +5 -0
  266. package/node_modules/@langchain/textsplitters/node_modules/@langchain/core/node_modules/semver/functions/gt.js +5 -0
  267. package/node_modules/@langchain/textsplitters/node_modules/@langchain/core/node_modules/semver/functions/gte.js +5 -0
  268. package/node_modules/@langchain/textsplitters/node_modules/@langchain/core/node_modules/semver/functions/inc.js +21 -0
  269. package/node_modules/@langchain/textsplitters/node_modules/@langchain/core/node_modules/semver/functions/lt.js +5 -0
  270. package/node_modules/@langchain/textsplitters/node_modules/@langchain/core/node_modules/semver/functions/lte.js +5 -0
  271. package/node_modules/@langchain/textsplitters/node_modules/@langchain/core/node_modules/semver/functions/major.js +5 -0
  272. package/node_modules/@langchain/textsplitters/node_modules/@langchain/core/node_modules/semver/functions/minor.js +5 -0
  273. package/node_modules/@langchain/textsplitters/node_modules/@langchain/core/node_modules/semver/functions/neq.js +5 -0
  274. package/node_modules/@langchain/textsplitters/node_modules/@langchain/core/node_modules/semver/functions/parse.js +18 -0
  275. package/node_modules/@langchain/textsplitters/node_modules/@langchain/core/node_modules/semver/functions/patch.js +5 -0
  276. package/node_modules/@langchain/textsplitters/node_modules/@langchain/core/node_modules/semver/functions/prerelease.js +8 -0
  277. package/node_modules/@langchain/textsplitters/node_modules/@langchain/core/node_modules/semver/functions/rcompare.js +5 -0
  278. package/node_modules/@langchain/textsplitters/node_modules/@langchain/core/node_modules/semver/functions/rsort.js +5 -0
  279. package/node_modules/@langchain/textsplitters/node_modules/@langchain/core/node_modules/semver/functions/satisfies.js +12 -0
  280. package/node_modules/@langchain/textsplitters/node_modules/@langchain/core/node_modules/semver/functions/sort.js +5 -0
  281. package/node_modules/@langchain/textsplitters/node_modules/@langchain/core/node_modules/semver/functions/valid.js +8 -0
  282. package/node_modules/@langchain/textsplitters/node_modules/@langchain/core/node_modules/semver/index.js +91 -0
  283. package/node_modules/@langchain/textsplitters/node_modules/@langchain/core/node_modules/semver/internal/constants.js +37 -0
  284. package/node_modules/@langchain/textsplitters/node_modules/@langchain/core/node_modules/semver/internal/debug.js +11 -0
  285. package/node_modules/@langchain/textsplitters/node_modules/@langchain/core/node_modules/semver/internal/identifiers.js +29 -0
  286. package/node_modules/@langchain/textsplitters/node_modules/@langchain/core/node_modules/semver/internal/lrucache.js +42 -0
  287. package/node_modules/@langchain/textsplitters/node_modules/@langchain/core/node_modules/semver/internal/parse-options.js +17 -0
  288. package/node_modules/@langchain/textsplitters/node_modules/@langchain/core/node_modules/semver/internal/re.js +223 -0
  289. package/node_modules/@langchain/textsplitters/node_modules/@langchain/core/node_modules/semver/package.json +78 -0
  290. package/node_modules/@langchain/textsplitters/node_modules/@langchain/core/node_modules/semver/preload.js +4 -0
  291. package/node_modules/@langchain/textsplitters/node_modules/@langchain/core/node_modules/semver/range.bnf +16 -0
  292. package/node_modules/@langchain/textsplitters/node_modules/@langchain/core/node_modules/semver/ranges/gtr.js +6 -0
  293. package/node_modules/@langchain/textsplitters/node_modules/@langchain/core/node_modules/semver/ranges/intersects.js +9 -0
  294. package/node_modules/@langchain/textsplitters/node_modules/@langchain/core/node_modules/semver/ranges/ltr.js +6 -0
  295. package/node_modules/@langchain/textsplitters/node_modules/@langchain/core/node_modules/semver/ranges/max-satisfying.js +27 -0
  296. package/node_modules/@langchain/textsplitters/node_modules/@langchain/core/node_modules/semver/ranges/min-satisfying.js +26 -0
  297. package/node_modules/@langchain/textsplitters/node_modules/@langchain/core/node_modules/semver/ranges/min-version.js +63 -0
  298. package/node_modules/@langchain/textsplitters/node_modules/@langchain/core/node_modules/semver/ranges/outside.js +82 -0
  299. package/node_modules/@langchain/textsplitters/node_modules/@langchain/core/node_modules/semver/ranges/simplify.js +49 -0
  300. package/node_modules/@langchain/textsplitters/node_modules/@langchain/core/node_modules/semver/ranges/subset.js +249 -0
  301. package/node_modules/@langchain/textsplitters/node_modules/@langchain/core/node_modules/semver/ranges/to-comparators.js +10 -0
  302. package/node_modules/@langchain/textsplitters/node_modules/@langchain/core/node_modules/semver/ranges/valid.js +13 -0
  303. package/node_modules/@langchain/textsplitters/node_modules/@langchain/core/node_modules/simple-wcswidth/LICENSE +21 -0
  304. package/node_modules/@langchain/textsplitters/node_modules/@langchain/core/node_modules/simple-wcswidth/README.md +89 -0
  305. package/node_modules/@langchain/textsplitters/node_modules/@langchain/core/node_modules/simple-wcswidth/dist/index.js +10 -0
  306. package/node_modules/@langchain/textsplitters/node_modules/@langchain/core/node_modules/simple-wcswidth/dist/src/binary-search.js +24 -0
  307. package/node_modules/@langchain/textsplitters/node_modules/@langchain/core/node_modules/simple-wcswidth/dist/src/models.js +2 -0
  308. package/node_modules/@langchain/textsplitters/node_modules/@langchain/core/node_modules/simple-wcswidth/dist/src/non-spacing-chars.js +149 -0
  309. package/node_modules/@langchain/textsplitters/node_modules/@langchain/core/node_modules/simple-wcswidth/dist/src/wcswidth.js +20 -0
  310. package/node_modules/@langchain/textsplitters/node_modules/@langchain/core/node_modules/simple-wcswidth/dist/src/wcwidth.js +67 -0
  311. package/node_modules/@langchain/textsplitters/node_modules/@langchain/core/node_modules/simple-wcswidth/index.d.ts +20 -0
  312. package/node_modules/@langchain/textsplitters/node_modules/@langchain/core/node_modules/simple-wcswidth/package.json +43 -0
  313. package/package.json +1 -1
  314. /package/node_modules/{@cfworker → @langchain/core/node_modules/@cfworker}/json-schema/README.md +0 -0
  315. /package/node_modules/{@cfworker → @langchain/core/node_modules/@cfworker}/json-schema/dist/commonjs/deep-compare-strict.d.ts +0 -0
  316. /package/node_modules/{@cfworker → @langchain/core/node_modules/@cfworker}/json-schema/dist/commonjs/deep-compare-strict.js +0 -0
  317. /package/node_modules/{@cfworker → @langchain/core/node_modules/@cfworker}/json-schema/dist/commonjs/dereference.d.ts +0 -0
  318. /package/node_modules/{@cfworker → @langchain/core/node_modules/@cfworker}/json-schema/dist/commonjs/dereference.js +0 -0
  319. /package/node_modules/{@cfworker → @langchain/core/node_modules/@cfworker}/json-schema/dist/commonjs/format.d.ts +0 -0
  320. /package/node_modules/{@cfworker → @langchain/core/node_modules/@cfworker}/json-schema/dist/commonjs/format.js +0 -0
  321. /package/node_modules/{@cfworker → @langchain/core/node_modules/@cfworker}/json-schema/dist/commonjs/index.d.ts +0 -0
  322. /package/node_modules/{@cfworker → @langchain/core/node_modules/@cfworker}/json-schema/dist/commonjs/index.js +0 -0
  323. /package/node_modules/{@cfworker → @langchain/core/node_modules/@cfworker}/json-schema/dist/commonjs/package.json +0 -0
  324. /package/node_modules/{@cfworker → @langchain/core/node_modules/@cfworker}/json-schema/dist/commonjs/pointer.d.ts +0 -0
  325. /package/node_modules/{@cfworker → @langchain/core/node_modules/@cfworker}/json-schema/dist/commonjs/pointer.js +0 -0
  326. /package/node_modules/{@cfworker → @langchain/core/node_modules/@cfworker}/json-schema/dist/commonjs/types.d.ts +0 -0
  327. /package/node_modules/{@cfworker → @langchain/core/node_modules/@cfworker}/json-schema/dist/commonjs/types.js +0 -0
  328. /package/node_modules/{@cfworker → @langchain/core/node_modules/@cfworker}/json-schema/dist/commonjs/ucs2-length.d.ts +0 -0
  329. /package/node_modules/{@cfworker → @langchain/core/node_modules/@cfworker}/json-schema/dist/commonjs/ucs2-length.js +0 -0
  330. /package/node_modules/{@cfworker → @langchain/core/node_modules/@cfworker}/json-schema/dist/commonjs/validate.d.ts +0 -0
  331. /package/node_modules/{@cfworker → @langchain/core/node_modules/@cfworker}/json-schema/dist/commonjs/validate.js +0 -0
  332. /package/node_modules/{@cfworker → @langchain/core/node_modules/@cfworker}/json-schema/dist/commonjs/validator.d.ts +0 -0
  333. /package/node_modules/{@cfworker → @langchain/core/node_modules/@cfworker}/json-schema/dist/commonjs/validator.js +0 -0
  334. /package/node_modules/{@cfworker → @langchain/core/node_modules/@cfworker}/json-schema/dist/esm/deep-compare-strict.d.ts +0 -0
  335. /package/node_modules/{@cfworker → @langchain/core/node_modules/@cfworker}/json-schema/dist/esm/deep-compare-strict.js +0 -0
  336. /package/node_modules/{@cfworker → @langchain/core/node_modules/@cfworker}/json-schema/dist/esm/dereference.d.ts +0 -0
  337. /package/node_modules/{@cfworker → @langchain/core/node_modules/@cfworker}/json-schema/dist/esm/dereference.js +0 -0
  338. /package/node_modules/{@cfworker → @langchain/core/node_modules/@cfworker}/json-schema/dist/esm/format.d.ts +0 -0
  339. /package/node_modules/{@cfworker → @langchain/core/node_modules/@cfworker}/json-schema/dist/esm/format.js +0 -0
  340. /package/node_modules/{@cfworker → @langchain/core/node_modules/@cfworker}/json-schema/dist/esm/index.d.ts +0 -0
  341. /package/node_modules/{@cfworker → @langchain/core/node_modules/@cfworker}/json-schema/dist/esm/index.js +0 -0
  342. /package/node_modules/{@cfworker → @langchain/core/node_modules/@cfworker}/json-schema/dist/esm/package.json +0 -0
  343. /package/node_modules/{@cfworker → @langchain/core/node_modules/@cfworker}/json-schema/dist/esm/pointer.d.ts +0 -0
  344. /package/node_modules/{@cfworker → @langchain/core/node_modules/@cfworker}/json-schema/dist/esm/pointer.js +0 -0
  345. /package/node_modules/{@cfworker → @langchain/core/node_modules/@cfworker}/json-schema/dist/esm/types.d.ts +0 -0
  346. /package/node_modules/{@cfworker → @langchain/core/node_modules/@cfworker}/json-schema/dist/esm/types.js +0 -0
  347. /package/node_modules/{@cfworker → @langchain/core/node_modules/@cfworker}/json-schema/dist/esm/ucs2-length.d.ts +0 -0
  348. /package/node_modules/{@cfworker → @langchain/core/node_modules/@cfworker}/json-schema/dist/esm/ucs2-length.js +0 -0
  349. /package/node_modules/{@cfworker → @langchain/core/node_modules/@cfworker}/json-schema/dist/esm/validate.d.ts +0 -0
  350. /package/node_modules/{@cfworker → @langchain/core/node_modules/@cfworker}/json-schema/dist/esm/validate.js +0 -0
  351. /package/node_modules/{@cfworker → @langchain/core/node_modules/@cfworker}/json-schema/dist/esm/validator.d.ts +0 -0
  352. /package/node_modules/{@cfworker → @langchain/core/node_modules/@cfworker}/json-schema/dist/esm/validator.js +0 -0
  353. /package/node_modules/{@cfworker → @langchain/core/node_modules/@cfworker}/json-schema/package.json +0 -0
  354. /package/node_modules/{@cfworker → @langchain/core/node_modules/@cfworker}/json-schema/src/deep-compare-strict.d.ts +0 -0
  355. /package/node_modules/{@cfworker → @langchain/core/node_modules/@cfworker}/json-schema/src/deep-compare-strict.ts +0 -0
  356. /package/node_modules/{@cfworker → @langchain/core/node_modules/@cfworker}/json-schema/src/dereference.d.ts +0 -0
  357. /package/node_modules/{@cfworker → @langchain/core/node_modules/@cfworker}/json-schema/src/dereference.ts +0 -0
  358. /package/node_modules/{@cfworker → @langchain/core/node_modules/@cfworker}/json-schema/src/format.d.ts +0 -0
  359. /package/node_modules/{@cfworker → @langchain/core/node_modules/@cfworker}/json-schema/src/format.ts +0 -0
  360. /package/node_modules/{@cfworker → @langchain/core/node_modules/@cfworker}/json-schema/src/index.d.ts +0 -0
  361. /package/node_modules/{@cfworker → @langchain/core/node_modules/@cfworker}/json-schema/src/index.ts +0 -0
  362. /package/node_modules/{@cfworker → @langchain/core/node_modules/@cfworker}/json-schema/src/pointer.d.ts +0 -0
  363. /package/node_modules/{@cfworker → @langchain/core/node_modules/@cfworker}/json-schema/src/pointer.ts +0 -0
  364. /package/node_modules/{@cfworker → @langchain/core/node_modules/@cfworker}/json-schema/src/types.d.ts +0 -0
  365. /package/node_modules/{@cfworker → @langchain/core/node_modules/@cfworker}/json-schema/src/types.ts +0 -0
  366. /package/node_modules/{@cfworker → @langchain/core/node_modules/@cfworker}/json-schema/src/ucs2-length.d.ts +0 -0
  367. /package/node_modules/{@cfworker → @langchain/core/node_modules/@cfworker}/json-schema/src/ucs2-length.ts +0 -0
  368. /package/node_modules/{@cfworker → @langchain/core/node_modules/@cfworker}/json-schema/src/validate.d.ts +0 -0
  369. /package/node_modules/{@cfworker → @langchain/core/node_modules/@cfworker}/json-schema/src/validate.ts +0 -0
  370. /package/node_modules/{@cfworker → @langchain/core/node_modules/@cfworker}/json-schema/src/validator.d.ts +0 -0
  371. /package/node_modules/{@cfworker → @langchain/core/node_modules/@cfworker}/json-schema/src/validator.ts +0 -0
@@ -0,0 +1,72 @@
1
+ declare class TimeoutErrorClass extends Error {
2
+ readonly name: 'TimeoutError';
3
+ constructor(message?: string);
4
+ }
5
+
6
+ declare namespace pTimeout {
7
+ type TimeoutError = TimeoutErrorClass;
8
+ }
9
+
10
+ declare const pTimeout: {
11
+ /**
12
+ Timeout a promise after a specified amount of time.
13
+
14
+ If you pass in a cancelable promise, specifically a promise with a `.cancel()` method, that method will be called when the `pTimeout` promise times out.
15
+
16
+ @param input - Promise to decorate.
17
+ @param milliseconds - Milliseconds before timing out.
18
+ @param message - Specify a custom error message or error. If you do a custom error, it's recommended to sub-class `pTimeout.TimeoutError`. Default: `'Promise timed out after 50 milliseconds'`.
19
+ @returns A decorated `input` that times out after `milliseconds` time.
20
+
21
+ @example
22
+ ```
23
+ import delay = require('delay');
24
+ import pTimeout = require('p-timeout');
25
+
26
+ const delayedPromise = delay(200);
27
+
28
+ pTimeout(delayedPromise, 50).then(() => 'foo');
29
+ //=> [TimeoutError: Promise timed out after 50 milliseconds]
30
+ ```
31
+ */
32
+ <ValueType>(
33
+ input: PromiseLike<ValueType>,
34
+ milliseconds: number,
35
+ message?: string | Error
36
+ ): Promise<ValueType>;
37
+
38
+ /**
39
+ Timeout a promise after a specified amount of time.
40
+
41
+ If you pass in a cancelable promise, specifically a promise with a `.cancel()` method, that method will be called when the `pTimeout` promise times out.
42
+
43
+ @param input - Promise to decorate.
44
+ @param milliseconds - Milliseconds before timing out. Passing `Infinity` will cause it to never time out.
45
+ @param fallback - Do something other than rejecting with an error on timeout. You could for example retry.
46
+ @returns A decorated `input` that times out after `milliseconds` time.
47
+
48
+ @example
49
+ ```
50
+ import delay = require('delay');
51
+ import pTimeout = require('p-timeout');
52
+
53
+ const delayedPromise = () => delay(200);
54
+
55
+ pTimeout(delayedPromise(), 50, () => {
56
+ return pTimeout(delayedPromise(), 300);
57
+ });
58
+ ```
59
+ */
60
+ <ValueType, ReturnType>(
61
+ input: PromiseLike<ValueType>,
62
+ milliseconds: number,
63
+ fallback: () => ReturnType | Promise<ReturnType>
64
+ ): Promise<ValueType | ReturnType>;
65
+
66
+ TimeoutError: typeof TimeoutErrorClass;
67
+
68
+ // TODO: Remove this for the next major release
69
+ default: typeof pTimeout;
70
+ };
71
+
72
+ export = pTimeout;
@@ -0,0 +1,57 @@
1
+ 'use strict';
2
+
3
+ const pFinally = require('p-finally');
4
+
5
+ class TimeoutError extends Error {
6
+ constructor(message) {
7
+ super(message);
8
+ this.name = 'TimeoutError';
9
+ }
10
+ }
11
+
12
+ const pTimeout = (promise, milliseconds, fallback) => new Promise((resolve, reject) => {
13
+ if (typeof milliseconds !== 'number' || milliseconds < 0) {
14
+ throw new TypeError('Expected `milliseconds` to be a positive number');
15
+ }
16
+
17
+ if (milliseconds === Infinity) {
18
+ resolve(promise);
19
+ return;
20
+ }
21
+
22
+ const timer = setTimeout(() => {
23
+ if (typeof fallback === 'function') {
24
+ try {
25
+ resolve(fallback());
26
+ } catch (error) {
27
+ reject(error);
28
+ }
29
+
30
+ return;
31
+ }
32
+
33
+ const message = typeof fallback === 'string' ? fallback : `Promise timed out after ${milliseconds} milliseconds`;
34
+ const timeoutError = fallback instanceof Error ? fallback : new TimeoutError(message);
35
+
36
+ if (typeof promise.cancel === 'function') {
37
+ promise.cancel();
38
+ }
39
+
40
+ reject(timeoutError);
41
+ }, milliseconds);
42
+
43
+ // TODO: Use native `finally` keyword when targeting Node.js 10
44
+ pFinally(
45
+ // eslint-disable-next-line promise/prefer-await-to-then
46
+ promise.then(resolve, reject),
47
+ () => {
48
+ clearTimeout(timer);
49
+ }
50
+ );
51
+ });
52
+
53
+ module.exports = pTimeout;
54
+ // TODO: Remove this for the next major release
55
+ module.exports.default = pTimeout;
56
+
57
+ module.exports.TimeoutError = TimeoutError;
@@ -0,0 +1,9 @@
1
+ MIT License
2
+
3
+ Copyright (c) Sindre Sorhus <sindresorhus@gmail.com> (sindresorhus.com)
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
6
+
7
+ The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
8
+
9
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
@@ -0,0 +1,45 @@
1
+ {
2
+ "name": "p-timeout",
3
+ "version": "3.2.0",
4
+ "description": "Timeout a promise after a specified amount of time",
5
+ "license": "MIT",
6
+ "repository": "sindresorhus/p-timeout",
7
+ "author": {
8
+ "name": "Sindre Sorhus",
9
+ "email": "sindresorhus@gmail.com",
10
+ "url": "sindresorhus.com"
11
+ },
12
+ "engines": {
13
+ "node": ">=8"
14
+ },
15
+ "scripts": {
16
+ "test": "xo && ava && tsd"
17
+ },
18
+ "files": [
19
+ "index.js",
20
+ "index.d.ts"
21
+ ],
22
+ "keywords": [
23
+ "promise",
24
+ "timeout",
25
+ "error",
26
+ "invalidate",
27
+ "async",
28
+ "await",
29
+ "promises",
30
+ "time",
31
+ "out",
32
+ "cancel",
33
+ "bluebird"
34
+ ],
35
+ "dependencies": {
36
+ "p-finally": "^1.0.0"
37
+ },
38
+ "devDependencies": {
39
+ "ava": "^1.4.1",
40
+ "delay": "^4.1.0",
41
+ "p-cancelable": "^2.0.0",
42
+ "tsd": "^0.7.2",
43
+ "xo": "^0.24.0"
44
+ }
45
+ }
@@ -0,0 +1,87 @@
1
+ # p-timeout [![Build Status](https://travis-ci.org/sindresorhus/p-timeout.svg?branch=master)](https://travis-ci.org/sindresorhus/p-timeout)
2
+
3
+ > Timeout a promise after a specified amount of time
4
+
5
+
6
+ ## Install
7
+
8
+ ```
9
+ $ npm install p-timeout
10
+ ```
11
+
12
+
13
+ ## Usage
14
+
15
+ ```js
16
+ const delay = require('delay');
17
+ const pTimeout = require('p-timeout');
18
+
19
+ const delayedPromise = delay(200);
20
+
21
+ pTimeout(delayedPromise, 50).then(() => 'foo');
22
+ //=> [TimeoutError: Promise timed out after 50 milliseconds]
23
+ ```
24
+
25
+
26
+ ## API
27
+
28
+ ### pTimeout(input, milliseconds, message?)
29
+ ### pTimeout(input, milliseconds, fallback?)
30
+
31
+ Returns a decorated `input` that times out after `milliseconds` time.
32
+
33
+ If you pass in a cancelable promise, specifically a promise with a `.cancel()` method, that method will be called when the `pTimeout` promise times out.
34
+
35
+ #### input
36
+
37
+ Type: `Promise`
38
+
39
+ Promise to decorate.
40
+
41
+ #### milliseconds
42
+
43
+ Type: `number`
44
+
45
+ Milliseconds before timing out.
46
+
47
+ Passing `Infinity` will cause it to never time out.
48
+
49
+ #### message
50
+
51
+ Type: `string` `Error`<br>
52
+ Default: `'Promise timed out after 50 milliseconds'`
53
+
54
+ Specify a custom error message or error.
55
+
56
+ If you do a custom error, it's recommended to sub-class `pTimeout.TimeoutError`.
57
+
58
+ #### fallback
59
+
60
+ Type: `Function`
61
+
62
+ Do something other than rejecting with an error on timeout.
63
+
64
+ You could for example retry:
65
+
66
+ ```js
67
+ const delay = require('delay');
68
+ const pTimeout = require('p-timeout');
69
+
70
+ const delayedPromise = () => delay(200);
71
+
72
+ pTimeout(delayedPromise(), 50, () => {
73
+ return pTimeout(delayedPromise(), 300);
74
+ });
75
+ ```
76
+
77
+ ### pTimeout.TimeoutError
78
+
79
+ Exposed for instance checking and sub-classing.
80
+
81
+
82
+ ## Related
83
+
84
+ - [delay](https://github.com/sindresorhus/delay) - Delay a promise a specified amount of time
85
+ - [p-min-delay](https://github.com/sindresorhus/p-min-delay) - Delay a promise a minimum amount of time
86
+ - [p-retry](https://github.com/sindresorhus/p-retry) - Retry a promise-returning function
87
+ - [More…](https://github.com/sindresorhus/promise-fun)
@@ -0,0 +1,21 @@
1
+ Copyright (c) 2011:
2
+ Tim Koschützki (tim@debuggable.com)
3
+ Felix Geisendörfer (felix@debuggable.com)
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in
13
+ all copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21
+ THE SOFTWARE.
@@ -0,0 +1,227 @@
1
+ <!-- badges/ -->
2
+ [![Build Status](https://secure.travis-ci.org/tim-kos/node-retry.svg?branch=master)](http://travis-ci.org/tim-kos/node-retry "Check this project's build status on TravisCI")
3
+ [![codecov](https://codecov.io/gh/tim-kos/node-retry/branch/master/graph/badge.svg)](https://codecov.io/gh/tim-kos/node-retry)
4
+ <!-- /badges -->
5
+
6
+ # retry
7
+
8
+ Abstraction for exponential and custom retry strategies for failed operations.
9
+
10
+ ## Installation
11
+
12
+ npm install retry
13
+
14
+ ## Current Status
15
+
16
+ This module has been tested and is ready to be used.
17
+
18
+ ## Tutorial
19
+
20
+ The example below will retry a potentially failing `dns.resolve` operation
21
+ `10` times using an exponential backoff strategy. With the default settings, this
22
+ means the last attempt is made after `17 minutes and 3 seconds`.
23
+
24
+ ``` javascript
25
+ var dns = require('dns');
26
+ var retry = require('retry');
27
+
28
+ function faultTolerantResolve(address, cb) {
29
+ var operation = retry.operation();
30
+
31
+ operation.attempt(function(currentAttempt) {
32
+ dns.resolve(address, function(err, addresses) {
33
+ if (operation.retry(err)) {
34
+ return;
35
+ }
36
+
37
+ cb(err ? operation.mainError() : null, addresses);
38
+ });
39
+ });
40
+ }
41
+
42
+ faultTolerantResolve('nodejs.org', function(err, addresses) {
43
+ console.log(err, addresses);
44
+ });
45
+ ```
46
+
47
+ Of course you can also configure the factors that go into the exponential
48
+ backoff. See the API documentation below for all available settings.
49
+ currentAttempt is an int representing the number of attempts so far.
50
+
51
+ ``` javascript
52
+ var operation = retry.operation({
53
+ retries: 5,
54
+ factor: 3,
55
+ minTimeout: 1 * 1000,
56
+ maxTimeout: 60 * 1000,
57
+ randomize: true,
58
+ });
59
+ ```
60
+
61
+ ## API
62
+
63
+ ### retry.operation([options])
64
+
65
+ Creates a new `RetryOperation` object. `options` is the same as `retry.timeouts()`'s `options`, with three additions:
66
+
67
+ * `forever`: Whether to retry forever, defaults to `false`.
68
+ * `unref`: Whether to [unref](https://nodejs.org/api/timers.html#timers_unref) the setTimeout's, defaults to `false`.
69
+ * `maxRetryTime`: The maximum time (in milliseconds) that the retried operation is allowed to run. Default is `Infinity`.
70
+
71
+ ### retry.timeouts([options])
72
+
73
+ Returns an array of timeouts. All time `options` and return values are in
74
+ milliseconds. If `options` is an array, a copy of that array is returned.
75
+
76
+ `options` is a JS object that can contain any of the following keys:
77
+
78
+ * `retries`: The maximum amount of times to retry the operation. Default is `10`. Seting this to `1` means `do it once, then retry it once`.
79
+ * `factor`: The exponential factor to use. Default is `2`.
80
+ * `minTimeout`: The number of milliseconds before starting the first retry. Default is `1000`.
81
+ * `maxTimeout`: The maximum number of milliseconds between two retries. Default is `Infinity`.
82
+ * `randomize`: Randomizes the timeouts by multiplying with a factor between `1` to `2`. Default is `false`.
83
+
84
+ The formula used to calculate the individual timeouts is:
85
+
86
+ ```
87
+ Math.min(random * minTimeout * Math.pow(factor, attempt), maxTimeout)
88
+ ```
89
+
90
+ Have a look at [this article][article] for a better explanation of approach.
91
+
92
+ If you want to tune your `factor` / `times` settings to attempt the last retry
93
+ after a certain amount of time, you can use wolfram alpha. For example in order
94
+ to tune for `10` attempts in `5 minutes`, you can use this equation:
95
+
96
+ ![screenshot](https://github.com/tim-kos/node-retry/raw/master/equation.gif)
97
+
98
+ Explaining the various values from left to right:
99
+
100
+ * `k = 0 ... 9`: The `retries` value (10)
101
+ * `1000`: The `minTimeout` value in ms (1000)
102
+ * `x^k`: No need to change this, `x` will be your resulting factor
103
+ * `5 * 60 * 1000`: The desired total amount of time for retrying in ms (5 minutes)
104
+
105
+ To make this a little easier for you, use wolfram alpha to do the calculations:
106
+
107
+ <http://www.wolframalpha.com/input/?i=Sum%5B1000*x^k%2C+{k%2C+0%2C+9}%5D+%3D+5+*+60+*+1000>
108
+
109
+ [article]: http://dthain.blogspot.com/2009/02/exponential-backoff-in-distributed.html
110
+
111
+ ### retry.createTimeout(attempt, opts)
112
+
113
+ Returns a new `timeout` (integer in milliseconds) based on the given parameters.
114
+
115
+ `attempt` is an integer representing for which retry the timeout should be calculated. If your retry operation was executed 4 times you had one attempt and 3 retries. If you then want to calculate a new timeout, you should set `attempt` to 4 (attempts are zero-indexed).
116
+
117
+ `opts` can include `factor`, `minTimeout`, `randomize` (boolean) and `maxTimeout`. They are documented above.
118
+
119
+ `retry.createTimeout()` is used internally by `retry.timeouts()` and is public for you to be able to create your own timeouts for reinserting an item, see [issue #13](https://github.com/tim-kos/node-retry/issues/13).
120
+
121
+ ### retry.wrap(obj, [options], [methodNames])
122
+
123
+ Wrap all functions of the `obj` with retry. Optionally you can pass operation options and
124
+ an array of method names which need to be wrapped.
125
+
126
+ ```
127
+ retry.wrap(obj)
128
+
129
+ retry.wrap(obj, ['method1', 'method2'])
130
+
131
+ retry.wrap(obj, {retries: 3})
132
+
133
+ retry.wrap(obj, {retries: 3}, ['method1', 'method2'])
134
+ ```
135
+ The `options` object can take any options that the usual call to `retry.operation` can take.
136
+
137
+ ### new RetryOperation(timeouts, [options])
138
+
139
+ Creates a new `RetryOperation` where `timeouts` is an array where each value is
140
+ a timeout given in milliseconds.
141
+
142
+ Available options:
143
+ * `forever`: Whether to retry forever, defaults to `false`.
144
+ * `unref`: Wether to [unref](https://nodejs.org/api/timers.html#timers_unref) the setTimeout's, defaults to `false`.
145
+
146
+ If `forever` is true, the following changes happen:
147
+ * `RetryOperation.errors()` will only output an array of one item: the last error.
148
+ * `RetryOperation` will repeatedly use the `timeouts` array. Once all of its timeouts have been used up, it restarts with the first timeout, then uses the second and so on.
149
+
150
+ #### retryOperation.errors()
151
+
152
+ Returns an array of all errors that have been passed to `retryOperation.retry()` so far. The
153
+ returning array has the errors ordered chronologically based on when they were passed to
154
+ `retryOperation.retry()`, which means the first passed error is at index zero and the last is
155
+ at the last index.
156
+
157
+ #### retryOperation.mainError()
158
+
159
+ A reference to the error object that occured most frequently. Errors are
160
+ compared using the `error.message` property.
161
+
162
+ If multiple error messages occured the same amount of time, the last error
163
+ object with that message is returned.
164
+
165
+ If no errors occured so far, the value is `null`.
166
+
167
+ #### retryOperation.attempt(fn, timeoutOps)
168
+
169
+ Defines the function `fn` that is to be retried and executes it for the first
170
+ time right away. The `fn` function can receive an optional `currentAttempt` callback that represents the number of attempts to execute `fn` so far.
171
+
172
+ Optionally defines `timeoutOps` which is an object having a property `timeout` in miliseconds and a property `cb` callback function.
173
+ Whenever your retry operation takes longer than `timeout` to execute, the timeout callback function `cb` is called.
174
+
175
+
176
+ #### retryOperation.try(fn)
177
+
178
+ This is an alias for `retryOperation.attempt(fn)`. This is deprecated. Please use `retryOperation.attempt(fn)` instead.
179
+
180
+ #### retryOperation.start(fn)
181
+
182
+ This is an alias for `retryOperation.attempt(fn)`. This is deprecated. Please use `retryOperation.attempt(fn)` instead.
183
+
184
+ #### retryOperation.retry(error)
185
+
186
+ Returns `false` when no `error` value is given, or the maximum amount of retries
187
+ has been reached.
188
+
189
+ Otherwise it returns `true`, and retries the operation after the timeout for
190
+ the current attempt number.
191
+
192
+ #### retryOperation.stop()
193
+
194
+ Allows you to stop the operation being retried. Useful for aborting the operation on a fatal error etc.
195
+
196
+ #### retryOperation.reset()
197
+
198
+ Resets the internal state of the operation object, so that you can call `attempt()` again as if this was a new operation object.
199
+
200
+ #### retryOperation.attempts()
201
+
202
+ Returns an int representing the number of attempts it took to call `fn` before it was successful.
203
+
204
+ ## License
205
+
206
+ retry is licensed under the MIT license.
207
+
208
+
209
+ # Changelog
210
+
211
+ 0.10.0 Adding `stop` functionality, thanks to @maxnachlinger.
212
+
213
+ 0.9.0 Adding `unref` functionality, thanks to @satazor.
214
+
215
+ 0.8.0 Implementing retry.wrap.
216
+
217
+ 0.7.0 Some bug fixes and made retry.createTimeout() public. Fixed issues [#10](https://github.com/tim-kos/node-retry/issues/10), [#12](https://github.com/tim-kos/node-retry/issues/12), and [#13](https://github.com/tim-kos/node-retry/issues/13).
218
+
219
+ 0.6.0 Introduced optional timeOps parameter for the attempt() function which is an object having a property timeout in milliseconds and a property cb callback function. Whenever your retry operation takes longer than timeout to execute, the timeout callback function cb is called.
220
+
221
+ 0.5.0 Some minor refactoring.
222
+
223
+ 0.4.0 Changed retryOperation.try() to retryOperation.attempt(). Deprecated the aliases start() and try() for it.
224
+
225
+ 0.3.0 Added retryOperation.start() which is an alias for retryOperation.try().
226
+
227
+ 0.2.0 Added attempts() function and parameter to retryOperation.try() representing the number of attempts it took to call fn().
@@ -0,0 +1,31 @@
1
+ var dns = require('dns');
2
+ var retry = require('../lib/retry');
3
+
4
+ function faultTolerantResolve(address, cb) {
5
+ var opts = {
6
+ retries: 2,
7
+ factor: 2,
8
+ minTimeout: 1 * 1000,
9
+ maxTimeout: 2 * 1000,
10
+ randomize: true
11
+ };
12
+ var operation = retry.operation(opts);
13
+
14
+ operation.attempt(function(currentAttempt) {
15
+ dns.resolve(address, function(err, addresses) {
16
+ if (operation.retry(err)) {
17
+ return;
18
+ }
19
+
20
+ cb(operation.mainError(), operation.errors(), addresses);
21
+ });
22
+ });
23
+ }
24
+
25
+ faultTolerantResolve('nodejs.org', function(err, errors, addresses) {
26
+ console.warn('err:');
27
+ console.log(err);
28
+
29
+ console.warn('addresses:');
30
+ console.log(addresses);
31
+ });
@@ -0,0 +1,40 @@
1
+ var retry = require('../lib/retry');
2
+
3
+ function attemptAsyncOperation(someInput, cb) {
4
+ var opts = {
5
+ retries: 2,
6
+ factor: 2,
7
+ minTimeout: 1 * 1000,
8
+ maxTimeout: 2 * 1000,
9
+ randomize: true
10
+ };
11
+ var operation = retry.operation(opts);
12
+
13
+ operation.attempt(function(currentAttempt) {
14
+ failingAsyncOperation(someInput, function(err, result) {
15
+
16
+ if (err && err.message === 'A fatal error') {
17
+ operation.stop();
18
+ return cb(err);
19
+ }
20
+
21
+ if (operation.retry(err)) {
22
+ return;
23
+ }
24
+
25
+ cb(operation.mainError(), operation.errors(), result);
26
+ });
27
+ });
28
+ }
29
+
30
+ attemptAsyncOperation('test input', function(err, errors, result) {
31
+ console.warn('err:');
32
+ console.log(err);
33
+
34
+ console.warn('result:');
35
+ console.log(result);
36
+ });
37
+
38
+ function failingAsyncOperation(input, cb) {
39
+ return setImmediate(cb.bind(null, new Error('A fatal error')));
40
+ }
@@ -0,0 +1 @@
1
+ module.exports = require('./lib/retry');