@corellium/corellium-cli 1.2.0 → 1.2.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (992) hide show
  1. package/.gitlab-ci.yml +32 -1
  2. package/ci/gitlab-build.sh +1 -1
  3. package/coverage/cobertura-coverage.xml +9 -0
  4. package/coverage/lcov-report/base.css +224 -0
  5. package/coverage/lcov-report/block-navigation.js +87 -0
  6. package/coverage/lcov-report/favicon.png +0 -0
  7. package/coverage/lcov-report/index.html +101 -0
  8. package/coverage/lcov-report/prettify.css +1 -0
  9. package/coverage/lcov-report/prettify.js +2 -0
  10. package/coverage/lcov-report/sort-arrow-sprite.png +0 -0
  11. package/coverage/lcov-report/sorter.js +196 -0
  12. package/coverage/lcov.info +0 -0
  13. package/index.js +2 -0
  14. package/package.json +62 -64
  15. package/src/clients/Instance.js +4 -0
  16. package/src/commands/extensions/delete.js +2 -1
  17. package/src/commands/extensions/list.js +3 -2
  18. package/src/commands/firmware/list.js +3 -2
  19. package/src/commands/images/create.js +2 -2
  20. package/src/commands/images/delete.js +1 -0
  21. package/src/commands/images/list.js +3 -2
  22. package/src/commands/index.js +0 -2
  23. package/src/commands/{agent → instances}/apps/index.js +3 -3
  24. package/src/commands/instances/create.js +9 -3
  25. package/src/commands/{agent → instances}/file.js +2 -2
  26. package/src/commands/instances/index.js +6 -1
  27. package/src/commands/instances/input.js +52 -0
  28. package/src/commands/instances/list.js +3 -2
  29. package/src/commands/instances/upgrade.js +2 -2
  30. package/src/commands/projects/create.js +2 -2
  31. package/src/commands/projects/delete.js +2 -1
  32. package/src/commands/projects/list.js +3 -2
  33. package/src/commands/webplayer/create.js +2 -2
  34. package/src/commands/webplayer/list.js +2 -2
  35. package/src/error.js +12 -6
  36. package/src/table.js +1 -1
  37. package/src/utils.js +19 -40
  38. package/node_modules/@babel/cli/LICENSE +0 -22
  39. package/node_modules/@babel/cli/README.md +0 -19
  40. package/node_modules/@babel/cli/bin/babel-external-helpers.js +0 -3
  41. package/node_modules/@babel/cli/bin/babel.js +0 -3
  42. package/node_modules/@babel/cli/index.js +0 -1
  43. package/node_modules/@babel/cli/lib/babel/dir.js +0 -285
  44. package/node_modules/@babel/cli/lib/babel/file.js +0 -273
  45. package/node_modules/@babel/cli/lib/babel/index.js +0 -20
  46. package/node_modules/@babel/cli/lib/babel/options.js +0 -285
  47. package/node_modules/@babel/cli/lib/babel/util.js +0 -181
  48. package/node_modules/@babel/cli/lib/babel/watcher.js +0 -162
  49. package/node_modules/@babel/cli/lib/babel-external-helpers.js +0 -43
  50. package/node_modules/@babel/cli/node_modules/commander/CHANGELOG.md +0 -436
  51. package/node_modules/@babel/cli/node_modules/commander/LICENSE +0 -22
  52. package/node_modules/@babel/cli/node_modules/commander/Readme.md +0 -713
  53. package/node_modules/@babel/cli/node_modules/commander/index.js +0 -1649
  54. package/node_modules/@babel/cli/node_modules/commander/package.json +0 -76
  55. package/node_modules/@babel/cli/node_modules/commander/typings/index.d.ts +0 -311
  56. package/node_modules/@babel/cli/node_modules/make-dir/index.d.ts +0 -39
  57. package/node_modules/@babel/cli/node_modules/make-dir/index.js +0 -139
  58. package/node_modules/@babel/cli/node_modules/make-dir/license +0 -9
  59. package/node_modules/@babel/cli/node_modules/make-dir/package.json +0 -94
  60. package/node_modules/@babel/cli/node_modules/make-dir/readme.md +0 -123
  61. package/node_modules/@babel/cli/node_modules/pify/index.js +0 -68
  62. package/node_modules/@babel/cli/node_modules/pify/license +0 -9
  63. package/node_modules/@babel/cli/node_modules/pify/package.json +0 -86
  64. package/node_modules/@babel/cli/node_modules/pify/readme.md +0 -145
  65. package/node_modules/@babel/cli/node_modules/semver/CHANGELOG.md +0 -39
  66. package/node_modules/@babel/cli/node_modules/semver/LICENSE +0 -15
  67. package/node_modules/@babel/cli/node_modules/semver/README.md +0 -412
  68. package/node_modules/@babel/cli/node_modules/semver/bin/semver +0 -160
  69. package/node_modules/@babel/cli/node_modules/semver/package.json +0 -63
  70. package/node_modules/@babel/cli/node_modules/semver/range.bnf +0 -16
  71. package/node_modules/@babel/cli/node_modules/semver/semver.js +0 -1483
  72. package/node_modules/@babel/cli/node_modules/slash/index.js +0 -11
  73. package/node_modules/@babel/cli/node_modules/slash/license +0 -9
  74. package/node_modules/@babel/cli/node_modules/slash/package.json +0 -69
  75. package/node_modules/@babel/cli/node_modules/slash/readme.md +0 -44
  76. package/node_modules/@babel/cli/package.json +0 -91
  77. package/node_modules/@corellium/client-api/README.md +0 -209
  78. package/node_modules/@corellium/client-api/dist/ApiClient.js +0 -780
  79. package/node_modules/@corellium/client-api/dist/api/CorelliumApi.js +0 -1744
  80. package/node_modules/@corellium/client-api/dist/index.js +0 -295
  81. package/node_modules/@corellium/client-api/dist/model/ApiConflictError.js +0 -114
  82. package/node_modules/@corellium/client-api/dist/model/ApiError.js +0 -101
  83. package/node_modules/@corellium/client-api/dist/model/ApiNotFoundError.js +0 -111
  84. package/node_modules/@corellium/client-api/dist/model/ApiToken.js +0 -78
  85. package/node_modules/@corellium/client-api/dist/model/Bit.js +0 -50
  86. package/node_modules/@corellium/client-api/dist/model/Credentials.js +0 -91
  87. package/node_modules/@corellium/client-api/dist/model/Firmware.js +0 -208
  88. package/node_modules/@corellium/client-api/dist/model/GpioStateDefinition.js +0 -93
  89. package/node_modules/@corellium/client-api/dist/model/Image.js +0 -249
  90. package/node_modules/@corellium/client-api/dist/model/Instance.js +0 -313
  91. package/node_modules/@corellium/client-api/dist/model/InstanceBootOptions.js +0 -134
  92. package/node_modules/@corellium/client-api/dist/model/InstanceConsoleEndpoint.js +0 -76
  93. package/node_modules/@corellium/client-api/dist/model/InstanceCreateOptions.js +0 -224
  94. package/node_modules/@corellium/client-api/dist/model/InstanceNetmonState.js +0 -75
  95. package/node_modules/@corellium/client-api/dist/model/InstanceReturn.js +0 -92
  96. package/node_modules/@corellium/client-api/dist/model/InstanceServices.js +0 -77
  97. package/node_modules/@corellium/client-api/dist/model/InstanceStartOptions.js +0 -76
  98. package/node_modules/@corellium/client-api/dist/model/InstanceState.js +0 -64
  99. package/node_modules/@corellium/client-api/dist/model/InstanceStopOptions.js +0 -76
  100. package/node_modules/@corellium/client-api/dist/model/Model.js +0 -165
  101. package/node_modules/@corellium/client-api/dist/model/ModelSoftware.js +0 -122
  102. package/node_modules/@corellium/client-api/dist/model/PeripheralsData.js +0 -147
  103. package/node_modules/@corellium/client-api/dist/model/Project.js +0 -122
  104. package/node_modules/@corellium/client-api/dist/model/ProjectQuota.js +0 -93
  105. package/node_modules/@corellium/client-api/dist/model/ProjectSettings.js +0 -93
  106. package/node_modules/@corellium/client-api/dist/model/ProjectUsage.js +0 -102
  107. package/node_modules/@corellium/client-api/dist/model/Snapshot.js +0 -145
  108. package/node_modules/@corellium/client-api/dist/model/SnapshotCreationOptions.js +0 -79
  109. package/node_modules/@corellium/client-api/dist/model/SnapshotStatus.js +0 -84
  110. package/node_modules/@corellium/client-api/dist/model/Token.js +0 -88
  111. package/node_modules/@corellium/client-api/dist/model/UserError.js +0 -114
  112. package/node_modules/@corellium/client-api/dist/model/V1SetStateBody.js +0 -80
  113. package/node_modules/@corellium/client-api/dist/model/VolumeOptions.js +0 -94
  114. package/node_modules/@corellium/client-api/dist/model/VpnDefinition.js +0 -84
  115. package/node_modules/@corellium/client-api/package.json +0 -75
  116. package/node_modules/@jridgewell/resolve-uri/LICENSE +0 -19
  117. package/node_modules/@jridgewell/resolve-uri/README.md +0 -40
  118. package/node_modules/@jridgewell/resolve-uri/dist/resolve-uri.mjs +0 -242
  119. package/node_modules/@jridgewell/resolve-uri/dist/resolve-uri.mjs.map +0 -1
  120. package/node_modules/@jridgewell/resolve-uri/dist/resolve-uri.umd.js +0 -250
  121. package/node_modules/@jridgewell/resolve-uri/dist/resolve-uri.umd.js.map +0 -1
  122. package/node_modules/@jridgewell/resolve-uri/dist/types/resolve-uri.d.ts +0 -4
  123. package/node_modules/@jridgewell/resolve-uri/package.json +0 -108
  124. package/node_modules/@jridgewell/sourcemap-codec/LICENSE +0 -21
  125. package/node_modules/@jridgewell/sourcemap-codec/README.md +0 -200
  126. package/node_modules/@jridgewell/sourcemap-codec/dist/sourcemap-codec.mjs +0 -164
  127. package/node_modules/@jridgewell/sourcemap-codec/dist/sourcemap-codec.mjs.map +0 -1
  128. package/node_modules/@jridgewell/sourcemap-codec/dist/sourcemap-codec.umd.js +0 -175
  129. package/node_modules/@jridgewell/sourcemap-codec/dist/sourcemap-codec.umd.js.map +0 -1
  130. package/node_modules/@jridgewell/sourcemap-codec/dist/types/sourcemap-codec.d.ts +0 -6
  131. package/node_modules/@jridgewell/sourcemap-codec/package.json +0 -110
  132. package/node_modules/@jridgewell/sourcemap-codec/src/sourcemap-codec.ts +0 -198
  133. package/node_modules/@jridgewell/trace-mapping/LICENSE +0 -19
  134. package/node_modules/@jridgewell/trace-mapping/README.md +0 -252
  135. package/node_modules/@jridgewell/trace-mapping/dist/trace-mapping.mjs +0 -518
  136. package/node_modules/@jridgewell/trace-mapping/dist/trace-mapping.mjs.map +0 -1
  137. package/node_modules/@jridgewell/trace-mapping/dist/trace-mapping.umd.js +0 -532
  138. package/node_modules/@jridgewell/trace-mapping/dist/trace-mapping.umd.js.map +0 -1
  139. package/node_modules/@jridgewell/trace-mapping/dist/types/any-map.d.ts +0 -8
  140. package/node_modules/@jridgewell/trace-mapping/dist/types/binary-search.d.ts +0 -32
  141. package/node_modules/@jridgewell/trace-mapping/dist/types/by-source.d.ts +0 -7
  142. package/node_modules/@jridgewell/trace-mapping/dist/types/resolve.d.ts +0 -1
  143. package/node_modules/@jridgewell/trace-mapping/dist/types/sort.d.ts +0 -2
  144. package/node_modules/@jridgewell/trace-mapping/dist/types/sourcemap-segment.d.ts +0 -16
  145. package/node_modules/@jridgewell/trace-mapping/dist/types/strip-filename.d.ts +0 -4
  146. package/node_modules/@jridgewell/trace-mapping/dist/types/trace-mapping.d.ts +0 -74
  147. package/node_modules/@jridgewell/trace-mapping/dist/types/types.d.ts +0 -85
  148. package/node_modules/@jridgewell/trace-mapping/package.json +0 -112
  149. package/node_modules/@jridgewell/trace-mapping/src/any-map.ts +0 -166
  150. package/node_modules/@jridgewell/trace-mapping/src/binary-search.ts +0 -115
  151. package/node_modules/@jridgewell/trace-mapping/src/by-source.ts +0 -64
  152. package/node_modules/@jridgewell/trace-mapping/src/resolve.ts +0 -10
  153. package/node_modules/@jridgewell/trace-mapping/src/sort.ts +0 -45
  154. package/node_modules/@jridgewell/trace-mapping/src/sourcemap-segment.ts +0 -23
  155. package/node_modules/@jridgewell/trace-mapping/src/strip-filename.ts +0 -8
  156. package/node_modules/@jridgewell/trace-mapping/src/trace-mapping.ts +0 -405
  157. package/node_modules/@jridgewell/trace-mapping/src/types.ts +0 -90
  158. package/node_modules/@nicolo-ribaudo/chokidar-2/README.md +0 -3
  159. package/node_modules/@nicolo-ribaudo/chokidar-2/build-chokidar.sh +0 -30
  160. package/node_modules/@nicolo-ribaudo/chokidar-2/dist/main.js +0 -2086
  161. package/node_modules/@nicolo-ribaudo/chokidar-2/package.json +0 -73
  162. package/node_modules/@nicolo-ribaudo/chokidar-2/types.d.ts +0 -191
  163. package/node_modules/ansi-regex/index.d.ts +0 -37
  164. package/node_modules/ansi-regex/index.js +0 -10
  165. package/node_modules/ansi-regex/license +0 -9
  166. package/node_modules/ansi-regex/package.json +0 -90
  167. package/node_modules/ansi-regex/readme.md +0 -78
  168. package/node_modules/ansi-styles/index.d.ts +0 -345
  169. package/node_modules/ansi-styles/index.js +0 -163
  170. package/node_modules/ansi-styles/license +0 -9
  171. package/node_modules/ansi-styles/package.json +0 -96
  172. package/node_modules/ansi-styles/readme.md +0 -152
  173. package/node_modules/anymatch/LICENSE +0 -15
  174. package/node_modules/anymatch/README.md +0 -87
  175. package/node_modules/anymatch/index.d.ts +0 -19
  176. package/node_modules/anymatch/index.js +0 -104
  177. package/node_modules/anymatch/package.json +0 -80
  178. package/node_modules/asynckit/LICENSE +0 -21
  179. package/node_modules/asynckit/README.md +0 -233
  180. package/node_modules/asynckit/bench.js +0 -76
  181. package/node_modules/asynckit/index.js +0 -6
  182. package/node_modules/asynckit/lib/abort.js +0 -29
  183. package/node_modules/asynckit/lib/async.js +0 -34
  184. package/node_modules/asynckit/lib/defer.js +0 -26
  185. package/node_modules/asynckit/lib/iterate.js +0 -75
  186. package/node_modules/asynckit/lib/readable_asynckit.js +0 -91
  187. package/node_modules/asynckit/lib/readable_parallel.js +0 -25
  188. package/node_modules/asynckit/lib/readable_serial.js +0 -25
  189. package/node_modules/asynckit/lib/readable_serial_ordered.js +0 -29
  190. package/node_modules/asynckit/lib/state.js +0 -37
  191. package/node_modules/asynckit/lib/streamify.js +0 -141
  192. package/node_modules/asynckit/lib/terminator.js +0 -29
  193. package/node_modules/asynckit/package.json +0 -96
  194. package/node_modules/asynckit/parallel.js +0 -43
  195. package/node_modules/asynckit/serial.js +0 -17
  196. package/node_modules/asynckit/serialOrdered.js +0 -75
  197. package/node_modules/asynckit/stream.js +0 -21
  198. package/node_modules/axios/CHANGELOG.md +0 -943
  199. package/node_modules/axios/LICENSE +0 -19
  200. package/node_modules/axios/README.md +0 -991
  201. package/node_modules/axios/SECURITY.md +0 -5
  202. package/node_modules/axios/UPGRADE_GUIDE.md +0 -168
  203. package/node_modules/axios/dist/axios.js +0 -2595
  204. package/node_modules/axios/dist/axios.map +0 -1
  205. package/node_modules/axios/dist/axios.min.js +0 -3
  206. package/node_modules/axios/dist/axios.min.map +0 -1
  207. package/node_modules/axios/index.d.ts +0 -254
  208. package/node_modules/axios/index.js +0 -1
  209. package/node_modules/axios/lib/adapters/README.md +0 -37
  210. package/node_modules/axios/lib/adapters/http.js +0 -424
  211. package/node_modules/axios/lib/adapters/xhr.js +0 -222
  212. package/node_modules/axios/lib/axios.js +0 -64
  213. package/node_modules/axios/lib/cancel/CancelToken.js +0 -119
  214. package/node_modules/axios/lib/cancel/CanceledError.js +0 -22
  215. package/node_modules/axios/lib/cancel/isCancel.js +0 -5
  216. package/node_modules/axios/lib/core/Axios.js +0 -160
  217. package/node_modules/axios/lib/core/AxiosError.js +0 -86
  218. package/node_modules/axios/lib/core/InterceptorManager.js +0 -54
  219. package/node_modules/axios/lib/core/README.md +0 -8
  220. package/node_modules/axios/lib/core/buildFullPath.js +0 -20
  221. package/node_modules/axios/lib/core/dispatchRequest.js +0 -87
  222. package/node_modules/axios/lib/core/mergeConfig.js +0 -100
  223. package/node_modules/axios/lib/core/settle.js +0 -25
  224. package/node_modules/axios/lib/core/transformData.js +0 -22
  225. package/node_modules/axios/lib/defaults/env/FormData.js +0 -2
  226. package/node_modules/axios/lib/defaults/index.js +0 -146
  227. package/node_modules/axios/lib/defaults/transitional.js +0 -7
  228. package/node_modules/axios/lib/env/README.md +0 -3
  229. package/node_modules/axios/lib/env/data.js +0 -3
  230. package/node_modules/axios/lib/helpers/README.md +0 -7
  231. package/node_modules/axios/lib/helpers/bind.js +0 -11
  232. package/node_modules/axios/lib/helpers/buildURL.js +0 -70
  233. package/node_modules/axios/lib/helpers/combineURLs.js +0 -14
  234. package/node_modules/axios/lib/helpers/cookies.js +0 -53
  235. package/node_modules/axios/lib/helpers/deprecatedMethod.js +0 -24
  236. package/node_modules/axios/lib/helpers/isAbsoluteURL.js +0 -14
  237. package/node_modules/axios/lib/helpers/isAxiosError.js +0 -13
  238. package/node_modules/axios/lib/helpers/isURLSameOrigin.js +0 -68
  239. package/node_modules/axios/lib/helpers/normalizeHeaderName.js +0 -12
  240. package/node_modules/axios/lib/helpers/null.js +0 -2
  241. package/node_modules/axios/lib/helpers/parseHeaders.js +0 -53
  242. package/node_modules/axios/lib/helpers/parseProtocol.js +0 -6
  243. package/node_modules/axios/lib/helpers/spread.js +0 -27
  244. package/node_modules/axios/lib/helpers/toFormData.js +0 -72
  245. package/node_modules/axios/lib/helpers/validator.js +0 -86
  246. package/node_modules/axios/lib/utils.js +0 -470
  247. package/node_modules/axios/package.json +0 -117
  248. package/node_modules/axios/tsconfig.json +0 -14
  249. package/node_modules/axios/tslint.json +0 -6
  250. package/node_modules/balanced-match/.github/FUNDING.yml +0 -2
  251. package/node_modules/balanced-match/LICENSE.md +0 -21
  252. package/node_modules/balanced-match/README.md +0 -97
  253. package/node_modules/balanced-match/index.js +0 -62
  254. package/node_modules/balanced-match/package.json +0 -79
  255. package/node_modules/binary-extensions/binary-extensions.json +0 -260
  256. package/node_modules/binary-extensions/binary-extensions.json.d.ts +0 -3
  257. package/node_modules/binary-extensions/index.d.ts +0 -14
  258. package/node_modules/binary-extensions/index.js +0 -1
  259. package/node_modules/binary-extensions/license +0 -9
  260. package/node_modules/binary-extensions/package.json +0 -74
  261. package/node_modules/binary-extensions/readme.md +0 -41
  262. package/node_modules/brace-expansion/LICENSE +0 -21
  263. package/node_modules/brace-expansion/README.md +0 -129
  264. package/node_modules/brace-expansion/index.js +0 -201
  265. package/node_modules/brace-expansion/package.json +0 -78
  266. package/node_modules/braces/CHANGELOG.md +0 -184
  267. package/node_modules/braces/LICENSE +0 -21
  268. package/node_modules/braces/README.md +0 -593
  269. package/node_modules/braces/index.js +0 -170
  270. package/node_modules/braces/lib/compile.js +0 -57
  271. package/node_modules/braces/lib/constants.js +0 -57
  272. package/node_modules/braces/lib/expand.js +0 -113
  273. package/node_modules/braces/lib/parse.js +0 -333
  274. package/node_modules/braces/lib/stringify.js +0 -32
  275. package/node_modules/braces/lib/utils.js +0 -112
  276. package/node_modules/braces/package.json +0 -127
  277. package/node_modules/call-bind/.eslintignore +0 -1
  278. package/node_modules/call-bind/.eslintrc +0 -17
  279. package/node_modules/call-bind/.github/FUNDING.yml +0 -12
  280. package/node_modules/call-bind/.nycrc +0 -13
  281. package/node_modules/call-bind/CHANGELOG.md +0 -42
  282. package/node_modules/call-bind/LICENSE +0 -21
  283. package/node_modules/call-bind/README.md +0 -2
  284. package/node_modules/call-bind/callBound.js +0 -15
  285. package/node_modules/call-bind/index.js +0 -47
  286. package/node_modules/call-bind/package.json +0 -126
  287. package/node_modules/call-bind/test/callBound.js +0 -55
  288. package/node_modules/call-bind/test/index.js +0 -66
  289. package/node_modules/chokidar/LICENSE +0 -21
  290. package/node_modules/chokidar/README.md +0 -308
  291. package/node_modules/chokidar/index.js +0 -973
  292. package/node_modules/chokidar/lib/constants.js +0 -65
  293. package/node_modules/chokidar/lib/fsevents-handler.js +0 -524
  294. package/node_modules/chokidar/lib/nodefs-handler.js +0 -654
  295. package/node_modules/chokidar/package.json +0 -123
  296. package/node_modules/chokidar/types/index.d.ts +0 -188
  297. package/node_modules/cliui/CHANGELOG.md +0 -121
  298. package/node_modules/cliui/LICENSE.txt +0 -14
  299. package/node_modules/cliui/README.md +0 -141
  300. package/node_modules/cliui/build/index.cjs +0 -302
  301. package/node_modules/cliui/build/lib/index.js +0 -287
  302. package/node_modules/cliui/build/lib/string-utils.js +0 -27
  303. package/node_modules/cliui/index.mjs +0 -13
  304. package/node_modules/cliui/package.json +0 -121
  305. package/node_modules/color-convert/CHANGELOG.md +0 -54
  306. package/node_modules/color-convert/LICENSE +0 -21
  307. package/node_modules/color-convert/README.md +0 -68
  308. package/node_modules/color-convert/conversions.js +0 -839
  309. package/node_modules/color-convert/index.js +0 -81
  310. package/node_modules/color-convert/package.json +0 -86
  311. package/node_modules/color-convert/route.js +0 -97
  312. package/node_modules/color-name/LICENSE +0 -8
  313. package/node_modules/color-name/README.md +0 -11
  314. package/node_modules/color-name/index.js +0 -152
  315. package/node_modules/color-name/package.json +0 -60
  316. package/node_modules/combined-stream/License +0 -19
  317. package/node_modules/combined-stream/Readme.md +0 -138
  318. package/node_modules/combined-stream/lib/combined_stream.js +0 -208
  319. package/node_modules/combined-stream/package.json +0 -62
  320. package/node_modules/combined-stream/yarn.lock +0 -17
  321. package/node_modules/component-emitter/History.md +0 -75
  322. package/node_modules/component-emitter/LICENSE +0 -24
  323. package/node_modules/component-emitter/Readme.md +0 -74
  324. package/node_modules/component-emitter/index.js +0 -175
  325. package/node_modules/component-emitter/package.json +0 -59
  326. package/node_modules/concat-map/.travis.yml +0 -4
  327. package/node_modules/concat-map/LICENSE +0 -18
  328. package/node_modules/concat-map/README.markdown +0 -62
  329. package/node_modules/concat-map/example/map.js +0 -6
  330. package/node_modules/concat-map/index.js +0 -13
  331. package/node_modules/concat-map/package.json +0 -91
  332. package/node_modules/concat-map/test/map.js +0 -39
  333. package/node_modules/convert-source-map/LICENSE +0 -23
  334. package/node_modules/convert-source-map/README.md +0 -120
  335. package/node_modules/convert-source-map/index.js +0 -136
  336. package/node_modules/convert-source-map/package.json +0 -75
  337. package/node_modules/cookiejar/LICENSE +0 -9
  338. package/node_modules/cookiejar/cookiejar.js +0 -276
  339. package/node_modules/cookiejar/package.json +0 -58
  340. package/node_modules/cookiejar/readme.md +0 -60
  341. package/node_modules/debug/LICENSE +0 -20
  342. package/node_modules/debug/README.md +0 -481
  343. package/node_modules/debug/package.json +0 -113
  344. package/node_modules/debug/src/browser.js +0 -269
  345. package/node_modules/debug/src/common.js +0 -274
  346. package/node_modules/debug/src/index.js +0 -10
  347. package/node_modules/debug/src/node.js +0 -263
  348. package/node_modules/delayed-stream/.npmignore +0 -1
  349. package/node_modules/delayed-stream/License +0 -19
  350. package/node_modules/delayed-stream/Makefile +0 -7
  351. package/node_modules/delayed-stream/Readme.md +0 -141
  352. package/node_modules/delayed-stream/lib/delayed_stream.js +0 -107
  353. package/node_modules/delayed-stream/package.json +0 -65
  354. package/node_modules/dotenv/CHANGELOG.md +0 -356
  355. package/node_modules/dotenv/LICENSE +0 -23
  356. package/node_modules/dotenv/README.md +0 -408
  357. package/node_modules/dotenv/config.d.ts +0 -1
  358. package/node_modules/dotenv/config.js +0 -9
  359. package/node_modules/dotenv/lib/cli-options.js +0 -11
  360. package/node_modules/dotenv/lib/env-options.js +0 -20
  361. package/node_modules/dotenv/lib/main.d.ts +0 -73
  362. package/node_modules/dotenv/lib/main.js +0 -109
  363. package/node_modules/dotenv/package.json +0 -87
  364. package/node_modules/emoji-regex/LICENSE-MIT.txt +0 -20
  365. package/node_modules/emoji-regex/README.md +0 -73
  366. package/node_modules/emoji-regex/es2015/index.js +0 -6
  367. package/node_modules/emoji-regex/es2015/text.js +0 -6
  368. package/node_modules/emoji-regex/index.d.ts +0 -23
  369. package/node_modules/emoji-regex/index.js +0 -6
  370. package/node_modules/emoji-regex/package.json +0 -80
  371. package/node_modules/emoji-regex/text.js +0 -6
  372. package/node_modules/escalade/dist/index.js +0 -22
  373. package/node_modules/escalade/dist/index.mjs +0 -22
  374. package/node_modules/escalade/index.d.ts +0 -3
  375. package/node_modules/escalade/license +0 -9
  376. package/node_modules/escalade/package.json +0 -96
  377. package/node_modules/escalade/readme.md +0 -211
  378. package/node_modules/escalade/sync/index.d.ts +0 -2
  379. package/node_modules/escalade/sync/index.js +0 -18
  380. package/node_modules/escalade/sync/index.mjs +0 -18
  381. package/node_modules/fast-safe-stringify/.travis.yml +0 -8
  382. package/node_modules/fast-safe-stringify/CHANGELOG.md +0 -17
  383. package/node_modules/fast-safe-stringify/LICENSE +0 -23
  384. package/node_modules/fast-safe-stringify/benchmark.js +0 -137
  385. package/node_modules/fast-safe-stringify/index.d.ts +0 -23
  386. package/node_modules/fast-safe-stringify/index.js +0 -229
  387. package/node_modules/fast-safe-stringify/package.json +0 -90
  388. package/node_modules/fast-safe-stringify/readme.md +0 -170
  389. package/node_modules/fast-safe-stringify/test-stable.js +0 -404
  390. package/node_modules/fast-safe-stringify/test.js +0 -397
  391. package/node_modules/fill-range/LICENSE +0 -21
  392. package/node_modules/fill-range/README.md +0 -237
  393. package/node_modules/fill-range/index.js +0 -249
  394. package/node_modules/fill-range/package.json +0 -117
  395. package/node_modules/follow-redirects/LICENSE +0 -18
  396. package/node_modules/follow-redirects/README.md +0 -155
  397. package/node_modules/follow-redirects/debug.js +0 -15
  398. package/node_modules/follow-redirects/http.js +0 -1
  399. package/node_modules/follow-redirects/https.js +0 -1
  400. package/node_modules/follow-redirects/index.js +0 -598
  401. package/node_modules/follow-redirects/package.json +0 -98
  402. package/node_modules/form-data/License +0 -19
  403. package/node_modules/form-data/README.md.bak +0 -358
  404. package/node_modules/form-data/Readme.md +0 -358
  405. package/node_modules/form-data/index.d.ts +0 -62
  406. package/node_modules/form-data/lib/browser.js +0 -2
  407. package/node_modules/form-data/lib/form_data.js +0 -501
  408. package/node_modules/form-data/lib/populate.js +0 -10
  409. package/node_modules/form-data/package.json +0 -104
  410. package/node_modules/formidable/LICENSE +0 -7
  411. package/node_modules/formidable/Readme.md +0 -448
  412. package/node_modules/formidable/lib/file.js +0 -81
  413. package/node_modules/formidable/lib/incoming_form.js +0 -564
  414. package/node_modules/formidable/lib/index.js +0 -3
  415. package/node_modules/formidable/lib/json_parser.js +0 -30
  416. package/node_modules/formidable/lib/multipart_parser.js +0 -332
  417. package/node_modules/formidable/lib/octet_parser.js +0 -20
  418. package/node_modules/formidable/lib/querystring_parser.js +0 -27
  419. package/node_modules/formidable/package.json +0 -63
  420. package/node_modules/fs-readdir-recursive/LICENSE +0 -22
  421. package/node_modules/fs-readdir-recursive/README.md +0 -61
  422. package/node_modules/fs-readdir-recursive/index.js +0 -29
  423. package/node_modules/fs-readdir-recursive/package.json +0 -60
  424. package/node_modules/fs.realpath/LICENSE +0 -43
  425. package/node_modules/fs.realpath/README.md +0 -33
  426. package/node_modules/fs.realpath/index.js +0 -66
  427. package/node_modules/fs.realpath/old.js +0 -303
  428. package/node_modules/fs.realpath/package.json +0 -62
  429. package/node_modules/function-bind/.editorconfig +0 -20
  430. package/node_modules/function-bind/.eslintrc +0 -15
  431. package/node_modules/function-bind/.jscs.json +0 -176
  432. package/node_modules/function-bind/.npmignore +0 -22
  433. package/node_modules/function-bind/.travis.yml +0 -168
  434. package/node_modules/function-bind/LICENSE +0 -20
  435. package/node_modules/function-bind/README.md +0 -48
  436. package/node_modules/function-bind/implementation.js +0 -52
  437. package/node_modules/function-bind/index.js +0 -5
  438. package/node_modules/function-bind/package.json +0 -100
  439. package/node_modules/function-bind/test/.eslintrc +0 -9
  440. package/node_modules/function-bind/test/index.js +0 -252
  441. package/node_modules/generate-password/.eslintrc.yml +0 -18
  442. package/node_modules/generate-password/.github/workflows/nodejs.yml +0 -33
  443. package/node_modules/generate-password/CHANGELOG.md +0 -79
  444. package/node_modules/generate-password/LICENSE +0 -21
  445. package/node_modules/generate-password/README.md +0 -61
  446. package/node_modules/generate-password/example.js +0 -28
  447. package/node_modules/generate-password/main.js +0 -1
  448. package/node_modules/generate-password/package.json +0 -68
  449. package/node_modules/generate-password/src/generate.d.ts +0 -51
  450. package/node_modules/generate-password/src/generate.js +0 -152
  451. package/node_modules/generate-password/test/coverage.sh +0 -17
  452. package/node_modules/generate-password/test/esm.mjs +0 -13
  453. package/node_modules/generate-password/test/generator.js +0 -164
  454. package/node_modules/get-caller-file/LICENSE.md +0 -6
  455. package/node_modules/get-caller-file/README.md +0 -41
  456. package/node_modules/get-caller-file/index.d.ts +0 -2
  457. package/node_modules/get-caller-file/index.js +0 -22
  458. package/node_modules/get-caller-file/index.js.map +0 -1
  459. package/node_modules/get-caller-file/package.json +0 -72
  460. package/node_modules/get-intrinsic/.eslintrc +0 -37
  461. package/node_modules/get-intrinsic/.github/FUNDING.yml +0 -12
  462. package/node_modules/get-intrinsic/.nycrc +0 -9
  463. package/node_modules/get-intrinsic/CHANGELOG.md +0 -91
  464. package/node_modules/get-intrinsic/LICENSE +0 -21
  465. package/node_modules/get-intrinsic/README.md +0 -71
  466. package/node_modules/get-intrinsic/index.js +0 -334
  467. package/node_modules/get-intrinsic/package.json +0 -125
  468. package/node_modules/get-intrinsic/test/GetIntrinsic.js +0 -274
  469. package/node_modules/glob/LICENSE +0 -21
  470. package/node_modules/glob/README.md +0 -378
  471. package/node_modules/glob/common.js +0 -238
  472. package/node_modules/glob/glob.js +0 -790
  473. package/node_modules/glob/package.json +0 -93
  474. package/node_modules/glob/sync.js +0 -486
  475. package/node_modules/glob-parent/CHANGELOG.md +0 -110
  476. package/node_modules/glob-parent/LICENSE +0 -15
  477. package/node_modules/glob-parent/README.md +0 -137
  478. package/node_modules/glob-parent/index.js +0 -42
  479. package/node_modules/glob-parent/package.json +0 -95
  480. package/node_modules/has/LICENSE-MIT +0 -22
  481. package/node_modules/has/README.md +0 -18
  482. package/node_modules/has/package.json +0 -81
  483. package/node_modules/has/src/index.js +0 -5
  484. package/node_modules/has/test/index.js +0 -10
  485. package/node_modules/has-symbols/.eslintrc +0 -11
  486. package/node_modules/has-symbols/.github/FUNDING.yml +0 -12
  487. package/node_modules/has-symbols/.nycrc +0 -9
  488. package/node_modules/has-symbols/CHANGELOG.md +0 -75
  489. package/node_modules/has-symbols/LICENSE +0 -21
  490. package/node_modules/has-symbols/README.md +0 -46
  491. package/node_modules/has-symbols/index.js +0 -13
  492. package/node_modules/has-symbols/package.json +0 -134
  493. package/node_modules/has-symbols/shams.js +0 -42
  494. package/node_modules/has-symbols/test/index.js +0 -22
  495. package/node_modules/has-symbols/test/shams/core-js.js +0 -28
  496. package/node_modules/has-symbols/test/shams/get-own-property-symbols.js +0 -28
  497. package/node_modules/has-symbols/test/tests.js +0 -56
  498. package/node_modules/inflight/LICENSE +0 -15
  499. package/node_modules/inflight/README.md +0 -37
  500. package/node_modules/inflight/inflight.js +0 -54
  501. package/node_modules/inflight/package.json +0 -61
  502. package/node_modules/inherits/LICENSE +0 -16
  503. package/node_modules/inherits/README.md +0 -42
  504. package/node_modules/inherits/inherits.js +0 -9
  505. package/node_modules/inherits/inherits_browser.js +0 -27
  506. package/node_modules/inherits/package.json +0 -70
  507. package/node_modules/is-binary-path/index.d.ts +0 -17
  508. package/node_modules/is-binary-path/index.js +0 -7
  509. package/node_modules/is-binary-path/license +0 -9
  510. package/node_modules/is-binary-path/package.json +0 -76
  511. package/node_modules/is-binary-path/readme.md +0 -34
  512. package/node_modules/is-extglob/LICENSE +0 -21
  513. package/node_modules/is-extglob/README.md +0 -107
  514. package/node_modules/is-extglob/index.js +0 -20
  515. package/node_modules/is-extglob/package.json +0 -103
  516. package/node_modules/is-fullwidth-code-point/index.d.ts +0 -17
  517. package/node_modules/is-fullwidth-code-point/index.js +0 -50
  518. package/node_modules/is-fullwidth-code-point/license +0 -9
  519. package/node_modules/is-fullwidth-code-point/package.json +0 -80
  520. package/node_modules/is-fullwidth-code-point/readme.md +0 -39
  521. package/node_modules/is-glob/LICENSE +0 -21
  522. package/node_modules/is-glob/README.md +0 -206
  523. package/node_modules/is-glob/index.js +0 -150
  524. package/node_modules/is-glob/package.json +0 -127
  525. package/node_modules/is-number/LICENSE +0 -21
  526. package/node_modules/is-number/README.md +0 -187
  527. package/node_modules/is-number/index.js +0 -18
  528. package/node_modules/is-number/package.json +0 -125
  529. package/node_modules/lru-cache/LICENSE +0 -15
  530. package/node_modules/lru-cache/README.md +0 -166
  531. package/node_modules/lru-cache/index.js +0 -334
  532. package/node_modules/lru-cache/package.json +0 -72
  533. package/node_modules/methods/HISTORY.md +0 -29
  534. package/node_modules/methods/LICENSE +0 -24
  535. package/node_modules/methods/README.md +0 -51
  536. package/node_modules/methods/index.js +0 -69
  537. package/node_modules/methods/package.json +0 -82
  538. package/node_modules/mime/CHANGELOG.md +0 -296
  539. package/node_modules/mime/LICENSE +0 -21
  540. package/node_modules/mime/Mime.js +0 -97
  541. package/node_modules/mime/README.md +0 -187
  542. package/node_modules/mime/cli.js +0 -46
  543. package/node_modules/mime/index.js +0 -4
  544. package/node_modules/mime/lite.js +0 -4
  545. package/node_modules/mime/package.json +0 -84
  546. package/node_modules/mime/types/other.js +0 -1
  547. package/node_modules/mime/types/standard.js +0 -1
  548. package/node_modules/mime-db/HISTORY.md +0 -507
  549. package/node_modules/mime-db/LICENSE +0 -23
  550. package/node_modules/mime-db/README.md +0 -100
  551. package/node_modules/mime-db/db.json +0 -8519
  552. package/node_modules/mime-db/index.js +0 -12
  553. package/node_modules/mime-db/package.json +0 -106
  554. package/node_modules/mime-types/HISTORY.md +0 -397
  555. package/node_modules/mime-types/LICENSE +0 -23
  556. package/node_modules/mime-types/README.md +0 -113
  557. package/node_modules/mime-types/index.js +0 -188
  558. package/node_modules/mime-types/package.json +0 -92
  559. package/node_modules/minimatch/LICENSE +0 -15
  560. package/node_modules/minimatch/README.md +0 -230
  561. package/node_modules/minimatch/minimatch.js +0 -947
  562. package/node_modules/minimatch/package.json +0 -73
  563. package/node_modules/ms/index.js +0 -162
  564. package/node_modules/ms/license.md +0 -21
  565. package/node_modules/ms/package.json +0 -75
  566. package/node_modules/ms/readme.md +0 -60
  567. package/node_modules/multi-progress/.gitattributes +0 -17
  568. package/node_modules/multi-progress/CHANGELOG.md +0 -56
  569. package/node_modules/multi-progress/LICENSE.txt +0 -21
  570. package/node_modules/multi-progress/multi-progress.js +0 -98
  571. package/node_modules/multi-progress/package.json +0 -58
  572. package/node_modules/multi-progress/readme.md +0 -33
  573. package/node_modules/normalize-path/LICENSE +0 -21
  574. package/node_modules/normalize-path/README.md +0 -127
  575. package/node_modules/normalize-path/index.js +0 -35
  576. package/node_modules/normalize-path/package.json +0 -119
  577. package/node_modules/object-inspect/.eslintrc +0 -53
  578. package/node_modules/object-inspect/.github/FUNDING.yml +0 -12
  579. package/node_modules/object-inspect/.nycrc +0 -13
  580. package/node_modules/object-inspect/CHANGELOG.md +0 -360
  581. package/node_modules/object-inspect/LICENSE +0 -21
  582. package/node_modules/object-inspect/example/all.js +0 -23
  583. package/node_modules/object-inspect/example/circular.js +0 -6
  584. package/node_modules/object-inspect/example/fn.js +0 -5
  585. package/node_modules/object-inspect/example/inspect.js +0 -10
  586. package/node_modules/object-inspect/index.js +0 -512
  587. package/node_modules/object-inspect/package-support.json +0 -20
  588. package/node_modules/object-inspect/package.json +0 -126
  589. package/node_modules/object-inspect/readme.markdown +0 -86
  590. package/node_modules/object-inspect/test/bigint.js +0 -58
  591. package/node_modules/object-inspect/test/browser/dom.js +0 -15
  592. package/node_modules/object-inspect/test/circular.js +0 -16
  593. package/node_modules/object-inspect/test/deep.js +0 -12
  594. package/node_modules/object-inspect/test/element.js +0 -53
  595. package/node_modules/object-inspect/test/err.js +0 -48
  596. package/node_modules/object-inspect/test/fakes.js +0 -29
  597. package/node_modules/object-inspect/test/fn.js +0 -76
  598. package/node_modules/object-inspect/test/has.js +0 -15
  599. package/node_modules/object-inspect/test/holes.js +0 -15
  600. package/node_modules/object-inspect/test/indent-option.js +0 -271
  601. package/node_modules/object-inspect/test/inspect.js +0 -139
  602. package/node_modules/object-inspect/test/lowbyte.js +0 -12
  603. package/node_modules/object-inspect/test/number.js +0 -58
  604. package/node_modules/object-inspect/test/quoteStyle.js +0 -17
  605. package/node_modules/object-inspect/test/toStringTag.js +0 -40
  606. package/node_modules/object-inspect/test/undef.js +0 -12
  607. package/node_modules/object-inspect/test/values.js +0 -211
  608. package/node_modules/object-inspect/test-core-js.js +0 -26
  609. package/node_modules/object-inspect/util.inspect.js +0 -1
  610. package/node_modules/once/LICENSE +0 -15
  611. package/node_modules/once/README.md +0 -79
  612. package/node_modules/once/once.js +0 -42
  613. package/node_modules/once/package.json +0 -74
  614. package/node_modules/path-is-absolute/index.js +0 -20
  615. package/node_modules/path-is-absolute/license +0 -21
  616. package/node_modules/path-is-absolute/package.json +0 -78
  617. package/node_modules/path-is-absolute/readme.md +0 -59
  618. package/node_modules/picomatch/CHANGELOG.md +0 -136
  619. package/node_modules/picomatch/LICENSE +0 -21
  620. package/node_modules/picomatch/README.md +0 -708
  621. package/node_modules/picomatch/index.js +0 -3
  622. package/node_modules/picomatch/lib/constants.js +0 -179
  623. package/node_modules/picomatch/lib/parse.js +0 -1091
  624. package/node_modules/picomatch/lib/picomatch.js +0 -342
  625. package/node_modules/picomatch/lib/scan.js +0 -391
  626. package/node_modules/picomatch/lib/utils.js +0 -64
  627. package/node_modules/picomatch/package.json +0 -117
  628. package/node_modules/progress/CHANGELOG.md +0 -115
  629. package/node_modules/progress/LICENSE +0 -22
  630. package/node_modules/progress/Makefile +0 -8
  631. package/node_modules/progress/Readme.md +0 -146
  632. package/node_modules/progress/index.js +0 -1
  633. package/node_modules/progress/lib/node-progress.js +0 -236
  634. package/node_modules/progress/package.json +0 -74
  635. package/node_modules/qs/.editorconfig +0 -43
  636. package/node_modules/qs/.eslintrc +0 -38
  637. package/node_modules/qs/.github/FUNDING.yml +0 -12
  638. package/node_modules/qs/.nycrc +0 -13
  639. package/node_modules/qs/CHANGELOG.md +0 -546
  640. package/node_modules/qs/LICENSE.md +0 -29
  641. package/node_modules/qs/README.md +0 -625
  642. package/node_modules/qs/dist/qs.js +0 -2054
  643. package/node_modules/qs/lib/formats.js +0 -23
  644. package/node_modules/qs/lib/index.js +0 -11
  645. package/node_modules/qs/lib/parse.js +0 -263
  646. package/node_modules/qs/lib/stringify.js +0 -326
  647. package/node_modules/qs/lib/utils.js +0 -252
  648. package/node_modules/qs/package.json +0 -108
  649. package/node_modules/qs/test/parse.js +0 -855
  650. package/node_modules/qs/test/stringify.js +0 -909
  651. package/node_modules/qs/test/utils.js +0 -136
  652. package/node_modules/readdirp/LICENSE +0 -21
  653. package/node_modules/readdirp/README.md +0 -122
  654. package/node_modules/readdirp/index.d.ts +0 -43
  655. package/node_modules/readdirp/index.js +0 -287
  656. package/node_modules/readdirp/package.json +0 -162
  657. package/node_modules/require-directory/.jshintrc +0 -67
  658. package/node_modules/require-directory/.npmignore +0 -1
  659. package/node_modules/require-directory/.travis.yml +0 -3
  660. package/node_modules/require-directory/LICENSE +0 -22
  661. package/node_modules/require-directory/README.markdown +0 -184
  662. package/node_modules/require-directory/index.js +0 -86
  663. package/node_modules/require-directory/package.json +0 -72
  664. package/node_modules/safe-buffer/LICENSE +0 -21
  665. package/node_modules/safe-buffer/README.md +0 -584
  666. package/node_modules/safe-buffer/index.d.ts +0 -187
  667. package/node_modules/safe-buffer/index.js +0 -62
  668. package/node_modules/safe-buffer/package.json +0 -69
  669. package/node_modules/semver/LICENSE +0 -15
  670. package/node_modules/semver/README.md +0 -568
  671. package/node_modules/semver/bin/semver.js +0 -183
  672. package/node_modules/semver/classes/comparator.js +0 -136
  673. package/node_modules/semver/classes/index.js +0 -5
  674. package/node_modules/semver/classes/range.js +0 -519
  675. package/node_modules/semver/classes/semver.js +0 -287
  676. package/node_modules/semver/functions/clean.js +0 -6
  677. package/node_modules/semver/functions/cmp.js +0 -52
  678. package/node_modules/semver/functions/coerce.js +0 -52
  679. package/node_modules/semver/functions/compare-build.js +0 -7
  680. package/node_modules/semver/functions/compare-loose.js +0 -3
  681. package/node_modules/semver/functions/compare.js +0 -5
  682. package/node_modules/semver/functions/diff.js +0 -23
  683. package/node_modules/semver/functions/eq.js +0 -3
  684. package/node_modules/semver/functions/gt.js +0 -3
  685. package/node_modules/semver/functions/gte.js +0 -3
  686. package/node_modules/semver/functions/inc.js +0 -18
  687. package/node_modules/semver/functions/lt.js +0 -3
  688. package/node_modules/semver/functions/lte.js +0 -3
  689. package/node_modules/semver/functions/major.js +0 -3
  690. package/node_modules/semver/functions/minor.js +0 -3
  691. package/node_modules/semver/functions/neq.js +0 -3
  692. package/node_modules/semver/functions/parse.js +0 -33
  693. package/node_modules/semver/functions/patch.js +0 -3
  694. package/node_modules/semver/functions/prerelease.js +0 -6
  695. package/node_modules/semver/functions/rcompare.js +0 -3
  696. package/node_modules/semver/functions/rsort.js +0 -3
  697. package/node_modules/semver/functions/satisfies.js +0 -10
  698. package/node_modules/semver/functions/sort.js +0 -3
  699. package/node_modules/semver/functions/valid.js +0 -6
  700. package/node_modules/semver/index.js +0 -48
  701. package/node_modules/semver/internal/constants.js +0 -17
  702. package/node_modules/semver/internal/debug.js +0 -9
  703. package/node_modules/semver/internal/identifiers.js +0 -23
  704. package/node_modules/semver/internal/parse-options.js +0 -11
  705. package/node_modules/semver/internal/re.js +0 -182
  706. package/node_modules/semver/package.json +0 -113
  707. package/node_modules/semver/preload.js +0 -2
  708. package/node_modules/semver/range.bnf +0 -16
  709. package/node_modules/semver/ranges/gtr.js +0 -4
  710. package/node_modules/semver/ranges/intersects.js +0 -7
  711. package/node_modules/semver/ranges/ltr.js +0 -4
  712. package/node_modules/semver/ranges/max-satisfying.js +0 -25
  713. package/node_modules/semver/ranges/min-satisfying.js +0 -24
  714. package/node_modules/semver/ranges/min-version.js +0 -61
  715. package/node_modules/semver/ranges/outside.js +0 -80
  716. package/node_modules/semver/ranges/simplify.js +0 -47
  717. package/node_modules/semver/ranges/subset.js +0 -244
  718. package/node_modules/semver/ranges/to-comparators.js +0 -8
  719. package/node_modules/semver/ranges/valid.js +0 -11
  720. package/node_modules/side-channel/.eslintignore +0 -1
  721. package/node_modules/side-channel/.eslintrc +0 -11
  722. package/node_modules/side-channel/.github/FUNDING.yml +0 -12
  723. package/node_modules/side-channel/.nycrc +0 -13
  724. package/node_modules/side-channel/CHANGELOG.md +0 -65
  725. package/node_modules/side-channel/LICENSE +0 -21
  726. package/node_modules/side-channel/README.md +0 -2
  727. package/node_modules/side-channel/index.js +0 -124
  728. package/node_modules/side-channel/package.json +0 -99
  729. package/node_modules/side-channel/test/index.js +0 -78
  730. package/node_modules/string-width/index.d.ts +0 -29
  731. package/node_modules/string-width/index.js +0 -47
  732. package/node_modules/string-width/license +0 -9
  733. package/node_modules/string-width/package.json +0 -98
  734. package/node_modules/string-width/readme.md +0 -50
  735. package/node_modules/string_decoder/.travis.yml +0 -50
  736. package/node_modules/string_decoder/LICENSE +0 -48
  737. package/node_modules/string_decoder/README.md +0 -47
  738. package/node_modules/string_decoder/lib/string_decoder.js +0 -296
  739. package/node_modules/string_decoder/package.json +0 -64
  740. package/node_modules/strip-ansi/index.d.ts +0 -17
  741. package/node_modules/strip-ansi/index.js +0 -4
  742. package/node_modules/strip-ansi/license +0 -9
  743. package/node_modules/strip-ansi/package.json +0 -95
  744. package/node_modules/strip-ansi/readme.md +0 -46
  745. package/node_modules/superagent/.browserslistrc +0 -5
  746. package/node_modules/superagent/.dist.babelrc +0 -10
  747. package/node_modules/superagent/.dist.eslintrc +0 -35
  748. package/node_modules/superagent/.editorconfig +0 -9
  749. package/node_modules/superagent/.gitattributes +0 -1
  750. package/node_modules/superagent/.lib.babelrc +0 -11
  751. package/node_modules/superagent/.lib.eslintrc +0 -24
  752. package/node_modules/superagent/.remarkignore +0 -3
  753. package/node_modules/superagent/.zuul.yml +0 -16
  754. package/node_modules/superagent/CONTRIBUTING.md +0 -7
  755. package/node_modules/superagent/HISTORY.md +0 -692
  756. package/node_modules/superagent/LICENSE +0 -22
  757. package/node_modules/superagent/Makefile +0 -60
  758. package/node_modules/superagent/README.md +0 -266
  759. package/node_modules/superagent/dist/superagent.js +0 -2418
  760. package/node_modules/superagent/dist/superagent.min.js +0 -1
  761. package/node_modules/superagent/docs/head.html +0 -11
  762. package/node_modules/superagent/docs/images/bg.png +0 -0
  763. package/node_modules/superagent/docs/index.md +0 -736
  764. package/node_modules/superagent/docs/style.css +0 -87
  765. package/node_modules/superagent/docs/tail.html +0 -36
  766. package/node_modules/superagent/docs/test.html +0 -5072
  767. package/node_modules/superagent/index.html +0 -47
  768. package/node_modules/superagent/lib/agent-base.js +0 -42
  769. package/node_modules/superagent/lib/client.js +0 -1020
  770. package/node_modules/superagent/lib/is-object.js +0 -17
  771. package/node_modules/superagent/lib/node/agent.js +0 -113
  772. package/node_modules/superagent/lib/node/http2wrapper.js +0 -218
  773. package/node_modules/superagent/lib/node/index.js +0 -1376
  774. package/node_modules/superagent/lib/node/parsers/image.js +0 -13
  775. package/node_modules/superagent/lib/node/parsers/index.js +0 -12
  776. package/node_modules/superagent/lib/node/parsers/json.js +0 -26
  777. package/node_modules/superagent/lib/node/parsers/text.js +0 -11
  778. package/node_modules/superagent/lib/node/parsers/urlencoded.js +0 -22
  779. package/node_modules/superagent/lib/node/response.js +0 -126
  780. package/node_modules/superagent/lib/node/unzip.js +0 -72
  781. package/node_modules/superagent/lib/request-base.js +0 -757
  782. package/node_modules/superagent/lib/response-base.js +0 -131
  783. package/node_modules/superagent/lib/utils.js +0 -71
  784. package/node_modules/superagent/node_modules/form-data/License +0 -19
  785. package/node_modules/superagent/node_modules/form-data/README.md.bak +0 -356
  786. package/node_modules/superagent/node_modules/form-data/Readme.md +0 -356
  787. package/node_modules/superagent/node_modules/form-data/index.d.ts +0 -62
  788. package/node_modules/superagent/node_modules/form-data/lib/browser.js +0 -2
  789. package/node_modules/superagent/node_modules/form-data/lib/form_data.js +0 -498
  790. package/node_modules/superagent/node_modules/form-data/lib/populate.js +0 -10
  791. package/node_modules/superagent/node_modules/form-data/package.json +0 -104
  792. package/node_modules/superagent/node_modules/readable-stream/CONTRIBUTING.md +0 -38
  793. package/node_modules/superagent/node_modules/readable-stream/GOVERNANCE.md +0 -136
  794. package/node_modules/superagent/node_modules/readable-stream/LICENSE +0 -47
  795. package/node_modules/superagent/node_modules/readable-stream/README.md +0 -106
  796. package/node_modules/superagent/node_modules/readable-stream/errors-browser.js +0 -127
  797. package/node_modules/superagent/node_modules/readable-stream/errors.js +0 -116
  798. package/node_modules/superagent/node_modules/readable-stream/experimentalWarning.js +0 -17
  799. package/node_modules/superagent/node_modules/readable-stream/lib/_stream_duplex.js +0 -139
  800. package/node_modules/superagent/node_modules/readable-stream/lib/_stream_passthrough.js +0 -39
  801. package/node_modules/superagent/node_modules/readable-stream/lib/_stream_readable.js +0 -1124
  802. package/node_modules/superagent/node_modules/readable-stream/lib/_stream_transform.js +0 -201
  803. package/node_modules/superagent/node_modules/readable-stream/lib/_stream_writable.js +0 -697
  804. package/node_modules/superagent/node_modules/readable-stream/lib/internal/streams/async_iterator.js +0 -207
  805. package/node_modules/superagent/node_modules/readable-stream/lib/internal/streams/buffer_list.js +0 -210
  806. package/node_modules/superagent/node_modules/readable-stream/lib/internal/streams/destroy.js +0 -105
  807. package/node_modules/superagent/node_modules/readable-stream/lib/internal/streams/end-of-stream.js +0 -104
  808. package/node_modules/superagent/node_modules/readable-stream/lib/internal/streams/from-browser.js +0 -3
  809. package/node_modules/superagent/node_modules/readable-stream/lib/internal/streams/from.js +0 -64
  810. package/node_modules/superagent/node_modules/readable-stream/lib/internal/streams/pipeline.js +0 -97
  811. package/node_modules/superagent/node_modules/readable-stream/lib/internal/streams/state.js +0 -27
  812. package/node_modules/superagent/node_modules/readable-stream/lib/internal/streams/stream-browser.js +0 -1
  813. package/node_modules/superagent/node_modules/readable-stream/lib/internal/streams/stream.js +0 -1
  814. package/node_modules/superagent/node_modules/readable-stream/package.json +0 -100
  815. package/node_modules/superagent/node_modules/readable-stream/readable-browser.js +0 -9
  816. package/node_modules/superagent/node_modules/readable-stream/readable.js +0 -16
  817. package/node_modules/superagent/package.json +0 -272
  818. package/node_modules/to-regex-range/LICENSE +0 -21
  819. package/node_modules/to-regex-range/README.md +0 -305
  820. package/node_modules/to-regex-range/index.js +0 -288
  821. package/node_modules/to-regex-range/package.json +0 -128
  822. package/node_modules/util-deprecate/History.md +0 -16
  823. package/node_modules/util-deprecate/LICENSE +0 -24
  824. package/node_modules/util-deprecate/README.md +0 -53
  825. package/node_modules/util-deprecate/browser.js +0 -67
  826. package/node_modules/util-deprecate/node.js +0 -6
  827. package/node_modules/util-deprecate/package.json +0 -61
  828. package/node_modules/uuid/CHANGELOG.md +0 -229
  829. package/node_modules/uuid/CONTRIBUTING.md +0 -18
  830. package/node_modules/uuid/LICENSE.md +0 -9
  831. package/node_modules/uuid/README.md +0 -505
  832. package/node_modules/uuid/dist/bin/uuid +0 -2
  833. package/node_modules/uuid/dist/esm-browser/index.js +0 -9
  834. package/node_modules/uuid/dist/esm-browser/md5.js +0 -215
  835. package/node_modules/uuid/dist/esm-browser/nil.js +0 -1
  836. package/node_modules/uuid/dist/esm-browser/parse.js +0 -35
  837. package/node_modules/uuid/dist/esm-browser/regex.js +0 -1
  838. package/node_modules/uuid/dist/esm-browser/rng.js +0 -19
  839. package/node_modules/uuid/dist/esm-browser/sha1.js +0 -96
  840. package/node_modules/uuid/dist/esm-browser/stringify.js +0 -30
  841. package/node_modules/uuid/dist/esm-browser/v1.js +0 -95
  842. package/node_modules/uuid/dist/esm-browser/v3.js +0 -4
  843. package/node_modules/uuid/dist/esm-browser/v35.js +0 -64
  844. package/node_modules/uuid/dist/esm-browser/v4.js +0 -24
  845. package/node_modules/uuid/dist/esm-browser/v5.js +0 -4
  846. package/node_modules/uuid/dist/esm-browser/validate.js +0 -7
  847. package/node_modules/uuid/dist/esm-browser/version.js +0 -11
  848. package/node_modules/uuid/dist/esm-node/index.js +0 -9
  849. package/node_modules/uuid/dist/esm-node/md5.js +0 -13
  850. package/node_modules/uuid/dist/esm-node/nil.js +0 -1
  851. package/node_modules/uuid/dist/esm-node/parse.js +0 -35
  852. package/node_modules/uuid/dist/esm-node/regex.js +0 -1
  853. package/node_modules/uuid/dist/esm-node/rng.js +0 -12
  854. package/node_modules/uuid/dist/esm-node/sha1.js +0 -13
  855. package/node_modules/uuid/dist/esm-node/stringify.js +0 -29
  856. package/node_modules/uuid/dist/esm-node/v1.js +0 -95
  857. package/node_modules/uuid/dist/esm-node/v3.js +0 -4
  858. package/node_modules/uuid/dist/esm-node/v35.js +0 -64
  859. package/node_modules/uuid/dist/esm-node/v4.js +0 -24
  860. package/node_modules/uuid/dist/esm-node/v5.js +0 -4
  861. package/node_modules/uuid/dist/esm-node/validate.js +0 -7
  862. package/node_modules/uuid/dist/esm-node/version.js +0 -11
  863. package/node_modules/uuid/dist/index.js +0 -79
  864. package/node_modules/uuid/dist/md5-browser.js +0 -223
  865. package/node_modules/uuid/dist/md5.js +0 -23
  866. package/node_modules/uuid/dist/nil.js +0 -8
  867. package/node_modules/uuid/dist/parse.js +0 -45
  868. package/node_modules/uuid/dist/regex.js +0 -8
  869. package/node_modules/uuid/dist/rng-browser.js +0 -26
  870. package/node_modules/uuid/dist/rng.js +0 -24
  871. package/node_modules/uuid/dist/sha1-browser.js +0 -104
  872. package/node_modules/uuid/dist/sha1.js +0 -23
  873. package/node_modules/uuid/dist/stringify.js +0 -39
  874. package/node_modules/uuid/dist/umd/uuid.min.js +0 -1
  875. package/node_modules/uuid/dist/umd/uuidNIL.min.js +0 -1
  876. package/node_modules/uuid/dist/umd/uuidParse.min.js +0 -1
  877. package/node_modules/uuid/dist/umd/uuidStringify.min.js +0 -1
  878. package/node_modules/uuid/dist/umd/uuidValidate.min.js +0 -1
  879. package/node_modules/uuid/dist/umd/uuidVersion.min.js +0 -1
  880. package/node_modules/uuid/dist/umd/uuidv1.min.js +0 -1
  881. package/node_modules/uuid/dist/umd/uuidv3.min.js +0 -1
  882. package/node_modules/uuid/dist/umd/uuidv4.min.js +0 -1
  883. package/node_modules/uuid/dist/umd/uuidv5.min.js +0 -1
  884. package/node_modules/uuid/dist/uuid-bin.js +0 -85
  885. package/node_modules/uuid/dist/v1.js +0 -107
  886. package/node_modules/uuid/dist/v3.js +0 -16
  887. package/node_modules/uuid/dist/v35.js +0 -78
  888. package/node_modules/uuid/dist/v4.js +0 -37
  889. package/node_modules/uuid/dist/v5.js +0 -16
  890. package/node_modules/uuid/dist/validate.js +0 -17
  891. package/node_modules/uuid/dist/version.js +0 -21
  892. package/node_modules/uuid/package.json +0 -167
  893. package/node_modules/uuid/wrapper.mjs +0 -10
  894. package/node_modules/wrap-ansi/index.js +0 -216
  895. package/node_modules/wrap-ansi/license +0 -9
  896. package/node_modules/wrap-ansi/package.json +0 -98
  897. package/node_modules/wrap-ansi/readme.md +0 -91
  898. package/node_modules/wrappy/LICENSE +0 -15
  899. package/node_modules/wrappy/README.md +0 -36
  900. package/node_modules/wrappy/package.json +0 -62
  901. package/node_modules/wrappy/wrappy.js +0 -33
  902. package/node_modules/y18n/CHANGELOG.md +0 -100
  903. package/node_modules/y18n/LICENSE +0 -13
  904. package/node_modules/y18n/README.md +0 -127
  905. package/node_modules/y18n/build/index.cjs +0 -203
  906. package/node_modules/y18n/build/lib/cjs.js +0 -6
  907. package/node_modules/y18n/build/lib/index.js +0 -174
  908. package/node_modules/y18n/build/lib/platform-shims/node.js +0 -19
  909. package/node_modules/y18n/index.mjs +0 -8
  910. package/node_modules/y18n/package.json +0 -104
  911. package/node_modules/yallist/LICENSE +0 -15
  912. package/node_modules/yallist/README.md +0 -204
  913. package/node_modules/yallist/iterator.js +0 -8
  914. package/node_modules/yallist/package.json +0 -68
  915. package/node_modules/yallist/yallist.js +0 -426
  916. package/node_modules/yargs/LICENSE +0 -21
  917. package/node_modules/yargs/README.md +0 -204
  918. package/node_modules/yargs/browser.mjs +0 -7
  919. package/node_modules/yargs/build/index.cjs +0 -1
  920. package/node_modules/yargs/build/lib/argsert.js +0 -62
  921. package/node_modules/yargs/build/lib/command.js +0 -447
  922. package/node_modules/yargs/build/lib/completion-templates.js +0 -48
  923. package/node_modules/yargs/build/lib/completion.js +0 -236
  924. package/node_modules/yargs/build/lib/middleware.js +0 -88
  925. package/node_modules/yargs/build/lib/parse-command.js +0 -32
  926. package/node_modules/yargs/build/lib/typings/common-types.js +0 -9
  927. package/node_modules/yargs/build/lib/typings/yargs-parser-types.js +0 -1
  928. package/node_modules/yargs/build/lib/usage.js +0 -579
  929. package/node_modules/yargs/build/lib/utils/apply-extends.js +0 -59
  930. package/node_modules/yargs/build/lib/utils/is-promise.js +0 -5
  931. package/node_modules/yargs/build/lib/utils/levenshtein.js +0 -34
  932. package/node_modules/yargs/build/lib/utils/maybe-async-result.js +0 -17
  933. package/node_modules/yargs/build/lib/utils/obj-filter.js +0 -10
  934. package/node_modules/yargs/build/lib/utils/process-argv.js +0 -17
  935. package/node_modules/yargs/build/lib/utils/set-blocking.js +0 -12
  936. package/node_modules/yargs/build/lib/utils/which-module.js +0 -10
  937. package/node_modules/yargs/build/lib/validation.js +0 -305
  938. package/node_modules/yargs/build/lib/yargs-factory.js +0 -1497
  939. package/node_modules/yargs/build/lib/yerror.js +0 -9
  940. package/node_modules/yargs/helpers/helpers.mjs +0 -10
  941. package/node_modules/yargs/helpers/index.js +0 -14
  942. package/node_modules/yargs/helpers/package.json +0 -3
  943. package/node_modules/yargs/index.cjs +0 -53
  944. package/node_modules/yargs/index.mjs +0 -8
  945. package/node_modules/yargs/lib/platform-shims/browser.mjs +0 -95
  946. package/node_modules/yargs/lib/platform-shims/esm.mjs +0 -73
  947. package/node_modules/yargs/locales/be.json +0 -46
  948. package/node_modules/yargs/locales/de.json +0 -46
  949. package/node_modules/yargs/locales/en.json +0 -51
  950. package/node_modules/yargs/locales/es.json +0 -46
  951. package/node_modules/yargs/locales/fi.json +0 -49
  952. package/node_modules/yargs/locales/fr.json +0 -53
  953. package/node_modules/yargs/locales/hi.json +0 -49
  954. package/node_modules/yargs/locales/hu.json +0 -46
  955. package/node_modules/yargs/locales/id.json +0 -50
  956. package/node_modules/yargs/locales/it.json +0 -46
  957. package/node_modules/yargs/locales/ja.json +0 -51
  958. package/node_modules/yargs/locales/ko.json +0 -49
  959. package/node_modules/yargs/locales/nb.json +0 -44
  960. package/node_modules/yargs/locales/nl.json +0 -49
  961. package/node_modules/yargs/locales/nn.json +0 -44
  962. package/node_modules/yargs/locales/pirate.json +0 -13
  963. package/node_modules/yargs/locales/pl.json +0 -49
  964. package/node_modules/yargs/locales/pt.json +0 -45
  965. package/node_modules/yargs/locales/pt_BR.json +0 -48
  966. package/node_modules/yargs/locales/ru.json +0 -51
  967. package/node_modules/yargs/locales/th.json +0 -46
  968. package/node_modules/yargs/locales/tr.json +0 -48
  969. package/node_modules/yargs/locales/uk_UA.json +0 -51
  970. package/node_modules/yargs/locales/uz.json +0 -52
  971. package/node_modules/yargs/locales/zh_CN.json +0 -48
  972. package/node_modules/yargs/locales/zh_TW.json +0 -51
  973. package/node_modules/yargs/package.json +0 -154
  974. package/node_modules/yargs/yargs +0 -9
  975. package/node_modules/yargs/yargs.mjs +0 -10
  976. package/node_modules/yargs-parser/CHANGELOG.md +0 -287
  977. package/node_modules/yargs-parser/LICENSE.txt +0 -14
  978. package/node_modules/yargs-parser/README.md +0 -518
  979. package/node_modules/yargs-parser/browser.js +0 -29
  980. package/node_modules/yargs-parser/build/index.cjs +0 -1048
  981. package/node_modules/yargs-parser/build/lib/index.js +0 -60
  982. package/node_modules/yargs-parser/build/lib/string-utils.js +0 -65
  983. package/node_modules/yargs-parser/build/lib/tokenize-arg-string.js +0 -40
  984. package/node_modules/yargs-parser/build/lib/yargs-parser-types.js +0 -12
  985. package/node_modules/yargs-parser/build/lib/yargs-parser.js +0 -1045
  986. package/node_modules/yargs-parser/package.json +0 -123
  987. package/src/clients/TrialAccount.js +0 -76
  988. package/src/commands/agent/index.js +0 -27
  989. package/src/commands/signup.js +0 -104
  990. package/test.sh +0 -2
  991. /package/src/commands/{agent → instances}/apps/install.js +0 -0
  992. /package/src/commands/{agent → instances}/ready.js +0 -0
@@ -1,757 +0,0 @@
1
- "use strict";
2
-
3
- function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }
4
-
5
- /**
6
- * Module of mixed-in functions shared between node and client code
7
- */
8
- var isObject = require('./is-object');
9
- /**
10
- * Expose `RequestBase`.
11
- */
12
-
13
-
14
- module.exports = RequestBase;
15
- /**
16
- * Initialize a new `RequestBase`.
17
- *
18
- * @api public
19
- */
20
-
21
- function RequestBase(obj) {
22
- if (obj) return mixin(obj);
23
- }
24
- /**
25
- * Mixin the prototype properties.
26
- *
27
- * @param {Object} obj
28
- * @return {Object}
29
- * @api private
30
- */
31
-
32
-
33
- function mixin(obj) {
34
- for (var key in RequestBase.prototype) {
35
- if (Object.prototype.hasOwnProperty.call(RequestBase.prototype, key)) obj[key] = RequestBase.prototype[key];
36
- }
37
-
38
- return obj;
39
- }
40
- /**
41
- * Clear previous timeout.
42
- *
43
- * @return {Request} for chaining
44
- * @api public
45
- */
46
-
47
-
48
- RequestBase.prototype.clearTimeout = function () {
49
- clearTimeout(this._timer);
50
- clearTimeout(this._responseTimeoutTimer);
51
- clearTimeout(this._uploadTimeoutTimer);
52
- delete this._timer;
53
- delete this._responseTimeoutTimer;
54
- delete this._uploadTimeoutTimer;
55
- return this;
56
- };
57
- /**
58
- * Override default response body parser
59
- *
60
- * This function will be called to convert incoming data into request.body
61
- *
62
- * @param {Function}
63
- * @api public
64
- */
65
-
66
-
67
- RequestBase.prototype.parse = function (fn) {
68
- this._parser = fn;
69
- return this;
70
- };
71
- /**
72
- * Set format of binary response body.
73
- * In browser valid formats are 'blob' and 'arraybuffer',
74
- * which return Blob and ArrayBuffer, respectively.
75
- *
76
- * In Node all values result in Buffer.
77
- *
78
- * Examples:
79
- *
80
- * req.get('/')
81
- * .responseType('blob')
82
- * .end(callback);
83
- *
84
- * @param {String} val
85
- * @return {Request} for chaining
86
- * @api public
87
- */
88
-
89
-
90
- RequestBase.prototype.responseType = function (val) {
91
- this._responseType = val;
92
- return this;
93
- };
94
- /**
95
- * Override default request body serializer
96
- *
97
- * This function will be called to convert data set via .send or .attach into payload to send
98
- *
99
- * @param {Function}
100
- * @api public
101
- */
102
-
103
-
104
- RequestBase.prototype.serialize = function (fn) {
105
- this._serializer = fn;
106
- return this;
107
- };
108
- /**
109
- * Set timeouts.
110
- *
111
- * - response timeout is time between sending request and receiving the first byte of the response. Includes DNS and connection time.
112
- * - deadline is the time from start of the request to receiving response body in full. If the deadline is too short large files may not load at all on slow connections.
113
- * - upload is the time since last bit of data was sent or received. This timeout works only if deadline timeout is off
114
- *
115
- * Value of 0 or false means no timeout.
116
- *
117
- * @param {Number|Object} ms or {response, deadline}
118
- * @return {Request} for chaining
119
- * @api public
120
- */
121
-
122
-
123
- RequestBase.prototype.timeout = function (options) {
124
- if (!options || _typeof(options) !== 'object') {
125
- this._timeout = options;
126
- this._responseTimeout = 0;
127
- this._uploadTimeout = 0;
128
- return this;
129
- }
130
-
131
- for (var option in options) {
132
- if (Object.prototype.hasOwnProperty.call(options, option)) {
133
- switch (option) {
134
- case 'deadline':
135
- this._timeout = options.deadline;
136
- break;
137
-
138
- case 'response':
139
- this._responseTimeout = options.response;
140
- break;
141
-
142
- case 'upload':
143
- this._uploadTimeout = options.upload;
144
- break;
145
-
146
- default:
147
- console.warn('Unknown timeout option', option);
148
- }
149
- }
150
- }
151
-
152
- return this;
153
- };
154
- /**
155
- * Set number of retry attempts on error.
156
- *
157
- * Failed requests will be retried 'count' times if timeout or err.code >= 500.
158
- *
159
- * @param {Number} count
160
- * @param {Function} [fn]
161
- * @return {Request} for chaining
162
- * @api public
163
- */
164
-
165
-
166
- RequestBase.prototype.retry = function (count, fn) {
167
- // Default to 1 if no count passed or true
168
- if (arguments.length === 0 || count === true) count = 1;
169
- if (count <= 0) count = 0;
170
- this._maxRetries = count;
171
- this._retries = 0;
172
- this._retryCallback = fn;
173
- return this;
174
- };
175
-
176
- var ERROR_CODES = ['ECONNRESET', 'ETIMEDOUT', 'EADDRINFO', 'ESOCKETTIMEDOUT'];
177
- /**
178
- * Determine if a request should be retried.
179
- * (Borrowed from segmentio/superagent-retry)
180
- *
181
- * @param {Error} err an error
182
- * @param {Response} [res] response
183
- * @returns {Boolean} if segment should be retried
184
- */
185
-
186
- RequestBase.prototype._shouldRetry = function (err, res) {
187
- if (!this._maxRetries || this._retries++ >= this._maxRetries) {
188
- return false;
189
- }
190
-
191
- if (this._retryCallback) {
192
- try {
193
- var override = this._retryCallback(err, res);
194
-
195
- if (override === true) return true;
196
- if (override === false) return false; // undefined falls back to defaults
197
- } catch (err_) {
198
- console.error(err_);
199
- }
200
- }
201
-
202
- if (res && res.status && res.status >= 500 && res.status !== 501) return true;
203
-
204
- if (err) {
205
- if (err.code && ERROR_CODES.includes(err.code)) return true; // Superagent timeout
206
-
207
- if (err.timeout && err.code === 'ECONNABORTED') return true;
208
- if (err.crossDomain) return true;
209
- }
210
-
211
- return false;
212
- };
213
- /**
214
- * Retry request
215
- *
216
- * @return {Request} for chaining
217
- * @api private
218
- */
219
-
220
-
221
- RequestBase.prototype._retry = function () {
222
- this.clearTimeout(); // node
223
-
224
- if (this.req) {
225
- this.req = null;
226
- this.req = this.request();
227
- }
228
-
229
- this._aborted = false;
230
- this.timedout = false;
231
- this.timedoutError = null;
232
- return this._end();
233
- };
234
- /**
235
- * Promise support
236
- *
237
- * @param {Function} resolve
238
- * @param {Function} [reject]
239
- * @return {Request}
240
- */
241
-
242
-
243
- RequestBase.prototype.then = function (resolve, reject) {
244
- var _this = this;
245
-
246
- if (!this._fullfilledPromise) {
247
- var self = this;
248
-
249
- if (this._endCalled) {
250
- console.warn('Warning: superagent request was sent twice, because both .end() and .then() were called. Never call .end() if you use promises');
251
- }
252
-
253
- this._fullfilledPromise = new Promise(function (resolve, reject) {
254
- self.on('abort', function () {
255
- if (_this._maxRetries && _this._maxRetries > _this._retries) {
256
- return;
257
- }
258
-
259
- if (_this.timedout && _this.timedoutError) {
260
- reject(_this.timedoutError);
261
- return;
262
- }
263
-
264
- var err = new Error('Aborted');
265
- err.code = 'ABORTED';
266
- err.status = _this.status;
267
- err.method = _this.method;
268
- err.url = _this.url;
269
- reject(err);
270
- });
271
- self.end(function (err, res) {
272
- if (err) reject(err);else resolve(res);
273
- });
274
- });
275
- }
276
-
277
- return this._fullfilledPromise.then(resolve, reject);
278
- };
279
-
280
- RequestBase.prototype.catch = function (cb) {
281
- return this.then(undefined, cb);
282
- };
283
- /**
284
- * Allow for extension
285
- */
286
-
287
-
288
- RequestBase.prototype.use = function (fn) {
289
- fn(this);
290
- return this;
291
- };
292
-
293
- RequestBase.prototype.ok = function (cb) {
294
- if (typeof cb !== 'function') throw new Error('Callback required');
295
- this._okCallback = cb;
296
- return this;
297
- };
298
-
299
- RequestBase.prototype._isResponseOK = function (res) {
300
- if (!res) {
301
- return false;
302
- }
303
-
304
- if (this._okCallback) {
305
- return this._okCallback(res);
306
- }
307
-
308
- return res.status >= 200 && res.status < 300;
309
- };
310
- /**
311
- * Get request header `field`.
312
- * Case-insensitive.
313
- *
314
- * @param {String} field
315
- * @return {String}
316
- * @api public
317
- */
318
-
319
-
320
- RequestBase.prototype.get = function (field) {
321
- return this._header[field.toLowerCase()];
322
- };
323
- /**
324
- * Get case-insensitive header `field` value.
325
- * This is a deprecated internal API. Use `.get(field)` instead.
326
- *
327
- * (getHeader is no longer used internally by the superagent code base)
328
- *
329
- * @param {String} field
330
- * @return {String}
331
- * @api private
332
- * @deprecated
333
- */
334
-
335
-
336
- RequestBase.prototype.getHeader = RequestBase.prototype.get;
337
- /**
338
- * Set header `field` to `val`, or multiple fields with one object.
339
- * Case-insensitive.
340
- *
341
- * Examples:
342
- *
343
- * req.get('/')
344
- * .set('Accept', 'application/json')
345
- * .set('X-API-Key', 'foobar')
346
- * .end(callback);
347
- *
348
- * req.get('/')
349
- * .set({ Accept: 'application/json', 'X-API-Key': 'foobar' })
350
- * .end(callback);
351
- *
352
- * @param {String|Object} field
353
- * @param {String} val
354
- * @return {Request} for chaining
355
- * @api public
356
- */
357
-
358
- RequestBase.prototype.set = function (field, val) {
359
- if (isObject(field)) {
360
- for (var key in field) {
361
- if (Object.prototype.hasOwnProperty.call(field, key)) this.set(key, field[key]);
362
- }
363
-
364
- return this;
365
- }
366
-
367
- this._header[field.toLowerCase()] = val;
368
- this.header[field] = val;
369
- return this;
370
- };
371
- /**
372
- * Remove header `field`.
373
- * Case-insensitive.
374
- *
375
- * Example:
376
- *
377
- * req.get('/')
378
- * .unset('User-Agent')
379
- * .end(callback);
380
- *
381
- * @param {String} field field name
382
- */
383
-
384
-
385
- RequestBase.prototype.unset = function (field) {
386
- delete this._header[field.toLowerCase()];
387
- delete this.header[field];
388
- return this;
389
- };
390
- /**
391
- * Write the field `name` and `val`, or multiple fields with one object
392
- * for "multipart/form-data" request bodies.
393
- *
394
- * ``` js
395
- * request.post('/upload')
396
- * .field('foo', 'bar')
397
- * .end(callback);
398
- *
399
- * request.post('/upload')
400
- * .field({ foo: 'bar', baz: 'qux' })
401
- * .end(callback);
402
- * ```
403
- *
404
- * @param {String|Object} name name of field
405
- * @param {String|Blob|File|Buffer|fs.ReadStream} val value of field
406
- * @return {Request} for chaining
407
- * @api public
408
- */
409
-
410
-
411
- RequestBase.prototype.field = function (name, val) {
412
- // name should be either a string or an object.
413
- if (name === null || undefined === name) {
414
- throw new Error('.field(name, val) name can not be empty');
415
- }
416
-
417
- if (this._data) {
418
- throw new Error(".field() can't be used if .send() is used. Please use only .send() or only .field() & .attach()");
419
- }
420
-
421
- if (isObject(name)) {
422
- for (var key in name) {
423
- if (Object.prototype.hasOwnProperty.call(name, key)) this.field(key, name[key]);
424
- }
425
-
426
- return this;
427
- }
428
-
429
- if (Array.isArray(val)) {
430
- for (var i in val) {
431
- if (Object.prototype.hasOwnProperty.call(val, i)) this.field(name, val[i]);
432
- }
433
-
434
- return this;
435
- } // val should be defined now
436
-
437
-
438
- if (val === null || undefined === val) {
439
- throw new Error('.field(name, val) val can not be empty');
440
- }
441
-
442
- if (typeof val === 'boolean') {
443
- val = String(val);
444
- }
445
-
446
- this._getFormData().append(name, val);
447
-
448
- return this;
449
- };
450
- /**
451
- * Abort the request, and clear potential timeout.
452
- *
453
- * @return {Request} request
454
- * @api public
455
- */
456
-
457
-
458
- RequestBase.prototype.abort = function () {
459
- if (this._aborted) {
460
- return this;
461
- }
462
-
463
- this._aborted = true;
464
- if (this.xhr) this.xhr.abort(); // browser
465
-
466
- if (this.req) this.req.abort(); // node
467
-
468
- this.clearTimeout();
469
- this.emit('abort');
470
- return this;
471
- };
472
-
473
- RequestBase.prototype._auth = function (user, pass, options, base64Encoder) {
474
- switch (options.type) {
475
- case 'basic':
476
- this.set('Authorization', "Basic ".concat(base64Encoder("".concat(user, ":").concat(pass))));
477
- break;
478
-
479
- case 'auto':
480
- this.username = user;
481
- this.password = pass;
482
- break;
483
-
484
- case 'bearer':
485
- // usage would be .auth(accessToken, { type: 'bearer' })
486
- this.set('Authorization', "Bearer ".concat(user));
487
- break;
488
-
489
- default:
490
- break;
491
- }
492
-
493
- return this;
494
- };
495
- /**
496
- * Enable transmission of cookies with x-domain requests.
497
- *
498
- * Note that for this to work the origin must not be
499
- * using "Access-Control-Allow-Origin" with a wildcard,
500
- * and also must set "Access-Control-Allow-Credentials"
501
- * to "true".
502
- *
503
- * @api public
504
- */
505
-
506
-
507
- RequestBase.prototype.withCredentials = function (on) {
508
- // This is browser-only functionality. Node side is no-op.
509
- if (on === undefined) on = true;
510
- this._withCredentials = on;
511
- return this;
512
- };
513
- /**
514
- * Set the max redirects to `n`. Does nothing in browser XHR implementation.
515
- *
516
- * @param {Number} n
517
- * @return {Request} for chaining
518
- * @api public
519
- */
520
-
521
-
522
- RequestBase.prototype.redirects = function (n) {
523
- this._maxRedirects = n;
524
- return this;
525
- };
526
- /**
527
- * Maximum size of buffered response body, in bytes. Counts uncompressed size.
528
- * Default 200MB.
529
- *
530
- * @param {Number} n number of bytes
531
- * @return {Request} for chaining
532
- */
533
-
534
-
535
- RequestBase.prototype.maxResponseSize = function (n) {
536
- if (typeof n !== 'number') {
537
- throw new TypeError('Invalid argument');
538
- }
539
-
540
- this._maxResponseSize = n;
541
- return this;
542
- };
543
- /**
544
- * Convert to a plain javascript object (not JSON string) of scalar properties.
545
- * Note as this method is designed to return a useful non-this value,
546
- * it cannot be chained.
547
- *
548
- * @return {Object} describing method, url, and data of this request
549
- * @api public
550
- */
551
-
552
-
553
- RequestBase.prototype.toJSON = function () {
554
- return {
555
- method: this.method,
556
- url: this.url,
557
- data: this._data,
558
- headers: this._header
559
- };
560
- };
561
- /**
562
- * Send `data` as the request body, defaulting the `.type()` to "json" when
563
- * an object is given.
564
- *
565
- * Examples:
566
- *
567
- * // manual json
568
- * request.post('/user')
569
- * .type('json')
570
- * .send('{"name":"tj"}')
571
- * .end(callback)
572
- *
573
- * // auto json
574
- * request.post('/user')
575
- * .send({ name: 'tj' })
576
- * .end(callback)
577
- *
578
- * // manual x-www-form-urlencoded
579
- * request.post('/user')
580
- * .type('form')
581
- * .send('name=tj')
582
- * .end(callback)
583
- *
584
- * // auto x-www-form-urlencoded
585
- * request.post('/user')
586
- * .type('form')
587
- * .send({ name: 'tj' })
588
- * .end(callback)
589
- *
590
- * // defaults to x-www-form-urlencoded
591
- * request.post('/user')
592
- * .send('name=tobi')
593
- * .send('species=ferret')
594
- * .end(callback)
595
- *
596
- * @param {String|Object} data
597
- * @return {Request} for chaining
598
- * @api public
599
- */
600
- // eslint-disable-next-line complexity
601
-
602
-
603
- RequestBase.prototype.send = function (data) {
604
- var isObj = isObject(data);
605
- var type = this._header['content-type'];
606
-
607
- if (this._formData) {
608
- throw new Error(".send() can't be used if .attach() or .field() is used. Please use only .send() or only .field() & .attach()");
609
- }
610
-
611
- if (isObj && !this._data) {
612
- if (Array.isArray(data)) {
613
- this._data = [];
614
- } else if (!this._isHost(data)) {
615
- this._data = {};
616
- }
617
- } else if (data && this._data && this._isHost(this._data)) {
618
- throw new Error("Can't merge these send calls");
619
- } // merge
620
-
621
-
622
- if (isObj && isObject(this._data)) {
623
- for (var key in data) {
624
- if (Object.prototype.hasOwnProperty.call(data, key)) this._data[key] = data[key];
625
- }
626
- } else if (typeof data === 'string') {
627
- // default to x-www-form-urlencoded
628
- if (!type) this.type('form');
629
- type = this._header['content-type'];
630
-
631
- if (type === 'application/x-www-form-urlencoded') {
632
- this._data = this._data ? "".concat(this._data, "&").concat(data) : data;
633
- } else {
634
- this._data = (this._data || '') + data;
635
- }
636
- } else {
637
- this._data = data;
638
- }
639
-
640
- if (!isObj || this._isHost(data)) {
641
- return this;
642
- } // default to json
643
-
644
-
645
- if (!type) this.type('json');
646
- return this;
647
- };
648
- /**
649
- * Sort `querystring` by the sort function
650
- *
651
- *
652
- * Examples:
653
- *
654
- * // default order
655
- * request.get('/user')
656
- * .query('name=Nick')
657
- * .query('search=Manny')
658
- * .sortQuery()
659
- * .end(callback)
660
- *
661
- * // customized sort function
662
- * request.get('/user')
663
- * .query('name=Nick')
664
- * .query('search=Manny')
665
- * .sortQuery(function(a, b){
666
- * return a.length - b.length;
667
- * })
668
- * .end(callback)
669
- *
670
- *
671
- * @param {Function} sort
672
- * @return {Request} for chaining
673
- * @api public
674
- */
675
-
676
-
677
- RequestBase.prototype.sortQuery = function (sort) {
678
- // _sort default to true but otherwise can be a function or boolean
679
- this._sort = typeof sort === 'undefined' ? true : sort;
680
- return this;
681
- };
682
- /**
683
- * Compose querystring to append to req.url
684
- *
685
- * @api private
686
- */
687
-
688
-
689
- RequestBase.prototype._finalizeQueryString = function () {
690
- var query = this._query.join('&');
691
-
692
- if (query) {
693
- this.url += (this.url.includes('?') ? '&' : '?') + query;
694
- }
695
-
696
- this._query.length = 0; // Makes the call idempotent
697
-
698
- if (this._sort) {
699
- var index = this.url.indexOf('?');
700
-
701
- if (index >= 0) {
702
- var queryArr = this.url.slice(index + 1).split('&');
703
-
704
- if (typeof this._sort === 'function') {
705
- queryArr.sort(this._sort);
706
- } else {
707
- queryArr.sort();
708
- }
709
-
710
- this.url = this.url.slice(0, index) + '?' + queryArr.join('&');
711
- }
712
- }
713
- }; // For backwards compat only
714
-
715
-
716
- RequestBase.prototype._appendQueryString = function () {
717
- console.warn('Unsupported');
718
- };
719
- /**
720
- * Invoke callback with timeout error.
721
- *
722
- * @api private
723
- */
724
-
725
-
726
- RequestBase.prototype._timeoutError = function (reason, timeout, errno) {
727
- if (this._aborted) {
728
- return;
729
- }
730
-
731
- var err = new Error("".concat(reason + timeout, "ms exceeded"));
732
- err.timeout = timeout;
733
- err.code = 'ECONNABORTED';
734
- err.errno = errno;
735
- this.timedout = true;
736
- this.timedoutError = err;
737
- this.abort();
738
- this.callback(err);
739
- };
740
-
741
- RequestBase.prototype._setTimeouts = function () {
742
- var self = this; // deadline
743
-
744
- if (this._timeout && !this._timer) {
745
- this._timer = setTimeout(function () {
746
- self._timeoutError('Timeout of ', self._timeout, 'ETIME');
747
- }, this._timeout);
748
- } // response timeout
749
-
750
-
751
- if (this._responseTimeout && !this._responseTimeoutTimer) {
752
- this._responseTimeoutTimer = setTimeout(function () {
753
- self._timeoutError('Response timeout of ', self._responseTimeout, 'ETIMEDOUT');
754
- }, this._responseTimeout);
755
- }
756
- };
757
- //# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uL3NyYy9yZXF1ZXN0LWJhc2UuanMiXSwibmFtZXMiOlsiaXNPYmplY3QiLCJyZXF1aXJlIiwibW9kdWxlIiwiZXhwb3J0cyIsIlJlcXVlc3RCYXNlIiwib2JqIiwibW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