appium-mac2-driver 4.3.5 → 4.3.6

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 (340) hide show
  1. package/CHANGELOG.md +6 -0
  2. package/WebDriverAgentMac/WebDriverAgentLib/Utilities/FBXPath.m +48 -2
  3. package/WebDriverAgentMac/WebDriverAgentMac.xcodeproj/project.pbxproj +4 -0
  4. package/build/lib/wda-mac.d.ts.map +1 -1
  5. package/build/lib/wda-mac.js +4 -5
  6. package/build/lib/wda-mac.js.map +1 -1
  7. package/lib/wda-mac.ts +4 -5
  8. package/node_modules/@appium/logger/CHANGELOG.md +8 -0
  9. package/node_modules/@appium/logger/package.json +3 -3
  10. package/node_modules/@appium/strongbox/build/lib/index.d.ts.map +1 -1
  11. package/node_modules/@appium/strongbox/build/lib/index.js +6 -1
  12. package/node_modules/@appium/strongbox/build/lib/index.js.map +1 -1
  13. package/node_modules/@appium/strongbox/lib/index.ts +6 -1
  14. package/node_modules/@appium/strongbox/package.json +2 -2
  15. package/node_modules/@appium/support/build/lib/fs.d.ts.map +1 -1
  16. package/node_modules/@appium/support/build/lib/fs.js +7 -0
  17. package/node_modules/@appium/support/build/lib/fs.js.map +1 -1
  18. package/node_modules/@appium/support/build/lib/index.d.ts.map +1 -1
  19. package/node_modules/@appium/support/build/lib/net.d.ts.map +1 -1
  20. package/node_modules/@appium/support/build/lib/net.js +6 -2
  21. package/node_modules/@appium/support/build/lib/net.js.map +1 -1
  22. package/node_modules/@appium/support/build/lib/util.d.ts.map +1 -1
  23. package/node_modules/@appium/support/build/lib/util.js +10 -4
  24. package/node_modules/@appium/support/build/lib/util.js.map +1 -1
  25. package/node_modules/@appium/support/build/lib/zip.d.ts.map +1 -1
  26. package/node_modules/@appium/support/build/lib/zip.js +2 -7
  27. package/node_modules/@appium/support/build/lib/zip.js.map +1 -1
  28. package/node_modules/@appium/support/lib/fs.ts +8 -1
  29. package/node_modules/@appium/support/lib/net.ts +7 -2
  30. package/node_modules/@appium/support/lib/util.ts +9 -3
  31. package/node_modules/@appium/support/lib/zip.ts +3 -9
  32. package/node_modules/@appium/support/package.json +9 -9
  33. package/node_modules/@appium/types/package.json +4 -4
  34. package/node_modules/@img/sharp-darwin-arm64/index.cjs +1 -1
  35. package/node_modules/@img/sharp-darwin-arm64/lib/sharp-darwin-arm64-0.35.5.node +0 -0
  36. package/node_modules/@img/sharp-darwin-arm64/package.json +2 -2
  37. package/node_modules/@img/sharp-libvips-darwin-arm64/README.md +1 -1
  38. package/node_modules/@img/sharp-libvips-darwin-arm64/lib/glib-2.0/include/glibconfig.h +2 -2
  39. package/node_modules/@img/sharp-libvips-darwin-arm64/lib/{libvips-cpp.8.18.6.dylib → libvips-cpp.8.18.7.dylib} +0 -0
  40. package/node_modules/@img/sharp-libvips-darwin-arm64/package.json +2 -2
  41. package/node_modules/@img/sharp-libvips-darwin-arm64/versions.json +11 -11
  42. package/node_modules/appium-xcode/CHANGELOG.md +28 -0
  43. package/node_modules/appium-xcode/README.md +1 -1
  44. package/node_modules/appium-xcode/package.json +14 -18
  45. package/node_modules/b4a/browser.js +5 -0
  46. package/node_modules/b4a/index.d.ts +144 -0
  47. package/node_modules/b4a/index.js +5 -0
  48. package/node_modules/b4a/package.json +4 -1
  49. package/node_modules/b4a/runtime.d.ts +14 -0
  50. package/node_modules/bare-fs/binding.c +53 -24
  51. package/node_modules/bare-fs/index.d.ts +12 -10
  52. package/node_modules/bare-fs/index.js +13 -4
  53. package/node_modules/bare-fs/package.json +2 -1
  54. package/node_modules/bare-fs/prebuilds/android-arm/bare-fs.bare +0 -0
  55. package/node_modules/bare-fs/prebuilds/android-arm64/bare-fs.bare +0 -0
  56. package/node_modules/bare-fs/prebuilds/android-ia32/bare-fs.bare +0 -0
  57. package/node_modules/bare-fs/prebuilds/android-x64/bare-fs.bare +0 -0
  58. package/node_modules/bare-fs/prebuilds/darwin-arm64/bare-fs.bare +0 -0
  59. package/node_modules/bare-fs/prebuilds/darwin-x64/bare-fs.bare +0 -0
  60. package/node_modules/bare-fs/prebuilds/ios-arm64/bare-fs.bare +0 -0
  61. package/node_modules/bare-fs/prebuilds/ios-arm64-simulator/bare-fs.bare +0 -0
  62. package/node_modules/bare-fs/prebuilds/ios-x64-simulator/bare-fs.bare +0 -0
  63. package/node_modules/bare-fs/prebuilds/linux-arm64/bare-fs.bare +0 -0
  64. package/node_modules/bare-fs/prebuilds/linux-x64/bare-fs.bare +0 -0
  65. package/node_modules/bare-fs/prebuilds/win32-arm64/bare-fs.bare +0 -0
  66. package/node_modules/bare-fs/prebuilds/win32-x64/bare-fs.bare +0 -0
  67. package/node_modules/bplist-creator/README.md +26 -6
  68. package/node_modules/bplist-creator/dist/index.cjs +508 -0
  69. package/node_modules/bplist-creator/dist/index.cjs.map +7 -0
  70. package/node_modules/bplist-creator/dist/index.d.cts +12 -0
  71. package/node_modules/bplist-creator/dist/index.d.ts +12 -0
  72. package/node_modules/bplist-creator/dist/index.mjs +472 -0
  73. package/node_modules/bplist-creator/dist/index.mjs.map +7 -0
  74. package/node_modules/bplist-creator/package.json +43 -9
  75. package/node_modules/bplist-parser/README.md +37 -3
  76. package/node_modules/bplist-parser/dist/index.cjs +385 -0
  77. package/node_modules/bplist-parser/dist/index.cjs.map +7 -0
  78. package/node_modules/bplist-parser/dist/index.d.cts +13 -0
  79. package/node_modules/bplist-parser/dist/index.d.ts +13 -0
  80. package/node_modules/bplist-parser/{bplistParser.js → dist/index.mjs} +141 -171
  81. package/node_modules/bplist-parser/dist/index.mjs.map +7 -0
  82. package/node_modules/bplist-parser/package.json +39 -12
  83. package/node_modules/brace-expansion/dist/commonjs/index.d.ts +4 -0
  84. package/node_modules/brace-expansion/dist/commonjs/index.d.ts.map +1 -1
  85. package/node_modules/brace-expansion/dist/commonjs/index.js +69 -25
  86. package/node_modules/brace-expansion/dist/commonjs/index.js.map +1 -1
  87. package/node_modules/brace-expansion/dist/esm/index.d.ts +4 -0
  88. package/node_modules/brace-expansion/dist/esm/index.d.ts.map +1 -1
  89. package/node_modules/brace-expansion/dist/esm/index.js +68 -24
  90. package/node_modules/brace-expansion/dist/esm/index.js.map +1 -1
  91. package/node_modules/brace-expansion/package.json +2 -1
  92. package/node_modules/follow-redirects/index.js +10 -1
  93. package/node_modules/follow-redirects/package.json +1 -1
  94. package/node_modules/lru-cache/dist/commonjs/react-native/diagnostics-channel-react-native.d.ts.map +1 -0
  95. package/node_modules/lru-cache/dist/commonjs/react-native/diagnostics-channel-react-native.js.map +1 -0
  96. package/node_modules/lru-cache/dist/commonjs/react-native/diagnostics-channel.d.ts +5 -0
  97. package/node_modules/lru-cache/dist/commonjs/react-native/diagnostics-channel.js +7 -0
  98. package/node_modules/lru-cache/dist/commonjs/react-native/index.d.ts +1400 -0
  99. package/node_modules/lru-cache/dist/commonjs/react-native/index.d.ts.map +1 -0
  100. package/node_modules/lru-cache/dist/commonjs/react-native/index.js +1733 -0
  101. package/node_modules/lru-cache/dist/commonjs/react-native/index.js.map +1 -0
  102. package/node_modules/lru-cache/dist/commonjs/react-native/perf.d.ts +12 -0
  103. package/node_modules/lru-cache/dist/commonjs/react-native/perf.d.ts.map +1 -0
  104. package/node_modules/lru-cache/dist/commonjs/react-native/perf.js +10 -0
  105. package/node_modules/lru-cache/dist/commonjs/react-native/perf.js.map +1 -0
  106. package/node_modules/lru-cache/dist/esm/react-native/diagnostics-channel-react-native.d.ts.map +1 -0
  107. package/node_modules/lru-cache/dist/esm/react-native/diagnostics-channel-react-native.js.map +1 -0
  108. package/node_modules/lru-cache/dist/esm/react-native/diagnostics-channel.d.ts +5 -0
  109. package/node_modules/lru-cache/dist/esm/react-native/diagnostics-channel.js +4 -0
  110. package/node_modules/lru-cache/dist/esm/react-native/index.d.ts +1400 -0
  111. package/node_modules/lru-cache/dist/esm/react-native/index.d.ts.map +1 -0
  112. package/node_modules/lru-cache/dist/esm/react-native/index.js +1729 -0
  113. package/node_modules/lru-cache/dist/esm/react-native/index.js.map +1 -0
  114. package/node_modules/lru-cache/dist/esm/react-native/perf.d.ts +12 -0
  115. package/node_modules/lru-cache/dist/esm/react-native/perf.d.ts.map +1 -0
  116. package/node_modules/lru-cache/dist/esm/react-native/perf.js +7 -0
  117. package/node_modules/lru-cache/dist/esm/react-native/perf.js.map +1 -0
  118. package/node_modules/lru-cache/package.json +27 -1
  119. package/node_modules/p-limit/index.d.ts +2 -0
  120. package/node_modules/p-limit/index.js +17 -1
  121. package/node_modules/p-limit/package.json +1 -1
  122. package/node_modules/p-limit/readme.md +2 -0
  123. package/node_modules/sharp/dist/index.d.cts +2 -2
  124. package/node_modules/sharp/dist/index.d.mts +3 -3
  125. package/node_modules/sharp/dist/is.cjs +8 -2
  126. package/node_modules/sharp/dist/is.mjs +8 -2
  127. package/node_modules/sharp/dist/operation.cjs +2 -2
  128. package/node_modules/sharp/dist/operation.mjs +2 -2
  129. package/node_modules/sharp/dist/output.cjs +1 -0
  130. package/node_modules/sharp/dist/output.mjs +1 -0
  131. package/node_modules/sharp/dist/resize.cjs +14 -14
  132. package/node_modules/sharp/dist/resize.mjs +14 -14
  133. package/node_modules/sharp/dist/sharp.cjs +3 -3
  134. package/node_modules/sharp/dist/sharp.mjs +3 -3
  135. package/node_modules/sharp/lib/index.d.ts +2 -2
  136. package/node_modules/sharp/package.json +35 -35
  137. package/node_modules/sharp/src/binding.gyp +1 -1
  138. package/node_modules/sharp/src/common.cc +4 -4
  139. package/node_modules/sharp/src/common.h +2 -2
  140. package/node_modules/sharp/src/pipeline.cc +31 -6
  141. package/node_modules/sharp/src/utilities.cc +1 -1
  142. package/node_modules/spdx-license-ids/index.json +13 -0
  143. package/node_modules/spdx-license-ids/package.json +1 -1
  144. package/node_modules/stream-buffers/.codeclimate.yml +12 -0
  145. package/node_modules/stream-buffers/.eslintignore +1 -0
  146. package/node_modules/stream-buffers/.eslintrc +25 -0
  147. package/node_modules/stream-buffers/.github/workflows/codeql-analysis.yml +71 -0
  148. package/node_modules/stream-buffers/.github/workflows/node.js.yml +31 -0
  149. package/node_modules/stream-buffers/.mailmap +1 -0
  150. package/node_modules/stream-buffers/.nvmrc +1 -0
  151. package/node_modules/stream-buffers/README.md +65 -65
  152. package/node_modules/stream-buffers/lib/constants.js +8 -6
  153. package/node_modules/stream-buffers/lib/readable_streambuffer.js +114 -136
  154. package/node_modules/stream-buffers/lib/streambuffer.js +5 -3
  155. package/node_modules/stream-buffers/lib/writable_streambuffer.js +72 -97
  156. package/node_modules/stream-buffers/package.json +7 -5
  157. package/node_modules/type-fest/index.d.ts +7 -7
  158. package/node_modules/type-fest/package.json +2 -1
  159. package/node_modules/type-fest/readme.md +7 -16
  160. package/node_modules/type-fest/source/all-extend.d.ts +9 -7
  161. package/node_modules/type-fest/source/array-reverse.d.ts +13 -12
  162. package/node_modules/type-fest/source/array-tail.d.ts +3 -3
  163. package/node_modules/type-fest/source/delimiter-case.d.ts +1 -1
  164. package/node_modules/type-fest/source/get.d.ts +1 -1
  165. package/node_modules/type-fest/source/int-closed-range.d.ts +4 -1
  166. package/node_modules/type-fest/source/int-range.d.ts +56 -9
  167. package/node_modules/type-fest/source/internal/array.d.ts +14 -13
  168. package/node_modules/type-fest/source/internal/numeric.d.ts +0 -38
  169. package/node_modules/type-fest/source/internal/object.d.ts +30 -1
  170. package/node_modules/type-fest/source/is-boolean-literal.d.ts +39 -0
  171. package/node_modules/type-fest/source/is-literal.d.ts +43 -269
  172. package/node_modules/type-fest/source/is-numeric-literal.d.ts +50 -0
  173. package/node_modules/type-fest/source/is-string-literal.d.ts +72 -0
  174. package/node_modules/type-fest/source/is-symbol-literal.d.ts +39 -0
  175. package/node_modules/type-fest/source/is-tuple.d.ts +3 -3
  176. package/node_modules/type-fest/source/jsonify.d.ts +1 -5
  177. package/node_modules/type-fest/source/merge-deep.d.ts +3 -3
  178. package/node_modules/type-fest/source/remove-prefix.d.ts +1 -1
  179. package/node_modules/type-fest/source/remove-suffix.d.ts +1 -1
  180. package/node_modules/type-fest/source/rename-keys.d.ts +163 -0
  181. package/node_modules/type-fest/source/set-required.d.ts +10 -9
  182. package/node_modules/type-fest/source/shared-union-fields-deep.d.ts +6 -4
  183. package/node_modules/type-fest/source/some-extend.d.ts +9 -7
  184. package/node_modules/type-fest/source/split-on-rest-element.d.ts +14 -13
  185. package/node_modules/type-fest/source/split.d.ts +22 -11
  186. package/node_modules/type-fest/source/string-repeat.d.ts +1 -1
  187. package/node_modules/type-fest/source/string-to-array.d.ts +1 -1
  188. package/node_modules/type-fest/source/tsconfig-json.d.ts +1 -1
  189. package/node_modules/type-fest/source/typed-array.d.ts +6 -0
  190. package/node_modules/type-fest/source/union-max.d.ts +56 -0
  191. package/node_modules/type-fest/source/writable.d.ts +2 -2
  192. package/package.json +3 -3
  193. package/node_modules/@appium/support/node_modules/asyncbox/LICENSE +0 -203
  194. package/node_modules/@appium/support/node_modules/asyncbox/README.md +0 -215
  195. package/node_modules/@appium/support/node_modules/asyncbox/build/cjs/lib/asyncbox.d.ts +0 -103
  196. package/node_modules/@appium/support/node_modules/asyncbox/build/cjs/lib/asyncbox.d.ts.map +0 -1
  197. package/node_modules/@appium/support/node_modules/asyncbox/build/cjs/lib/asyncbox.js +0 -301
  198. package/node_modules/@appium/support/node_modules/asyncbox/build/cjs/lib/asyncbox.js.map +0 -1
  199. package/node_modules/@appium/support/node_modules/asyncbox/build/cjs/lib/types.d.ts +0 -84
  200. package/node_modules/@appium/support/node_modules/asyncbox/build/cjs/lib/types.d.ts.map +0 -1
  201. package/node_modules/@appium/support/node_modules/asyncbox/build/cjs/lib/types.js +0 -3
  202. package/node_modules/@appium/support/node_modules/asyncbox/build/cjs/lib/types.js.map +0 -1
  203. package/node_modules/@appium/support/node_modules/asyncbox/build/cjs/package.json +0 -3
  204. package/node_modules/@appium/support/node_modules/asyncbox/build/esm/lib/asyncbox.d.ts +0 -103
  205. package/node_modules/@appium/support/node_modules/asyncbox/build/esm/lib/asyncbox.d.ts.map +0 -1
  206. package/node_modules/@appium/support/node_modules/asyncbox/build/esm/lib/asyncbox.js +0 -288
  207. package/node_modules/@appium/support/node_modules/asyncbox/build/esm/lib/asyncbox.js.map +0 -1
  208. package/node_modules/@appium/support/node_modules/asyncbox/build/esm/lib/types.d.ts +0 -84
  209. package/node_modules/@appium/support/node_modules/asyncbox/build/esm/lib/types.d.ts.map +0 -1
  210. package/node_modules/@appium/support/node_modules/asyncbox/build/esm/lib/types.js +0 -2
  211. package/node_modules/@appium/support/node_modules/asyncbox/build/esm/lib/types.js.map +0 -1
  212. package/node_modules/@appium/support/node_modules/asyncbox/build/esm/package.json +0 -3
  213. package/node_modules/@appium/support/node_modules/asyncbox/lib/asyncbox.ts +0 -365
  214. package/node_modules/@appium/support/node_modules/asyncbox/lib/types.ts +0 -88
  215. package/node_modules/@appium/support/node_modules/asyncbox/package.json +0 -74
  216. package/node_modules/@appium/support/node_modules/axios/CHANGELOG.md +0 -1872
  217. package/node_modules/@appium/support/node_modules/axios/LICENSE +0 -7
  218. package/node_modules/@appium/support/node_modules/axios/MIGRATION_GUIDE.md +0 -877
  219. package/node_modules/@appium/support/node_modules/axios/README.md +0 -2623
  220. package/node_modules/@appium/support/node_modules/axios/dist/axios.js +0 -5509
  221. package/node_modules/@appium/support/node_modules/axios/dist/axios.min.js +0 -5
  222. package/node_modules/@appium/support/node_modules/axios/dist/axios.min.js.map +0 -1
  223. package/node_modules/@appium/support/node_modules/axios/dist/browser/axios.cjs +0 -5469
  224. package/node_modules/@appium/support/node_modules/axios/dist/esm/axios.js +0 -5490
  225. package/node_modules/@appium/support/node_modules/axios/dist/esm/axios.min.js +0 -3
  226. package/node_modules/@appium/support/node_modules/axios/dist/esm/axios.min.js.map +0 -1
  227. package/node_modules/@appium/support/node_modules/axios/dist/node/axios.cjs +0 -6356
  228. package/node_modules/@appium/support/node_modules/axios/index.d.cts +0 -762
  229. package/node_modules/@appium/support/node_modules/axios/index.d.ts +0 -783
  230. package/node_modules/@appium/support/node_modules/axios/index.js +0 -45
  231. package/node_modules/@appium/support/node_modules/axios/lib/adapters/README.md +0 -36
  232. package/node_modules/@appium/support/node_modules/axios/lib/adapters/adapters.js +0 -132
  233. package/node_modules/@appium/support/node_modules/axios/lib/adapters/fetch.js +0 -643
  234. package/node_modules/@appium/support/node_modules/axios/lib/adapters/http.js +0 -1406
  235. package/node_modules/@appium/support/node_modules/axios/lib/adapters/xhr.js +0 -228
  236. package/node_modules/@appium/support/node_modules/axios/lib/axios.js +0 -89
  237. package/node_modules/@appium/support/node_modules/axios/lib/cancel/CancelToken.js +0 -135
  238. package/node_modules/@appium/support/node_modules/axios/lib/cancel/CanceledError.js +0 -22
  239. package/node_modules/@appium/support/node_modules/axios/lib/cancel/isCancel.js +0 -5
  240. package/node_modules/@appium/support/node_modules/axios/lib/core/Axios.js +0 -301
  241. package/node_modules/@appium/support/node_modules/axios/lib/core/AxiosError.js +0 -219
  242. package/node_modules/@appium/support/node_modules/axios/lib/core/AxiosHeaders.js +0 -474
  243. package/node_modules/@appium/support/node_modules/axios/lib/core/InterceptorManager.js +0 -72
  244. package/node_modules/@appium/support/node_modules/axios/lib/core/README.md +0 -8
  245. package/node_modules/@appium/support/node_modules/axios/lib/core/buildFullPath.js +0 -88
  246. package/node_modules/@appium/support/node_modules/axios/lib/core/dispatchRequest.js +0 -89
  247. package/node_modules/@appium/support/node_modules/axios/lib/core/mergeConfig.js +0 -174
  248. package/node_modules/@appium/support/node_modules/axios/lib/core/setFormDataHeaders.js +0 -27
  249. package/node_modules/@appium/support/node_modules/axios/lib/core/settle.js +0 -27
  250. package/node_modules/@appium/support/node_modules/axios/lib/core/transformData.js +0 -28
  251. package/node_modules/@appium/support/node_modules/axios/lib/defaults/index.js +0 -177
  252. package/node_modules/@appium/support/node_modules/axios/lib/defaults/transitional.js +0 -10
  253. package/node_modules/@appium/support/node_modules/axios/lib/env/README.md +0 -3
  254. package/node_modules/@appium/support/node_modules/axios/lib/env/classes/FormData.js +0 -2
  255. package/node_modules/@appium/support/node_modules/axios/lib/env/data.js +0 -1
  256. package/node_modules/@appium/support/node_modules/axios/lib/helpers/AxiosTransformStream.js +0 -156
  257. package/node_modules/@appium/support/node_modules/axios/lib/helpers/AxiosURLSearchParams.js +0 -59
  258. package/node_modules/@appium/support/node_modules/axios/lib/helpers/Http2Sessions.js +0 -119
  259. package/node_modules/@appium/support/node_modules/axios/lib/helpers/HttpStatusCode.js +0 -78
  260. package/node_modules/@appium/support/node_modules/axios/lib/helpers/README.md +0 -7
  261. package/node_modules/@appium/support/node_modules/axios/lib/helpers/ZlibHeaderTransformStream.js +0 -29
  262. package/node_modules/@appium/support/node_modules/axios/lib/helpers/bind.js +0 -14
  263. package/node_modules/@appium/support/node_modules/axios/lib/helpers/buildURL.js +0 -69
  264. package/node_modules/@appium/support/node_modules/axios/lib/helpers/callbackify.js +0 -18
  265. package/node_modules/@appium/support/node_modules/axios/lib/helpers/combineURLs.js +0 -23
  266. package/node_modules/@appium/support/node_modules/axios/lib/helpers/composeSignals.js +0 -68
  267. package/node_modules/@appium/support/node_modules/axios/lib/helpers/cookies.js +0 -64
  268. package/node_modules/@appium/support/node_modules/axios/lib/helpers/deprecatedMethod.js +0 -31
  269. package/node_modules/@appium/support/node_modules/axios/lib/helpers/estimateDataURLDecodedBytes.js +0 -166
  270. package/node_modules/@appium/support/node_modules/axios/lib/helpers/formDataToJSON.js +0 -125
  271. package/node_modules/@appium/support/node_modules/axios/lib/helpers/formDataToStream.js +0 -119
  272. package/node_modules/@appium/support/node_modules/axios/lib/helpers/fromDataURI.js +0 -68
  273. package/node_modules/@appium/support/node_modules/axios/lib/helpers/isAbsoluteURL.js +0 -19
  274. package/node_modules/@appium/support/node_modules/axios/lib/helpers/isAxiosError.js +0 -14
  275. package/node_modules/@appium/support/node_modules/axios/lib/helpers/isURLSameOrigin.js +0 -16
  276. package/node_modules/@appium/support/node_modules/axios/lib/helpers/null.js +0 -2
  277. package/node_modules/@appium/support/node_modules/axios/lib/helpers/parseHeaders.js +0 -71
  278. package/node_modules/@appium/support/node_modules/axios/lib/helpers/parseProtocol.js +0 -6
  279. package/node_modules/@appium/support/node_modules/axios/lib/helpers/progressEventReducer.js +0 -54
  280. package/node_modules/@appium/support/node_modules/axios/lib/helpers/readBlob.js +0 -15
  281. package/node_modules/@appium/support/node_modules/axios/lib/helpers/resolveConfig.js +0 -105
  282. package/node_modules/@appium/support/node_modules/axios/lib/helpers/sanitizeHeaderValue.js +0 -60
  283. package/node_modules/@appium/support/node_modules/axios/lib/helpers/shouldBypassProxy.js +0 -329
  284. package/node_modules/@appium/support/node_modules/axios/lib/helpers/speedometer.js +0 -55
  285. package/node_modules/@appium/support/node_modules/axios/lib/helpers/spread.js +0 -28
  286. package/node_modules/@appium/support/node_modules/axios/lib/helpers/throttle.js +0 -44
  287. package/node_modules/@appium/support/node_modules/axios/lib/helpers/toFormData.js +0 -286
  288. package/node_modules/@appium/support/node_modules/axios/lib/helpers/toURLEncodedForm.js +0 -19
  289. package/node_modules/@appium/support/node_modules/axios/lib/helpers/trackStream.js +0 -89
  290. package/node_modules/@appium/support/node_modules/axios/lib/helpers/validator.js +0 -112
  291. package/node_modules/@appium/support/node_modules/axios/lib/platform/browser/classes/Blob.js +0 -3
  292. package/node_modules/@appium/support/node_modules/axios/lib/platform/browser/classes/FormData.js +0 -3
  293. package/node_modules/@appium/support/node_modules/axios/lib/platform/browser/classes/URLSearchParams.js +0 -4
  294. package/node_modules/@appium/support/node_modules/axios/lib/platform/browser/index.js +0 -13
  295. package/node_modules/@appium/support/node_modules/axios/lib/platform/common/utils.js +0 -52
  296. package/node_modules/@appium/support/node_modules/axios/lib/platform/index.js +0 -7
  297. package/node_modules/@appium/support/node_modules/axios/lib/platform/node/classes/Buffer.js +0 -11
  298. package/node_modules/@appium/support/node_modules/axios/lib/platform/node/classes/FormData.js +0 -3
  299. package/node_modules/@appium/support/node_modules/axios/lib/platform/node/classes/URLSearchParams.js +0 -4
  300. package/node_modules/@appium/support/node_modules/axios/lib/platform/node/index.js +0 -37
  301. package/node_modules/@appium/support/node_modules/axios/lib/utils.js +0 -1029
  302. package/node_modules/@appium/support/node_modules/axios/package.json +0 -203
  303. package/node_modules/@img/sharp-darwin-arm64/lib/sharp-darwin-arm64-0.35.4.node +0 -0
  304. package/node_modules/big-integer/BigInteger.d.ts +0 -2393
  305. package/node_modules/big-integer/BigInteger.js +0 -1453
  306. package/node_modules/big-integer/BigInteger.min.js +0 -1
  307. package/node_modules/big-integer/LICENSE +0 -24
  308. package/node_modules/big-integer/README.md +0 -589
  309. package/node_modules/big-integer/bower.json +0 -29
  310. package/node_modules/big-integer/package.json +0 -48
  311. package/node_modules/big-integer/tsconfig.json +0 -24
  312. package/node_modules/bplist-creator/bplistCreator.d.ts +0 -8
  313. package/node_modules/bplist-creator/bplistCreator.js +0 -460
  314. package/node_modules/bplist-creator/test/airplay.bplist +0 -0
  315. package/node_modules/bplist-creator/test/binaryData.bplist +0 -0
  316. package/node_modules/bplist-creator/test/creatorTest.js +0 -211
  317. package/node_modules/bplist-creator/test/iTunes-small.bplist +0 -0
  318. package/node_modules/bplist-creator/test/integers.bplist +0 -0
  319. package/node_modules/bplist-creator/test/sample1.bplist +0 -0
  320. package/node_modules/bplist-creator/test/sample2.bplist +0 -0
  321. package/node_modules/bplist-creator/test/uid.bplist +0 -0
  322. package/node_modules/bplist-creator/test/utf16.bplist +0 -0
  323. package/node_modules/bplist-parser/.editorconfig +0 -12
  324. package/node_modules/bplist-parser/.eslintignore +0 -1
  325. package/node_modules/bplist-parser/.eslintrc.js +0 -296
  326. package/node_modules/bplist-parser/bplistParser.d.ts +0 -8
  327. package/node_modules/stream-buffers/.travis.yml +0 -28
  328. package/node_modules/stream-buffers/coverage/coverage.json +0 -1
  329. package/node_modules/stream-buffers/coverage/lcov-report/base.css +0 -182
  330. package/node_modules/stream-buffers/coverage/lcov-report/index.html +0 -73
  331. package/node_modules/stream-buffers/coverage/lcov-report/lib/constants.js.html +0 -63
  332. package/node_modules/stream-buffers/coverage/lcov-report/lib/index.html +0 -112
  333. package/node_modules/stream-buffers/coverage/lcov-report/lib/readable_streambuffer.js.html +0 -453
  334. package/node_modules/stream-buffers/coverage/lcov-report/lib/streambuffer.js.html +0 -54
  335. package/node_modules/stream-buffers/coverage/lcov-report/lib/writable_streambuffer.js.html +0 -336
  336. package/node_modules/stream-buffers/coverage/lcov-report/prettify.css +0 -1
  337. package/node_modules/stream-buffers/coverage/lcov-report/prettify.js +0 -1
  338. package/node_modules/stream-buffers/coverage/lcov-report/sort-arrow-sprite.png +0 -0
  339. package/node_modules/stream-buffers/coverage/lcov-report/sorter.js +0 -156
  340. package/node_modules/stream-buffers/coverage/lcov.info +0 -305
@@ -0,0 +1,508 @@
1
+ "use strict";
2
+ var __create = Object.create;
3
+ var __defProp = Object.defineProperty;
4
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
+ var __getOwnPropNames = Object.getOwnPropertyNames;
6
+ var __getProtoOf = Object.getPrototypeOf;
7
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
8
+ var __export = (target, all) => {
9
+ for (var name in all)
10
+ __defProp(target, name, { get: all[name], enumerable: true });
11
+ };
12
+ var __copyProps = (to, from, except, desc) => {
13
+ if (from && typeof from === "object" || typeof from === "function") {
14
+ for (let key of __getOwnPropNames(from))
15
+ if (!__hasOwnProp.call(to, key) && key !== except)
16
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
17
+ }
18
+ return to;
19
+ };
20
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
21
+ // If the importer is in node compatibility mode or this is not an ESM
22
+ // file that has been converted to a CommonJS file using a Babel-
23
+ // compatible transform (i.e. "__esModule" has not been set), then set
24
+ // "default" to the CommonJS "module.exports" for node compatibility.
25
+ isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
26
+ mod
27
+ ));
28
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
29
+
30
+ // bplistCreator.ts
31
+ var bplistCreator_exports = {};
32
+ __export(bplistCreator_exports, {
33
+ Real: () => Real,
34
+ default: () => bplistCreator_default
35
+ });
36
+ module.exports = __toCommonJS(bplistCreator_exports);
37
+ var import_node_util = __toESM(require("node:util"), 1);
38
+ var import_stream_buffers = __toESM(require("stream-buffers"), 1);
39
+ var debug = false;
40
+ var Real = class {
41
+ value;
42
+ constructor(value) {
43
+ this.value = value;
44
+ }
45
+ };
46
+ var bplistCreator = function bplistCreator2(dicts) {
47
+ const buffer = new import_stream_buffers.default.WritableStreamBuffer();
48
+ buffer.write(Buffer.from("bplist00"));
49
+ if (debug) {
50
+ console.log("create", import_node_util.default.inspect(dicts, false, 10));
51
+ }
52
+ let entries = toEntries(dicts);
53
+ if (debug) {
54
+ console.log("entries", entries);
55
+ }
56
+ const idSizeInBytes = computeIdSizeInBytes(entries.length);
57
+ const offsets = [];
58
+ let offsetSizeInBytes;
59
+ let offsetTableOffset;
60
+ updateEntryIds();
61
+ entries.forEach(function(entry, entryIdx) {
62
+ offsets[entryIdx] = buffer.size();
63
+ if (!entry) {
64
+ buffer.write(Buffer.from([0]));
65
+ } else {
66
+ write(entry);
67
+ }
68
+ });
69
+ writeOffsetTable();
70
+ writeTrailer();
71
+ return buffer.getContents();
72
+ function updateEntryIds() {
73
+ const strings = {};
74
+ let entryId = 0;
75
+ entries.forEach(function(entry) {
76
+ if (entry.id) {
77
+ return;
78
+ }
79
+ if (entry.type === "string") {
80
+ if (!entry.bplistOverride && Object.prototype.hasOwnProperty.call(strings, entry.value)) {
81
+ entry.type = "stringref";
82
+ entry.id = strings[entry.value];
83
+ } else {
84
+ strings[entry.value] = entry.id = entryId++;
85
+ }
86
+ } else {
87
+ entry.id = entryId++;
88
+ }
89
+ });
90
+ entries = entries.filter(function(entry) {
91
+ return entry.type !== "stringref";
92
+ });
93
+ }
94
+ function writeTrailer() {
95
+ if (debug) {
96
+ console.log("0x" + buffer.size().toString(16), "writeTrailer");
97
+ }
98
+ buffer.write(Buffer.from([0, 0, 0, 0, 0, 0]));
99
+ if (debug) {
100
+ console.log("0x" + buffer.size().toString(16), "writeTrailer(offsetSizeInBytes):", offsetSizeInBytes);
101
+ }
102
+ writeByte(offsetSizeInBytes);
103
+ if (debug) {
104
+ console.log("0x" + buffer.size().toString(16), "writeTrailer(offsetSizeInBytes):", idSizeInBytes);
105
+ }
106
+ writeByte(idSizeInBytes);
107
+ if (debug) {
108
+ console.log("0x" + buffer.size().toString(16), "writeTrailer(number of objects):", entries.length);
109
+ }
110
+ writeLong(entries.length);
111
+ if (debug) {
112
+ console.log("0x" + buffer.size().toString(16), "writeTrailer(top object)");
113
+ }
114
+ writeLong(0);
115
+ if (debug) {
116
+ console.log("0x" + buffer.size().toString(16), "writeTrailer(offset table offset):", offsetTableOffset);
117
+ }
118
+ writeLong(offsetTableOffset);
119
+ }
120
+ function writeOffsetTable() {
121
+ if (debug) {
122
+ console.log("0x" + buffer.size().toString(16), "writeOffsetTable");
123
+ }
124
+ offsetTableOffset = buffer.size();
125
+ offsetSizeInBytes = computeOffsetSizeInBytes(offsetTableOffset);
126
+ offsets.forEach(function(offset) {
127
+ writeBytes(offset, offsetSizeInBytes);
128
+ });
129
+ }
130
+ function write(entry) {
131
+ switch (entry.type) {
132
+ case "dict":
133
+ writeDict(entry);
134
+ break;
135
+ case "number":
136
+ case "double":
137
+ writeNumber(entry);
138
+ break;
139
+ case "UID":
140
+ writeUID(entry);
141
+ break;
142
+ case "array":
143
+ writeArray(entry);
144
+ break;
145
+ case "boolean":
146
+ writeBoolean(entry);
147
+ break;
148
+ case "string":
149
+ case "string-utf16":
150
+ writeString(entry);
151
+ break;
152
+ case "date":
153
+ writeDate(entry);
154
+ break;
155
+ case "data":
156
+ writeData(entry);
157
+ break;
158
+ default:
159
+ throw new Error("unhandled entry type: " + entry.type);
160
+ }
161
+ }
162
+ function writeDate(entry) {
163
+ writeByte(51);
164
+ const timestamp = entry.value instanceof Date ? entry.value.getTime() : Date.parse(entry.value);
165
+ if (!isFinite(timestamp)) {
166
+ throw new Error("invalid date: " + entry.value);
167
+ }
168
+ const date = timestamp / 1e3 - 978307200;
169
+ writeDouble(date);
170
+ }
171
+ function writeDict(entry) {
172
+ if (debug) {
173
+ const keysStr = entry.entryKeys.map(function(k) {
174
+ return k.id;
175
+ });
176
+ const valsStr = entry.entryValues.map(function(k) {
177
+ return k.id;
178
+ });
179
+ console.log("0x" + buffer.size().toString(16), "writeDict", "(id: " + entry.id + ")", "(keys: " + keysStr + ")", "(values: " + valsStr + ")");
180
+ }
181
+ writeIntHeader(13, entry.entryKeys.length);
182
+ entry.entryKeys.forEach(function(entry2) {
183
+ writeID(entry2.id);
184
+ });
185
+ entry.entryValues.forEach(function(entry2) {
186
+ writeID(entry2.id);
187
+ });
188
+ }
189
+ function writeNumber(entry) {
190
+ if (debug) {
191
+ console.log("0x" + buffer.size().toString(16), "writeNumber", entry.value, " (type: " + entry.type + ")", "(id: " + entry.id + ")");
192
+ }
193
+ if (entry.type !== "double" && isIntegerValue(entry.value)) {
194
+ writeInteger(entry.value);
195
+ } else {
196
+ writeByte(35);
197
+ writeDouble(Number(entry.value));
198
+ }
199
+ }
200
+ function writeInteger(value) {
201
+ const integer = toBigInt(value);
202
+ if (integer < 0n) {
203
+ writeByte(19);
204
+ writeBytes(integer, 8, true);
205
+ } else if (integer <= 0xffn) {
206
+ writeByte(16);
207
+ writeBytes(integer, 1);
208
+ } else if (integer <= 0xffffn) {
209
+ writeByte(17);
210
+ writeBytes(integer, 2);
211
+ } else if (integer <= 0xffffffffn) {
212
+ writeByte(18);
213
+ writeBytes(integer, 4);
214
+ } else if (integer <= 0x7fffffffffffffffn) {
215
+ writeByte(19);
216
+ writeBytes(integer, 8);
217
+ } else {
218
+ writeByte(20);
219
+ writeBytes(integer, 16);
220
+ }
221
+ }
222
+ function writeUID(entry) {
223
+ if (debug) {
224
+ console.log("0x" + buffer.size().toString(16), "writeUID", entry.value, " (type: " + entry.type + ")", "(id: " + entry.id + ")");
225
+ }
226
+ const value = toBigInt(entry.value);
227
+ const bytes = computeUIDSizeInBytes(value);
228
+ writeByte(128 | bytes - 1);
229
+ writeBytes(value, bytes);
230
+ }
231
+ function writeArray(entry) {
232
+ if (debug) {
233
+ console.log("0x" + buffer.size().toString(16), "writeArray (length: " + entry.entries.length + ")", "(id: " + entry.id + ")");
234
+ }
235
+ writeIntHeader(10, entry.entries.length);
236
+ entry.entries.forEach(function(e) {
237
+ writeID(e.id);
238
+ });
239
+ }
240
+ function writeBoolean(entry) {
241
+ if (debug) {
242
+ console.log("0x" + buffer.size().toString(16), "writeBoolean", entry.value, "(id: " + entry.id + ")");
243
+ }
244
+ writeByte(entry.value ? 9 : 8);
245
+ }
246
+ function writeString(entry) {
247
+ if (debug) {
248
+ console.log("0x" + buffer.size().toString(16), "writeString", entry.value, "(id: " + entry.id + ")");
249
+ }
250
+ if (entry.type === "string-utf16" || mustBeUtf16(entry.value)) {
251
+ const utf16 = Buffer.from(entry.value, "ucs2");
252
+ writeIntHeader(6, utf16.length / 2);
253
+ for (let i = 0; i < utf16.length; i += 2) {
254
+ const t = utf16[i + 0];
255
+ utf16[i + 0] = utf16[i + 1];
256
+ utf16[i + 1] = t;
257
+ }
258
+ buffer.write(utf16);
259
+ } else {
260
+ const utf8 = Buffer.from(entry.value, "ascii");
261
+ writeIntHeader(5, utf8.length);
262
+ buffer.write(utf8);
263
+ }
264
+ }
265
+ function writeData(entry) {
266
+ if (debug) {
267
+ console.log("0x" + buffer.size().toString(16), "writeData", entry.value, "(id: " + entry.id + ")");
268
+ }
269
+ writeIntHeader(4, entry.value.length);
270
+ buffer.write(entry.value);
271
+ }
272
+ function writeLong(l) {
273
+ writeBytes(l, 8);
274
+ }
275
+ function writeByte(b) {
276
+ buffer.write(Buffer.from([b]));
277
+ }
278
+ function writeDouble(v) {
279
+ const buf = Buffer.alloc(8);
280
+ buf.writeDoubleBE(v, 0);
281
+ buffer.write(buf);
282
+ }
283
+ function writeIntHeader(kind, value) {
284
+ if (value < 15) {
285
+ writeByte((kind << 4) + value);
286
+ } else if (value < 256) {
287
+ writeByte((kind << 4) + 15);
288
+ writeByte(16);
289
+ writeBytes(value, 1);
290
+ } else if (value < 65536) {
291
+ writeByte((kind << 4) + 15);
292
+ writeByte(17);
293
+ writeBytes(value, 2);
294
+ } else {
295
+ writeByte((kind << 4) + 15);
296
+ writeByte(18);
297
+ writeBytes(value, 4);
298
+ }
299
+ }
300
+ function writeID(id) {
301
+ writeBytes(id, idSizeInBytes);
302
+ }
303
+ function writeBytes(value, bytes, isSignedInt) {
304
+ let integer = toBigInt(value);
305
+ const bits = BigInt(bytes * 8);
306
+ const limit = 1n << bits;
307
+ if (isSignedInt) {
308
+ const signedLimit = 1n << bits - 1n;
309
+ if (integer < -signedLimit || integer >= signedLimit) {
310
+ throw new Error("integer out of range for " + bytes + " signed bytes: " + value);
311
+ }
312
+ if (integer < 0n) {
313
+ integer = limit + integer;
314
+ }
315
+ } else if (integer < 0n || integer >= limit) {
316
+ throw new Error("integer out of range for " + bytes + " unsigned bytes: " + value);
317
+ }
318
+ const buf = Buffer.alloc(bytes);
319
+ for (let i = bytes - 1; i >= 0; i--) {
320
+ buf[i] = Number(integer & 0xffn);
321
+ integer >>= 8n;
322
+ }
323
+ buffer.write(buf);
324
+ }
325
+ function isIntegerValue(value) {
326
+ if (typeof value === "bigint") {
327
+ return true;
328
+ }
329
+ if (typeof value === "number") {
330
+ return isFinite(value) && Math.floor(value) === value;
331
+ }
332
+ if (typeof value === "string") {
333
+ return /^-?\d+$/.test(value);
334
+ }
335
+ return !!value && typeof value.toString === "function" && /^-?\d+$/.test(String(value));
336
+ }
337
+ function toBigInt(value) {
338
+ if (typeof value === "bigint") {
339
+ return value;
340
+ }
341
+ if (typeof value === "number") {
342
+ return BigInt(value);
343
+ }
344
+ return BigInt(String(value));
345
+ }
346
+ function mustBeUtf16(string) {
347
+ return Buffer.byteLength(string, "utf8") !== string.length;
348
+ }
349
+ };
350
+ function toEntries(dicts) {
351
+ if (dicts.bplistOverride) {
352
+ return [dicts];
353
+ }
354
+ if (dicts instanceof Array) {
355
+ return toEntriesArray(dicts);
356
+ } else if (dicts instanceof Buffer) {
357
+ return [
358
+ {
359
+ type: "data",
360
+ value: dicts
361
+ }
362
+ ];
363
+ } else if (dicts instanceof Real) {
364
+ return [
365
+ {
366
+ type: "double",
367
+ value: dicts.value
368
+ }
369
+ ];
370
+ } else if (typeof dicts === "object") {
371
+ if (dicts instanceof Date) {
372
+ return [
373
+ {
374
+ type: "date",
375
+ value: dicts
376
+ }
377
+ ];
378
+ } else if (Object.keys(dicts).length === 1 && (typeof dicts.UID === "number" || typeof dicts.UID === "bigint")) {
379
+ return [
380
+ {
381
+ type: "UID",
382
+ value: dicts.UID
383
+ }
384
+ ];
385
+ } else {
386
+ return toEntriesObject(dicts);
387
+ }
388
+ } else if (typeof dicts === "string") {
389
+ return [
390
+ {
391
+ type: "string",
392
+ value: dicts
393
+ }
394
+ ];
395
+ } else if (typeof dicts === "number") {
396
+ return [
397
+ {
398
+ type: "number",
399
+ value: dicts
400
+ }
401
+ ];
402
+ } else if (typeof dicts === "boolean") {
403
+ return [
404
+ {
405
+ type: "boolean",
406
+ value: dicts
407
+ }
408
+ ];
409
+ } else if (typeof dicts === "bigint") {
410
+ return [
411
+ {
412
+ type: "number",
413
+ value: dicts
414
+ }
415
+ ];
416
+ } else {
417
+ throw new Error("unhandled entry: " + dicts);
418
+ }
419
+ }
420
+ function toEntriesArray(arr) {
421
+ if (debug) {
422
+ console.log("toEntriesArray");
423
+ }
424
+ let results = [
425
+ {
426
+ type: "array",
427
+ entries: []
428
+ }
429
+ ];
430
+ const arrayEntry = results[0];
431
+ arr.forEach(function(v) {
432
+ const entry = toEntries(v);
433
+ arrayEntry.entries.push(entry[0]);
434
+ results = results.concat(entry);
435
+ });
436
+ return results;
437
+ }
438
+ function toEntriesObject(dict) {
439
+ if (debug) {
440
+ console.log("toEntriesObject");
441
+ }
442
+ let results = [
443
+ {
444
+ type: "dict",
445
+ entryKeys: [],
446
+ entryValues: []
447
+ }
448
+ ];
449
+ const dictEntry = results[0];
450
+ Object.keys(dict).forEach(function(key) {
451
+ const entryKey = toEntries(key);
452
+ dictEntry.entryKeys.push(entryKey[0]);
453
+ results = results.concat(entryKey[0]);
454
+ });
455
+ Object.keys(dict).forEach(function(key) {
456
+ const entryValue = toEntries(dict[key]);
457
+ dictEntry.entryValues.push(entryValue[0]);
458
+ results = results.concat(entryValue);
459
+ });
460
+ return results;
461
+ }
462
+ function computeOffsetSizeInBytes(maxOffset) {
463
+ if (maxOffset < 256) {
464
+ return 1;
465
+ }
466
+ if (maxOffset < 65536) {
467
+ return 2;
468
+ }
469
+ if (maxOffset < 4294967296) {
470
+ return 4;
471
+ }
472
+ return 8;
473
+ }
474
+ function computeIdSizeInBytes(numberOfIds) {
475
+ if (numberOfIds < 256) {
476
+ return 1;
477
+ }
478
+ if (numberOfIds < 65536) {
479
+ return 2;
480
+ }
481
+ return 4;
482
+ }
483
+ function computeUIDSizeInBytes(value) {
484
+ if (value < 0n) {
485
+ throw new Error("UID out of range: " + value);
486
+ }
487
+ if (value <= 0xffn) {
488
+ return 1;
489
+ }
490
+ if (value <= 0xffffn) {
491
+ return 2;
492
+ }
493
+ if (value <= 0xffffffffn) {
494
+ return 4;
495
+ }
496
+ if (value <= 0xffffffffffffffffn) {
497
+ return 8;
498
+ }
499
+ throw new Error("UID out of range: " + value);
500
+ }
501
+ bplistCreator.Real = Real;
502
+ var bplistCreator_default = bplistCreator;
503
+ // Annotate the CommonJS export names for ESM import in node:
504
+ 0 && (module.exports = {
505
+ Real
506
+ });
507
+ module.exports = module.exports.default;
508
+ //# sourceMappingURL=index.cjs.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../bplistCreator.ts"],
4
+ "sourcesContent": ["// adapted from http://code.google.com/p/plist/source/browse/trunk/src/main/java/com/dd/plist/BinaryPropertyListWriter.java\n\nimport util from 'node:util';\nimport streamBuffers from 'stream-buffers';\n\nconst debug = false;\n\nexport type PlistJsObj = any[] | Record<any, any>;\n\n/** Wraps a number so it is always encoded as a binary plist `real`. */\nexport class Real {\n value: number;\n\n constructor(value: number) {\n this.value = value;\n }\n}\n\ntype DictEntry = { type: 'dict'; entryKeys: Entry[]; entryValues: Entry[]; id?: number };\ntype NumberEntry = { type: 'number' | 'double'; value: number | bigint; id?: number; bplistOverride?: true };\ntype UidEntry = { type: 'UID'; value: number | bigint; id?: number };\ntype ArrayEntry = { type: 'array'; entries: Entry[]; id?: number };\ntype BooleanEntry = { type: 'boolean'; value: boolean; id?: number };\ntype StringEntry = {\n type: 'string' | 'string-utf16' | 'stringref';\n value: string;\n id?: number;\n bplistOverride?: true;\n};\ntype DateEntry = { type: 'date'; value: Date | string; id?: number };\ntype DataEntry = { type: 'data'; value: Buffer; id?: number };\n\ntype Entry = DictEntry | NumberEntry | UidEntry | ArrayEntry | BooleanEntry | StringEntry | DateEntry | DataEntry;\n\ninterface BplistCreator {\n (dicts: PlistJsObj): Buffer;\n Real: typeof Real;\n}\n\nconst bplistCreator = function bplistCreator(dicts: PlistJsObj): Buffer {\n const buffer = new streamBuffers.WritableStreamBuffer();\n buffer.write(Buffer.from(\"bplist00\"));\n\n if (debug) {\n console.log('create', util.inspect(dicts, false, 10));\n }\n\n let entries = toEntries(dicts);\n if (debug) {\n console.log('entries', entries);\n }\n const idSizeInBytes = computeIdSizeInBytes(entries.length);\n const offsets: number[] = [];\n let offsetSizeInBytes: number;\n let offsetTableOffset: number;\n\n updateEntryIds();\n\n entries.forEach(function(entry, entryIdx) {\n offsets[entryIdx] = buffer.size();\n if (!entry) {\n buffer.write(Buffer.from([0x00]));\n } else {\n write(entry);\n }\n });\n\n writeOffsetTable();\n writeTrailer();\n return buffer.getContents() as Buffer;\n\n function updateEntryIds() {\n const strings: Record<string, number> = {};\n let entryId = 0;\n entries.forEach(function(entry) {\n if (entry.id) {\n return;\n }\n if (entry.type === 'string') {\n if (!entry.bplistOverride && Object.prototype.hasOwnProperty.call(strings, entry.value)) {\n (entry as StringEntry).type = 'stringref';\n entry.id = strings[entry.value];\n } else {\n strings[entry.value] = entry.id = entryId++;\n }\n } else {\n entry.id = entryId++;\n }\n });\n\n entries = entries.filter(function(entry) {\n return (entry.type !== 'stringref');\n });\n }\n\n function writeTrailer() {\n if (debug) {\n console.log('0x' + buffer.size().toString(16), 'writeTrailer');\n }\n // 6 null bytes\n buffer.write(Buffer.from([0, 0, 0, 0, 0, 0]));\n\n // size of an offset\n if (debug) {\n console.log('0x' + buffer.size().toString(16), 'writeTrailer(offsetSizeInBytes):', offsetSizeInBytes);\n }\n writeByte(offsetSizeInBytes);\n\n // size of a ref\n if (debug) {\n console.log('0x' + buffer.size().toString(16), 'writeTrailer(offsetSizeInBytes):', idSizeInBytes);\n }\n writeByte(idSizeInBytes);\n\n // number of objects\n if (debug) {\n console.log('0x' + buffer.size().toString(16), 'writeTrailer(number of objects):', entries.length);\n }\n writeLong(entries.length);\n\n // top object\n if (debug) {\n console.log('0x' + buffer.size().toString(16), 'writeTrailer(top object)');\n }\n writeLong(0);\n\n // offset table offset\n if (debug) {\n console.log('0x' + buffer.size().toString(16), 'writeTrailer(offset table offset):', offsetTableOffset);\n }\n writeLong(offsetTableOffset);\n }\n\n function writeOffsetTable() {\n if (debug) {\n console.log('0x' + buffer.size().toString(16), 'writeOffsetTable');\n }\n offsetTableOffset = buffer.size();\n offsetSizeInBytes = computeOffsetSizeInBytes(offsetTableOffset);\n offsets.forEach(function(offset) {\n writeBytes(offset, offsetSizeInBytes);\n });\n }\n\n function write(entry: Entry) {\n switch (entry.type) {\n case 'dict':\n writeDict(entry);\n break;\n case 'number':\n case 'double':\n writeNumber(entry);\n break;\n case 'UID':\n writeUID(entry);\n break;\n case 'array':\n writeArray(entry);\n break;\n case 'boolean':\n writeBoolean(entry);\n break;\n case 'string':\n case 'string-utf16':\n writeString(entry);\n break;\n case 'date':\n writeDate(entry);\n break;\n case 'data':\n writeData(entry);\n break;\n default:\n throw new Error(\"unhandled entry type: \" + (entry as Entry).type);\n }\n }\n\n function writeDate(entry: DateEntry) {\n writeByte(0x33);\n const timestamp = entry.value instanceof Date ? entry.value.getTime() : Date.parse(entry.value);\n if (!isFinite(timestamp)) {\n throw new Error('invalid date: ' + entry.value);\n }\n const date = (timestamp / 1000) - 978307200;\n writeDouble(date);\n }\n\n function writeDict(entry: DictEntry) {\n if (debug) {\n const keysStr = entry.entryKeys.map(function(k) {return k.id;});\n const valsStr = entry.entryValues.map(function(k) {return k.id;});\n console.log('0x' + buffer.size().toString(16), 'writeDict', '(id: ' + entry.id + ')', '(keys: ' + keysStr + ')', '(values: ' + valsStr + ')');\n }\n writeIntHeader(0xD, entry.entryKeys.length);\n entry.entryKeys.forEach(function(entry) {\n writeID(entry.id as number);\n });\n entry.entryValues.forEach(function(entry) {\n writeID(entry.id as number);\n });\n }\n\n function writeNumber(entry: NumberEntry) {\n if (debug) {\n console.log('0x' + buffer.size().toString(16), 'writeNumber', entry.value, ' (type: ' + entry.type + ')', '(id: ' + entry.id + ')');\n }\n\n if (entry.type !== 'double' && isIntegerValue(entry.value)) {\n writeInteger(entry.value);\n } else {\n writeByte(0x23);\n writeDouble(Number(entry.value));\n }\n }\n\n function writeInteger(value: number | bigint) {\n const integer = toBigInt(value);\n\n if (integer < 0n) {\n writeByte(0x13);\n writeBytes(integer, 8, true);\n } else if (integer <= 0xffn) {\n writeByte(0x10);\n writeBytes(integer, 1);\n } else if (integer <= 0xffffn) {\n writeByte(0x11);\n writeBytes(integer, 2);\n } else if (integer <= 0xffffffffn) {\n writeByte(0x12);\n writeBytes(integer, 4);\n } else if (integer <= 0x7fffffffffffffffn) {\n writeByte(0x13);\n writeBytes(integer, 8);\n } else {\n writeByte(0x14);\n writeBytes(integer, 16);\n }\n }\n\n function writeUID(entry: UidEntry) {\n if (debug) {\n console.log('0x' + buffer.size().toString(16), 'writeUID', entry.value, ' (type: ' + entry.type + ')', '(id: ' + entry.id + ')');\n }\n\n const value = toBigInt(entry.value);\n const bytes = computeUIDSizeInBytes(value);\n writeByte(0x80 | (bytes - 1));\n writeBytes(value, bytes);\n }\n\n function writeArray(entry: ArrayEntry) {\n if (debug) {\n console.log('0x' + buffer.size().toString(16), 'writeArray (length: ' + entry.entries.length + ')', '(id: ' + entry.id + ')');\n }\n writeIntHeader(0xA, entry.entries.length);\n entry.entries.forEach(function(e) {\n writeID(e.id as number);\n });\n }\n\n function writeBoolean(entry: BooleanEntry) {\n if (debug) {\n console.log('0x' + buffer.size().toString(16), 'writeBoolean', entry.value, '(id: ' + entry.id + ')');\n }\n writeByte(entry.value ? 0x09 : 0x08);\n }\n\n function writeString(entry: StringEntry) {\n if (debug) {\n console.log('0x' + buffer.size().toString(16), 'writeString', entry.value, '(id: ' + entry.id + ')');\n }\n if (entry.type === 'string-utf16' || mustBeUtf16(entry.value)) {\n const utf16 = Buffer.from(entry.value, 'ucs2');\n writeIntHeader(0x6, utf16.length / 2);\n // needs to be big endian so swap the bytes\n for (let i = 0; i < utf16.length; i += 2) {\n const t = utf16[i + 0];\n utf16[i + 0] = utf16[i + 1];\n utf16[i + 1] = t;\n }\n buffer.write(utf16);\n } else {\n const utf8 = Buffer.from(entry.value, 'ascii');\n writeIntHeader(0x5, utf8.length);\n buffer.write(utf8);\n }\n }\n\n function writeData(entry: DataEntry) {\n if (debug) {\n console.log('0x' + buffer.size().toString(16), 'writeData', entry.value, '(id: ' + entry.id + ')');\n }\n writeIntHeader(0x4, entry.value.length);\n buffer.write(entry.value);\n }\n\n function writeLong(l: number) {\n writeBytes(l, 8);\n }\n\n function writeByte(b: number) {\n buffer.write(Buffer.from([b]));\n }\n\n function writeDouble(v: number) {\n const buf = Buffer.alloc(8);\n buf.writeDoubleBE(v, 0);\n buffer.write(buf);\n }\n\n function writeIntHeader(kind: number, value: number) {\n if (value < 15) {\n writeByte((kind << 4) + value);\n } else if (value < 256) {\n writeByte((kind << 4) + 15);\n writeByte(0x10);\n writeBytes(value, 1);\n } else if (value < 65536) {\n writeByte((kind << 4) + 15);\n writeByte(0x11);\n writeBytes(value, 2);\n } else {\n writeByte((kind << 4) + 15);\n writeByte(0x12);\n writeBytes(value, 4);\n }\n }\n\n function writeID(id: number) {\n writeBytes(id, idSizeInBytes);\n }\n\n function writeBytes(value: number | bigint, bytes: number, isSignedInt?: boolean) {\n let integer = toBigInt(value);\n const bits = BigInt(bytes * 8);\n const limit = 1n << bits;\n\n if (isSignedInt) {\n const signedLimit = 1n << (bits - 1n);\n if (integer < -signedLimit || integer >= signedLimit) {\n throw new Error('integer out of range for ' + bytes + ' signed bytes: ' + value);\n }\n if (integer < 0n) {\n integer = limit + integer;\n }\n } else if (integer < 0n || integer >= limit) {\n throw new Error('integer out of range for ' + bytes + ' unsigned bytes: ' + value);\n }\n\n const buf = Buffer.alloc(bytes);\n for (let i = bytes - 1; i >= 0; i--) {\n buf[i] = Number(integer & 0xffn);\n integer >>= 8n;\n }\n buffer.write(buf);\n }\n\n function isIntegerValue(value: unknown): boolean {\n if (typeof value === 'bigint') {\n return true;\n }\n if (typeof value === 'number') {\n return isFinite(value) && Math.floor(value) === value;\n }\n if (typeof value === 'string') {\n return /^-?\\d+$/.test(value);\n }\n return !!value && typeof (value as { toString?: unknown }).toString === 'function' && /^-?\\d+$/.test(String(value));\n }\n\n function toBigInt(value: unknown): bigint {\n if (typeof value === 'bigint') {\n return value;\n }\n if (typeof value === 'number') {\n return BigInt(value);\n }\n return BigInt(String(value));\n }\n\n function mustBeUtf16(string: string) {\n return Buffer.byteLength(string, 'utf8') !== string.length;\n }\n} as BplistCreator;\n\nfunction toEntries(dicts: any): Entry[] {\n if (dicts.bplistOverride) {\n return [dicts];\n }\n\n if (dicts instanceof Array) {\n return toEntriesArray(dicts);\n } else if (dicts instanceof Buffer) {\n return [\n {\n type: 'data',\n value: dicts\n }\n ];\n } else if (dicts instanceof Real) {\n return [\n {\n type: 'double',\n value: dicts.value\n }\n ];\n } else if (typeof(dicts) === 'object') {\n if (dicts instanceof Date) {\n return [\n {\n type: 'date',\n value: dicts\n }\n ];\n } else if (Object.keys(dicts).length === 1 && (typeof(dicts.UID) === 'number' || typeof(dicts.UID) === 'bigint')) {\n return [\n {\n type: 'UID',\n value: dicts.UID\n }\n ];\n } else {\n return toEntriesObject(dicts);\n }\n } else if (typeof(dicts) === 'string') {\n return [\n {\n type: 'string',\n value: dicts\n }\n ];\n } else if (typeof(dicts) === 'number') {\n return [\n {\n type: 'number',\n value: dicts\n }\n ];\n } else if (typeof(dicts) === 'boolean') {\n return [\n {\n type: 'boolean',\n value: dicts\n }\n ];\n } else if (typeof(dicts) === 'bigint') {\n return [\n {\n type: 'number',\n value: dicts\n }\n ];\n } else {\n throw new Error('unhandled entry: ' + dicts);\n }\n}\n\nfunction toEntriesArray(arr: any[]): Entry[] {\n if (debug) {\n console.log('toEntriesArray');\n }\n let results: Entry[] = [\n {\n type: 'array',\n entries: []\n }\n ];\n const arrayEntry = results[0] as ArrayEntry;\n arr.forEach(function(v) {\n const entry = toEntries(v);\n arrayEntry.entries.push(entry[0]);\n results = results.concat(entry);\n });\n return results;\n}\n\nfunction toEntriesObject(dict: Record<string, any>): Entry[] {\n if (debug) {\n console.log('toEntriesObject');\n }\n let results: Entry[] = [\n {\n type: 'dict',\n entryKeys: [],\n entryValues: []\n }\n ];\n const dictEntry = results[0] as DictEntry;\n Object.keys(dict).forEach(function(key) {\n const entryKey = toEntries(key);\n dictEntry.entryKeys.push(entryKey[0]);\n results = results.concat(entryKey[0]);\n });\n Object.keys(dict).forEach(function(key) {\n const entryValue = toEntries(dict[key]);\n dictEntry.entryValues.push(entryValue[0]);\n results = results.concat(entryValue);\n });\n return results;\n}\n\nfunction computeOffsetSizeInBytes(maxOffset: number): number {\n if (maxOffset < 256) {\n return 1;\n }\n if (maxOffset < 65536) {\n return 2;\n }\n if (maxOffset < 4294967296) {\n return 4;\n }\n return 8;\n}\n\nfunction computeIdSizeInBytes(numberOfIds: number): number {\n if (numberOfIds < 256) {\n return 1;\n }\n if (numberOfIds < 65536) {\n return 2;\n }\n return 4;\n}\n\nfunction computeUIDSizeInBytes(value: bigint): number {\n if (value < 0n) {\n throw new Error('UID out of range: ' + value);\n }\n if (value <= 0xffn) {\n return 1;\n }\n if (value <= 0xffffn) {\n return 2;\n }\n if (value <= 0xffffffffn) {\n return 4;\n }\n if (value <= 0xffffffffffffffffn) {\n return 8;\n }\n throw new Error('UID out of range: ' + value);\n}\n\n// Kept as a property of the default export so CommonJS consumers can continue\n// to reach it via `require('bplist-creator').Real`.\nbplistCreator.Real = Real;\n\nexport default bplistCreator;\n"],
5
+ "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAEA,uBAAiB;AACjB,4BAA0B;AAE1B,IAAM,QAAQ;AAKP,IAAM,OAAN,MAAW;AAAA,EAChB;AAAA,EAEA,YAAY,OAAe;AACzB,SAAK,QAAQ;AAAA,EACf;AACF;AAuBA,IAAM,gBAAgB,SAASA,eAAc,OAA2B;AACtE,QAAM,SAAS,IAAI,sBAAAC,QAAc,qBAAqB;AACtD,SAAO,MAAM,OAAO,KAAK,UAAU,CAAC;AAEpC,MAAI,OAAO;AACT,YAAQ,IAAI,UAAU,iBAAAC,QAAK,QAAQ,OAAO,OAAO,EAAE,CAAC;AAAA,EACtD;AAEA,MAAI,UAAU,UAAU,KAAK;AAC7B,MAAI,OAAO;AACT,YAAQ,IAAI,WAAW,OAAO;AAAA,EAChC;AACA,QAAM,gBAAgB,qBAAqB,QAAQ,MAAM;AACzD,QAAM,UAAoB,CAAC;AAC3B,MAAI;AACJ,MAAI;AAEJ,iBAAe;AAEf,UAAQ,QAAQ,SAAS,OAAO,UAAU;AACxC,YAAQ,QAAQ,IAAI,OAAO,KAAK;AAChC,QAAI,CAAC,OAAO;AACV,aAAO,MAAM,OAAO,KAAK,CAAC,CAAI,CAAC,CAAC;AAAA,IAClC,OAAO;AACL,YAAM,KAAK;AAAA,IACb;A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ACtC,cAAU,YAAY,KAAK,WAAW,CAAC,CAAC;AACxC,cAAU,QAAQ,OAAO,UAAU;AAAA,EACrC,CAAC;AACD,SAAO;AACT;AAEA,SAAS,yBAAyB,WAA2B;AAC3D,MAAI,YAAY,KAAK;AACnB,WAAO;AAAA,EACT;AACA,MAAI,YAAY,OAAO;AACrB,WAAO;AAAA,EACT;AACA,MAAI,YAAY,YAAY;AAC1B,WAAO;AAAA,EACT;AACA,SAAO;AACT;AAEA,SAAS,qBAAqB,aAA6B;AACzD,MAAI,cAAc,KAAK;AACrB,WAAO;AAAA,EACT;AACA,MAAI,cAAc,OAAO;AACvB,WAAO;AAAA,EACT;AACA,SAAO;AACT;AAEA,SAAS,sBAAsB,OAAuB;AACpD,MAAI,QAAQ,IAAI;AACd,UAAM,IAAI,MAAM,uBAAuB,KAAK;AAAA,EAC9C;AACA,MAAI,SAAS,OAAO;AAClB,WAAO;AAAA,EACT;AACA,MAAI,SAAS,SAAS;AACpB,WAAO;AAAA,EACT;AACA,MAAI,SAAS,aAAa;AACxB,WAAO;AAAA,EACT;AACA,MAAI,SAAS,qBAAqB;AAChC,WAAO;AAAA,EACT;AACA,QAAM,IAAI,MAAM,uBAAuB,KAAK;AAC9C;AAIA,cAAc,OAAO;AAErB,IAAO,wBAAQ;",
6
+ "names": ["bplistCreator", "streamBuffers", "util", "entry"]
7
+ }
@@ -0,0 +1,12 @@
1
+ export type PlistJsObj = any[] | Record<any, any>;
2
+ /** Wraps a number so it is always encoded as a binary plist `real`. */
3
+ export declare class Real {
4
+ value: number;
5
+ constructor(value: number);
6
+ }
7
+ interface BplistCreator {
8
+ (dicts: PlistJsObj): Buffer;
9
+ Real: typeof Real;
10
+ }
11
+ declare const bplistCreator: BplistCreator;
12
+ export default bplistCreator;
@@ -0,0 +1,12 @@
1
+ export type PlistJsObj = any[] | Record<any, any>;
2
+ /** Wraps a number so it is always encoded as a binary plist `real`. */
3
+ export declare class Real {
4
+ value: number;
5
+ constructor(value: number);
6
+ }
7
+ interface BplistCreator {
8
+ (dicts: PlistJsObj): Buffer;
9
+ Real: typeof Real;
10
+ }
11
+ declare const bplistCreator: BplistCreator;
12
+ export default bplistCreator;