apipost-cli 1.0.8 → 1.0.13

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 (300) hide show
  1. package/README.md +4 -0
  2. package/dist/37.index.js +452 -0
  3. package/dist/841.index.js +6984 -0
  4. package/dist/action.js +4 -0
  5. package/dist/apipost-cli/node_modules/@azure/abort-controller/types/3.1/AbortController.d.ts +85 -0
  6. package/dist/apipost-cli/node_modules/@azure/abort-controller/types/3.1/AbortSignal.d.ts +80 -0
  7. package/dist/apipost-cli/node_modules/@azure/abort-controller/types/3.1/index.d.ts +3 -0
  8. package/dist/apipost-cli/node_modules/@azure/core-auth/types/3.1/core-auth.d.ts +229 -0
  9. package/dist/apipost-cli/node_modules/@azure/core-client/types/3.1/core-client.d.ts +900 -0
  10. package/dist/apipost-cli/node_modules/@azure/core-paging/types/3.1/core-paging.d.ts +77 -0
  11. package/dist/apipost-cli/node_modules/@azure/core-paging/types/3.1/samples-dev/getPagedAsyncIteratorSample.d.ts +2 -0
  12. package/dist/apipost-cli/node_modules/@azure/core-paging/types/3.1/src/getPagedAsyncIterator.d.ts +10 -0
  13. package/dist/apipost-cli/node_modules/@azure/core-paging/types/3.1/src/index.d.ts +3 -0
  14. package/dist/apipost-cli/node_modules/@azure/core-paging/types/3.1/src/models.d.ts +69 -0
  15. package/dist/apipost-cli/node_modules/@azure/core-paging/types/3.1/test/getPagedAsyncIterator.spec.d.ts +2 -0
  16. package/dist/apipost-cli/node_modules/@azure/core-rest-pipeline/types/3.1/core-rest-pipeline.d.ts +1114 -0
  17. package/dist/apipost-cli/node_modules/@azure/core-util/types/3.1/core-util.d.ts +112 -0
  18. package/dist/apipost-cli/node_modules/@nodelib/fs.scandir/LICENSE +21 -0
  19. package/dist/apipost-cli/node_modules/@nodelib/fs.scandir/out/adapters/fs.d.ts +20 -0
  20. package/dist/apipost-cli/node_modules/@nodelib/fs.scandir/out/adapters/fs.js +19 -0
  21. package/dist/apipost-cli/node_modules/@nodelib/fs.scandir/out/constants.d.ts +4 -0
  22. package/dist/apipost-cli/node_modules/@nodelib/fs.scandir/out/constants.js +17 -0
  23. package/dist/apipost-cli/node_modules/@nodelib/fs.scandir/out/index.d.ts +12 -0
  24. package/dist/apipost-cli/node_modules/@nodelib/fs.scandir/out/index.js +26 -0
  25. package/dist/apipost-cli/node_modules/@nodelib/fs.scandir/out/providers/async.d.ts +7 -0
  26. package/dist/apipost-cli/node_modules/@nodelib/fs.scandir/out/providers/async.js +104 -0
  27. package/dist/apipost-cli/node_modules/@nodelib/fs.scandir/out/providers/common.d.ts +1 -0
  28. package/dist/apipost-cli/node_modules/@nodelib/fs.scandir/out/providers/common.js +13 -0
  29. package/dist/apipost-cli/node_modules/@nodelib/fs.scandir/out/providers/sync.d.ts +5 -0
  30. package/dist/apipost-cli/node_modules/@nodelib/fs.scandir/out/providers/sync.js +54 -0
  31. package/dist/apipost-cli/node_modules/@nodelib/fs.scandir/out/settings.d.ts +20 -0
  32. package/dist/apipost-cli/node_modules/@nodelib/fs.scandir/out/settings.js +24 -0
  33. package/dist/apipost-cli/node_modules/@nodelib/fs.scandir/out/types/index.d.ts +20 -0
  34. package/dist/apipost-cli/node_modules/@nodelib/fs.scandir/out/types/index.js +2 -0
  35. package/dist/apipost-cli/node_modules/@nodelib/fs.scandir/out/utils/fs.d.ts +2 -0
  36. package/dist/apipost-cli/node_modules/@nodelib/fs.scandir/out/utils/fs.js +19 -0
  37. package/dist/apipost-cli/node_modules/@nodelib/fs.scandir/out/utils/index.d.ts +2 -0
  38. package/dist/apipost-cli/node_modules/@nodelib/fs.scandir/out/utils/index.js +5 -0
  39. package/dist/apipost-cli/node_modules/@nodelib/fs.scandir/package.json +44 -0
  40. package/dist/apipost-cli/node_modules/@nodelib/fs.stat/LICENSE +21 -0
  41. package/dist/apipost-cli/node_modules/@nodelib/fs.stat/out/adapters/fs.d.ts +13 -0
  42. package/dist/apipost-cli/node_modules/@nodelib/fs.stat/out/adapters/fs.js +17 -0
  43. package/dist/apipost-cli/node_modules/@nodelib/fs.stat/out/index.d.ts +12 -0
  44. package/dist/apipost-cli/node_modules/@nodelib/fs.stat/out/index.js +26 -0
  45. package/dist/apipost-cli/node_modules/@nodelib/fs.stat/out/providers/async.d.ts +4 -0
  46. package/dist/apipost-cli/node_modules/@nodelib/fs.stat/out/providers/async.js +36 -0
  47. package/dist/apipost-cli/node_modules/@nodelib/fs.stat/out/providers/sync.d.ts +3 -0
  48. package/dist/apipost-cli/node_modules/@nodelib/fs.stat/out/providers/sync.js +23 -0
  49. package/dist/apipost-cli/node_modules/@nodelib/fs.stat/out/settings.d.ts +16 -0
  50. package/dist/apipost-cli/node_modules/@nodelib/fs.stat/out/settings.js +16 -0
  51. package/dist/apipost-cli/node_modules/@nodelib/fs.stat/out/types/index.d.ts +4 -0
  52. package/dist/apipost-cli/node_modules/@nodelib/fs.stat/out/types/index.js +2 -0
  53. package/dist/apipost-cli/node_modules/@nodelib/fs.stat/package.json +37 -0
  54. package/dist/apipost-cli/node_modules/@nodelib/fs.walk/LICENSE +21 -0
  55. package/dist/apipost-cli/node_modules/@nodelib/fs.walk/out/index.d.ts +14 -0
  56. package/dist/apipost-cli/node_modules/@nodelib/fs.walk/out/index.js +34 -0
  57. package/dist/apipost-cli/node_modules/@nodelib/fs.walk/out/providers/async.d.ts +12 -0
  58. package/dist/apipost-cli/node_modules/@nodelib/fs.walk/out/providers/async.js +30 -0
  59. package/dist/apipost-cli/node_modules/@nodelib/fs.walk/out/providers/index.d.ts +4 -0
  60. package/dist/apipost-cli/node_modules/@nodelib/fs.walk/out/providers/index.js +9 -0
  61. package/dist/apipost-cli/node_modules/@nodelib/fs.walk/out/providers/stream.d.ts +12 -0
  62. package/dist/apipost-cli/node_modules/@nodelib/fs.walk/out/providers/stream.js +34 -0
  63. package/dist/apipost-cli/node_modules/@nodelib/fs.walk/out/providers/sync.d.ts +10 -0
  64. package/dist/apipost-cli/node_modules/@nodelib/fs.walk/out/providers/sync.js +14 -0
  65. package/dist/apipost-cli/node_modules/@nodelib/fs.walk/out/readers/async.d.ts +30 -0
  66. package/dist/apipost-cli/node_modules/@nodelib/fs.walk/out/readers/async.js +97 -0
  67. package/dist/apipost-cli/node_modules/@nodelib/fs.walk/out/readers/common.d.ts +7 -0
  68. package/dist/apipost-cli/node_modules/@nodelib/fs.walk/out/readers/common.js +31 -0
  69. package/dist/apipost-cli/node_modules/@nodelib/fs.walk/out/readers/reader.d.ts +6 -0
  70. package/dist/apipost-cli/node_modules/@nodelib/fs.walk/out/readers/reader.js +11 -0
  71. package/dist/apipost-cli/node_modules/@nodelib/fs.walk/out/readers/sync.d.ts +15 -0
  72. package/dist/apipost-cli/node_modules/@nodelib/fs.walk/out/readers/sync.js +59 -0
  73. package/dist/apipost-cli/node_modules/@nodelib/fs.walk/out/settings.d.ts +30 -0
  74. package/dist/apipost-cli/node_modules/@nodelib/fs.walk/out/settings.js +26 -0
  75. package/dist/apipost-cli/node_modules/@nodelib/fs.walk/out/types/index.d.ts +8 -0
  76. package/dist/apipost-cli/node_modules/@nodelib/fs.walk/out/types/index.js +2 -0
  77. package/dist/apipost-cli/node_modules/@nodelib/fs.walk/package.json +44 -0
  78. package/dist/apipost-cli/node_modules/@types/node/ts4.8/assert/strict.d.ts +8 -0
  79. package/dist/apipost-cli/node_modules/@types/node/ts4.8/assert.d.ts +972 -0
  80. package/dist/apipost-cli/node_modules/@types/node/ts4.8/async_hooks.d.ts +530 -0
  81. package/dist/apipost-cli/node_modules/@types/node/ts4.8/buffer.d.ts +2351 -0
  82. package/dist/apipost-cli/node_modules/@types/node/ts4.8/child_process.d.ts +1395 -0
  83. package/dist/apipost-cli/node_modules/@types/node/ts4.8/cluster.d.ts +410 -0
  84. package/dist/apipost-cli/node_modules/@types/node/ts4.8/console.d.ts +412 -0
  85. package/dist/apipost-cli/node_modules/@types/node/ts4.8/constants.d.ts +18 -0
  86. package/dist/apipost-cli/node_modules/@types/node/ts4.8/crypto.d.ts +3961 -0
  87. package/dist/apipost-cli/node_modules/@types/node/ts4.8/dgram.d.ts +545 -0
  88. package/dist/apipost-cli/node_modules/@types/node/ts4.8/diagnostics_channel.d.ts +191 -0
  89. package/dist/apipost-cli/node_modules/@types/node/ts4.8/dns/promises.d.ts +414 -0
  90. package/dist/apipost-cli/node_modules/@types/node/ts4.8/dns.d.ts +668 -0
  91. package/dist/apipost-cli/node_modules/@types/node/ts4.8/dom-events.d.ts +126 -0
  92. package/dist/apipost-cli/node_modules/@types/node/ts4.8/domain.d.ts +170 -0
  93. package/dist/apipost-cli/node_modules/@types/node/ts4.8/events.d.ts +724 -0
  94. package/dist/apipost-cli/node_modules/@types/node/ts4.8/fs/promises.d.ts +1189 -0
  95. package/dist/apipost-cli/node_modules/@types/node/ts4.8/fs.d.ts +4043 -0
  96. package/dist/apipost-cli/node_modules/@types/node/ts4.8/globals.d.ts +303 -0
  97. package/dist/apipost-cli/node_modules/@types/node/ts4.8/globals.global.d.ts +1 -0
  98. package/dist/apipost-cli/node_modules/@types/node/ts4.8/http.d.ts +1724 -0
  99. package/dist/apipost-cli/node_modules/@types/node/ts4.8/http2.d.ts +2129 -0
  100. package/dist/apipost-cli/node_modules/@types/node/ts4.8/https.d.ts +441 -0
  101. package/dist/apipost-cli/node_modules/@types/node/ts4.8/index.d.ts +88 -0
  102. package/dist/apipost-cli/node_modules/@types/node/ts4.8/inspector.d.ts +2748 -0
  103. package/dist/apipost-cli/node_modules/@types/node/ts4.8/module.d.ts +116 -0
  104. package/dist/apipost-cli/node_modules/@types/node/ts4.8/net.d.ts +886 -0
  105. package/dist/apipost-cli/node_modules/@types/node/ts4.8/os.d.ts +477 -0
  106. package/dist/apipost-cli/node_modules/@types/node/ts4.8/path.d.ts +191 -0
  107. package/dist/apipost-cli/node_modules/@types/node/ts4.8/perf_hooks.d.ts +638 -0
  108. package/dist/apipost-cli/node_modules/@types/node/ts4.8/process.d.ts +1485 -0
  109. package/dist/apipost-cli/node_modules/@types/node/ts4.8/punycode.d.ts +117 -0
  110. package/dist/apipost-cli/node_modules/@types/node/ts4.8/querystring.d.ts +131 -0
  111. package/dist/apipost-cli/node_modules/@types/node/ts4.8/readline/promises.d.ts +145 -0
  112. package/dist/apipost-cli/node_modules/@types/node/ts4.8/readline.d.ts +526 -0
  113. package/dist/apipost-cli/node_modules/@types/node/ts4.8/repl.d.ts +424 -0
  114. package/dist/apipost-cli/node_modules/@types/node/ts4.8/stream/consumers.d.ts +12 -0
  115. package/dist/apipost-cli/node_modules/@types/node/ts4.8/stream/promises.d.ts +42 -0
  116. package/dist/apipost-cli/node_modules/@types/node/ts4.8/stream/web.d.ts +330 -0
  117. package/dist/apipost-cli/node_modules/@types/node/ts4.8/stream.d.ts +1392 -0
  118. package/dist/apipost-cli/node_modules/@types/node/ts4.8/string_decoder.d.ts +67 -0
  119. package/dist/apipost-cli/node_modules/@types/node/ts4.8/test.d.ts +1052 -0
  120. package/dist/apipost-cli/node_modules/@types/node/ts4.8/timers/promises.d.ts +93 -0
  121. package/dist/apipost-cli/node_modules/@types/node/ts4.8/timers.d.ts +215 -0
  122. package/dist/apipost-cli/node_modules/@types/node/ts4.8/tls.d.ts +1119 -0
  123. package/dist/apipost-cli/node_modules/@types/node/ts4.8/trace_events.d.ts +182 -0
  124. package/dist/apipost-cli/node_modules/@types/node/ts4.8/tty.d.ts +205 -0
  125. package/dist/apipost-cli/node_modules/@types/node/ts4.8/url.d.ts +901 -0
  126. package/dist/apipost-cli/node_modules/@types/node/ts4.8/util.d.ts +2052 -0
  127. package/dist/apipost-cli/node_modules/@types/node/ts4.8/v8.d.ts +635 -0
  128. package/dist/apipost-cli/node_modules/@types/node/ts4.8/vm.d.ts +894 -0
  129. package/dist/apipost-cli/node_modules/@types/node/ts4.8/wasi.d.ts +152 -0
  130. package/dist/apipost-cli/node_modules/@types/node/ts4.8/worker_threads.d.ts +693 -0
  131. package/dist/apipost-cli/node_modules/@types/node/ts4.8/zlib.d.ts +517 -0
  132. package/dist/apipost-cli/node_modules/bignumber.js/LICENCE.md +26 -0
  133. package/dist/apipost-cli/node_modules/bignumber.js/bignumber.d.ts +1831 -0
  134. package/dist/apipost-cli/node_modules/bignumber.js/bignumber.js +2926 -0
  135. package/dist/apipost-cli/node_modules/bignumber.js/bignumber.mjs +2889 -0
  136. package/dist/apipost-cli/node_modules/bignumber.js/doc/API.html +2249 -0
  137. package/dist/apipost-cli/node_modules/bignumber.js/package.json +50 -0
  138. package/dist/apipost-cli/node_modules/cpu-features/build/Release/obj.target/cpu_features/deps/cpu_features/src/filesystem.o +0 -0
  139. package/dist/apipost-cli/node_modules/cpu-features/build/Release/obj.target/cpu_features/deps/cpu_features/src/hwcaps.o +0 -0
  140. package/dist/apipost-cli/node_modules/cpu-features/build/Release/obj.target/cpu_features/deps/cpu_features/src/impl_aarch64_linux_or_android.o +0 -0
  141. package/dist/apipost-cli/node_modules/cpu-features/build/Release/obj.target/cpu_features/deps/cpu_features/src/impl_aarch64_macos_or_iphone.o +0 -0
  142. package/dist/apipost-cli/node_modules/cpu-features/build/Release/obj.target/cpu_features/deps/cpu_features/src/impl_arm_linux_or_android.o +0 -0
  143. package/dist/apipost-cli/node_modules/cpu-features/build/Release/obj.target/cpu_features/deps/cpu_features/src/impl_mips_linux_or_android.o +0 -0
  144. package/dist/apipost-cli/node_modules/cpu-features/build/Release/obj.target/cpu_features/deps/cpu_features/src/impl_ppc_linux.o +0 -0
  145. package/dist/apipost-cli/node_modules/cpu-features/build/Release/obj.target/cpu_features/deps/cpu_features/src/impl_x86_freebsd.o +0 -0
  146. package/dist/apipost-cli/node_modules/cpu-features/build/Release/obj.target/cpu_features/deps/cpu_features/src/impl_x86_linux_or_android.o +0 -0
  147. package/dist/apipost-cli/node_modules/cpu-features/build/Release/obj.target/cpu_features/deps/cpu_features/src/impl_x86_macos.o +0 -0
  148. package/dist/apipost-cli/node_modules/cpu-features/build/Release/obj.target/cpu_features/deps/cpu_features/src/impl_x86_windows.o +0 -0
  149. package/dist/apipost-cli/node_modules/cpu-features/build/Release/obj.target/cpu_features/deps/cpu_features/src/stack_line_reader.o +0 -0
  150. package/dist/apipost-cli/node_modules/cpu-features/build/Release/obj.target/cpu_features/deps/cpu_features/src/string_view.o +0 -0
  151. package/dist/apipost-cli/node_modules/cpu-features/build/Release/obj.target/cpufeatures/src/binding.o +0 -0
  152. package/dist/apipost-cli/node_modules/des.js/lib/des/cbc.js +65 -0
  153. package/dist/apipost-cli/node_modules/des.js/lib/des/cipher.js +142 -0
  154. package/dist/apipost-cli/node_modules/des.js/lib/des/des.js +150 -0
  155. package/dist/apipost-cli/node_modules/des.js/lib/des/ede.js +54 -0
  156. package/dist/apipost-cli/node_modules/des.js/lib/des/utils.js +256 -0
  157. package/dist/apipost-cli/node_modules/des.js/lib/des.js +7 -0
  158. package/dist/apipost-cli/node_modules/des.js/package.json +33 -0
  159. package/dist/apipost-cli/node_modules/des.js/test/cbc-test.js +73 -0
  160. package/dist/apipost-cli/node_modules/des.js/test/des-test.js +139 -0
  161. package/dist/apipost-cli/node_modules/des.js/test/ede-test.js +106 -0
  162. package/dist/apipost-cli/node_modules/des.js/test/fixtures.js +5 -0
  163. package/dist/apipost-cli/node_modules/des.js/test/utils-test.js +169 -0
  164. package/dist/apipost-cli/node_modules/fs.realpath/LICENSE +43 -0
  165. package/dist/apipost-cli/node_modules/fs.realpath/index.js +66 -0
  166. package/dist/apipost-cli/node_modules/fs.realpath/old.js +303 -0
  167. package/dist/apipost-cli/node_modules/fs.realpath/package.json +26 -0
  168. package/dist/apipost-cli/node_modules/function.prototype.name/LICENSE +21 -0
  169. package/dist/apipost-cli/node_modules/function.prototype.name/auto.js +3 -0
  170. package/dist/apipost-cli/node_modules/function.prototype.name/helpers/functionsHaveNames.js +5 -0
  171. package/dist/apipost-cli/node_modules/function.prototype.name/implementation.js +43 -0
  172. package/dist/apipost-cli/node_modules/function.prototype.name/index.js +18 -0
  173. package/dist/apipost-cli/node_modules/function.prototype.name/package.json +80 -0
  174. package/dist/apipost-cli/node_modules/function.prototype.name/polyfill.js +7 -0
  175. package/dist/apipost-cli/node_modules/function.prototype.name/shim.js +35 -0
  176. package/dist/apipost-cli/node_modules/function.prototype.name/test/implementation.js +20 -0
  177. package/dist/apipost-cli/node_modules/function.prototype.name/test/index.js +23 -0
  178. package/dist/apipost-cli/node_modules/function.prototype.name/test/shimmed.js +21 -0
  179. package/dist/apipost-cli/node_modules/function.prototype.name/test/tests.js +60 -0
  180. package/dist/apipost-cli/node_modules/function.prototype.name/test/uglified.js +17 -0
  181. package/dist/apipost-cli/node_modules/lodash.camelcase/LICENSE +47 -0
  182. package/dist/apipost-cli/node_modules/lodash.camelcase/index.js +599 -0
  183. package/dist/apipost-cli/node_modules/lodash.camelcase/package.json +17 -0
  184. package/dist/apipost-cli/node_modules/lodash.memoize/LICENSE +47 -0
  185. package/dist/apipost-cli/node_modules/lodash.memoize/index.js +676 -0
  186. package/dist/apipost-cli/node_modules/lodash.memoize/package.json +17 -0
  187. package/dist/apipost-cli/node_modules/lodash.uniq/LICENSE +47 -0
  188. package/dist/apipost-cli/node_modules/lodash.uniq/index.js +896 -0
  189. package/dist/apipost-cli/node_modules/lodash.uniq/package.json +17 -0
  190. package/dist/apipost-cli/node_modules/moment/ts3.1-typings/moment.d.ts +785 -0
  191. package/dist/apipost-cli/node_modules/oauth-1.0a/LICENSE +20 -0
  192. package/dist/apipost-cli/node_modules/oauth-1.0a/Makefile +36 -0
  193. package/dist/apipost-cli/node_modules/oauth-1.0a/oauth-1.0a.d.ts +192 -0
  194. package/dist/apipost-cli/node_modules/oauth-1.0a/oauth-1.0a.js +377 -0
  195. package/dist/apipost-cli/node_modules/oauth-1.0a/package.json +30 -0
  196. package/dist/apipost-cli/node_modules/oauth-1.0a/test/getParameterString.js +21 -0
  197. package/dist/apipost-cli/node_modules/oauth-1.0a/test/mocha.opts +4 -0
  198. package/dist/apipost-cli/node_modules/oauth-1.0a/test/oauth_body_hash.js +141 -0
  199. package/dist/apipost-cli/node_modules/oauth-1.0a/test/options/consumer.js +14 -0
  200. package/dist/apipost-cli/node_modules/oauth-1.0a/test/options/last_ampersand.js +55 -0
  201. package/dist/apipost-cli/node_modules/oauth-1.0a/test/options/multiple_values.js +54 -0
  202. package/dist/apipost-cli/node_modules/oauth-1.0a/test/options/multiple_values_qs.js +50 -0
  203. package/dist/apipost-cli/node_modules/oauth-1.0a/test/options/nonce_length.js +44 -0
  204. package/dist/apipost-cli/node_modules/oauth-1.0a/test/options/parameter_seperator.js +102 -0
  205. package/dist/apipost-cli/node_modules/oauth-1.0a/test/options/realm.js +51 -0
  206. package/dist/apipost-cli/node_modules/oauth-1.0a/test/options/signature_method.js +36 -0
  207. package/dist/apipost-cli/node_modules/oauth-1.0a/test/services/bitbucket.js +88 -0
  208. package/dist/apipost-cli/node_modules/oauth-1.0a/test/services/flickr.js +196 -0
  209. package/dist/apipost-cli/node_modules/oauth-1.0a/test/services/openbank.js +61 -0
  210. package/dist/apipost-cli/node_modules/oauth-1.0a/test/services/twitter.js +183 -0
  211. package/dist/apipost-cli/node_modules/oauth-1.0a/test/twitter_sample_data.js +94 -0
  212. package/dist/apipost-cli/node_modules/object.assign/LICENSE +21 -0
  213. package/dist/apipost-cli/node_modules/object.assign/auto.js +3 -0
  214. package/dist/apipost-cli/node_modules/object.assign/dist/browser.js +944 -0
  215. package/dist/apipost-cli/node_modules/object.assign/hasSymbols.js +43 -0
  216. package/dist/apipost-cli/node_modules/object.assign/implementation.js +46 -0
  217. package/dist/apipost-cli/node_modules/object.assign/index.js +22 -0
  218. package/dist/apipost-cli/node_modules/object.assign/package.json +96 -0
  219. package/dist/apipost-cli/node_modules/object.assign/polyfill.js +55 -0
  220. package/dist/apipost-cli/node_modules/object.assign/shim.js +14 -0
  221. package/dist/apipost-cli/node_modules/object.assign/test/implementation.js +19 -0
  222. package/dist/apipost-cli/node_modules/object.assign/test/index.js +17 -0
  223. package/dist/apipost-cli/node_modules/object.assign/test/native.js +49 -0
  224. package/dist/apipost-cli/node_modules/object.assign/test/ses-compat.js +12 -0
  225. package/dist/apipost-cli/node_modules/object.assign/test/shimmed.js +52 -0
  226. package/dist/apipost-cli/node_modules/object.assign/test/tests.js +232 -0
  227. package/dist/apipost-cli/node_modules/object.assign/test.html +18458 -0
  228. package/dist/apipost-cli/node_modules/promise.series/LICENSE +21 -0
  229. package/dist/apipost-cli/node_modules/promise.series/index.js +10 -0
  230. package/dist/apipost-cli/node_modules/promise.series/package.json +34 -0
  231. package/dist/apipost-cli/node_modules/regexp.prototype.flags/LICENSE +22 -0
  232. package/dist/apipost-cli/node_modules/regexp.prototype.flags/auto.js +3 -0
  233. package/dist/apipost-cli/node_modules/regexp.prototype.flags/implementation.js +42 -0
  234. package/dist/apipost-cli/node_modules/regexp.prototype.flags/index.js +18 -0
  235. package/dist/apipost-cli/node_modules/regexp.prototype.flags/package.json +100 -0
  236. package/dist/apipost-cli/node_modules/regexp.prototype.flags/polyfill.js +36 -0
  237. package/dist/apipost-cli/node_modules/regexp.prototype.flags/shim.js +26 -0
  238. package/dist/apipost-cli/node_modules/regexp.prototype.flags/test/implementation.js +20 -0
  239. package/dist/apipost-cli/node_modules/regexp.prototype.flags/test/index.js +17 -0
  240. package/dist/apipost-cli/node_modules/regexp.prototype.flags/test/shimmed.js +48 -0
  241. package/dist/apipost-cli/node_modules/regexp.prototype.flags/test/tests.js +143 -0
  242. package/dist/apipost-cli/node_modules/resolve.exports/dist/index.js +1 -0
  243. package/dist/apipost-cli/node_modules/resolve.exports/dist/index.mjs +1 -0
  244. package/dist/apipost-cli/node_modules/resolve.exports/index.d.ts +100 -0
  245. package/dist/apipost-cli/node_modules/resolve.exports/license +21 -0
  246. package/dist/apipost-cli/node_modules/resolve.exports/package.json +50 -0
  247. package/dist/apipost-cli/node_modules/ssh2/lib/protocol/crypto/build/Release/obj.target/sshcrypto/src/binding.o +0 -0
  248. package/dist/apipost-cli/node_modules/string.prototype.trim/LICENSE +21 -0
  249. package/dist/apipost-cli/node_modules/string.prototype.trim/auto.js +3 -0
  250. package/dist/apipost-cli/node_modules/string.prototype.trim/implementation.js +21 -0
  251. package/dist/apipost-cli/node_modules/string.prototype.trim/index.js +23 -0
  252. package/dist/apipost-cli/node_modules/string.prototype.trim/package.json +101 -0
  253. package/dist/apipost-cli/node_modules/string.prototype.trim/polyfill.js +19 -0
  254. package/dist/apipost-cli/node_modules/string.prototype.trim/shim.js +14 -0
  255. package/dist/apipost-cli/node_modules/string.prototype.trim/test/implementation.js +21 -0
  256. package/dist/apipost-cli/node_modules/string.prototype.trim/test/index.js +17 -0
  257. package/dist/apipost-cli/node_modules/string.prototype.trim/test/shimmed.js +36 -0
  258. package/dist/apipost-cli/node_modules/string.prototype.trim/test/tests.js +45 -0
  259. package/dist/apipost-cli/node_modules/string.prototype.trimend/LICENSE +21 -0
  260. package/dist/apipost-cli/node_modules/string.prototype.trimend/auto.js +3 -0
  261. package/dist/apipost-cli/node_modules/string.prototype.trimend/implementation.js +15 -0
  262. package/dist/apipost-cli/node_modules/string.prototype.trimend/index.js +23 -0
  263. package/dist/apipost-cli/node_modules/string.prototype.trimend/package.json +79 -0
  264. package/dist/apipost-cli/node_modules/string.prototype.trimend/polyfill.js +15 -0
  265. package/dist/apipost-cli/node_modules/string.prototype.trimend/shim.js +14 -0
  266. package/dist/apipost-cli/node_modules/string.prototype.trimend/test/implementation.js +20 -0
  267. package/dist/apipost-cli/node_modules/string.prototype.trimend/test/index.js +17 -0
  268. package/dist/apipost-cli/node_modules/string.prototype.trimend/test/shimmed.js +36 -0
  269. package/dist/apipost-cli/node_modules/string.prototype.trimend/test/tests.js +31 -0
  270. package/dist/apipost-cli/node_modules/string.prototype.trimstart/LICENSE +21 -0
  271. package/dist/apipost-cli/node_modules/string.prototype.trimstart/auto.js +3 -0
  272. package/dist/apipost-cli/node_modules/string.prototype.trimstart/implementation.js +15 -0
  273. package/dist/apipost-cli/node_modules/string.prototype.trimstart/index.js +23 -0
  274. package/dist/apipost-cli/node_modules/string.prototype.trimstart/package.json +79 -0
  275. package/dist/apipost-cli/node_modules/string.prototype.trimstart/polyfill.js +15 -0
  276. package/dist/apipost-cli/node_modules/string.prototype.trimstart/shim.js +14 -0
  277. package/dist/apipost-cli/node_modules/string.prototype.trimstart/test/implementation.js +20 -0
  278. package/dist/apipost-cli/node_modules/string.prototype.trimstart/test/index.js +18 -0
  279. package/dist/apipost-cli/node_modules/string.prototype.trimstart/test/shimmed.js +36 -0
  280. package/dist/apipost-cli/node_modules/string.prototype.trimstart/test/tests.js +31 -0
  281. package/dist/apipost-cli/node_modules/web-streams-polyfill/dist/types/ts3.6/polyfill.d.ts +771 -0
  282. package/dist/apipost-http-schema.json +129 -0
  283. package/dist/bridge.js +1010 -0
  284. package/dist/build/Release/cpufeatures.node +0 -0
  285. package/dist/esprima.js +3756 -0
  286. package/dist/events.js +977 -0
  287. package/dist/index.js +565958 -0
  288. package/dist/index1.js +26 -0
  289. package/dist/lib/protocol/crypto/build/Release/sshcrypto.node +0 -0
  290. package/dist/module.js +34 -0
  291. package/dist/pagent.exe +0 -0
  292. package/dist/setup-node-sandbox.js +461 -0
  293. package/dist/setup-sandbox.js +545 -0
  294. package/dist/snappy.darwin-arm64.node +0 -0
  295. package/dist/xdg-open +1066 -0
  296. package/package.json +13 -4
  297. package/bin/cli.js +0 -216
  298. package/bin/template.js +0 -803
  299. /package/{bin → dist/apipost-cli}/apipost-reports//346/265/213/350/257/225.html" +0 -0
  300. /package/{bin → dist/apipost-cli}/apipost-reports//346/265/213/350/257/225.json" +0 -0
@@ -0,0 +1,112 @@
1
+ import { AbortSignalLike } from '@azure/abort-controller';
2
+ /**
3
+ * Generates a SHA-256 hash.
4
+ * @param content - The data to be included in the hash.
5
+ * @param encoding - The textual encoding to use for the returned hash.
6
+ */
7
+ export declare function computeSha256Hash(content: string, encoding: "base64" | "hex"): Promise<string>;
8
+ /**
9
+ * Generates a SHA-256 HMAC signature.
10
+ * @param key - The HMAC key represented as a base64 string, used to generate the cryptographic HMAC hash.
11
+ * @param stringToSign - The data to be signed.
12
+ * @param encoding - The textual encoding to use for the returned HMAC digest.
13
+ */
14
+ export declare function computeSha256Hmac(key: string, stringToSign: string, encoding: "base64" | "hex"): Promise<string>;
15
+ /**
16
+ * Creates an abortable promise.
17
+ * @param buildPromise - A function that takes the resolve and reject functions as parameters.
18
+ * @param options - The options for the abortable promise.
19
+ * @returns A promise that can be aborted.
20
+ */
21
+ export declare function createAbortablePromise<T>(buildPromise: (resolve: (value: T | PromiseLike<T>) => void, reject: (reason?: any) => void) => void, options?: CreateAbortablePromiseOptions): Promise<T>;
22
+ /**
23
+ * Options for the createAbortablePromise function.
24
+ */
25
+ export declare interface CreateAbortablePromiseOptions {
26
+ /** A function to be called if the promise was aborted */
27
+ cleanupBeforeAbort?: () => void;
28
+ /** An abort signal */
29
+ abortSignal?: AbortSignalLike;
30
+ /** An abort error message */
31
+ abortErrorMsg?: string;
32
+ }
33
+ /**
34
+ * A wrapper for setTimeout that resolves a promise after timeInMs milliseconds.
35
+ * @param timeInMs - The number of milliseconds to be delayed.
36
+ * @param options - The options for delay - currently abort options
37
+ * @returns Promise that is resolved after timeInMs
38
+ */
39
+ export declare function delay(timeInMs: number, options?: DelayOptions): Promise<void>;
40
+ /**
41
+ * Options for support abort functionality for the delay method
42
+ */
43
+ export declare interface DelayOptions {
44
+ /**
45
+ * The abortSignal associated with containing operation.
46
+ */
47
+ abortSignal?: AbortSignalLike;
48
+ /**
49
+ * The abort error message associated with containing operation.
50
+ */
51
+ abortErrorMsg?: string;
52
+ }
53
+ /**
54
+ * Given what is thought to be an error object, return the message if possible.
55
+ * If the message is missing, returns a stringified version of the input.
56
+ * @param e - Something thrown from a try block
57
+ * @returns The error message or a string of the input
58
+ */
59
+ export declare function getErrorMessage(e: unknown): string;
60
+ /**
61
+ * Returns a random integer value between a lower and upper bound,
62
+ * inclusive of both bounds.
63
+ * Note that this uses Math.random and isn't secure. If you need to use
64
+ * this for any kind of security purpose, find a better source of random.
65
+ * @param min - The smallest integer value allowed.
66
+ * @param max - The largest integer value allowed.
67
+ */
68
+ export declare function getRandomIntegerInclusive(min: number, max: number): number;
69
+ /**
70
+ * Helper TypeGuard that checks if something is defined or not.
71
+ * @param thing - Anything
72
+ */
73
+ export declare function isDefined<T>(thing: T | undefined | null): thing is T;
74
+ /**
75
+ * Typeguard for an error object shape (has name and message)
76
+ * @param e - Something caught by a catch clause.
77
+ */
78
+ export declare function isError(e: unknown): e is Error;
79
+ /**
80
+ * A constant that indicates whether the environment the code is running is Node.JS.
81
+ */
82
+ export declare const isNode: boolean;
83
+ /**
84
+ * Helper to determine when an input is a generic JS object.
85
+ * @returns true when input is an object type that is not null, Array, RegExp, or Date.
86
+ */
87
+ export declare function isObject(input: unknown): input is UnknownObject;
88
+ /**
89
+ * Helper TypeGuard that checks if the input is an object with the specified properties.
90
+ * @param thing - Anything.
91
+ * @param properties - The name of the properties that should appear in the object.
92
+ */
93
+ export declare function isObjectWithProperties<Thing, PropertyName extends string>(thing: Thing, properties: PropertyName[]): thing is Thing & Record<PropertyName, unknown>;
94
+ /**
95
+ * Helper TypeGuard that checks if the input is an object with the specified property.
96
+ * @param thing - Any object.
97
+ * @param property - The name of the property that should appear in the object.
98
+ */
99
+ export declare function objectHasProperty<Thing, PropertyName extends string>(thing: Thing, property: PropertyName): thing is Thing & Record<PropertyName, unknown>;
100
+ /**
101
+ * Generated Universally Unique Identifier
102
+ *
103
+ * @returns RFC4122 v4 UUID.
104
+ */
105
+ export declare function randomUUID(): string;
106
+ /**
107
+ * A generic shape for a plain JS object.
108
+ */
109
+ export declare type UnknownObject = {
110
+ [s: string]: unknown;
111
+ };
112
+ export {};
@@ -0,0 +1,21 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) Denis Malinochkin
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 all
13
+ 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 THE
21
+ SOFTWARE.
@@ -0,0 +1,20 @@
1
+ import type * as fsStat from '@nodelib/fs.stat';
2
+ import type { Dirent, ErrnoException } from '../types';
3
+ export interface ReaddirAsynchronousMethod {
4
+ (filepath: string, options: {
5
+ withFileTypes: true;
6
+ }, callback: (error: ErrnoException | null, files: Dirent[]) => void): void;
7
+ (filepath: string, callback: (error: ErrnoException | null, files: string[]) => void): void;
8
+ }
9
+ export interface ReaddirSynchronousMethod {
10
+ (filepath: string, options: {
11
+ withFileTypes: true;
12
+ }): Dirent[];
13
+ (filepath: string): string[];
14
+ }
15
+ export declare type FileSystemAdapter = fsStat.FileSystemAdapter & {
16
+ readdir: ReaddirAsynchronousMethod;
17
+ readdirSync: ReaddirSynchronousMethod;
18
+ };
19
+ export declare const FILE_SYSTEM_ADAPTER: FileSystemAdapter;
20
+ export declare function createFileSystemAdapter(fsMethods?: Partial<FileSystemAdapter>): FileSystemAdapter;
@@ -0,0 +1,19 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.createFileSystemAdapter = exports.FILE_SYSTEM_ADAPTER = void 0;
4
+ const fs = require("fs");
5
+ exports.FILE_SYSTEM_ADAPTER = {
6
+ lstat: fs.lstat,
7
+ stat: fs.stat,
8
+ lstatSync: fs.lstatSync,
9
+ statSync: fs.statSync,
10
+ readdir: fs.readdir,
11
+ readdirSync: fs.readdirSync
12
+ };
13
+ function createFileSystemAdapter(fsMethods) {
14
+ if (fsMethods === undefined) {
15
+ return exports.FILE_SYSTEM_ADAPTER;
16
+ }
17
+ return Object.assign(Object.assign({}, exports.FILE_SYSTEM_ADAPTER), fsMethods);
18
+ }
19
+ exports.createFileSystemAdapter = createFileSystemAdapter;
@@ -0,0 +1,4 @@
1
+ /**
2
+ * IS `true` for Node.js 10.10 and greater.
3
+ */
4
+ export declare const IS_SUPPORT_READDIR_WITH_FILE_TYPES: boolean;
@@ -0,0 +1,17 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.IS_SUPPORT_READDIR_WITH_FILE_TYPES = void 0;
4
+ const NODE_PROCESS_VERSION_PARTS = process.versions.node.split('.');
5
+ if (NODE_PROCESS_VERSION_PARTS[0] === undefined || NODE_PROCESS_VERSION_PARTS[1] === undefined) {
6
+ throw new Error(`Unexpected behavior. The 'process.versions.node' variable has invalid value: ${process.versions.node}`);
7
+ }
8
+ const MAJOR_VERSION = Number.parseInt(NODE_PROCESS_VERSION_PARTS[0], 10);
9
+ const MINOR_VERSION = Number.parseInt(NODE_PROCESS_VERSION_PARTS[1], 10);
10
+ const SUPPORTED_MAJOR_VERSION = 10;
11
+ const SUPPORTED_MINOR_VERSION = 10;
12
+ const IS_MATCHED_BY_MAJOR = MAJOR_VERSION > SUPPORTED_MAJOR_VERSION;
13
+ const IS_MATCHED_BY_MAJOR_AND_MINOR = MAJOR_VERSION === SUPPORTED_MAJOR_VERSION && MINOR_VERSION >= SUPPORTED_MINOR_VERSION;
14
+ /**
15
+ * IS `true` for Node.js 10.10 and greater.
16
+ */
17
+ exports.IS_SUPPORT_READDIR_WITH_FILE_TYPES = IS_MATCHED_BY_MAJOR || IS_MATCHED_BY_MAJOR_AND_MINOR;
@@ -0,0 +1,12 @@
1
+ import type { FileSystemAdapter, ReaddirAsynchronousMethod, ReaddirSynchronousMethod } from './adapters/fs';
2
+ import * as async from './providers/async';
3
+ import Settings, { Options } from './settings';
4
+ import type { Dirent, Entry } from './types';
5
+ declare type AsyncCallback = async.AsyncCallback;
6
+ declare function scandir(path: string, callback: AsyncCallback): void;
7
+ declare function scandir(path: string, optionsOrSettings: Options | Settings, callback: AsyncCallback): void;
8
+ declare namespace scandir {
9
+ function __promisify__(path: string, optionsOrSettings?: Options | Settings): Promise<Entry[]>;
10
+ }
11
+ declare function scandirSync(path: string, optionsOrSettings?: Options | Settings): Entry[];
12
+ export { scandir, scandirSync, Settings, AsyncCallback, Dirent, Entry, FileSystemAdapter, ReaddirAsynchronousMethod, ReaddirSynchronousMethod, Options };
@@ -0,0 +1,26 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.Settings = exports.scandirSync = exports.scandir = void 0;
4
+ const async = require("./providers/async");
5
+ const sync = require("./providers/sync");
6
+ const settings_1 = require("./settings");
7
+ exports.Settings = settings_1.default;
8
+ function scandir(path, optionsOrSettingsOrCallback, callback) {
9
+ if (typeof optionsOrSettingsOrCallback === 'function') {
10
+ async.read(path, getSettings(), optionsOrSettingsOrCallback);
11
+ return;
12
+ }
13
+ async.read(path, getSettings(optionsOrSettingsOrCallback), callback);
14
+ }
15
+ exports.scandir = scandir;
16
+ function scandirSync(path, optionsOrSettings) {
17
+ const settings = getSettings(optionsOrSettings);
18
+ return sync.read(path, settings);
19
+ }
20
+ exports.scandirSync = scandirSync;
21
+ function getSettings(settingsOrOptions = {}) {
22
+ if (settingsOrOptions instanceof settings_1.default) {
23
+ return settingsOrOptions;
24
+ }
25
+ return new settings_1.default(settingsOrOptions);
26
+ }
@@ -0,0 +1,7 @@
1
+ /// <reference types="node" />
2
+ import type Settings from '../settings';
3
+ import type { Entry } from '../types';
4
+ export declare type AsyncCallback = (error: NodeJS.ErrnoException, entries: Entry[]) => void;
5
+ export declare function read(directory: string, settings: Settings, callback: AsyncCallback): void;
6
+ export declare function readdirWithFileTypes(directory: string, settings: Settings, callback: AsyncCallback): void;
7
+ export declare function readdir(directory: string, settings: Settings, callback: AsyncCallback): void;
@@ -0,0 +1,104 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.readdir = exports.readdirWithFileTypes = exports.read = void 0;
4
+ const fsStat = require("@nodelib/fs.stat");
5
+ const rpl = require("run-parallel");
6
+ const constants_1 = require("../constants");
7
+ const utils = require("../utils");
8
+ const common = require("./common");
9
+ function read(directory, settings, callback) {
10
+ if (!settings.stats && constants_1.IS_SUPPORT_READDIR_WITH_FILE_TYPES) {
11
+ readdirWithFileTypes(directory, settings, callback);
12
+ return;
13
+ }
14
+ readdir(directory, settings, callback);
15
+ }
16
+ exports.read = read;
17
+ function readdirWithFileTypes(directory, settings, callback) {
18
+ settings.fs.readdir(directory, { withFileTypes: true }, (readdirError, dirents) => {
19
+ if (readdirError !== null) {
20
+ callFailureCallback(callback, readdirError);
21
+ return;
22
+ }
23
+ const entries = dirents.map((dirent) => ({
24
+ dirent,
25
+ name: dirent.name,
26
+ path: common.joinPathSegments(directory, dirent.name, settings.pathSegmentSeparator)
27
+ }));
28
+ if (!settings.followSymbolicLinks) {
29
+ callSuccessCallback(callback, entries);
30
+ return;
31
+ }
32
+ const tasks = entries.map((entry) => makeRplTaskEntry(entry, settings));
33
+ rpl(tasks, (rplError, rplEntries) => {
34
+ if (rplError !== null) {
35
+ callFailureCallback(callback, rplError);
36
+ return;
37
+ }
38
+ callSuccessCallback(callback, rplEntries);
39
+ });
40
+ });
41
+ }
42
+ exports.readdirWithFileTypes = readdirWithFileTypes;
43
+ function makeRplTaskEntry(entry, settings) {
44
+ return (done) => {
45
+ if (!entry.dirent.isSymbolicLink()) {
46
+ done(null, entry);
47
+ return;
48
+ }
49
+ settings.fs.stat(entry.path, (statError, stats) => {
50
+ if (statError !== null) {
51
+ if (settings.throwErrorOnBrokenSymbolicLink) {
52
+ done(statError);
53
+ return;
54
+ }
55
+ done(null, entry);
56
+ return;
57
+ }
58
+ entry.dirent = utils.fs.createDirentFromStats(entry.name, stats);
59
+ done(null, entry);
60
+ });
61
+ };
62
+ }
63
+ function readdir(directory, settings, callback) {
64
+ settings.fs.readdir(directory, (readdirError, names) => {
65
+ if (readdirError !== null) {
66
+ callFailureCallback(callback, readdirError);
67
+ return;
68
+ }
69
+ const tasks = names.map((name) => {
70
+ const path = common.joinPathSegments(directory, name, settings.pathSegmentSeparator);
71
+ return (done) => {
72
+ fsStat.stat(path, settings.fsStatSettings, (error, stats) => {
73
+ if (error !== null) {
74
+ done(error);
75
+ return;
76
+ }
77
+ const entry = {
78
+ name,
79
+ path,
80
+ dirent: utils.fs.createDirentFromStats(name, stats)
81
+ };
82
+ if (settings.stats) {
83
+ entry.stats = stats;
84
+ }
85
+ done(null, entry);
86
+ });
87
+ };
88
+ });
89
+ rpl(tasks, (rplError, entries) => {
90
+ if (rplError !== null) {
91
+ callFailureCallback(callback, rplError);
92
+ return;
93
+ }
94
+ callSuccessCallback(callback, entries);
95
+ });
96
+ });
97
+ }
98
+ exports.readdir = readdir;
99
+ function callFailureCallback(callback, error) {
100
+ callback(error);
101
+ }
102
+ function callSuccessCallback(callback, result) {
103
+ callback(null, result);
104
+ }
@@ -0,0 +1 @@
1
+ export declare function joinPathSegments(a: string, b: string, separator: string): string;
@@ -0,0 +1,13 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.joinPathSegments = void 0;
4
+ function joinPathSegments(a, b, separator) {
5
+ /**
6
+ * The correct handling of cases when the first segment is a root (`/`, `C:/`) or UNC path (`//?/C:/`).
7
+ */
8
+ if (a.endsWith(separator)) {
9
+ return a + b;
10
+ }
11
+ return a + separator + b;
12
+ }
13
+ exports.joinPathSegments = joinPathSegments;
@@ -0,0 +1,5 @@
1
+ import type Settings from '../settings';
2
+ import type { Entry } from '../types';
3
+ export declare function read(directory: string, settings: Settings): Entry[];
4
+ export declare function readdirWithFileTypes(directory: string, settings: Settings): Entry[];
5
+ export declare function readdir(directory: string, settings: Settings): Entry[];
@@ -0,0 +1,54 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.readdir = exports.readdirWithFileTypes = exports.read = void 0;
4
+ const fsStat = require("@nodelib/fs.stat");
5
+ const constants_1 = require("../constants");
6
+ const utils = require("../utils");
7
+ const common = require("./common");
8
+ function read(directory, settings) {
9
+ if (!settings.stats && constants_1.IS_SUPPORT_READDIR_WITH_FILE_TYPES) {
10
+ return readdirWithFileTypes(directory, settings);
11
+ }
12
+ return readdir(directory, settings);
13
+ }
14
+ exports.read = read;
15
+ function readdirWithFileTypes(directory, settings) {
16
+ const dirents = settings.fs.readdirSync(directory, { withFileTypes: true });
17
+ return dirents.map((dirent) => {
18
+ const entry = {
19
+ dirent,
20
+ name: dirent.name,
21
+ path: common.joinPathSegments(directory, dirent.name, settings.pathSegmentSeparator)
22
+ };
23
+ if (entry.dirent.isSymbolicLink() && settings.followSymbolicLinks) {
24
+ try {
25
+ const stats = settings.fs.statSync(entry.path);
26
+ entry.dirent = utils.fs.createDirentFromStats(entry.name, stats);
27
+ }
28
+ catch (error) {
29
+ if (settings.throwErrorOnBrokenSymbolicLink) {
30
+ throw error;
31
+ }
32
+ }
33
+ }
34
+ return entry;
35
+ });
36
+ }
37
+ exports.readdirWithFileTypes = readdirWithFileTypes;
38
+ function readdir(directory, settings) {
39
+ const names = settings.fs.readdirSync(directory);
40
+ return names.map((name) => {
41
+ const entryPath = common.joinPathSegments(directory, name, settings.pathSegmentSeparator);
42
+ const stats = fsStat.statSync(entryPath, settings.fsStatSettings);
43
+ const entry = {
44
+ name,
45
+ path: entryPath,
46
+ dirent: utils.fs.createDirentFromStats(name, stats)
47
+ };
48
+ if (settings.stats) {
49
+ entry.stats = stats;
50
+ }
51
+ return entry;
52
+ });
53
+ }
54
+ exports.readdir = readdir;
@@ -0,0 +1,20 @@
1
+ import * as fsStat from '@nodelib/fs.stat';
2
+ import * as fs from './adapters/fs';
3
+ export interface Options {
4
+ followSymbolicLinks?: boolean;
5
+ fs?: Partial<fs.FileSystemAdapter>;
6
+ pathSegmentSeparator?: string;
7
+ stats?: boolean;
8
+ throwErrorOnBrokenSymbolicLink?: boolean;
9
+ }
10
+ export default class Settings {
11
+ private readonly _options;
12
+ readonly followSymbolicLinks: boolean;
13
+ readonly fs: fs.FileSystemAdapter;
14
+ readonly pathSegmentSeparator: string;
15
+ readonly stats: boolean;
16
+ readonly throwErrorOnBrokenSymbolicLink: boolean;
17
+ readonly fsStatSettings: fsStat.Settings;
18
+ constructor(_options?: Options);
19
+ private _getValue;
20
+ }
@@ -0,0 +1,24 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const path = require("path");
4
+ const fsStat = require("@nodelib/fs.stat");
5
+ const fs = require("./adapters/fs");
6
+ class Settings {
7
+ constructor(_options = {}) {
8
+ this._options = _options;
9
+ this.followSymbolicLinks = this._getValue(this._options.followSymbolicLinks, false);
10
+ this.fs = fs.createFileSystemAdapter(this._options.fs);
11
+ this.pathSegmentSeparator = this._getValue(this._options.pathSegmentSeparator, path.sep);
12
+ this.stats = this._getValue(this._options.stats, false);
13
+ this.throwErrorOnBrokenSymbolicLink = this._getValue(this._options.throwErrorOnBrokenSymbolicLink, true);
14
+ this.fsStatSettings = new fsStat.Settings({
15
+ followSymbolicLink: this.followSymbolicLinks,
16
+ fs: this.fs,
17
+ throwErrorOnBrokenSymbolicLink: this.throwErrorOnBrokenSymbolicLink
18
+ });
19
+ }
20
+ _getValue(option, value) {
21
+ return option !== null && option !== void 0 ? option : value;
22
+ }
23
+ }
24
+ exports.default = Settings;
@@ -0,0 +1,20 @@
1
+ /// <reference types="node" />
2
+ import type * as fs from 'fs';
3
+ export interface Entry {
4
+ dirent: Dirent;
5
+ name: string;
6
+ path: string;
7
+ stats?: Stats;
8
+ }
9
+ export declare type Stats = fs.Stats;
10
+ export declare type ErrnoException = NodeJS.ErrnoException;
11
+ export interface Dirent {
12
+ isBlockDevice: () => boolean;
13
+ isCharacterDevice: () => boolean;
14
+ isDirectory: () => boolean;
15
+ isFIFO: () => boolean;
16
+ isFile: () => boolean;
17
+ isSocket: () => boolean;
18
+ isSymbolicLink: () => boolean;
19
+ name: string;
20
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,2 @@
1
+ import type { Dirent, Stats } from '../types';
2
+ export declare function createDirentFromStats(name: string, stats: Stats): Dirent;
@@ -0,0 +1,19 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.createDirentFromStats = void 0;
4
+ class DirentFromStats {
5
+ constructor(name, stats) {
6
+ this.name = name;
7
+ this.isBlockDevice = stats.isBlockDevice.bind(stats);
8
+ this.isCharacterDevice = stats.isCharacterDevice.bind(stats);
9
+ this.isDirectory = stats.isDirectory.bind(stats);
10
+ this.isFIFO = stats.isFIFO.bind(stats);
11
+ this.isFile = stats.isFile.bind(stats);
12
+ this.isSocket = stats.isSocket.bind(stats);
13
+ this.isSymbolicLink = stats.isSymbolicLink.bind(stats);
14
+ }
15
+ }
16
+ function createDirentFromStats(name, stats) {
17
+ return new DirentFromStats(name, stats);
18
+ }
19
+ exports.createDirentFromStats = createDirentFromStats;
@@ -0,0 +1,2 @@
1
+ import * as fs from './fs';
2
+ export { fs };
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.fs = void 0;
4
+ const fs = require("./fs");
5
+ exports.fs = fs;
@@ -0,0 +1,44 @@
1
+ {
2
+ "name": "@nodelib/fs.scandir",
3
+ "version": "2.1.5",
4
+ "description": "List files and directories inside the specified directory",
5
+ "license": "MIT",
6
+ "repository": "https://github.com/nodelib/nodelib/tree/master/packages/fs/fs.scandir",
7
+ "keywords": [
8
+ "NodeLib",
9
+ "fs",
10
+ "FileSystem",
11
+ "file system",
12
+ "scandir",
13
+ "readdir",
14
+ "dirent"
15
+ ],
16
+ "engines": {
17
+ "node": ">= 8"
18
+ },
19
+ "files": [
20
+ "out/**",
21
+ "!out/**/*.map",
22
+ "!out/**/*.spec.*"
23
+ ],
24
+ "main": "out/index.js",
25
+ "typings": "out/index.d.ts",
26
+ "scripts": {
27
+ "clean": "rimraf {tsconfig.tsbuildinfo,out}",
28
+ "lint": "eslint \"src/**/*.ts\" --cache",
29
+ "compile": "tsc -b .",
30
+ "compile:watch": "tsc -p . --watch --sourceMap",
31
+ "test": "mocha \"out/**/*.spec.js\" -s 0",
32
+ "build": "npm run clean && npm run compile && npm run lint && npm test",
33
+ "watch": "npm run clean && npm run compile:watch"
34
+ },
35
+ "dependencies": {
36
+ "@nodelib/fs.stat": "2.0.5",
37
+ "run-parallel": "^1.1.9"
38
+ },
39
+ "devDependencies": {
40
+ "@nodelib/fs.macchiato": "1.0.4",
41
+ "@types/run-parallel": "^1.1.0"
42
+ },
43
+ "gitHead": "d6a7960d5281d3dd5f8e2efba49bb552d090f562"
44
+ }
@@ -0,0 +1,21 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) Denis Malinochkin
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 all
13
+ 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 THE
21
+ SOFTWARE.
@@ -0,0 +1,13 @@
1
+ /// <reference types="node" />
2
+ import * as fs from 'fs';
3
+ import type { ErrnoException } from '../types';
4
+ export declare type StatAsynchronousMethod = (path: string, callback: (error: ErrnoException | null, stats: fs.Stats) => void) => void;
5
+ export declare type StatSynchronousMethod = (path: string) => fs.Stats;
6
+ export interface FileSystemAdapter {
7
+ lstat: StatAsynchronousMethod;
8
+ stat: StatAsynchronousMethod;
9
+ lstatSync: StatSynchronousMethod;
10
+ statSync: StatSynchronousMethod;
11
+ }
12
+ export declare const FILE_SYSTEM_ADAPTER: FileSystemAdapter;
13
+ export declare function createFileSystemAdapter(fsMethods?: Partial<FileSystemAdapter>): FileSystemAdapter;
@@ -0,0 +1,17 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.createFileSystemAdapter = exports.FILE_SYSTEM_ADAPTER = void 0;
4
+ const fs = require("fs");
5
+ exports.FILE_SYSTEM_ADAPTER = {
6
+ lstat: fs.lstat,
7
+ stat: fs.stat,
8
+ lstatSync: fs.lstatSync,
9
+ statSync: fs.statSync
10
+ };
11
+ function createFileSystemAdapter(fsMethods) {
12
+ if (fsMethods === undefined) {
13
+ return exports.FILE_SYSTEM_ADAPTER;
14
+ }
15
+ return Object.assign(Object.assign({}, exports.FILE_SYSTEM_ADAPTER), fsMethods);
16
+ }
17
+ exports.createFileSystemAdapter = createFileSystemAdapter;
@@ -0,0 +1,12 @@
1
+ import type { FileSystemAdapter, StatAsynchronousMethod, StatSynchronousMethod } from './adapters/fs';
2
+ import * as async from './providers/async';
3
+ import Settings, { Options } from './settings';
4
+ import type { Stats } from './types';
5
+ declare type AsyncCallback = async.AsyncCallback;
6
+ declare function stat(path: string, callback: AsyncCallback): void;
7
+ declare function stat(path: string, optionsOrSettings: Options | Settings, callback: AsyncCallback): void;
8
+ declare namespace stat {
9
+ function __promisify__(path: string, optionsOrSettings?: Options | Settings): Promise<Stats>;
10
+ }
11
+ declare function statSync(path: string, optionsOrSettings?: Options | Settings): Stats;
12
+ export { Settings, stat, statSync, AsyncCallback, FileSystemAdapter, StatAsynchronousMethod, StatSynchronousMethod, Options, Stats };