@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,340 @@
1
+ (function(f){if(typeof exports==="object"&&typeof module!=="undefined"){module.exports=f()}else if(typeof define==="function"&&define.amd){define([],f)}else{var g;if(typeof window!=="undefined"){g=window}else if(typeof global!=="undefined"){g=global}else if(typeof self!=="undefined"){g=self}else{g=this}g.EventEmitter3 = f()}})(function(){var define,module,exports;return (function(){function r(e,n,t){function o(i,f){if(!n[i]){if(!e[i]){var c="function"==typeof require&&require;if(!f&&c)return c(i,!0);if(u)return u(i,!0);var a=new Error("Cannot find module '"+i+"'");throw a.code="MODULE_NOT_FOUND",a}var p=n[i]={exports:{}};e[i][0].call(p.exports,function(r){var n=e[i][1][r];return o(n||r)},p,p.exports,r,e,n,t)}return n[i].exports}for(var u="function"==typeof require&&require,i=0;i<t.length;i++)o(t[i]);return o}return r})()({1:[function(require,module,exports){
2
+ 'use strict';
3
+
4
+ var has = Object.prototype.hasOwnProperty
5
+ , prefix = '~';
6
+
7
+ /**
8
+ * Constructor to create a storage for our `EE` objects.
9
+ * An `Events` instance is a plain object whose properties are event names.
10
+ *
11
+ * @constructor
12
+ * @private
13
+ */
14
+ function Events() {}
15
+
16
+ //
17
+ // We try to not inherit from `Object.prototype`. In some engines creating an
18
+ // instance in this way is faster than calling `Object.create(null)` directly.
19
+ // If `Object.create(null)` is not supported we prefix the event names with a
20
+ // character to make sure that the built-in object properties are not
21
+ // overridden or used as an attack vector.
22
+ //
23
+ if (Object.create) {
24
+ Events.prototype = Object.create(null);
25
+
26
+ //
27
+ // This hack is needed because the `__proto__` property is still inherited in
28
+ // some old browsers like Android 4, iPhone 5.1, Opera 11 and Safari 5.
29
+ //
30
+ if (!new Events().__proto__) prefix = false;
31
+ }
32
+
33
+ /**
34
+ * Representation of a single event listener.
35
+ *
36
+ * @param {Function} fn The listener function.
37
+ * @param {*} context The context to invoke the listener with.
38
+ * @param {Boolean} [once=false] Specify if the listener is a one-time listener.
39
+ * @constructor
40
+ * @private
41
+ */
42
+ function EE(fn, context, once) {
43
+ this.fn = fn;
44
+ this.context = context;
45
+ this.once = once || false;
46
+ }
47
+
48
+ /**
49
+ * Add a listener for a given event.
50
+ *
51
+ * @param {EventEmitter} emitter Reference to the `EventEmitter` instance.
52
+ * @param {(String|Symbol)} event The event name.
53
+ * @param {Function} fn The listener function.
54
+ * @param {*} context The context to invoke the listener with.
55
+ * @param {Boolean} once Specify if the listener is a one-time listener.
56
+ * @returns {EventEmitter}
57
+ * @private
58
+ */
59
+ function addListener(emitter, event, fn, context, once) {
60
+ if (typeof fn !== 'function') {
61
+ throw new TypeError('The listener must be a function');
62
+ }
63
+
64
+ var listener = new EE(fn, context || emitter, once)
65
+ , evt = prefix ? prefix + event : event;
66
+
67
+ if (!emitter._events[evt]) emitter._events[evt] = listener, emitter._eventsCount++;
68
+ else if (!emitter._events[evt].fn) emitter._events[evt].push(listener);
69
+ else emitter._events[evt] = [emitter._events[evt], listener];
70
+
71
+ return emitter;
72
+ }
73
+
74
+ /**
75
+ * Clear event by name.
76
+ *
77
+ * @param {EventEmitter} emitter Reference to the `EventEmitter` instance.
78
+ * @param {(String|Symbol)} evt The Event name.
79
+ * @private
80
+ */
81
+ function clearEvent(emitter, evt) {
82
+ if (--emitter._eventsCount === 0) emitter._events = new Events();
83
+ else delete emitter._events[evt];
84
+ }
85
+
86
+ /**
87
+ * Minimal `EventEmitter` interface that is molded against the Node.js
88
+ * `EventEmitter` interface.
89
+ *
90
+ * @constructor
91
+ * @public
92
+ */
93
+ function EventEmitter() {
94
+ this._events = new Events();
95
+ this._eventsCount = 0;
96
+ }
97
+
98
+ /**
99
+ * Return an array listing the events for which the emitter has registered
100
+ * listeners.
101
+ *
102
+ * @returns {Array}
103
+ * @public
104
+ */
105
+ EventEmitter.prototype.eventNames = function eventNames() {
106
+ var names = []
107
+ , events
108
+ , name;
109
+
110
+ if (this._eventsCount === 0) return names;
111
+
112
+ for (name in (events = this._events)) {
113
+ if (has.call(events, name)) names.push(prefix ? name.slice(1) : name);
114
+ }
115
+
116
+ if (Object.getOwnPropertySymbols) {
117
+ return names.concat(Object.getOwnPropertySymbols(events));
118
+ }
119
+
120
+ return names;
121
+ };
122
+
123
+ /**
124
+ * Return the listeners registered for a given event.
125
+ *
126
+ * @param {(String|Symbol)} event The event name.
127
+ * @returns {Array} The registered listeners.
128
+ * @public
129
+ */
130
+ EventEmitter.prototype.listeners = function listeners(event) {
131
+ var evt = prefix ? prefix + event : event
132
+ , handlers = this._events[evt];
133
+
134
+ if (!handlers) return [];
135
+ if (handlers.fn) return [handlers.fn];
136
+
137
+ for (var i = 0, l = handlers.length, ee = new Array(l); i < l; i++) {
138
+ ee[i] = handlers[i].fn;
139
+ }
140
+
141
+ return ee;
142
+ };
143
+
144
+ /**
145
+ * Return the number of listeners listening to a given event.
146
+ *
147
+ * @param {(String|Symbol)} event The event name.
148
+ * @returns {Number} The number of listeners.
149
+ * @public
150
+ */
151
+ EventEmitter.prototype.listenerCount = function listenerCount(event) {
152
+ var evt = prefix ? prefix + event : event
153
+ , listeners = this._events[evt];
154
+
155
+ if (!listeners) return 0;
156
+ if (listeners.fn) return 1;
157
+ return listeners.length;
158
+ };
159
+
160
+ /**
161
+ * Calls each of the listeners registered for a given event.
162
+ *
163
+ * @param {(String|Symbol)} event The event name.
164
+ * @returns {Boolean} `true` if the event had listeners, else `false`.
165
+ * @public
166
+ */
167
+ EventEmitter.prototype.emit = function emit(event, a1, a2, a3, a4, a5) {
168
+ var evt = prefix ? prefix + event : event;
169
+
170
+ if (!this._events[evt]) return false;
171
+
172
+ var listeners = this._events[evt]
173
+ , len = arguments.length
174
+ , args
175
+ , i;
176
+
177
+ if (listeners.fn) {
178
+ if (listeners.once) this.removeListener(event, listeners.fn, undefined, true);
179
+
180
+ switch (len) {
181
+ case 1: return listeners.fn.call(listeners.context), true;
182
+ case 2: return listeners.fn.call(listeners.context, a1), true;
183
+ case 3: return listeners.fn.call(listeners.context, a1, a2), true;
184
+ case 4: return listeners.fn.call(listeners.context, a1, a2, a3), true;
185
+ case 5: return listeners.fn.call(listeners.context, a1, a2, a3, a4), true;
186
+ case 6: return listeners.fn.call(listeners.context, a1, a2, a3, a4, a5), true;
187
+ }
188
+
189
+ for (i = 1, args = new Array(len -1); i < len; i++) {
190
+ args[i - 1] = arguments[i];
191
+ }
192
+
193
+ listeners.fn.apply(listeners.context, args);
194
+ } else {
195
+ var length = listeners.length
196
+ , j;
197
+
198
+ for (i = 0; i < length; i++) {
199
+ if (listeners[i].once) this.removeListener(event, listeners[i].fn, undefined, true);
200
+
201
+ switch (len) {
202
+ case 1: listeners[i].fn.call(listeners[i].context); break;
203
+ case 2: listeners[i].fn.call(listeners[i].context, a1); break;
204
+ case 3: listeners[i].fn.call(listeners[i].context, a1, a2); break;
205
+ case 4: listeners[i].fn.call(listeners[i].context, a1, a2, a3); break;
206
+ default:
207
+ if (!args) for (j = 1, args = new Array(len -1); j < len; j++) {
208
+ args[j - 1] = arguments[j];
209
+ }
210
+
211
+ listeners[i].fn.apply(listeners[i].context, args);
212
+ }
213
+ }
214
+ }
215
+
216
+ return true;
217
+ };
218
+
219
+ /**
220
+ * Add a listener for a given event.
221
+ *
222
+ * @param {(String|Symbol)} event The event name.
223
+ * @param {Function} fn The listener function.
224
+ * @param {*} [context=this] The context to invoke the listener with.
225
+ * @returns {EventEmitter} `this`.
226
+ * @public
227
+ */
228
+ EventEmitter.prototype.on = function on(event, fn, context) {
229
+ return addListener(this, event, fn, context, false);
230
+ };
231
+
232
+ /**
233
+ * Add a one-time listener for a given event.
234
+ *
235
+ * @param {(String|Symbol)} event The event name.
236
+ * @param {Function} fn The listener function.
237
+ * @param {*} [context=this] The context to invoke the listener with.
238
+ * @returns {EventEmitter} `this`.
239
+ * @public
240
+ */
241
+ EventEmitter.prototype.once = function once(event, fn, context) {
242
+ return addListener(this, event, fn, context, true);
243
+ };
244
+
245
+ /**
246
+ * Remove the listeners of a given event.
247
+ *
248
+ * @param {(String|Symbol)} event The event name.
249
+ * @param {Function} fn Only remove the listeners that match this function.
250
+ * @param {*} context Only remove the listeners that have this context.
251
+ * @param {Boolean} once Only remove one-time listeners.
252
+ * @returns {EventEmitter} `this`.
253
+ * @public
254
+ */
255
+ EventEmitter.prototype.removeListener = function removeListener(event, fn, context, once) {
256
+ var evt = prefix ? prefix + event : event;
257
+
258
+ if (!this._events[evt]) return this;
259
+ if (!fn) {
260
+ clearEvent(this, evt);
261
+ return this;
262
+ }
263
+
264
+ var listeners = this._events[evt];
265
+
266
+ if (listeners.fn) {
267
+ if (
268
+ listeners.fn === fn &&
269
+ (!once || listeners.once) &&
270
+ (!context || listeners.context === context)
271
+ ) {
272
+ clearEvent(this, evt);
273
+ }
274
+ } else {
275
+ for (var i = 0, events = [], length = listeners.length; i < length; i++) {
276
+ if (
277
+ listeners[i].fn !== fn ||
278
+ (once && !listeners[i].once) ||
279
+ (context && listeners[i].context !== context)
280
+ ) {
281
+ events.push(listeners[i]);
282
+ }
283
+ }
284
+
285
+ //
286
+ // Reset the array, or remove it completely if we have no more listeners.
287
+ //
288
+ if (events.length) this._events[evt] = events.length === 1 ? events[0] : events;
289
+ else clearEvent(this, evt);
290
+ }
291
+
292
+ return this;
293
+ };
294
+
295
+ /**
296
+ * Remove all listeners, or those of the specified event.
297
+ *
298
+ * @param {(String|Symbol)} [event] The event name.
299
+ * @returns {EventEmitter} `this`.
300
+ * @public
301
+ */
302
+ EventEmitter.prototype.removeAllListeners = function removeAllListeners(event) {
303
+ var evt;
304
+
305
+ if (event) {
306
+ evt = prefix ? prefix + event : event;
307
+ if (this._events[evt]) clearEvent(this, evt);
308
+ } else {
309
+ this._events = new Events();
310
+ this._eventsCount = 0;
311
+ }
312
+
313
+ return this;
314
+ };
315
+
316
+ //
317
+ // Alias methods names because people roll like that.
318
+ //
319
+ EventEmitter.prototype.off = EventEmitter.prototype.removeListener;
320
+ EventEmitter.prototype.addListener = EventEmitter.prototype.on;
321
+
322
+ //
323
+ // Expose the prefix.
324
+ //
325
+ EventEmitter.prefixed = prefix;
326
+
327
+ //
328
+ // Allow `EventEmitter` to be imported as module namespace.
329
+ //
330
+ EventEmitter.EventEmitter = EventEmitter;
331
+
332
+ //
333
+ // Expose the module.
334
+ //
335
+ if ('undefined' !== typeof module) {
336
+ module.exports = EventEmitter;
337
+ }
338
+
339
+ },{}]},{},[1])(1)
340
+ });
@@ -0,0 +1 @@
1
+ !function(e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):("undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this).EventEmitter3=e()}(function(){return function i(s,f,c){function u(t,e){if(!f[t]){if(!s[t]){var n="function"==typeof require&&require;if(!e&&n)return n(t,!0);if(a)return a(t,!0);var r=new Error("Cannot find module '"+t+"'");throw r.code="MODULE_NOT_FOUND",r}var o=f[t]={exports:{}};s[t][0].call(o.exports,function(e){return u(s[t][1][e]||e)},o,o.exports,i,s,f,c)}return f[t].exports}for(var a="function"==typeof require&&require,e=0;e<c.length;e++)u(c[e]);return u}({1:[function(e,t,n){"use strict";var r=Object.prototype.hasOwnProperty,v="~";function o(){}function f(e,t,n){this.fn=e,this.context=t,this.once=n||!1}function i(e,t,n,r,o){if("function"!=typeof n)throw new TypeError("The listener must be a function");var i=new f(n,r||e,o),s=v?v+t:t;return e._events[s]?e._events[s].fn?e._events[s]=[e._events[s],i]:e._events[s].push(i):(e._events[s]=i,e._eventsCount++),e}function u(e,t){0==--e._eventsCount?e._events=new o:delete e._events[t]}function s(){this._events=new o,this._eventsCount=0}Object.create&&(o.prototype=Object.create(null),(new o).__proto__||(v=!1)),s.prototype.eventNames=function(){var e,t,n=[];if(0===this._eventsCount)return n;for(t in e=this._events)r.call(e,t)&&n.push(v?t.slice(1):t);return Object.getOwnPropertySymbols?n.concat(Object.getOwnPropertySymbols(e)):n},s.prototype.listeners=function(e){var t=v?v+e:e,n=this._events[t];if(!n)return[];if(n.fn)return[n.fn];for(var r=0,o=n.length,i=new Array(o);r<o;r++)i[r]=n[r].fn;return i},s.prototype.listenerCount=function(e){var t=v?v+e:e,n=this._events[t];return n?n.fn?1:n.length:0},s.prototype.emit=function(e,t,n,r,o,i){var s=v?v+e:e;if(!this._events[s])return!1;var f,c=this._events[s],u=arguments.length;if(c.fn){switch(c.once&&this.removeListener(e,c.fn,void 0,!0),u){case 1:return c.fn.call(c.context),!0;case 2:return c.fn.call(c.context,t),!0;case 3:return c.fn.call(c.context,t,n),!0;case 4:return c.fn.call(c.context,t,n,r),!0;case 5:return c.fn.call(c.context,t,n,r,o),!0;case 6:return c.fn.call(c.context,t,n,r,o,i),!0}for(p=1,f=new Array(u-1);p<u;p++)f[p-1]=arguments[p];c.fn.apply(c.context,f)}else for(var a,l=c.length,p=0;p<l;p++)switch(c[p].once&&this.removeListener(e,c[p].fn,void 0,!0),u){case 1:c[p].fn.call(c[p].context);break;case 2:c[p].fn.call(c[p].context,t);break;case 3:c[p].fn.call(c[p].context,t,n);break;case 4:c[p].fn.call(c[p].context,t,n,r);break;default:if(!f)for(a=1,f=new Array(u-1);a<u;a++)f[a-1]=arguments[a];c[p].fn.apply(c[p].context,f)}return!0},s.prototype.on=function(e,t,n){return i(this,e,t,n,!1)},s.prototype.once=function(e,t,n){return i(this,e,t,n,!0)},s.prototype.removeListener=function(e,t,n,r){var o=v?v+e:e;if(!this._events[o])return this;if(!t)return u(this,o),this;var i=this._events[o];if(i.fn)i.fn!==t||r&&!i.once||n&&i.context!==n||u(this,o);else{for(var s=0,f=[],c=i.length;s<c;s++)(i[s].fn!==t||r&&!i[s].once||n&&i[s].context!==n)&&f.push(i[s]);f.length?this._events[o]=1===f.length?f[0]:f:u(this,o)}return this},s.prototype.removeAllListeners=function(e){var t;return e?(t=v?v+e:e,this._events[t]&&u(this,t)):(this._events=new o,this._eventsCount=0),this},s.prototype.off=s.prototype.removeListener,s.prototype.addListener=s.prototype.on,s.prefixed=v,s.EventEmitter=s,void 0!==t&&(t.exports=s)},{}]},{},[1])(1)});
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["umd/eventemitter3.js"],"names":["f","exports","module","define","amd","window","global","self","this","EventEmitter3","r","e","n","t","o","i","c","require","u","a","Error","code","p","call","length","1","has","Object","prototype","hasOwnProperty","prefix","Events","EE","fn","context","once","addListener","emitter","event","TypeError","listener","evt","_events","push","_eventsCount","clearEvent","EventEmitter","create","__proto__","eventNames","events","name","names","slice","getOwnPropertySymbols","concat","listeners","handlers","l","ee","Array","listenerCount","emit","a1","a2","a3","a4","a5","args","len","arguments","removeListener","undefined","apply","j","on","removeAllListeners","off","prefixed"],"mappings":"CAAA,SAAUA,GAAuB,iBAAVC,SAAoC,oBAATC,OAAsBA,OAAOD,QAAQD,IAA4B,mBAATG,QAAqBA,OAAOC,IAAKD,OAAO,GAAGH,IAAiC,oBAATK,OAAwBA,OAA+B,oBAATC,OAAwBA,OAA6B,oBAAPC,KAAsBA,KAAYC,MAAOC,cAAgBT,IAAlU,CAAyU,WAAqC,OAAmB,SAASU,EAAEC,EAAEC,EAAEC,GAAG,SAASC,EAA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BS,EAAO1B,OAAe0B,EAAO,GAAKA,EACpEL,EAAWrC,KAAMiC,GAGxB,OAAOjC,MAUTsC,EAAalB,UAAUgD,mBAAqB,SAA4BtC,GACtE,IAAIG,EAUJ,OARIH,GACFG,EAAMX,EAASA,EAASQ,EAAQA,EAC5B9B,KAAKkC,QAAQD,IAAMI,EAAWrC,KAAMiC,KAExCjC,KAAKkC,QAAU,IAAIX,EACnBvB,KAAKoC,aAAe,GAGfpC,MAMTsC,EAAalB,UAAUiD,IAAM/B,EAAalB,UAAU2C,eACpDzB,EAAalB,UAAUQ,YAAcU,EAAalB,UAAU+C,GAK5D7B,EAAagC,SAAWhD,EAKxBgB,EAAaA,aAAeA,OAKxB,IAAuB5C,IACzBA,EAAOD,QAAU6C,IAGjB,KAAK,GAAG,CAAC,GAlV0W,CAkVtW"}
@@ -0,0 +1,39 @@
1
+ /**
2
+ Check if [`argv`](https://nodejs.org/docs/latest/api/process.html#process_process_argv) has a specific flag.
3
+
4
+ @param flag - CLI flag to look for. The `--` prefix is optional.
5
+ @param argv - CLI arguments. Default: `process.argv`.
6
+ @returns Whether the flag exists.
7
+
8
+ @example
9
+ ```
10
+ // $ ts-node foo.ts -f --unicorn --foo=bar -- --rainbow
11
+
12
+ // foo.ts
13
+ import hasFlag = require('has-flag');
14
+
15
+ hasFlag('unicorn');
16
+ //=> true
17
+
18
+ hasFlag('--unicorn');
19
+ //=> true
20
+
21
+ hasFlag('f');
22
+ //=> true
23
+
24
+ hasFlag('-f');
25
+ //=> true
26
+
27
+ hasFlag('foo=bar');
28
+ //=> true
29
+
30
+ hasFlag('foo');
31
+ //=> false
32
+
33
+ hasFlag('rainbow');
34
+ //=> false
35
+ ```
36
+ */
37
+ declare function hasFlag(flag: string, argv?: string[]): boolean;
38
+
39
+ export = hasFlag;
@@ -0,0 +1,8 @@
1
+ 'use strict';
2
+
3
+ module.exports = (flag, argv = process.argv) => {
4
+ const prefix = flag.startsWith('-') ? '' : (flag.length === 1 ? '-' : '--');
5
+ const position = argv.indexOf(prefix + flag);
6
+ const terminatorPosition = argv.indexOf('--');
7
+ return position !== -1 && (terminatorPosition === -1 || position < terminatorPosition);
8
+ };
@@ -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,46 @@
1
+ {
2
+ "name": "has-flag",
3
+ "version": "4.0.0",
4
+ "description": "Check if argv has a specific flag",
5
+ "license": "MIT",
6
+ "repository": "sindresorhus/has-flag",
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
+ "has",
24
+ "check",
25
+ "detect",
26
+ "contains",
27
+ "find",
28
+ "flag",
29
+ "cli",
30
+ "command-line",
31
+ "argv",
32
+ "process",
33
+ "arg",
34
+ "args",
35
+ "argument",
36
+ "arguments",
37
+ "getopt",
38
+ "minimist",
39
+ "optimist"
40
+ ],
41
+ "devDependencies": {
42
+ "ava": "^1.4.1",
43
+ "tsd": "^0.7.2",
44
+ "xo": "^0.24.0"
45
+ }
46
+ }
@@ -0,0 +1,89 @@
1
+ # has-flag [![Build Status](https://travis-ci.org/sindresorhus/has-flag.svg?branch=master)](https://travis-ci.org/sindresorhus/has-flag)
2
+
3
+ > Check if [`argv`](https://nodejs.org/docs/latest/api/process.html#process_process_argv) has a specific flag
4
+
5
+ Correctly stops looking after an `--` argument terminator.
6
+
7
+ ---
8
+
9
+ <div align="center">
10
+ <b>
11
+ <a href="https://tidelift.com/subscription/pkg/npm-has-flag?utm_source=npm-has-flag&utm_medium=referral&utm_campaign=readme">Get professional support for this package with a Tidelift subscription</a>
12
+ </b>
13
+ <br>
14
+ <sub>
15
+ Tidelift helps make open source sustainable for maintainers while giving companies<br>assurances about security, maintenance, and licensing for their dependencies.
16
+ </sub>
17
+ </div>
18
+
19
+ ---
20
+
21
+
22
+ ## Install
23
+
24
+ ```
25
+ $ npm install has-flag
26
+ ```
27
+
28
+
29
+ ## Usage
30
+
31
+ ```js
32
+ // foo.js
33
+ const hasFlag = require('has-flag');
34
+
35
+ hasFlag('unicorn');
36
+ //=> true
37
+
38
+ hasFlag('--unicorn');
39
+ //=> true
40
+
41
+ hasFlag('f');
42
+ //=> true
43
+
44
+ hasFlag('-f');
45
+ //=> true
46
+
47
+ hasFlag('foo=bar');
48
+ //=> true
49
+
50
+ hasFlag('foo');
51
+ //=> false
52
+
53
+ hasFlag('rainbow');
54
+ //=> false
55
+ ```
56
+
57
+ ```
58
+ $ node foo.js -f --unicorn --foo=bar -- --rainbow
59
+ ```
60
+
61
+
62
+ ## API
63
+
64
+ ### hasFlag(flag, [argv])
65
+
66
+ Returns a boolean for whether the flag exists.
67
+
68
+ #### flag
69
+
70
+ Type: `string`
71
+
72
+ CLI flag to look for. The `--` prefix is optional.
73
+
74
+ #### argv
75
+
76
+ Type: `string[]`<br>
77
+ Default: `process.argv`
78
+
79
+ CLI arguments.
80
+
81
+
82
+ ## Security
83
+
84
+ To report a security vulnerability, please use the [Tidelift security contact](https://tidelift.com/security). Tidelift will coordinate the fix and disclosure.
85
+
86
+
87
+ ## License
88
+
89
+ MIT © [Sindre Sorhus](https://sindresorhus.com)
@@ -0,0 +1,15 @@
1
+ 'use strict';
2
+ module.exports = (promise, onFinally) => {
3
+ onFinally = onFinally || (() => {});
4
+
5
+ return promise.then(
6
+ val => new Promise(resolve => {
7
+ resolve(onFinally());
8
+ }).then(() => val),
9
+ err => new Promise(resolve => {
10
+ resolve(onFinally());
11
+ }).then(() => {
12
+ throw err;
13
+ })
14
+ );
15
+ };
@@ -0,0 +1,21 @@
1
+ The MIT License (MIT)
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
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,42 @@
1
+ {
2
+ "name": "p-finally",
3
+ "version": "1.0.0",
4
+ "description": "`Promise#finally()` ponyfill - Invoked when the promise is settled regardless of outcome",
5
+ "license": "MIT",
6
+ "repository": "sindresorhus/p-finally",
7
+ "author": {
8
+ "name": "Sindre Sorhus",
9
+ "email": "sindresorhus@gmail.com",
10
+ "url": "sindresorhus.com"
11
+ },
12
+ "engines": {
13
+ "node": ">=4"
14
+ },
15
+ "scripts": {
16
+ "test": "xo && ava"
17
+ },
18
+ "files": [
19
+ "index.js"
20
+ ],
21
+ "keywords": [
22
+ "promise",
23
+ "finally",
24
+ "handler",
25
+ "function",
26
+ "async",
27
+ "await",
28
+ "promises",
29
+ "settled",
30
+ "ponyfill",
31
+ "polyfill",
32
+ "shim",
33
+ "bluebird"
34
+ ],
35
+ "devDependencies": {
36
+ "ava": "*",
37
+ "xo": "*"
38
+ },
39
+ "xo": {
40
+ "esnext": true
41
+ }
42
+ }
@@ -0,0 +1,47 @@
1
+ # p-finally [![Build Status](https://travis-ci.org/sindresorhus/p-finally.svg?branch=master)](https://travis-ci.org/sindresorhus/p-finally)
2
+
3
+ > [`Promise#finally()`](https://github.com/tc39/proposal-promise-finally) [ponyfill](https://ponyfill.com) - Invoked when the promise is settled regardless of outcome
4
+
5
+ Useful for cleanup.
6
+
7
+
8
+ ## Install
9
+
10
+ ```
11
+ $ npm install --save p-finally
12
+ ```
13
+
14
+
15
+ ## Usage
16
+
17
+ ```js
18
+ const pFinally = require('p-finally');
19
+
20
+ const dir = createTempDir();
21
+
22
+ pFinally(write(dir), () => cleanup(dir));
23
+ ```
24
+
25
+
26
+ ## API
27
+
28
+ ### pFinally(promise, [onFinally])
29
+
30
+ Returns a `Promise`.
31
+
32
+ #### onFinally
33
+
34
+ Type: `Function`
35
+
36
+ Note: Throwing or returning a rejected promise will reject `promise` with the rejection reason.
37
+
38
+
39
+ ## Related
40
+
41
+ - [p-try](https://github.com/sindresorhus/p-try) - `Promise#try()` ponyfill - Starts a promise chain
42
+ - [More…](https://github.com/sindresorhus/promise-fun)
43
+
44
+
45
+ ## License
46
+
47
+ MIT © [Sindre Sorhus](https://sindresorhus.com)