appium-mac2-driver 4.3.5 → 4.4.0

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 (372) hide show
  1. package/CHANGELOG.md +12 -0
  2. package/WebDriverAgentMac/IntegrationTests/AMSessionTests.m +14 -0
  3. package/WebDriverAgentMac/WebDriverAgentLib/Commands/FBSessionCommands.m +17 -5
  4. package/WebDriverAgentMac/WebDriverAgentLib/Routing/FBSession.m +5 -1
  5. package/WebDriverAgentMac/WebDriverAgentLib/Utilities/FBXPath.m +48 -2
  6. package/WebDriverAgentMac/WebDriverAgentMac.xcodeproj/project.pbxproj +4 -0
  7. package/build/lib/driver.d.ts +3 -0
  8. package/build/lib/driver.d.ts.map +1 -1
  9. package/build/lib/driver.js +52 -32
  10. package/build/lib/driver.js.map +1 -1
  11. package/build/lib/session-claim-handler.d.ts +41 -0
  12. package/build/lib/session-claim-handler.d.ts.map +1 -0
  13. package/build/lib/session-claim-handler.js +236 -0
  14. package/build/lib/session-claim-handler.js.map +1 -0
  15. package/build/lib/wda-mac.d.ts +6 -2
  16. package/build/lib/wda-mac.d.ts.map +1 -1
  17. package/build/lib/wda-mac.js +43 -14
  18. package/build/lib/wda-mac.js.map +1 -1
  19. package/lib/driver.ts +55 -31
  20. package/lib/session-claim-handler.ts +306 -0
  21. package/lib/wda-mac.ts +45 -15
  22. package/node_modules/@appium/logger/CHANGELOG.md +8 -0
  23. package/node_modules/@appium/logger/package.json +3 -3
  24. package/node_modules/@appium/strongbox/build/lib/index.d.ts.map +1 -1
  25. package/node_modules/@appium/strongbox/build/lib/index.js +6 -1
  26. package/node_modules/@appium/strongbox/build/lib/index.js.map +1 -1
  27. package/node_modules/@appium/strongbox/lib/index.ts +6 -1
  28. package/node_modules/@appium/strongbox/package.json +2 -2
  29. package/node_modules/@appium/support/build/lib/fs.d.ts.map +1 -1
  30. package/node_modules/@appium/support/build/lib/fs.js +7 -0
  31. package/node_modules/@appium/support/build/lib/fs.js.map +1 -1
  32. package/node_modules/@appium/support/build/lib/index.d.ts.map +1 -1
  33. package/node_modules/@appium/support/build/lib/net.d.ts.map +1 -1
  34. package/node_modules/@appium/support/build/lib/net.js +6 -2
  35. package/node_modules/@appium/support/build/lib/net.js.map +1 -1
  36. package/node_modules/@appium/support/build/lib/util.d.ts.map +1 -1
  37. package/node_modules/@appium/support/build/lib/util.js +10 -4
  38. package/node_modules/@appium/support/build/lib/util.js.map +1 -1
  39. package/node_modules/@appium/support/build/lib/zip.d.ts.map +1 -1
  40. package/node_modules/@appium/support/build/lib/zip.js +2 -7
  41. package/node_modules/@appium/support/build/lib/zip.js.map +1 -1
  42. package/node_modules/@appium/support/lib/fs.ts +8 -1
  43. package/node_modules/@appium/support/lib/net.ts +7 -2
  44. package/node_modules/@appium/support/lib/util.ts +9 -3
  45. package/node_modules/@appium/support/lib/zip.ts +3 -9
  46. package/node_modules/@appium/support/package.json +9 -9
  47. package/node_modules/@appium/types/package.json +4 -4
  48. package/node_modules/@img/sharp-darwin-arm64/index.cjs +1 -1
  49. package/node_modules/@img/sharp-darwin-arm64/lib/sharp-darwin-arm64-0.35.5.node +0 -0
  50. package/node_modules/@img/sharp-darwin-arm64/package.json +2 -2
  51. package/node_modules/@img/sharp-libvips-darwin-arm64/README.md +1 -1
  52. package/node_modules/@img/sharp-libvips-darwin-arm64/lib/glib-2.0/include/glibconfig.h +2 -2
  53. package/node_modules/@img/sharp-libvips-darwin-arm64/lib/{libvips-cpp.8.18.6.dylib → libvips-cpp.8.18.7.dylib} +0 -0
  54. package/node_modules/@img/sharp-libvips-darwin-arm64/package.json +2 -2
  55. package/node_modules/@img/sharp-libvips-darwin-arm64/versions.json +11 -11
  56. package/node_modules/appium-xcode/CHANGELOG.md +35 -0
  57. package/node_modules/appium-xcode/README.md +1 -1
  58. package/node_modules/appium-xcode/package.json +14 -18
  59. package/node_modules/async-lock/AUTHORS +21 -0
  60. package/node_modules/async-lock/History.md +132 -0
  61. package/node_modules/async-lock/LICENSE +22 -0
  62. package/node_modules/async-lock/README.md +177 -0
  63. package/node_modules/async-lock/index.js +2 -0
  64. package/node_modules/async-lock/lib/index.js +312 -0
  65. package/node_modules/async-lock/package.json +48 -0
  66. package/node_modules/b4a/browser.js +5 -0
  67. package/node_modules/b4a/index.d.ts +144 -0
  68. package/node_modules/b4a/index.js +5 -0
  69. package/node_modules/b4a/package.json +4 -1
  70. package/node_modules/b4a/runtime.d.ts +14 -0
  71. package/node_modules/bare-fs/binding.c +52 -23
  72. package/node_modules/bare-fs/index.d.ts +12 -10
  73. package/node_modules/bare-fs/index.js +43 -10
  74. package/node_modules/bare-fs/package.json +2 -1
  75. package/node_modules/bare-fs/prebuilds/android-arm/bare-fs.bare +0 -0
  76. package/node_modules/bare-fs/prebuilds/android-arm64/bare-fs.bare +0 -0
  77. package/node_modules/bare-fs/prebuilds/android-ia32/bare-fs.bare +0 -0
  78. package/node_modules/bare-fs/prebuilds/android-x64/bare-fs.bare +0 -0
  79. package/node_modules/bare-fs/prebuilds/darwin-arm64/bare-fs.bare +0 -0
  80. package/node_modules/bare-fs/prebuilds/darwin-x64/bare-fs.bare +0 -0
  81. package/node_modules/bare-fs/prebuilds/ios-arm64/bare-fs.bare +0 -0
  82. package/node_modules/bare-fs/prebuilds/ios-arm64-simulator/bare-fs.bare +0 -0
  83. package/node_modules/bare-fs/prebuilds/ios-x64-simulator/bare-fs.bare +0 -0
  84. package/node_modules/bare-fs/prebuilds/linux-arm64/bare-fs.bare +0 -0
  85. package/node_modules/bare-fs/prebuilds/linux-x64/bare-fs.bare +0 -0
  86. package/node_modules/bare-fs/prebuilds/win32-arm64/bare-fs.bare +0 -0
  87. package/node_modules/bare-fs/prebuilds/win32-x64/bare-fs.bare +0 -0
  88. package/node_modules/bplist-creator/README.md +26 -6
  89. package/node_modules/bplist-creator/dist/index.cjs +508 -0
  90. package/node_modules/bplist-creator/dist/index.cjs.map +7 -0
  91. package/node_modules/bplist-creator/dist/index.d.cts +12 -0
  92. package/node_modules/bplist-creator/dist/index.d.ts +12 -0
  93. package/node_modules/bplist-creator/dist/index.mjs +472 -0
  94. package/node_modules/bplist-creator/dist/index.mjs.map +7 -0
  95. package/node_modules/bplist-creator/package.json +43 -9
  96. package/node_modules/bplist-parser/README.md +37 -3
  97. package/node_modules/bplist-parser/dist/index.cjs +385 -0
  98. package/node_modules/bplist-parser/dist/index.cjs.map +7 -0
  99. package/node_modules/bplist-parser/dist/index.d.cts +13 -0
  100. package/node_modules/bplist-parser/dist/index.d.ts +13 -0
  101. package/node_modules/bplist-parser/{bplistParser.js → dist/index.mjs} +141 -171
  102. package/node_modules/bplist-parser/dist/index.mjs.map +7 -0
  103. package/node_modules/bplist-parser/package.json +39 -12
  104. package/node_modules/brace-expansion/dist/commonjs/index.d.ts +4 -0
  105. package/node_modules/brace-expansion/dist/commonjs/index.d.ts.map +1 -1
  106. package/node_modules/brace-expansion/dist/commonjs/index.js +69 -25
  107. package/node_modules/brace-expansion/dist/commonjs/index.js.map +1 -1
  108. package/node_modules/brace-expansion/dist/esm/index.d.ts +4 -0
  109. package/node_modules/brace-expansion/dist/esm/index.d.ts.map +1 -1
  110. package/node_modules/brace-expansion/dist/esm/index.js +68 -24
  111. package/node_modules/brace-expansion/dist/esm/index.js.map +1 -1
  112. package/node_modules/brace-expansion/package.json +2 -1
  113. package/node_modules/follow-redirects/index.js +10 -1
  114. package/node_modules/follow-redirects/package.json +1 -1
  115. package/node_modules/lru-cache/dist/commonjs/react-native/diagnostics-channel-react-native.d.ts.map +1 -0
  116. package/node_modules/lru-cache/dist/commonjs/react-native/diagnostics-channel-react-native.js.map +1 -0
  117. package/node_modules/lru-cache/dist/commonjs/react-native/diagnostics-channel.d.ts +5 -0
  118. package/node_modules/lru-cache/dist/commonjs/react-native/diagnostics-channel.js +7 -0
  119. package/node_modules/lru-cache/dist/commonjs/react-native/index.d.ts +1400 -0
  120. package/node_modules/lru-cache/dist/commonjs/react-native/index.d.ts.map +1 -0
  121. package/node_modules/lru-cache/dist/commonjs/react-native/index.js +1733 -0
  122. package/node_modules/lru-cache/dist/commonjs/react-native/index.js.map +1 -0
  123. package/node_modules/lru-cache/dist/commonjs/react-native/perf.d.ts +12 -0
  124. package/node_modules/lru-cache/dist/commonjs/react-native/perf.d.ts.map +1 -0
  125. package/node_modules/lru-cache/dist/commonjs/react-native/perf.js +10 -0
  126. package/node_modules/lru-cache/dist/commonjs/react-native/perf.js.map +1 -0
  127. package/node_modules/lru-cache/dist/esm/react-native/diagnostics-channel-react-native.d.ts.map +1 -0
  128. package/node_modules/lru-cache/dist/esm/react-native/diagnostics-channel-react-native.js.map +1 -0
  129. package/node_modules/lru-cache/dist/esm/react-native/diagnostics-channel.d.ts +5 -0
  130. package/node_modules/lru-cache/dist/esm/react-native/diagnostics-channel.js +4 -0
  131. package/node_modules/lru-cache/dist/esm/react-native/index.d.ts +1400 -0
  132. package/node_modules/lru-cache/dist/esm/react-native/index.d.ts.map +1 -0
  133. package/node_modules/lru-cache/dist/esm/react-native/index.js +1729 -0
  134. package/node_modules/lru-cache/dist/esm/react-native/index.js.map +1 -0
  135. package/node_modules/lru-cache/dist/esm/react-native/perf.d.ts +12 -0
  136. package/node_modules/lru-cache/dist/esm/react-native/perf.d.ts.map +1 -0
  137. package/node_modules/lru-cache/dist/esm/react-native/perf.js +7 -0
  138. package/node_modules/lru-cache/dist/esm/react-native/perf.js.map +1 -0
  139. package/node_modules/lru-cache/package.json +27 -1
  140. package/node_modules/p-limit/index.d.ts +2 -0
  141. package/node_modules/p-limit/index.js +17 -1
  142. package/node_modules/p-limit/package.json +1 -1
  143. package/node_modules/p-limit/readme.md +2 -0
  144. package/node_modules/readable-stream/lib/internal/shims/process.js +19 -0
  145. package/node_modules/readable-stream/lib/internal/streams/destroy.js +1 -1
  146. package/node_modules/readable-stream/lib/internal/streams/duplexify.js +1 -1
  147. package/node_modules/readable-stream/lib/internal/streams/end-of-stream.js +1 -1
  148. package/node_modules/readable-stream/lib/internal/streams/from.js +1 -1
  149. package/node_modules/readable-stream/lib/internal/streams/legacy.js +6 -1
  150. package/node_modules/readable-stream/lib/internal/streams/pipeline.js +1 -1
  151. package/node_modules/readable-stream/lib/internal/streams/readable.js +1 -1
  152. package/node_modules/readable-stream/lib/internal/streams/writable.js +1 -1
  153. package/node_modules/readable-stream/package.json +3 -2
  154. package/node_modules/sharp/dist/index.d.cts +2 -2
  155. package/node_modules/sharp/dist/index.d.mts +3 -3
  156. package/node_modules/sharp/dist/is.cjs +8 -2
  157. package/node_modules/sharp/dist/is.mjs +8 -2
  158. package/node_modules/sharp/dist/operation.cjs +2 -2
  159. package/node_modules/sharp/dist/operation.mjs +2 -2
  160. package/node_modules/sharp/dist/output.cjs +1 -0
  161. package/node_modules/sharp/dist/output.mjs +1 -0
  162. package/node_modules/sharp/dist/resize.cjs +14 -14
  163. package/node_modules/sharp/dist/resize.mjs +14 -14
  164. package/node_modules/sharp/dist/sharp.cjs +3 -3
  165. package/node_modules/sharp/dist/sharp.mjs +3 -3
  166. package/node_modules/sharp/lib/index.d.ts +2 -2
  167. package/node_modules/sharp/package.json +35 -35
  168. package/node_modules/sharp/src/binding.gyp +1 -1
  169. package/node_modules/sharp/src/common.cc +4 -4
  170. package/node_modules/sharp/src/common.h +2 -2
  171. package/node_modules/sharp/src/pipeline.cc +31 -6
  172. package/node_modules/sharp/src/utilities.cc +1 -1
  173. package/node_modules/spdx-license-ids/index.json +13 -0
  174. package/node_modules/spdx-license-ids/package.json +1 -1
  175. package/node_modules/stream-buffers/.codeclimate.yml +12 -0
  176. package/node_modules/stream-buffers/.eslintignore +1 -0
  177. package/node_modules/stream-buffers/.eslintrc +25 -0
  178. package/node_modules/stream-buffers/.github/workflows/codeql-analysis.yml +71 -0
  179. package/node_modules/stream-buffers/.github/workflows/node.js.yml +31 -0
  180. package/node_modules/stream-buffers/.mailmap +1 -0
  181. package/node_modules/stream-buffers/.nvmrc +1 -0
  182. package/node_modules/stream-buffers/README.md +65 -65
  183. package/node_modules/stream-buffers/lib/constants.js +8 -6
  184. package/node_modules/stream-buffers/lib/readable_streambuffer.js +114 -136
  185. package/node_modules/stream-buffers/lib/streambuffer.js +5 -3
  186. package/node_modules/stream-buffers/lib/writable_streambuffer.js +72 -97
  187. package/node_modules/stream-buffers/package.json +7 -5
  188. package/node_modules/tar-stream/package.json +7 -7
  189. package/node_modules/type-fest/index.d.ts +7 -7
  190. package/node_modules/type-fest/package.json +2 -1
  191. package/node_modules/type-fest/readme.md +7 -16
  192. package/node_modules/type-fest/source/all-extend.d.ts +9 -7
  193. package/node_modules/type-fest/source/array-reverse.d.ts +13 -12
  194. package/node_modules/type-fest/source/array-tail.d.ts +3 -3
  195. package/node_modules/type-fest/source/delimiter-case.d.ts +1 -1
  196. package/node_modules/type-fest/source/get.d.ts +1 -1
  197. package/node_modules/type-fest/source/int-closed-range.d.ts +4 -1
  198. package/node_modules/type-fest/source/int-range.d.ts +56 -9
  199. package/node_modules/type-fest/source/internal/array.d.ts +14 -13
  200. package/node_modules/type-fest/source/internal/numeric.d.ts +0 -38
  201. package/node_modules/type-fest/source/internal/object.d.ts +30 -1
  202. package/node_modules/type-fest/source/is-boolean-literal.d.ts +39 -0
  203. package/node_modules/type-fest/source/is-literal.d.ts +43 -269
  204. package/node_modules/type-fest/source/is-numeric-literal.d.ts +50 -0
  205. package/node_modules/type-fest/source/is-string-literal.d.ts +72 -0
  206. package/node_modules/type-fest/source/is-symbol-literal.d.ts +39 -0
  207. package/node_modules/type-fest/source/is-tuple.d.ts +3 -3
  208. package/node_modules/type-fest/source/jsonify.d.ts +1 -5
  209. package/node_modules/type-fest/source/merge-deep.d.ts +3 -3
  210. package/node_modules/type-fest/source/remove-prefix.d.ts +1 -1
  211. package/node_modules/type-fest/source/remove-suffix.d.ts +1 -1
  212. package/node_modules/type-fest/source/rename-keys.d.ts +163 -0
  213. package/node_modules/type-fest/source/set-required.d.ts +10 -9
  214. package/node_modules/type-fest/source/shared-union-fields-deep.d.ts +6 -4
  215. package/node_modules/type-fest/source/some-extend.d.ts +9 -7
  216. package/node_modules/type-fest/source/split-on-rest-element.d.ts +14 -13
  217. package/node_modules/type-fest/source/split.d.ts +22 -11
  218. package/node_modules/type-fest/source/string-repeat.d.ts +1 -1
  219. package/node_modules/type-fest/source/string-to-array.d.ts +1 -1
  220. package/node_modules/type-fest/source/tsconfig-json.d.ts +1 -1
  221. package/node_modules/type-fest/source/typed-array.d.ts +6 -0
  222. package/node_modules/type-fest/source/union-max.d.ts +56 -0
  223. package/node_modules/type-fest/source/writable.d.ts +2 -2
  224. package/package.json +5 -3
  225. package/node_modules/@appium/support/node_modules/asyncbox/LICENSE +0 -203
  226. package/node_modules/@appium/support/node_modules/asyncbox/README.md +0 -215
  227. package/node_modules/@appium/support/node_modules/asyncbox/build/cjs/lib/asyncbox.d.ts +0 -103
  228. package/node_modules/@appium/support/node_modules/asyncbox/build/cjs/lib/asyncbox.d.ts.map +0 -1
  229. package/node_modules/@appium/support/node_modules/asyncbox/build/cjs/lib/asyncbox.js +0 -301
  230. package/node_modules/@appium/support/node_modules/asyncbox/build/cjs/lib/asyncbox.js.map +0 -1
  231. package/node_modules/@appium/support/node_modules/asyncbox/build/cjs/lib/types.d.ts +0 -84
  232. package/node_modules/@appium/support/node_modules/asyncbox/build/cjs/lib/types.d.ts.map +0 -1
  233. package/node_modules/@appium/support/node_modules/asyncbox/build/cjs/lib/types.js +0 -3
  234. package/node_modules/@appium/support/node_modules/asyncbox/build/cjs/lib/types.js.map +0 -1
  235. package/node_modules/@appium/support/node_modules/asyncbox/build/cjs/package.json +0 -3
  236. package/node_modules/@appium/support/node_modules/asyncbox/build/esm/lib/asyncbox.d.ts +0 -103
  237. package/node_modules/@appium/support/node_modules/asyncbox/build/esm/lib/asyncbox.d.ts.map +0 -1
  238. package/node_modules/@appium/support/node_modules/asyncbox/build/esm/lib/asyncbox.js +0 -288
  239. package/node_modules/@appium/support/node_modules/asyncbox/build/esm/lib/asyncbox.js.map +0 -1
  240. package/node_modules/@appium/support/node_modules/asyncbox/build/esm/lib/types.d.ts +0 -84
  241. package/node_modules/@appium/support/node_modules/asyncbox/build/esm/lib/types.d.ts.map +0 -1
  242. package/node_modules/@appium/support/node_modules/asyncbox/build/esm/lib/types.js +0 -2
  243. package/node_modules/@appium/support/node_modules/asyncbox/build/esm/lib/types.js.map +0 -1
  244. package/node_modules/@appium/support/node_modules/asyncbox/build/esm/package.json +0 -3
  245. package/node_modules/@appium/support/node_modules/asyncbox/lib/asyncbox.ts +0 -365
  246. package/node_modules/@appium/support/node_modules/asyncbox/lib/types.ts +0 -88
  247. package/node_modules/@appium/support/node_modules/asyncbox/package.json +0 -74
  248. package/node_modules/@appium/support/node_modules/axios/CHANGELOG.md +0 -1872
  249. package/node_modules/@appium/support/node_modules/axios/LICENSE +0 -7
  250. package/node_modules/@appium/support/node_modules/axios/MIGRATION_GUIDE.md +0 -877
  251. package/node_modules/@appium/support/node_modules/axios/README.md +0 -2623
  252. package/node_modules/@appium/support/node_modules/axios/dist/axios.js +0 -5509
  253. package/node_modules/@appium/support/node_modules/axios/dist/axios.min.js +0 -5
  254. package/node_modules/@appium/support/node_modules/axios/dist/axios.min.js.map +0 -1
  255. package/node_modules/@appium/support/node_modules/axios/dist/browser/axios.cjs +0 -5469
  256. package/node_modules/@appium/support/node_modules/axios/dist/esm/axios.js +0 -5490
  257. package/node_modules/@appium/support/node_modules/axios/dist/esm/axios.min.js +0 -3
  258. package/node_modules/@appium/support/node_modules/axios/dist/esm/axios.min.js.map +0 -1
  259. package/node_modules/@appium/support/node_modules/axios/dist/node/axios.cjs +0 -6356
  260. package/node_modules/@appium/support/node_modules/axios/index.d.cts +0 -762
  261. package/node_modules/@appium/support/node_modules/axios/index.d.ts +0 -783
  262. package/node_modules/@appium/support/node_modules/axios/index.js +0 -45
  263. package/node_modules/@appium/support/node_modules/axios/lib/adapters/README.md +0 -36
  264. package/node_modules/@appium/support/node_modules/axios/lib/adapters/adapters.js +0 -132
  265. package/node_modules/@appium/support/node_modules/axios/lib/adapters/fetch.js +0 -643
  266. package/node_modules/@appium/support/node_modules/axios/lib/adapters/http.js +0 -1406
  267. package/node_modules/@appium/support/node_modules/axios/lib/adapters/xhr.js +0 -228
  268. package/node_modules/@appium/support/node_modules/axios/lib/axios.js +0 -89
  269. package/node_modules/@appium/support/node_modules/axios/lib/cancel/CancelToken.js +0 -135
  270. package/node_modules/@appium/support/node_modules/axios/lib/cancel/CanceledError.js +0 -22
  271. package/node_modules/@appium/support/node_modules/axios/lib/cancel/isCancel.js +0 -5
  272. package/node_modules/@appium/support/node_modules/axios/lib/core/Axios.js +0 -301
  273. package/node_modules/@appium/support/node_modules/axios/lib/core/AxiosError.js +0 -219
  274. package/node_modules/@appium/support/node_modules/axios/lib/core/AxiosHeaders.js +0 -474
  275. package/node_modules/@appium/support/node_modules/axios/lib/core/InterceptorManager.js +0 -72
  276. package/node_modules/@appium/support/node_modules/axios/lib/core/README.md +0 -8
  277. package/node_modules/@appium/support/node_modules/axios/lib/core/buildFullPath.js +0 -88
  278. package/node_modules/@appium/support/node_modules/axios/lib/core/dispatchRequest.js +0 -89
  279. package/node_modules/@appium/support/node_modules/axios/lib/core/mergeConfig.js +0 -174
  280. package/node_modules/@appium/support/node_modules/axios/lib/core/setFormDataHeaders.js +0 -27
  281. package/node_modules/@appium/support/node_modules/axios/lib/core/settle.js +0 -27
  282. package/node_modules/@appium/support/node_modules/axios/lib/core/transformData.js +0 -28
  283. package/node_modules/@appium/support/node_modules/axios/lib/defaults/index.js +0 -177
  284. package/node_modules/@appium/support/node_modules/axios/lib/defaults/transitional.js +0 -10
  285. package/node_modules/@appium/support/node_modules/axios/lib/env/README.md +0 -3
  286. package/node_modules/@appium/support/node_modules/axios/lib/env/classes/FormData.js +0 -2
  287. package/node_modules/@appium/support/node_modules/axios/lib/env/data.js +0 -1
  288. package/node_modules/@appium/support/node_modules/axios/lib/helpers/AxiosTransformStream.js +0 -156
  289. package/node_modules/@appium/support/node_modules/axios/lib/helpers/AxiosURLSearchParams.js +0 -59
  290. package/node_modules/@appium/support/node_modules/axios/lib/helpers/Http2Sessions.js +0 -119
  291. package/node_modules/@appium/support/node_modules/axios/lib/helpers/HttpStatusCode.js +0 -78
  292. package/node_modules/@appium/support/node_modules/axios/lib/helpers/README.md +0 -7
  293. package/node_modules/@appium/support/node_modules/axios/lib/helpers/ZlibHeaderTransformStream.js +0 -29
  294. package/node_modules/@appium/support/node_modules/axios/lib/helpers/bind.js +0 -14
  295. package/node_modules/@appium/support/node_modules/axios/lib/helpers/buildURL.js +0 -69
  296. package/node_modules/@appium/support/node_modules/axios/lib/helpers/callbackify.js +0 -18
  297. package/node_modules/@appium/support/node_modules/axios/lib/helpers/combineURLs.js +0 -23
  298. package/node_modules/@appium/support/node_modules/axios/lib/helpers/composeSignals.js +0 -68
  299. package/node_modules/@appium/support/node_modules/axios/lib/helpers/cookies.js +0 -64
  300. package/node_modules/@appium/support/node_modules/axios/lib/helpers/deprecatedMethod.js +0 -31
  301. package/node_modules/@appium/support/node_modules/axios/lib/helpers/estimateDataURLDecodedBytes.js +0 -166
  302. package/node_modules/@appium/support/node_modules/axios/lib/helpers/formDataToJSON.js +0 -125
  303. package/node_modules/@appium/support/node_modules/axios/lib/helpers/formDataToStream.js +0 -119
  304. package/node_modules/@appium/support/node_modules/axios/lib/helpers/fromDataURI.js +0 -68
  305. package/node_modules/@appium/support/node_modules/axios/lib/helpers/isAbsoluteURL.js +0 -19
  306. package/node_modules/@appium/support/node_modules/axios/lib/helpers/isAxiosError.js +0 -14
  307. package/node_modules/@appium/support/node_modules/axios/lib/helpers/isURLSameOrigin.js +0 -16
  308. package/node_modules/@appium/support/node_modules/axios/lib/helpers/null.js +0 -2
  309. package/node_modules/@appium/support/node_modules/axios/lib/helpers/parseHeaders.js +0 -71
  310. package/node_modules/@appium/support/node_modules/axios/lib/helpers/parseProtocol.js +0 -6
  311. package/node_modules/@appium/support/node_modules/axios/lib/helpers/progressEventReducer.js +0 -54
  312. package/node_modules/@appium/support/node_modules/axios/lib/helpers/readBlob.js +0 -15
  313. package/node_modules/@appium/support/node_modules/axios/lib/helpers/resolveConfig.js +0 -105
  314. package/node_modules/@appium/support/node_modules/axios/lib/helpers/sanitizeHeaderValue.js +0 -60
  315. package/node_modules/@appium/support/node_modules/axios/lib/helpers/shouldBypassProxy.js +0 -329
  316. package/node_modules/@appium/support/node_modules/axios/lib/helpers/speedometer.js +0 -55
  317. package/node_modules/@appium/support/node_modules/axios/lib/helpers/spread.js +0 -28
  318. package/node_modules/@appium/support/node_modules/axios/lib/helpers/throttle.js +0 -44
  319. package/node_modules/@appium/support/node_modules/axios/lib/helpers/toFormData.js +0 -286
  320. package/node_modules/@appium/support/node_modules/axios/lib/helpers/toURLEncodedForm.js +0 -19
  321. package/node_modules/@appium/support/node_modules/axios/lib/helpers/trackStream.js +0 -89
  322. package/node_modules/@appium/support/node_modules/axios/lib/helpers/validator.js +0 -112
  323. package/node_modules/@appium/support/node_modules/axios/lib/platform/browser/classes/Blob.js +0 -3
  324. package/node_modules/@appium/support/node_modules/axios/lib/platform/browser/classes/FormData.js +0 -3
  325. package/node_modules/@appium/support/node_modules/axios/lib/platform/browser/classes/URLSearchParams.js +0 -4
  326. package/node_modules/@appium/support/node_modules/axios/lib/platform/browser/index.js +0 -13
  327. package/node_modules/@appium/support/node_modules/axios/lib/platform/common/utils.js +0 -52
  328. package/node_modules/@appium/support/node_modules/axios/lib/platform/index.js +0 -7
  329. package/node_modules/@appium/support/node_modules/axios/lib/platform/node/classes/Buffer.js +0 -11
  330. package/node_modules/@appium/support/node_modules/axios/lib/platform/node/classes/FormData.js +0 -3
  331. package/node_modules/@appium/support/node_modules/axios/lib/platform/node/classes/URLSearchParams.js +0 -4
  332. package/node_modules/@appium/support/node_modules/axios/lib/platform/node/index.js +0 -37
  333. package/node_modules/@appium/support/node_modules/axios/lib/utils.js +0 -1029
  334. package/node_modules/@appium/support/node_modules/axios/package.json +0 -203
  335. package/node_modules/@img/sharp-darwin-arm64/lib/sharp-darwin-arm64-0.35.4.node +0 -0
  336. package/node_modules/big-integer/BigInteger.d.ts +0 -2393
  337. package/node_modules/big-integer/BigInteger.js +0 -1453
  338. package/node_modules/big-integer/BigInteger.min.js +0 -1
  339. package/node_modules/big-integer/LICENSE +0 -24
  340. package/node_modules/big-integer/README.md +0 -589
  341. package/node_modules/big-integer/bower.json +0 -29
  342. package/node_modules/big-integer/package.json +0 -48
  343. package/node_modules/big-integer/tsconfig.json +0 -24
  344. package/node_modules/bplist-creator/bplistCreator.d.ts +0 -8
  345. package/node_modules/bplist-creator/bplistCreator.js +0 -460
  346. package/node_modules/bplist-creator/test/airplay.bplist +0 -0
  347. package/node_modules/bplist-creator/test/binaryData.bplist +0 -0
  348. package/node_modules/bplist-creator/test/creatorTest.js +0 -211
  349. package/node_modules/bplist-creator/test/iTunes-small.bplist +0 -0
  350. package/node_modules/bplist-creator/test/integers.bplist +0 -0
  351. package/node_modules/bplist-creator/test/sample1.bplist +0 -0
  352. package/node_modules/bplist-creator/test/sample2.bplist +0 -0
  353. package/node_modules/bplist-creator/test/uid.bplist +0 -0
  354. package/node_modules/bplist-creator/test/utf16.bplist +0 -0
  355. package/node_modules/bplist-parser/.editorconfig +0 -12
  356. package/node_modules/bplist-parser/.eslintignore +0 -1
  357. package/node_modules/bplist-parser/.eslintrc.js +0 -296
  358. package/node_modules/bplist-parser/bplistParser.d.ts +0 -8
  359. package/node_modules/stream-buffers/.travis.yml +0 -28
  360. package/node_modules/stream-buffers/coverage/coverage.json +0 -1
  361. package/node_modules/stream-buffers/coverage/lcov-report/base.css +0 -182
  362. package/node_modules/stream-buffers/coverage/lcov-report/index.html +0 -73
  363. package/node_modules/stream-buffers/coverage/lcov-report/lib/constants.js.html +0 -63
  364. package/node_modules/stream-buffers/coverage/lcov-report/lib/index.html +0 -112
  365. package/node_modules/stream-buffers/coverage/lcov-report/lib/readable_streambuffer.js.html +0 -453
  366. package/node_modules/stream-buffers/coverage/lcov-report/lib/streambuffer.js.html +0 -54
  367. package/node_modules/stream-buffers/coverage/lcov-report/lib/writable_streambuffer.js.html +0 -336
  368. package/node_modules/stream-buffers/coverage/lcov-report/prettify.css +0 -1
  369. package/node_modules/stream-buffers/coverage/lcov-report/prettify.js +0 -1
  370. package/node_modules/stream-buffers/coverage/lcov-report/sort-arrow-sprite.png +0 -0
  371. package/node_modules/stream-buffers/coverage/lcov-report/sorter.js +0 -156
  372. package/node_modules/stream-buffers/coverage/lcov.info +0 -305
@@ -1,136 +1,114 @@
1
- var stream = require("stream"),
2
- constants = require("./constants"),
3
- util = require("util");
4
-
5
- var ReadableStreamBuffer = module.exports = function(opts) {
6
- var that = this;
7
-
8
- stream.Stream.call(this);
9
-
10
- opts = opts || {};
11
- var frequency = opts.hasOwnProperty("frequency") ? opts.frequency : constants.DEFAULT_FREQUENCY;
12
- var chunkSize = opts.chunkSize || constants.DEFAULT_CHUNK_SIZE;
13
- var initialSize = opts.initialSize || constants.DEFAULT_INITIAL_SIZE;
14
- var incrementAmount = opts.incrementAmount || constants.DEFAULT_INCREMENT_AMOUNT;
15
-
16
- var size = 0;
17
- var buffer = new Buffer(initialSize);
18
- var encoding = null;
19
-
20
- this.readable = true;
21
- this.writable = false;
22
-
23
- var sendData = function() {
24
- var amount = Math.min(chunkSize, size);
25
-
26
- if (amount > 0) {
27
- var chunk = null;
28
- if(encoding) {
29
- chunk = buffer.toString(encoding, 0, amount);
30
- }
31
- else {
32
- chunk = new Buffer(amount);
33
- buffer.copy(chunk, 0, 0, amount);
34
- }
35
-
36
- that.emit("data", chunk);
37
-
38
- if(amount < buffer.length)
39
- buffer.copy(buffer, 0, amount, size);
40
- size -= amount;
41
- }
42
-
43
- if(size === 0 && !that.readable) {
44
- that.emit("end");
45
- that.emit("close");
46
- if (sendData && sendData.interval) {
47
- clearInterval(sendData.interval);
48
- sendData.interval = null;
49
- }
50
- }
51
- };
52
-
53
- this.size = function() {
54
- return size;
55
- };
56
-
57
- this.maxSize = function() {
58
- return buffer.length;
59
- };
60
-
61
- var increaseBufferIfNecessary = function(incomingDataSize) {
62
- if((buffer.length - size) < incomingDataSize) {
63
- var factor = Math.ceil((incomingDataSize - (buffer.length - size)) / incrementAmount);
64
-
65
- var newBuffer = new Buffer(buffer.length + (incrementAmount * factor));
66
- buffer.copy(newBuffer, 0, 0, size);
67
- buffer = newBuffer;
68
- }
69
- };
70
-
71
- this.put = function(data, encoding) {
72
- if(!that.readable) return;
73
-
74
- var wasEmpty = size === 0;
75
- if(Buffer.isBuffer(data)) {
76
- increaseBufferIfNecessary(data.length);
77
- data.copy(buffer, size, 0);
78
- size += data.length;
79
- }
80
- else {
81
- data = data + "";
82
- var dataSizeInBytes = Buffer.byteLength(data);
83
- increaseBufferIfNecessary(dataSizeInBytes);
84
- buffer.write(data, size, encoding || "utf8");
85
- size += dataSizeInBytes;
86
- }
87
-
88
- if (wasEmpty && size > 0) {
89
- this.emit('readable')
90
- }
91
-
92
- if (!this.isPaused && !frequency) {
93
- while (size > 0) {
94
- sendData();
95
- }
96
- }
97
- };
98
-
99
- this.pause = function() {
100
- this.isPaused = true;
101
- if(sendData && sendData.interval) {
102
- clearInterval(sendData.interval);
103
- delete sendData.interval;
104
- }
105
- };
106
-
107
- this.resume = function() {
108
- this.isPaused = false;
109
- if(sendData && !sendData.interval && frequency > 0) {
110
- sendData.interval = setInterval(sendData, frequency);
111
- }
112
- };
113
-
114
- this.destroy = function() {
115
- that.emit("end");
116
- if(sendData.interval) clearInterval(sendData.interval);
117
- sendData = null;
118
- that.readable = false;
119
- that.emit("close");
120
- };
121
-
122
- this.destroySoon = function() {
123
- that.readable = false;
124
- if (!sendData.interval) {
125
- that.emit("end");
126
- that.emit("close");
127
- }
128
- };
129
-
130
- this.setEncoding = function(_encoding) {
131
- encoding = _encoding;
132
- };
133
-
134
- this.resume();
135
- };
136
- util.inherits(ReadableStreamBuffer, stream.Stream);
1
+ 'use strict';
2
+
3
+ var stream = require('stream');
4
+ var constants = require('./constants');
5
+ var util = require('util');
6
+
7
+ var ReadableStreamBuffer = module.exports = function(opts) {
8
+ var that = this;
9
+ opts = opts || {};
10
+
11
+ stream.Readable.call(this, opts);
12
+
13
+ this.stopped = false;
14
+
15
+ var frequency = opts.hasOwnProperty('frequency') ? opts.frequency : constants.DEFAULT_FREQUENCY;
16
+ var chunkSize = opts.chunkSize || constants.DEFAULT_CHUNK_SIZE;
17
+ var initialSize = opts.initialSize || constants.DEFAULT_INITIAL_SIZE;
18
+ var incrementAmount = opts.incrementAmount || constants.DEFAULT_INCREMENT_AMOUNT;
19
+
20
+ var size = 0;
21
+ var buffer = new Buffer(initialSize);
22
+ var allowPush = false;
23
+
24
+ var sendData = function() {
25
+ var amount = Math.min(chunkSize, size);
26
+ var sendMore = false;
27
+
28
+ if (amount > 0) {
29
+ var chunk = null;
30
+ chunk = new Buffer(amount);
31
+ buffer.copy(chunk, 0, 0, amount);
32
+
33
+ sendMore = that.push(chunk) !== false;
34
+ allowPush = sendMore;
35
+
36
+ buffer.copy(buffer, 0, amount, size);
37
+ size -= amount;
38
+ }
39
+
40
+ if(size === 0 && that.stopped) {
41
+ that.push(null);
42
+ }
43
+
44
+ if (sendMore) {
45
+ sendData.timeout = setTimeout(sendData, frequency);
46
+ }
47
+ else {
48
+ sendData.timeout = null;
49
+ }
50
+ };
51
+
52
+ this.stop = function() {
53
+ if (this.stopped) {
54
+ throw new Error('stop() called on already stopped ReadableStreamBuffer');
55
+ }
56
+ this.stopped = true;
57
+
58
+ if (size === 0) {
59
+ this.push(null);
60
+ }
61
+ };
62
+
63
+ this.size = function() {
64
+ return size;
65
+ };
66
+
67
+ this.maxSize = function() {
68
+ return buffer.length;
69
+ };
70
+
71
+ var increaseBufferIfNecessary = function(incomingDataSize) {
72
+ if((buffer.length - size) < incomingDataSize) {
73
+ var factor = Math.ceil((incomingDataSize - (buffer.length - size)) / incrementAmount);
74
+
75
+ var newBuffer = new Buffer(buffer.length + (incrementAmount * factor));
76
+ buffer.copy(newBuffer, 0, 0, size);
77
+ buffer = newBuffer;
78
+ }
79
+ };
80
+
81
+ var kickSendDataTask = function () {
82
+ if (!sendData.timeout && allowPush) {
83
+ sendData.timeout = setTimeout(sendData, frequency);
84
+ }
85
+ }
86
+
87
+ this.put = function(data, encoding) {
88
+ if (that.stopped) {
89
+ throw new Error('Tried to write data to a stopped ReadableStreamBuffer');
90
+ }
91
+
92
+ if(Buffer.isBuffer(data)) {
93
+ increaseBufferIfNecessary(data.length);
94
+ data.copy(buffer, size, 0);
95
+ size += data.length;
96
+ }
97
+ else {
98
+ data = data + '';
99
+ var dataSizeInBytes = Buffer.byteLength(data);
100
+ increaseBufferIfNecessary(dataSizeInBytes);
101
+ buffer.write(data, size, encoding || 'utf8');
102
+ size += dataSizeInBytes;
103
+ }
104
+
105
+ kickSendDataTask();
106
+ };
107
+
108
+ this._read = function() {
109
+ allowPush = true;
110
+ kickSendDataTask();
111
+ };
112
+ };
113
+
114
+ util.inherits(ReadableStreamBuffer, stream.Readable);
@@ -1,3 +1,5 @@
1
- module.exports = require("./constants");
2
- module.exports.ReadableStreamBuffer = require("./readable_streambuffer");
3
- module.exports.WritableStreamBuffer = require("./writable_streambuffer");
1
+ 'use strict';
2
+
3
+ module.exports = require('./constants');
4
+ module.exports.ReadableStreamBuffer = require('./readable_streambuffer');
5
+ module.exports.WritableStreamBuffer = require('./writable_streambuffer');
@@ -1,97 +1,72 @@
1
- var util = require("util"),
2
- stream = require("stream"),
3
- constants = require("./constants");
4
-
5
- // TODO: clear up specs on returning false from a write and emitting a drain event.
6
- // Does this mean if I return false from a write, I should ignore any write requests between that false return and the drain event?
7
- var WritableStreamBuffer = module.exports = function(opts) {
8
- var that = this;
9
-
10
- stream.Stream.call(this);
11
-
12
- opts = opts || {};
13
- var initialSize = opts.initialSize || constants.DEFAULT_INITIAL_SIZE;
14
- var incrementAmount = opts.incrementAmount || constants.DEFAULT_INCREMENT_AMOUNT;
15
-
16
- var buffer = new Buffer(initialSize);
17
- var size = 0;
18
-
19
- this.writable = true;
20
- this.readable = false;
21
-
22
- this.size = function() {
23
- return size;
24
- };
25
-
26
- this.maxSize = function() {
27
- return buffer.length;
28
- };
29
-
30
- this.getContents = function(length) {
31
- if(!size) return false;
32
-
33
- var data = new Buffer(Math.min(length || size, size));
34
- buffer.copy(data, 0, 0, data.length);
35
-
36
- if(data.length < size)
37
- buffer.copy(buffer, 0, data.length);
38
-
39
- size -= data.length;
40
-
41
- return data;
42
- };
43
-
44
- this.getContentsAsString = function(encoding, length) {
45
- if(!size) return false;
46
-
47
- var data = buffer.toString(encoding || "utf8", 0, Math.min(length || size, size));
48
- var dataLength = Buffer.byteLength(data);
49
-
50
- if(dataLength < size)
51
- buffer.copy(buffer, 0, dataLength);
52
-
53
- size -= dataLength;
54
- return data;
55
- };
56
-
57
- var increaseBufferIfNecessary = function(incomingDataSize) {
58
- if((buffer.length - size) < incomingDataSize) {
59
- var factor = Math.ceil((incomingDataSize - (buffer.length - size)) / incrementAmount);
60
-
61
- var newBuffer = new Buffer(buffer.length + (incrementAmount * factor));
62
- buffer.copy(newBuffer, 0, 0, size);
63
- buffer = newBuffer;
64
- }
65
- };
66
-
67
- this.write = function(data, encoding, callback) {
68
- if(!that.writable) return;
69
-
70
- if(Buffer.isBuffer(data)) {
71
- increaseBufferIfNecessary(data.length);
72
- data.copy(buffer, size, 0);
73
- size += data.length;
74
- }
75
- else {
76
- data = data + "";
77
- increaseBufferIfNecessary(Buffer.byteLength(data));
78
- buffer.write(data, size, encoding || "utf8");
79
- size += Buffer.byteLength(data);
80
- }
81
-
82
- if(typeof callback === "function") { callback() ;}
83
- };
84
-
85
- this.end = function() {
86
- var args = Array.prototype.slice.apply(arguments);
87
- if(args.length) that.write.apply(that, args);
88
- that.emit('finish');
89
- that.destroy();
90
- };
91
-
92
- this.destroySoon = this.destroy = function() {
93
- that.writable = false;
94
- that.emit("close");
95
- };
96
- };
97
- util.inherits(WritableStreamBuffer, stream.Stream);
1
+ 'use strict';
2
+
3
+ var util = require('util');
4
+ var stream = require('stream');
5
+ var constants = require('./constants');
6
+
7
+ var WritableStreamBuffer = module.exports = function(opts) {
8
+ opts = opts || {};
9
+ opts.decodeStrings = true;
10
+
11
+ stream.Writable.call(this, opts);
12
+
13
+ var initialSize = opts.initialSize || constants.DEFAULT_INITIAL_SIZE;
14
+ var incrementAmount = opts.incrementAmount || constants.DEFAULT_INCREMENT_AMOUNT;
15
+
16
+ var buffer = new Buffer(initialSize);
17
+ var size = 0;
18
+
19
+ this.size = function() {
20
+ return size;
21
+ };
22
+
23
+ this.maxSize = function() {
24
+ return buffer.length;
25
+ };
26
+
27
+ this.getContents = function(length) {
28
+ if(!size) return false;
29
+
30
+ var data = new Buffer(Math.min(length || size, size));
31
+ buffer.copy(data, 0, 0, data.length);
32
+
33
+ if(data.length < size)
34
+ buffer.copy(buffer, 0, data.length);
35
+
36
+ size -= data.length;
37
+
38
+ return data;
39
+ };
40
+
41
+ this.getContentsAsString = function(encoding, length) {
42
+ if(!size) return false;
43
+
44
+ var data = buffer.toString(encoding || 'utf8', 0, Math.min(length || size, size));
45
+ var dataLength = Buffer.byteLength(data);
46
+
47
+ if(dataLength < size)
48
+ buffer.copy(buffer, 0, dataLength);
49
+
50
+ size -= dataLength;
51
+ return data;
52
+ };
53
+
54
+ var increaseBufferIfNecessary = function(incomingDataSize) {
55
+ if((buffer.length - size) < incomingDataSize) {
56
+ var factor = Math.ceil((incomingDataSize - (buffer.length - size)) / incrementAmount);
57
+
58
+ var newBuffer = new Buffer(buffer.length + (incrementAmount * factor));
59
+ buffer.copy(newBuffer, 0, 0, size);
60
+ buffer = newBuffer;
61
+ }
62
+ };
63
+
64
+ this._write = function(chunk, encoding, callback) {
65
+ increaseBufferIfNecessary(chunk.length);
66
+ chunk.copy(buffer, size, 0);
67
+ size += chunk.length;
68
+ callback();
69
+ };
70
+ };
71
+
72
+ util.inherits(WritableStreamBuffer, stream.Writable);
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "stream-buffers",
3
- "version": "2.2.0",
3
+ "version": "3.0.3",
4
4
  "description": "Buffer-backed Streams for reading and writing.",
5
5
  "keywords": [
6
6
  "memory streams",
@@ -12,10 +12,11 @@
12
12
  "engines": {
13
13
  "node": ">= 0.10.0"
14
14
  },
15
- "dependencies": {},
16
15
  "devDependencies": {
17
- "istanbul": "~0.3.2",
18
- "vows": ">= 0.5.6"
16
+ "chai": "^3.4.1",
17
+ "eslint": "^8.38.0",
18
+ "istanbul": "^0.4.0",
19
+ "mocha": "^9.1.2"
19
20
  },
20
21
  "license": "Unlicense",
21
22
  "repository": {
@@ -23,6 +24,7 @@
23
24
  "url": "https://github.com/samcday/node-stream-buffer.git"
24
25
  },
25
26
  "scripts": {
26
- "test": "[ -n \"$NO_COVERAGE\" ] && vows --spec || istanbul cover vows -- --spec"
27
+ "test": "istanbul test _mocha",
28
+ "lint": "eslint ."
27
29
  }
28
30
  }
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tar-stream",
3
- "version": "3.2.1",
3
+ "version": "3.2.2",
4
4
  "description": "tar-stream is a streaming tar parser and generator and nothing else. It operates purely using streams which means you can easily extract/parse tarballs without ever hitting the file system.",
5
5
  "main": "index.js",
6
6
  "exports": {
@@ -24,7 +24,7 @@
24
24
  }
25
25
  },
26
26
  "scripts": {
27
- "test": "standard && brittle test/*.js"
27
+ "test": "standard && brittle-node test/*.js"
28
28
  },
29
29
  "repository": {
30
30
  "type": "git",
@@ -37,13 +37,13 @@
37
37
  },
38
38
  "homepage": "https://github.com/mafintosh/tar-stream",
39
39
  "dependencies": {
40
- "b4a": "^1.6.4",
41
- "bare-fs": "^4.5.5",
42
- "fast-fifo": "^1.2.0",
43
- "streamx": "^2.15.0"
40
+ "b4a": "^1.9.0",
41
+ "bare-fs": "^4.8.2",
42
+ "fast-fifo": "^1.3.2",
43
+ "streamx": "^2.28.1"
44
44
  },
45
45
  "devDependencies": {
46
- "brittle": "^3.3.2",
46
+ "brittle": "^4.3.0",
47
47
  "concat-stream": "^2.0.0",
48
48
  "standard": "^17.0.1"
49
49
  }
@@ -99,10 +99,12 @@ export type {LessThan} from './source/less-than.d.ts';
99
99
  export type {LessThanOrEqual} from './source/less-than-or-equal.d.ts';
100
100
  export type {Sum} from './source/sum.d.ts';
101
101
  export type {Subtract} from './source/subtract.d.ts';
102
+ export type {UnionMax} from './source/union-max.d.ts';
102
103
  export type {KeyAsString} from './source/key-as-string.d.ts';
103
104
  export type {Exact} from './source/exact.d.ts';
104
105
  export type {ReadonlyTuple} from './source/readonly-tuple.d.ts';
105
106
  export type {OverrideProperties} from './source/override-properties.d.ts';
107
+ export type {RenameKeys} from './source/rename-keys.d.ts';
106
108
  export type {OptionalKeysOf} from './source/optional-keys-of.d.ts';
107
109
  export type {IsOptionalKeyOf} from './source/is-optional-key-of.d.ts';
108
110
  export type {HasOptionalKeys} from './source/has-optional-keys.d.ts';
@@ -127,13 +129,11 @@ export type {UnionToTuple} from './source/union-to-tuple.d.ts';
127
129
  export type {IntRange} from './source/int-range.d.ts';
128
130
  export type {IntClosedRange} from './source/int-closed-range.d.ts';
129
131
  export type {IsEqual} from './source/is-equal.d.ts';
130
- export type {
131
- IsLiteral,
132
- IsStringLiteral,
133
- IsNumericLiteral,
134
- IsBooleanLiteral,
135
- IsSymbolLiteral,
136
- } from './source/is-literal.d.ts';
132
+ export type {IsLiteral} from './source/is-literal.d.ts';
133
+ export type {IsStringLiteral} from './source/is-string-literal.d.ts';
134
+ export type {IsNumericLiteral} from './source/is-numeric-literal.d.ts';
135
+ export type {IsBooleanLiteral} from './source/is-boolean-literal.d.ts';
136
+ export type {IsSymbolLiteral} from './source/is-symbol-literal.d.ts';
137
137
  export type {IsAny} from './source/is-any.d.ts';
138
138
  export type {IfAny} from './source/if-any.d.ts';
139
139
  export type {IsNever} from './source/is-never.d.ts';
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "type-fest",
3
- "version": "5.8.0",
3
+ "version": "5.10.0",
4
4
  "description": "A collection of essential TypeScript types",
5
5
  "license": "(MIT OR CC0-1.0)",
6
6
  "repository": "sindresorhus/type-fest",
@@ -26,6 +26,7 @@
26
26
  },
27
27
  "scripts": {
28
28
  "test:tsc": "node --max-old-space-size=6144 ./node_modules/.bin/tsc",
29
+ "test:minimum-lib": "node --max-old-space-size=6144 ./node_modules/.bin/tsc -p tsconfig.minimum-lib.json",
29
30
  "test:tsd": "node --max-old-space-size=6144 ./node_modules/.bin/tsd",
30
31
  "test:xo": "node --max-old-space-size=6144 ./node_modules/.bin/xo --ignores=lint-processors/fixtures/**/*.d.ts '**/*.{js,ts,md}'",
31
32
  "test:linter": "node --test",
@@ -29,17 +29,6 @@
29
29
  <sup>An open-source framework that supports any programming language, cloud provider, or deployment automation tool.</sup>
30
30
  </div>
31
31
  </a>
32
- <br>
33
- <br>
34
- <a href="https://circleback.ai?utm_source=sindresorhus&utm_medium=sponsorship&utm_campaign=awesome-list&utm_id=type-fest">
35
- <div>
36
- <img width="300" src="https://sindresorhus.com/assets/thanks/circleback-logo.png?x" alt="Circleback logo">
37
- </div>
38
- <b>Get the most out of every conversation.</b>
39
- <div>
40
- <sup>AI-powered meeting notes, automations, and search. Give AI agents the context they need to get things done.</sup>
41
- </div>
42
- </a>
43
32
  </p>
44
33
  </div>
45
34
  <br>
@@ -121,6 +110,7 @@ Click the type names for complete docs.
121
110
  - [`MergeDeep`](source/merge-deep.d.ts) - Merge two objects or two arrays/tuples recursively into a new type.
122
111
  - [`MergeExclusive`](source/merge-exclusive.d.ts) - Create a type that has mutually exclusive keys.
123
112
  - [`OverrideProperties`](source/override-properties.d.ts) - Override existing properties of the given type. Similar to `Merge`, but enforces that the original type has the properties you want to override.
113
+ - [`RenameKeys`](source/rename-keys.d.ts) - Rename keys in an object type according to a map of old-to-new names.
124
114
  - [`RequireAtLeastOne`](source/require-at-least-one.d.ts) - Create a type that requires at least one of the given keys, while keeping the remaining keys as is.
125
115
  - [`RequireExactlyOne`](source/require-exactly-one.d.ts) - Create a type that requires exactly one of the given keys and disallows more, while keeping the remaining keys as is.
126
116
  - [`RequireAllOrNone`](source/require-all-or-none.d.ts) - Create a type that requires all of the given keys or none of the given keys, while keeping the remaining keys as is.
@@ -164,7 +154,7 @@ Click the type names for complete docs.
164
154
  - [`SetParameterType`](source/set-parameter-type.d.ts) - Create a function that replaces some parameters with the given parameters.
165
155
  - [`Simplify`](source/simplify.d.ts) - Useful to flatten the type output to improve type hints shown in editors. And also to transform an interface into a type to aide with assignability.
166
156
  - [`SimplifyDeep`](source/simplify-deep.d.ts) - Deeply simplifies an object type.
167
- - [`Get`](source/get.d.ts) - Get a deeply-nested property from an object using a key path, like [Lodash's `.get()`](https://lodash.com/docs/latest#get) function.
157
+ - [`Get`](source/get.d.ts) - Get a deeply-nested property from an object using a key path, like [Lodash's `.get()`](https://lodash.com/docs#get) function.
168
158
  - [`KeyAsString`](source/key-as-string.d.ts) - Get keys of the given type as strings.
169
159
  - [`Schema`](source/schema.d.ts) - Create a deep version of another object type where property values are recursively replaced into a given value type.
170
160
  - [`Exact`](source/exact.d.ts) - Create a type that does not allow extra properties, meaning it only allows properties that are explicitly declared.
@@ -215,10 +205,10 @@ Click the type names for complete docs.
215
205
 
216
206
  - [`If`](source/if.d.ts) - An if-else-like type that resolves depending on whether the given `boolean` type is `true` or `false`.
217
207
  - [`IsLiteral`](source/is-literal.d.ts) - Returns a boolean for whether the given type is a [literal type](https://www.typescriptlang.org/docs/handbook/2/everyday-types.html#literal-types).
218
- - [`IsStringLiteral`](source/is-literal.d.ts) - Returns a boolean for whether the given type is a `string` [literal type](https://www.typescriptlang.org/docs/handbook/2/everyday-types.html#literal-types).
219
- - [`IsNumericLiteral`](source/is-literal.d.ts) - Returns a boolean for whether the given type is a `number` or `bigint` [literal type](https://www.typescriptlang.org/docs/handbook/2/everyday-types.html#literal-types).
220
- - [`IsBooleanLiteral`](source/is-literal.d.ts) - Returns a boolean for whether the given type is a `true` or `false` [literal type](https://www.typescriptlang.org/docs/handbook/2/everyday-types.html#literal-types).
221
- - [`IsSymbolLiteral`](source/is-literal.d.ts) - Returns a boolean for whether the given type is a `symbol` [literal type](https://www.typescriptlang.org/docs/handbook/2/everyday-types.html#literal-types).
208
+ - [`IsStringLiteral`](source/is-string-literal.d.ts) - Returns a boolean for whether the given type is a `string` [literal type](https://www.typescriptlang.org/docs/handbook/2/everyday-types.html#literal-types).
209
+ - [`IsNumericLiteral`](source/is-numeric-literal.d.ts) - Returns a boolean for whether the given type is a `number` or `bigint` [literal type](https://www.typescriptlang.org/docs/handbook/2/everyday-types.html#literal-types).
210
+ - [`IsBooleanLiteral`](source/is-boolean-literal.d.ts) - Returns a boolean for whether the given type is a `true` or `false` [literal type](https://www.typescriptlang.org/docs/handbook/2/everyday-types.html#literal-types).
211
+ - [`IsSymbolLiteral`](source/is-symbol-literal.d.ts) - Returns a boolean for whether the given type is a `symbol` [literal type](https://www.typescriptlang.org/docs/handbook/2/everyday-types.html#literal-types).
222
212
  - [`IsAny`](source/is-any.d.ts) - Returns a boolean for whether the given type is `any`.
223
213
  - [`IsNever`](source/is-never.d.ts) - Returns a boolean for whether the given type is `never`.
224
214
  - [`IsUnknown`](source/is-unknown.d.ts) - Returns a boolean for whether the given type is `unknown`.
@@ -311,6 +301,7 @@ Click the type names for complete docs.
311
301
  - [`LessThanOrEqual`](source/less-than-or-equal.d.ts) - Returns a boolean for whether a given number is less than or equal to another number.
312
302
  - [`Sum`](source/sum.d.ts) - Returns the sum of two numbers.
313
303
  - [`Subtract`](source/subtract.d.ts) - Returns the difference between two numbers.
304
+ - [`UnionMax`](source/union-max.d.ts) - Returns the maximum number in a union of numbers.
314
305
  - [`Absolute`](source/absolute.d.ts) - Returns the absolute value of the specified number or bigint.
315
306
  - [`StringToNumber`](source/string-to-number.d.ts) - Converts a numeric string to a number.
316
307
 
@@ -101,10 +101,15 @@ type B = AllExtend<[1?, 2?, 3?], number | undefined>;
101
101
  @category Array
102
102
  */
103
103
  export type AllExtend<TArray extends UnknownArray, Type, Options extends AllExtendOptions = {}> =
104
- _AllExtend<CollapseRestElement<TArray>, Type, ApplyDefaultOptions<AllExtendOptions, DefaultAllExtendOptions, Options>>;
105
-
106
- type _AllExtend<TArray extends UnknownArray, Type, Options extends Required<AllExtendOptions>> = IfNotAnyOrNever<TArray, {
107
- ifNot: TArray extends readonly [infer First, ...infer Rest]
104
+ IfNotAnyOrNever<CollapseRestElement<TArray>, {
105
+ ifNot: _AllExtend<CollapseRestElement<TArray>, Type, ApplyDefaultOptions<AllExtendOptions, DefaultAllExtendOptions, Options>>;
106
+ ifAny: false;
107
+ ifNever: false;
108
+ }>;
109
+
110
+ // Kept free of `IfNotAnyOrNever` so that it stays tail-recursive, which allows it to handle long arrays.
111
+ type _AllExtend<TArray extends UnknownArray, Type, Options extends Required<AllExtendOptions>> =
112
+ TArray extends readonly [infer First, ...infer Rest]
108
113
  ? IsNever<First> extends true
109
114
  ? Or<Or<IsNever<Type>, IsAny<Type>>, Not<Options['strictNever']>> extends true
110
115
  // If target `Type` is also `never`, or is `any`, or `strictNever` is disabled, recurse further.
@@ -114,8 +119,5 @@ type _AllExtend<TArray extends UnknownArray, Type, Options extends Required<AllE
114
119
  ? _AllExtend<Rest, Type, Options>
115
120
  : false
116
121
  : true;
117
- ifAny: false;
118
- ifNever: false;
119
- }>;
120
122
 
121
123
  export {};