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
@@ -107,9 +107,15 @@ const inArray = (val, list) => list.includes(val);
107
107
  * @returns {Error} Containing the formatted message.
108
108
  * @private
109
109
  */
110
- const invalidParameterError = (name, expected, actual) => new Error(
111
- `Expected ${expected} for ${name} but received ${actual} of type ${typeof actual}`
110
+ const invalidParameterError = (name, expected, actual) => {
111
+ let actualString;
112
+ try {
113
+ actualString = String(actual).slice(0, 100);
114
+ } catch {}
115
+ return new Error(
116
+ `Expected ${expected} for ${name} but received ${actualString} of type ${typeof actual}`
112
117
  );
118
+ };
113
119
 
114
120
  /**
115
121
  * Ensures an Error from C++ contains a JS stack.
@@ -824,7 +824,7 @@ function linear (a, b) {
824
824
  this.options.linearA = [];
825
825
  } else if (is.number(a)) {
826
826
  this.options.linearA = [a];
827
- } else if (Array.isArray(a) && a.length && a.every(is.number)) {
827
+ } else if (Array.isArray(a) && is.inRange(a.length, 1, 1000000) && a.every(is.number)) {
828
828
  this.options.linearA = a;
829
829
  } else {
830
830
  throw is.invalidParameterError('a', 'number or array of numbers', a);
@@ -833,7 +833,7 @@ function linear (a, b) {
833
833
  this.options.linearB = [];
834
834
  } else if (is.number(b)) {
835
835
  this.options.linearB = [b];
836
- } else if (Array.isArray(b) && b.length && b.every(is.number)) {
836
+ } else if (Array.isArray(b) && is.inRange(b.length, 1, 1000000) && b.every(is.number)) {
837
837
  this.options.linearB = b;
838
838
  } else {
839
839
  throw is.invalidParameterError('b', 'number or array of numbers', b);
@@ -824,7 +824,7 @@ function linear (a, b) {
824
824
  this.options.linearA = [];
825
825
  } else if (is.number(a)) {
826
826
  this.options.linearA = [a];
827
- } else if (Array.isArray(a) && a.length && a.every(is.number)) {
827
+ } else if (Array.isArray(a) && is.inRange(a.length, 1, 1000000) && a.every(is.number)) {
828
828
  this.options.linearA = a;
829
829
  } else {
830
830
  throw is.invalidParameterError('a', 'number or array of numbers', a);
@@ -833,7 +833,7 @@ function linear (a, b) {
833
833
  this.options.linearB = [];
834
834
  } else if (is.number(b)) {
835
835
  this.options.linearB = [b];
836
- } else if (Array.isArray(b) && b.length && b.every(is.number)) {
836
+ } else if (Array.isArray(b) && is.inRange(b.length, 1, 1000000) && b.every(is.number)) {
837
837
  this.options.linearB = b;
838
838
  } else {
839
839
  throw is.invalidParameterError('b', 'number or array of numbers', b);
@@ -1066,6 +1066,7 @@ function trySetAnimationOptions (source, target) {
1066
1066
  target.delay = [source.delay];
1067
1067
  } else if (
1068
1068
  Array.isArray(source.delay) &&
1069
+ is.inRange(source.delay.length, 1, 1000000) &&
1069
1070
  source.delay.every(is.integer) &&
1070
1071
  source.delay.every(v => is.inRange(v, 0, 65535))) {
1071
1072
  target.delay = source.delay;
@@ -1066,6 +1066,7 @@ function trySetAnimationOptions (source, target) {
1066
1066
  target.delay = [source.delay];
1067
1067
  } else if (
1068
1068
  Array.isArray(source.delay) &&
1069
+ is.inRange(source.delay.length, 1, 1000000) &&
1069
1070
  source.delay.every(is.integer) &&
1070
1071
  source.delay.every(v => is.inRange(v, 0, 65535))) {
1071
1072
  target.delay = source.delay;
@@ -386,10 +386,10 @@ function resize (widthOrOptions, height, options) {
386
386
  * ...
387
387
  *
388
388
  * @param {(number|Object)} extend - single pixel count to add to all edges or an Object with per-edge counts
389
- * @param {number} [extend.top=0] - number of pixels to add to the top edge, valid values are integers in the range 0-10000
390
- * @param {number} [extend.left=0] - number of pixels to add to the left edge, valid values are integers in the range 0-10000
391
- * @param {number} [extend.bottom=0] - number of pixels to add to the bottom edge, valid values are integers in the range 0-10000
392
- * @param {number} [extend.right=0] - number of pixels to add to the right edge, valid values are integers in the range 0-10000
389
+ * @param {number} [extend.top=0] - number of pixels to add to the top edge, valid values are integers in the range 0-100000000
390
+ * @param {number} [extend.left=0] - number of pixels to add to the left edge, valid values are integers in the range 0-100000000
391
+ * @param {number} [extend.bottom=0] - number of pixels to add to the bottom edge, valid values are integers in the range 0-100000000
392
+ * @param {number} [extend.right=0] - number of pixels to add to the right edge, valid values are integers in the range 0-100000000
393
393
  * @param {String} [extend.extendWith='background'] - populate new pixels using this method, one of: background, copy, repeat, mirror.
394
394
  * @param {String|Object} [extend.background={r: 0, g: 0, b: 0, alpha: 1}] - background colour, parsed by the [color](https://www.npmjs.org/package/color) module, defaults to black without transparency.
395
395
  * @returns {Sharp}
@@ -397,41 +397,41 @@ function resize (widthOrOptions, height, options) {
397
397
  */
398
398
  function extend (extend) {
399
399
  if (is.integer(extend)) {
400
- if (is.inRange(extend, 1, 10000)) {
400
+ if (is.inRange(extend, 1, 100000000)) {
401
401
  this.options.extendTop = extend;
402
402
  this.options.extendBottom = extend;
403
403
  this.options.extendLeft = extend;
404
404
  this.options.extendRight = extend;
405
405
  } else {
406
- throw is.invalidParameterError('extend', 'integer between 1 and 10000', extend);
406
+ throw is.invalidParameterError('extend', 'integer between 1 and 100000000', extend);
407
407
  }
408
408
  } else if (is.object(extend)) {
409
409
  if (is.defined(extend.top)) {
410
- if (is.integer(extend.top) && is.inRange(extend.top, 0, 10000)) {
410
+ if (is.integer(extend.top) && is.inRange(extend.top, 0, 100000000)) {
411
411
  this.options.extendTop = extend.top;
412
412
  } else {
413
- throw is.invalidParameterError('top', 'integer between 0 and 10000', extend.top);
413
+ throw is.invalidParameterError('top', 'integer between 0 and 100000000', extend.top);
414
414
  }
415
415
  }
416
416
  if (is.defined(extend.bottom)) {
417
- if (is.integer(extend.bottom) && is.inRange(extend.bottom, 0, 10000)) {
417
+ if (is.integer(extend.bottom) && is.inRange(extend.bottom, 0, 100000000)) {
418
418
  this.options.extendBottom = extend.bottom;
419
419
  } else {
420
- throw is.invalidParameterError('bottom', 'integer between 0 and 10000', extend.bottom);
420
+ throw is.invalidParameterError('bottom', 'integer between 0 and 100000000', extend.bottom);
421
421
  }
422
422
  }
423
423
  if (is.defined(extend.left)) {
424
- if (is.integer(extend.left) && is.inRange(extend.left, 0, 10000)) {
424
+ if (is.integer(extend.left) && is.inRange(extend.left, 0, 100000000)) {
425
425
  this.options.extendLeft = extend.left;
426
426
  } else {
427
- throw is.invalidParameterError('left', 'integer between 0 and 10000', extend.left);
427
+ throw is.invalidParameterError('left', 'integer between 0 and 100000000', extend.left);
428
428
  }
429
429
  }
430
430
  if (is.defined(extend.right)) {
431
- if (is.integer(extend.right) && is.inRange(extend.right, 0, 10000)) {
431
+ if (is.integer(extend.right) && is.inRange(extend.right, 0, 100000000)) {
432
432
  this.options.extendRight = extend.right;
433
433
  } else {
434
- throw is.invalidParameterError('right', 'integer between 0 and 10000', extend.right);
434
+ throw is.invalidParameterError('right', 'integer between 0 and 100000000', extend.right);
435
435
  }
436
436
  }
437
437
  this._setBackgroundColourOption('extendBackground', extend.background);
@@ -386,10 +386,10 @@ function resize (widthOrOptions, height, options) {
386
386
  * ...
387
387
  *
388
388
  * @param {(number|Object)} extend - single pixel count to add to all edges or an Object with per-edge counts
389
- * @param {number} [extend.top=0] - number of pixels to add to the top edge, valid values are integers in the range 0-10000
390
- * @param {number} [extend.left=0] - number of pixels to add to the left edge, valid values are integers in the range 0-10000
391
- * @param {number} [extend.bottom=0] - number of pixels to add to the bottom edge, valid values are integers in the range 0-10000
392
- * @param {number} [extend.right=0] - number of pixels to add to the right edge, valid values are integers in the range 0-10000
389
+ * @param {number} [extend.top=0] - number of pixels to add to the top edge, valid values are integers in the range 0-100000000
390
+ * @param {number} [extend.left=0] - number of pixels to add to the left edge, valid values are integers in the range 0-100000000
391
+ * @param {number} [extend.bottom=0] - number of pixels to add to the bottom edge, valid values are integers in the range 0-100000000
392
+ * @param {number} [extend.right=0] - number of pixels to add to the right edge, valid values are integers in the range 0-100000000
393
393
  * @param {String} [extend.extendWith='background'] - populate new pixels using this method, one of: background, copy, repeat, mirror.
394
394
  * @param {String|Object} [extend.background={r: 0, g: 0, b: 0, alpha: 1}] - background colour, parsed by the [color](https://www.npmjs.org/package/color) module, defaults to black without transparency.
395
395
  * @returns {Sharp}
@@ -397,41 +397,41 @@ function resize (widthOrOptions, height, options) {
397
397
  */
398
398
  function extend (extend) {
399
399
  if (is.integer(extend)) {
400
- if (is.inRange(extend, 1, 10000)) {
400
+ if (is.inRange(extend, 1, 100000000)) {
401
401
  this.options.extendTop = extend;
402
402
  this.options.extendBottom = extend;
403
403
  this.options.extendLeft = extend;
404
404
  this.options.extendRight = extend;
405
405
  } else {
406
- throw is.invalidParameterError('extend', 'integer between 1 and 10000', extend);
406
+ throw is.invalidParameterError('extend', 'integer between 1 and 100000000', extend);
407
407
  }
408
408
  } else if (is.object(extend)) {
409
409
  if (is.defined(extend.top)) {
410
- if (is.integer(extend.top) && is.inRange(extend.top, 0, 10000)) {
410
+ if (is.integer(extend.top) && is.inRange(extend.top, 0, 100000000)) {
411
411
  this.options.extendTop = extend.top;
412
412
  } else {
413
- throw is.invalidParameterError('top', 'integer between 0 and 10000', extend.top);
413
+ throw is.invalidParameterError('top', 'integer between 0 and 100000000', extend.top);
414
414
  }
415
415
  }
416
416
  if (is.defined(extend.bottom)) {
417
- if (is.integer(extend.bottom) && is.inRange(extend.bottom, 0, 10000)) {
417
+ if (is.integer(extend.bottom) && is.inRange(extend.bottom, 0, 100000000)) {
418
418
  this.options.extendBottom = extend.bottom;
419
419
  } else {
420
- throw is.invalidParameterError('bottom', 'integer between 0 and 10000', extend.bottom);
420
+ throw is.invalidParameterError('bottom', 'integer between 0 and 100000000', extend.bottom);
421
421
  }
422
422
  }
423
423
  if (is.defined(extend.left)) {
424
- if (is.integer(extend.left) && is.inRange(extend.left, 0, 10000)) {
424
+ if (is.integer(extend.left) && is.inRange(extend.left, 0, 100000000)) {
425
425
  this.options.extendLeft = extend.left;
426
426
  } else {
427
- throw is.invalidParameterError('left', 'integer between 0 and 10000', extend.left);
427
+ throw is.invalidParameterError('left', 'integer between 0 and 100000000', extend.left);
428
428
  }
429
429
  }
430
430
  if (is.defined(extend.right)) {
431
- if (is.integer(extend.right) && is.inRange(extend.right, 0, 10000)) {
431
+ if (is.integer(extend.right) && is.inRange(extend.right, 0, 100000000)) {
432
432
  this.options.extendRight = extend.right;
433
433
  } else {
434
- throw is.invalidParameterError('right', 'integer between 0 and 10000', extend.right);
434
+ throw is.invalidParameterError('right', 'integer between 0 and 100000000', extend.right);
435
435
  }
436
436
  }
437
437
  this._setBackgroundColourOption('extendBackground', extend.background);
@@ -112,8 +112,8 @@ if (!sharp) {
112
112
 
113
113
  const help = [`Could not load the "sharp" module using the ${runtimePlatform} runtime`];
114
114
  errors.forEach((err) => {
115
- if (!err.code.endsWith("MODULE_NOT_FOUND")) {
116
- help.push(`${err.code}: ${err.message}`);
115
+ if (!err.code?.endsWith("MODULE_NOT_FOUND")) {
116
+ help.push(err.code ? `${err.code}: ${err.message}` : err.message);
117
117
  }
118
118
  });
119
119
  const messages = errors.map((err) => err.message).join(" ");
@@ -122,7 +122,7 @@ if (!sharp) {
122
122
  if (isUnsupportedNodeRuntime()) {
123
123
  const { found, expected } = isUnsupportedNodeRuntime();
124
124
  help.push("- Please upgrade Node.js:", ` Found ${found}`, ` Requires ${expected}`);
125
- } else if (prebuiltPlatforms.includes(runtimePlatform)) {
125
+ } else if (prebuiltPlatforms.includes(runtimePlatform) && !/libstdc\+\+\.so/.test(messages)) {
126
126
  const [os, cpu] = runtimePlatform.split("-");
127
127
  const libc = os.endsWith("musl") ? " --libc=musl" : "";
128
128
  help.push(
@@ -112,8 +112,8 @@ if (!sharp) {
112
112
 
113
113
  const help = [`Could not load the "sharp" module using the ${runtimePlatform} runtime`];
114
114
  errors.forEach((err) => {
115
- if (!err.code.endsWith("MODULE_NOT_FOUND")) {
116
- help.push(`${err.code}: ${err.message}`);
115
+ if (!err.code?.endsWith("MODULE_NOT_FOUND")) {
116
+ help.push(err.code ? `${err.code}: ${err.message}` : err.message);
117
117
  }
118
118
  });
119
119
  const messages = errors.map((err) => err.message).join(" ");
@@ -122,7 +122,7 @@ if (!sharp) {
122
122
  if (isUnsupportedNodeRuntime()) {
123
123
  const { found, expected } = isUnsupportedNodeRuntime();
124
124
  help.push("- Please upgrade Node.js:", ` Found ${found}`, ` Requires ${expected}`);
125
- } else if (prebuiltPlatforms.includes(runtimePlatform)) {
125
+ } else if (prebuiltPlatforms.includes(runtimePlatform) && !/libstdc\+\+\.so/.test(messages)) {
126
126
  const [os, cpu] = runtimePlatform.split("-");
127
127
  const libc = os.endsWith("musl") ? " --libc=musl" : "";
128
128
  help.push(
@@ -1404,7 +1404,7 @@ declare namespace sharp {
1404
1404
  chromaSubsampling?: '4:4:4' | '4:2:0';
1405
1405
  }
1406
1406
 
1407
- interface JxlOptions extends OutputOptions {
1407
+ interface JxlOptions extends OutputOptions, AnimationOptions {
1408
1408
  /** Maximum encoding error, between 0 (highest quality) and 15 (lowest quality) (optional, default 1.0) */
1409
1409
  distance?: number;
1410
1410
  /** Calculate distance based on JPEG-like quality, between 1 and 100, overrides distance if specified */
@@ -1413,7 +1413,7 @@ declare namespace sharp {
1413
1413
  decodingTier?: number;
1414
1414
  /** Use lossless compression (optional, default false) */
1415
1415
  lossless?: boolean;
1416
- /** CPU effort, between 3 (fastest) and 9 (slowest) (optional, default 7) */
1416
+ /** CPU effort, between 1 (fastest) and 9 (slowest) (optional, default 7) */
1417
1417
  effort?: number | undefined;
1418
1418
  }
1419
1419
 
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "sharp",
3
3
  "description": "High performance Node.js image processing, the fastest module to resize JPEG, PNG, WebP, GIF, AVIF and TIFF images",
4
- "version": "0.35.4",
4
+ "version": "0.35.5",
5
5
  "author": "Lovell Fuller <npm@lovell.info>",
6
6
  "homepage": "https://sharp.pixelplumbing.com",
7
7
  "contributors": [
@@ -163,31 +163,31 @@
163
163
  "semver": "^7.8.5"
164
164
  },
165
165
  "optionalDependencies": {
166
- "@img/sharp-darwin-arm64": "0.35.4",
167
- "@img/sharp-darwin-x64": "0.35.4",
168
- "@img/sharp-freebsd-wasm32": "0.35.4",
169
- "@img/sharp-libvips-darwin-arm64": "1.3.3",
170
- "@img/sharp-libvips-darwin-x64": "1.3.3",
171
- "@img/sharp-libvips-linux-arm": "1.3.3",
172
- "@img/sharp-libvips-linux-arm64": "1.3.3",
173
- "@img/sharp-libvips-linux-ppc64": "1.3.3",
174
- "@img/sharp-libvips-linux-riscv64": "1.3.3",
175
- "@img/sharp-libvips-linux-s390x": "1.3.3",
176
- "@img/sharp-libvips-linux-x64": "1.3.3",
177
- "@img/sharp-libvips-linuxmusl-arm64": "1.3.3",
178
- "@img/sharp-libvips-linuxmusl-x64": "1.3.3",
179
- "@img/sharp-linux-arm": "0.35.4",
180
- "@img/sharp-linux-arm64": "0.35.4",
181
- "@img/sharp-linux-ppc64": "0.35.4",
182
- "@img/sharp-linux-riscv64": "0.35.4",
183
- "@img/sharp-linux-s390x": "0.35.4",
184
- "@img/sharp-linux-x64": "0.35.4",
185
- "@img/sharp-linuxmusl-arm64": "0.35.4",
186
- "@img/sharp-linuxmusl-x64": "0.35.4",
187
- "@img/sharp-webcontainers-wasm32": "0.35.4",
188
- "@img/sharp-win32-arm64": "0.35.4",
189
- "@img/sharp-win32-ia32": "0.35.4",
190
- "@img/sharp-win32-x64": "0.35.4"
166
+ "@img/sharp-darwin-arm64": "0.35.5",
167
+ "@img/sharp-darwin-x64": "0.35.5",
168
+ "@img/sharp-freebsd-wasm32": "0.35.5",
169
+ "@img/sharp-libvips-darwin-arm64": "1.3.4",
170
+ "@img/sharp-libvips-darwin-x64": "1.3.4",
171
+ "@img/sharp-libvips-linux-arm": "1.3.4",
172
+ "@img/sharp-libvips-linux-arm64": "1.3.4",
173
+ "@img/sharp-libvips-linux-ppc64": "1.3.4",
174
+ "@img/sharp-libvips-linux-riscv64": "1.3.4",
175
+ "@img/sharp-libvips-linux-s390x": "1.3.4",
176
+ "@img/sharp-libvips-linux-x64": "1.3.4",
177
+ "@img/sharp-libvips-linuxmusl-arm64": "1.3.4",
178
+ "@img/sharp-libvips-linuxmusl-x64": "1.3.4",
179
+ "@img/sharp-linux-arm": "0.35.5",
180
+ "@img/sharp-linux-arm64": "0.35.5",
181
+ "@img/sharp-linux-ppc64": "0.35.5",
182
+ "@img/sharp-linux-riscv64": "0.35.5",
183
+ "@img/sharp-linux-s390x": "0.35.5",
184
+ "@img/sharp-linux-x64": "0.35.5",
185
+ "@img/sharp-linuxmusl-arm64": "0.35.5",
186
+ "@img/sharp-linuxmusl-x64": "0.35.5",
187
+ "@img/sharp-webcontainers-wasm32": "0.35.5",
188
+ "@img/sharp-win32-arm64": "0.35.5",
189
+ "@img/sharp-win32-ia32": "0.35.5",
190
+ "@img/sharp-win32-x64": "0.35.5"
191
191
  },
192
192
  "peerDependenciesMeta": {
193
193
  "@types/node": {
@@ -195,31 +195,31 @@
195
195
  }
196
196
  },
197
197
  "devDependencies": {
198
- "@biomejs/biome": "^2.5.10",
198
+ "@biomejs/biome": "^2.5.14",
199
199
  "@cpplint/cli": "^0.1.0",
200
200
  "@emnapi/runtime": "^1.11.3",
201
- "@img/sharp-libvips-dev": "1.3.3",
202
- "@img/sharp-libvips-dev-wasm32": "1.3.3",
203
- "@img/sharp-libvips-win32-arm64": "1.3.3",
204
- "@img/sharp-libvips-win32-ia32": "1.3.3",
205
- "@img/sharp-libvips-win32-x64": "1.3.3",
201
+ "@img/sharp-libvips-dev": "1.3.4",
202
+ "@img/sharp-libvips-dev-wasm32": "1.3.4",
203
+ "@img/sharp-libvips-win32-arm64": "1.3.4",
204
+ "@img/sharp-libvips-win32-ia32": "1.3.4",
205
+ "@img/sharp-libvips-win32-x64": "1.3.4",
206
206
  "@types/node": "*",
207
207
  "emnapi": "^1.11.3",
208
208
  "exif-reader": "^2.0.3",
209
- "yauzl": "^3.4.0",
210
209
  "icc": "^4.0.0",
211
210
  "node-addon-api": "^8.9.2",
212
211
  "node-gyp": "^12.4.0",
213
212
  "publint": "^0.3.24",
214
213
  "tar-fs": "^3.1.3",
215
- "tsd": "^0.33.0"
214
+ "tsd": "^0.33.0",
215
+ "yauzl": "^3.4.0"
216
216
  },
217
217
  "license": "Apache-2.0",
218
218
  "engines": {
219
219
  "node": ">=20.9.0"
220
220
  },
221
221
  "config": {
222
- "libvips": ">=8.18.6"
222
+ "libvips": ">=8.18.7"
223
223
  },
224
224
  "funding": {
225
225
  "url": "https://opencollective.com/libvips"
@@ -1,7 +1,7 @@
1
1
  # Copyright 2013 Lovell Fuller and others.
2
2
  # SPDX-License-Identifier: Apache-2.0
3
3
 
4
- {
4
+ { # noqa: B018
5
5
  'variables': {
6
6
  'vips_version': '<!(node -p "require(\'../dist/libvips.cjs\').minimumLibvipsVersion")',
7
7
  'platform_and_arch': '<!(node -p "require(\'../dist/libvips.cjs\').buildPlatformArch()")',
@@ -540,10 +540,10 @@ namespace sharp {
540
540
  if (channels == 4) {
541
541
  background.push_back(descriptor->createBackground[3]);
542
542
  }
543
- image = VImage::new_matrix(descriptor->createWidth, descriptor->createHeight)
544
- .copy(VImage::option()->set("interpretation",
545
- channels < 3 ? VIPS_INTERPRETATION_B_W : VIPS_INTERPRETATION_sRGB))
546
- .new_from_image(background);
543
+ image = VImage::black(descriptor->createWidth, descriptor->createHeight,
544
+ VImage::option()->set("bands", channels))
545
+ .copy(VImage::option()->set("interpretation", VIPS_INTERPRETATION_sRGB))
546
+ .linear(std::vector<double>(channels, 0.0), background, VImage::option()->set("uchar", true));
547
547
  }
548
548
  if (descriptor->createPageHeight > 0) {
549
549
  image.set(VIPS_META_PAGE_HEIGHT, descriptor->createPageHeight);
@@ -19,8 +19,8 @@
19
19
 
20
20
  #if (VIPS_MAJOR_VERSION < 8) || \
21
21
  (VIPS_MAJOR_VERSION == 8 && VIPS_MINOR_VERSION < 18) || \
22
- (VIPS_MAJOR_VERSION == 8 && VIPS_MINOR_VERSION == 18 && VIPS_MICRO_VERSION < 6)
23
- #error "libvips version 8.18.6+ is required - please see https://sharp.pixelplumbing.com/install"
22
+ (VIPS_MAJOR_VERSION == 8 && VIPS_MINOR_VERSION == 18 && VIPS_MICRO_VERSION < 7)
23
+ #error "libvips version 8.18.7+ is required - please see https://sharp.pixelplumbing.com/install"
24
24
  #endif
25
25
 
26
26
  #if defined(__has_include)
@@ -56,9 +56,9 @@ class PipelineWorker : public Napi::AsyncWorker {
56
56
  hasAlpha |= image.has_alpha();
57
57
  }
58
58
  if (hasAlpha) {
59
- for (auto &image : images) {
60
- if (!image.has_alpha()) {
61
- image = sharp::EnsureAlpha(image, 1);
59
+ for (size_t i = 0; i < images.size(); i++) {
60
+ if (!images[i].has_alpha()) {
61
+ images[i] = sharp::EnsureAlpha(images[i], 1);
62
62
  }
63
63
  }
64
64
  } else {
@@ -94,7 +94,10 @@ class PipelineWorker : public Napi::AsyncWorker {
94
94
  // Calculate angle of rotation
95
95
  VipsAngle rotation = VIPS_ANGLE_D0;
96
96
  VipsAngle autoRotation = VIPS_ANGLE_D0;
97
+ VipsAngle gainMapRotation = VIPS_ANGLE_D0;
97
98
  bool autoFlop = false;
99
+ bool gainMapFlip = false;
100
+ bool gainMapFlop = false;
98
101
 
99
102
  if (baton->input->autoOrient) {
100
103
  // Rotate and flip image according to Exif orientation
@@ -115,11 +118,13 @@ class PipelineWorker : public Napi::AsyncWorker {
115
118
  MultiPageUnsupported(nPages, "Rotate");
116
119
  }
117
120
  image = image.rot(autoRotation);
121
+ gainMapRotation = autoRotation;
118
122
  autoRotation = VIPS_ANGLE_D0;
119
123
  }
120
124
  if (autoFlop) {
121
125
  image = image.flip(VIPS_DIRECTION_HORIZONTAL);
122
126
  autoFlop = false;
127
+ gainMapFlop = true;
123
128
  }
124
129
  }
125
130
 
@@ -128,20 +133,24 @@ class PipelineWorker : public Napi::AsyncWorker {
128
133
  if (baton->flip) {
129
134
  image = image.flip(VIPS_DIRECTION_VERTICAL);
130
135
  baton->flip = false;
136
+ gainMapFlip = true;
131
137
  }
132
138
  if (baton->flop) {
133
139
  image = image.flip(VIPS_DIRECTION_HORIZONTAL);
134
140
  baton->flop = false;
141
+ gainMapFlop = true;
135
142
  }
136
143
  if (rotation != VIPS_ANGLE_D0) {
137
144
  if (rotation != VIPS_ANGLE_D180) {
138
145
  MultiPageUnsupported(nPages, "Rotate");
139
146
  }
140
147
  image = image.rot(rotation);
148
+ gainMapRotation = rotation;
141
149
  rotation = VIPS_ANGLE_D0;
142
150
  }
143
151
  if (baton->rotationAngle != 0.0) {
144
152
  MultiPageUnsupported(nPages, "Rotate");
153
+ KeepGainMapUnsupported(baton->keepGainMap, "Rotate");
145
154
  std::vector<double> background;
146
155
  std::tie(image, background) = sharp::ApplyAlpha(image, baton->rotationBackground, false);
147
156
  image = image.rotate(baton->rotationAngle, VImage::option()->set("background", background)).copy_memory();
@@ -152,6 +161,7 @@ class PipelineWorker : public Napi::AsyncWorker {
152
161
  // Trim
153
162
  if (baton->trimThreshold >= 0.0) {
154
163
  MultiPageUnsupported(nPages, "Trim");
164
+ KeepGainMapUnsupported(baton->keepGainMap, "Trim");
155
165
  image = sharp::StaySequential(image);
156
166
  image = sharp::Trim(image, baton->trimBackground, baton->trimThreshold, baton->trimLineArt, baton->trimMargin);
157
167
  baton->trimOffsetLeft = image.xoffset();
@@ -306,6 +316,20 @@ class PipelineWorker : public Napi::AsyncWorker {
306
316
  if (image.get_typeof("gainmap-scale-factor") == G_TYPE_INT) {
307
317
  gainMapScaleFactor = image.get_int("gainmap-scale-factor");
308
318
  }
319
+ if (gainMapFlip) {
320
+ gainMap = gainMap.flip(VIPS_DIRECTION_VERTICAL);
321
+ }
322
+ if (gainMapFlop) {
323
+ gainMap = gainMap.flip(VIPS_DIRECTION_HORIZONTAL);
324
+ }
325
+ if (gainMapRotation != VIPS_ANGLE_D0) {
326
+ gainMap = gainMap.rot(gainMapRotation);
327
+ }
328
+ if (baton->topOffsetPre != -1) {
329
+ gainMap = gainMap.extract_area(
330
+ baton->leftOffsetPre / gainMapScaleFactor, baton->topOffsetPre / gainMapScaleFactor,
331
+ baton->widthPre / gainMapScaleFactor, baton->heightPre / gainMapScaleFactor);
332
+ }
309
333
  } else if (baton->withGainMap) {
310
334
  image = image.uhdr2scRGB();
311
335
  }
@@ -429,14 +453,14 @@ class PipelineWorker : public Napi::AsyncWorker {
429
453
  }
430
454
  image = image.rot(autoRotation);
431
455
  if (baton->keepGainMap) {
432
- gainMap = gainMap.rot(autoRotation);
456
+ gainMap = sharp::StaySequential(gainMap).rot(autoRotation);
433
457
  }
434
458
  }
435
459
  // Mirror vertically (up-down) about the x-axis
436
460
  if (baton->flip) {
437
461
  image = image.flip(VIPS_DIRECTION_VERTICAL);
438
462
  if (baton->keepGainMap) {
439
- gainMap = gainMap.flip(VIPS_DIRECTION_VERTICAL);
463
+ gainMap = sharp::StaySequential(gainMap).flip(VIPS_DIRECTION_VERTICAL);
440
464
  }
441
465
  }
442
466
  // Mirror horizontally (left-right) about the y-axis
@@ -453,7 +477,7 @@ class PipelineWorker : public Napi::AsyncWorker {
453
477
  }
454
478
  image = image.rot(rotation);
455
479
  if (baton->keepGainMap) {
456
- gainMap = gainMap.rot(rotation);
480
+ gainMap = sharp::StaySequential(gainMap).rot(rotation);
457
481
  }
458
482
  }
459
483
 
@@ -557,6 +581,7 @@ class PipelineWorker : public Napi::AsyncWorker {
557
581
  // Rotate post-extract non-90 angle
558
582
  if (!baton->rotateBefore && baton->rotationAngle != 0.0) {
559
583
  MultiPageUnsupported(nPages, "Rotate");
584
+ KeepGainMapUnsupported(baton->keepGainMap, "Rotate");
560
585
  image = sharp::StaySequential(image);
561
586
  std::vector<double> background;
562
587
  std::tie(image, background) = sharp::ApplyAlpha(image, baton->rotationBackground, shouldPremultiplyAlpha);
@@ -133,7 +133,7 @@ Napi::Value format(const Napi::CallbackInfo& info) {
133
133
  input.Set("file", hasInputFile);
134
134
  input.Set("buffer", hasInputBuffer);
135
135
  input.Set("stream", hasInputBuffer);
136
- if (hasInputFile) {
136
+ if (oc) {
137
137
  const VipsForeignClass *fc = VIPS_FOREIGN_CLASS(oc);
138
138
  if (fc->suffs) {
139
139
  Napi::Array fileSuffix = Napi::Array::New(env);
@@ -56,6 +56,7 @@
56
56
  "BSD-2-Clause-Views",
57
57
  "BSD-2-Clause-first-lines",
58
58
  "BSD-2-Clause-pkgconf-disclaimer",
59
+ "BSD-2-Clause-pos-unchanged",
59
60
  "BSD-3-Clause",
60
61
  "BSD-3-Clause-Attribution",
61
62
  "BSD-3-Clause-Clear",
@@ -67,6 +68,7 @@
67
68
  "BSD-3-Clause-No-Nuclear-License-2014",
68
69
  "BSD-3-Clause-No-Nuclear-Warranty",
69
70
  "BSD-3-Clause-Open-MPI",
71
+ "BSD-3-Clause-OpenWebUI",
70
72
  "BSD-3-Clause-Sun",
71
73
  "BSD-3-Clause-Tso",
72
74
  "BSD-3-Clause-acpica",
@@ -82,9 +84,12 @@
82
84
  "BSD-Mark-Modifications",
83
85
  "BSD-Protection",
84
86
  "BSD-Source-Code",
87
+ "BSD-Source-Code-no-disclaimer",
88
+ "BSD-Source-alt-GPL",
85
89
  "BSD-Source-beginning-file",
86
90
  "BSD-Systemics",
87
91
  "BSD-Systemics-W3Works",
92
+ "BSD-ask-to-endorse",
88
93
  "BSL-1.0",
89
94
  "BUSL-1.1",
90
95
  "Baekmuk",
@@ -101,7 +106,9 @@
101
106
  "Borceux",
102
107
  "Brian-Gladman-2-Clause",
103
108
  "Brian-Gladman-3-Clause",
109
+ "Brian-Gladman-3-Clause-no-conversion",
104
110
  "Buddy",
111
+ "Bugroff",
105
112
  "C-UDA-1.0",
106
113
  "CAL-1.0",
107
114
  "CAL-1.0-Combined-Work-Exception",
@@ -124,6 +131,7 @@
124
131
  "CC-BY-NC-2.5",
125
132
  "CC-BY-NC-3.0",
126
133
  "CC-BY-NC-3.0-DE",
134
+ "CC-BY-NC-3.0-IGO",
127
135
  "CC-BY-NC-4.0",
128
136
  "CC-BY-NC-ND-1.0",
129
137
  "CC-BY-NC-ND-2.0",
@@ -236,6 +244,7 @@
236
244
  "Eurosym",
237
245
  "FBM",
238
246
  "FDK-AAC",
247
+ "FDK-MPEG-H",
239
248
  "FSFAP",
240
249
  "FSFAP-no-warranty-disclaimer",
241
250
  "FSFUL",
@@ -318,6 +327,7 @@
318
327
  "HTMLTIDY",
319
328
  "HaskellReport",
320
329
  "Hippocratic-2.1",
330
+ "Hippocratic-3.0-core",
321
331
  "IBM-pibs",
322
332
  "ICU",
323
333
  "IEC-Code-Components-EULA",
@@ -331,6 +341,7 @@
331
341
  "ImageMagick",
332
342
  "Imlib2",
333
343
  "Info-ZIP",
344
+ "Informatica",
334
345
  "Inner-Net-2.0",
335
346
  "InnoSetup",
336
347
  "Intel",
@@ -404,6 +415,7 @@
404
415
  "MS-PL",
405
416
  "MS-RL",
406
417
  "MTLL",
418
+ "MVT-1.1",
407
419
  "Mackerras-3-Clause",
408
420
  "Mackerras-3-Clause-acknowledgment",
409
421
  "MakeIndex",
@@ -637,6 +649,7 @@
637
649
  "Zlib",
638
650
  "any-OSI",
639
651
  "any-OSI-perl-modules",
652
+ "atc-game",
640
653
  "bcrypt-Solar-Designer",
641
654
  "blessing",
642
655
  "bzip2-1.0.6",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "spdx-license-ids",
3
- "version": "3.0.23",
3
+ "version": "3.0.24",
4
4
  "description": "A list of SPDX license identifiers",
5
5
  "repository": "jslicense/spdx-license-ids",
6
6
  "author": "Shinnosuke Watanabe (https://github.com/shinnn)",