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.
- package/CHANGELOG.md +6 -0
- package/WebDriverAgentMac/WebDriverAgentLib/Utilities/FBXPath.m +48 -2
- package/WebDriverAgentMac/WebDriverAgentMac.xcodeproj/project.pbxproj +4 -0
- package/build/lib/wda-mac.d.ts.map +1 -1
- package/build/lib/wda-mac.js +4 -5
- package/build/lib/wda-mac.js.map +1 -1
- package/lib/wda-mac.ts +4 -5
- package/node_modules/@appium/logger/CHANGELOG.md +8 -0
- package/node_modules/@appium/logger/package.json +3 -3
- package/node_modules/@appium/strongbox/build/lib/index.d.ts.map +1 -1
- package/node_modules/@appium/strongbox/build/lib/index.js +6 -1
- package/node_modules/@appium/strongbox/build/lib/index.js.map +1 -1
- package/node_modules/@appium/strongbox/lib/index.ts +6 -1
- package/node_modules/@appium/strongbox/package.json +2 -2
- package/node_modules/@appium/support/build/lib/fs.d.ts.map +1 -1
- package/node_modules/@appium/support/build/lib/fs.js +7 -0
- package/node_modules/@appium/support/build/lib/fs.js.map +1 -1
- package/node_modules/@appium/support/build/lib/index.d.ts.map +1 -1
- package/node_modules/@appium/support/build/lib/net.d.ts.map +1 -1
- package/node_modules/@appium/support/build/lib/net.js +6 -2
- package/node_modules/@appium/support/build/lib/net.js.map +1 -1
- package/node_modules/@appium/support/build/lib/util.d.ts.map +1 -1
- package/node_modules/@appium/support/build/lib/util.js +10 -4
- package/node_modules/@appium/support/build/lib/util.js.map +1 -1
- package/node_modules/@appium/support/build/lib/zip.d.ts.map +1 -1
- package/node_modules/@appium/support/build/lib/zip.js +2 -7
- package/node_modules/@appium/support/build/lib/zip.js.map +1 -1
- package/node_modules/@appium/support/lib/fs.ts +8 -1
- package/node_modules/@appium/support/lib/net.ts +7 -2
- package/node_modules/@appium/support/lib/util.ts +9 -3
- package/node_modules/@appium/support/lib/zip.ts +3 -9
- package/node_modules/@appium/support/package.json +9 -9
- package/node_modules/@appium/types/package.json +4 -4
- package/node_modules/@img/sharp-darwin-arm64/index.cjs +1 -1
- package/node_modules/@img/sharp-darwin-arm64/lib/sharp-darwin-arm64-0.35.5.node +0 -0
- package/node_modules/@img/sharp-darwin-arm64/package.json +2 -2
- package/node_modules/@img/sharp-libvips-darwin-arm64/README.md +1 -1
- package/node_modules/@img/sharp-libvips-darwin-arm64/lib/glib-2.0/include/glibconfig.h +2 -2
- package/node_modules/@img/sharp-libvips-darwin-arm64/lib/{libvips-cpp.8.18.6.dylib → libvips-cpp.8.18.7.dylib} +0 -0
- package/node_modules/@img/sharp-libvips-darwin-arm64/package.json +2 -2
- package/node_modules/@img/sharp-libvips-darwin-arm64/versions.json +11 -11
- package/node_modules/appium-xcode/CHANGELOG.md +28 -0
- package/node_modules/appium-xcode/README.md +1 -1
- package/node_modules/appium-xcode/package.json +14 -18
- package/node_modules/b4a/browser.js +5 -0
- package/node_modules/b4a/index.d.ts +144 -0
- package/node_modules/b4a/index.js +5 -0
- package/node_modules/b4a/package.json +4 -1
- package/node_modules/b4a/runtime.d.ts +14 -0
- package/node_modules/bare-fs/binding.c +53 -24
- package/node_modules/bare-fs/index.d.ts +12 -10
- package/node_modules/bare-fs/index.js +13 -4
- package/node_modules/bare-fs/package.json +2 -1
- package/node_modules/bare-fs/prebuilds/android-arm/bare-fs.bare +0 -0
- package/node_modules/bare-fs/prebuilds/android-arm64/bare-fs.bare +0 -0
- package/node_modules/bare-fs/prebuilds/android-ia32/bare-fs.bare +0 -0
- package/node_modules/bare-fs/prebuilds/android-x64/bare-fs.bare +0 -0
- package/node_modules/bare-fs/prebuilds/darwin-arm64/bare-fs.bare +0 -0
- package/node_modules/bare-fs/prebuilds/darwin-x64/bare-fs.bare +0 -0
- package/node_modules/bare-fs/prebuilds/ios-arm64/bare-fs.bare +0 -0
- package/node_modules/bare-fs/prebuilds/ios-arm64-simulator/bare-fs.bare +0 -0
- package/node_modules/bare-fs/prebuilds/ios-x64-simulator/bare-fs.bare +0 -0
- package/node_modules/bare-fs/prebuilds/linux-arm64/bare-fs.bare +0 -0
- package/node_modules/bare-fs/prebuilds/linux-x64/bare-fs.bare +0 -0
- package/node_modules/bare-fs/prebuilds/win32-arm64/bare-fs.bare +0 -0
- package/node_modules/bare-fs/prebuilds/win32-x64/bare-fs.bare +0 -0
- package/node_modules/bplist-creator/README.md +26 -6
- package/node_modules/bplist-creator/dist/index.cjs +508 -0
- package/node_modules/bplist-creator/dist/index.cjs.map +7 -0
- package/node_modules/bplist-creator/dist/index.d.cts +12 -0
- package/node_modules/bplist-creator/dist/index.d.ts +12 -0
- package/node_modules/bplist-creator/dist/index.mjs +472 -0
- package/node_modules/bplist-creator/dist/index.mjs.map +7 -0
- package/node_modules/bplist-creator/package.json +43 -9
- package/node_modules/bplist-parser/README.md +37 -3
- package/node_modules/bplist-parser/dist/index.cjs +385 -0
- package/node_modules/bplist-parser/dist/index.cjs.map +7 -0
- package/node_modules/bplist-parser/dist/index.d.cts +13 -0
- package/node_modules/bplist-parser/dist/index.d.ts +13 -0
- package/node_modules/bplist-parser/{bplistParser.js → dist/index.mjs} +141 -171
- package/node_modules/bplist-parser/dist/index.mjs.map +7 -0
- package/node_modules/bplist-parser/package.json +39 -12
- package/node_modules/brace-expansion/dist/commonjs/index.d.ts +4 -0
- package/node_modules/brace-expansion/dist/commonjs/index.d.ts.map +1 -1
- package/node_modules/brace-expansion/dist/commonjs/index.js +69 -25
- package/node_modules/brace-expansion/dist/commonjs/index.js.map +1 -1
- package/node_modules/brace-expansion/dist/esm/index.d.ts +4 -0
- package/node_modules/brace-expansion/dist/esm/index.d.ts.map +1 -1
- package/node_modules/brace-expansion/dist/esm/index.js +68 -24
- package/node_modules/brace-expansion/dist/esm/index.js.map +1 -1
- package/node_modules/brace-expansion/package.json +2 -1
- package/node_modules/follow-redirects/index.js +10 -1
- package/node_modules/follow-redirects/package.json +1 -1
- package/node_modules/lru-cache/dist/commonjs/react-native/diagnostics-channel-react-native.d.ts.map +1 -0
- package/node_modules/lru-cache/dist/commonjs/react-native/diagnostics-channel-react-native.js.map +1 -0
- package/node_modules/lru-cache/dist/commonjs/react-native/diagnostics-channel.d.ts +5 -0
- package/node_modules/lru-cache/dist/commonjs/react-native/diagnostics-channel.js +7 -0
- package/node_modules/lru-cache/dist/commonjs/react-native/index.d.ts +1400 -0
- package/node_modules/lru-cache/dist/commonjs/react-native/index.d.ts.map +1 -0
- package/node_modules/lru-cache/dist/commonjs/react-native/index.js +1733 -0
- package/node_modules/lru-cache/dist/commonjs/react-native/index.js.map +1 -0
- package/node_modules/lru-cache/dist/commonjs/react-native/perf.d.ts +12 -0
- package/node_modules/lru-cache/dist/commonjs/react-native/perf.d.ts.map +1 -0
- package/node_modules/lru-cache/dist/commonjs/react-native/perf.js +10 -0
- package/node_modules/lru-cache/dist/commonjs/react-native/perf.js.map +1 -0
- package/node_modules/lru-cache/dist/esm/react-native/diagnostics-channel-react-native.d.ts.map +1 -0
- package/node_modules/lru-cache/dist/esm/react-native/diagnostics-channel-react-native.js.map +1 -0
- package/node_modules/lru-cache/dist/esm/react-native/diagnostics-channel.d.ts +5 -0
- package/node_modules/lru-cache/dist/esm/react-native/diagnostics-channel.js +4 -0
- package/node_modules/lru-cache/dist/esm/react-native/index.d.ts +1400 -0
- package/node_modules/lru-cache/dist/esm/react-native/index.d.ts.map +1 -0
- package/node_modules/lru-cache/dist/esm/react-native/index.js +1729 -0
- package/node_modules/lru-cache/dist/esm/react-native/index.js.map +1 -0
- package/node_modules/lru-cache/dist/esm/react-native/perf.d.ts +12 -0
- package/node_modules/lru-cache/dist/esm/react-native/perf.d.ts.map +1 -0
- package/node_modules/lru-cache/dist/esm/react-native/perf.js +7 -0
- package/node_modules/lru-cache/dist/esm/react-native/perf.js.map +1 -0
- package/node_modules/lru-cache/package.json +27 -1
- package/node_modules/p-limit/index.d.ts +2 -0
- package/node_modules/p-limit/index.js +17 -1
- package/node_modules/p-limit/package.json +1 -1
- package/node_modules/p-limit/readme.md +2 -0
- package/node_modules/sharp/dist/index.d.cts +2 -2
- package/node_modules/sharp/dist/index.d.mts +3 -3
- package/node_modules/sharp/dist/is.cjs +8 -2
- package/node_modules/sharp/dist/is.mjs +8 -2
- package/node_modules/sharp/dist/operation.cjs +2 -2
- package/node_modules/sharp/dist/operation.mjs +2 -2
- package/node_modules/sharp/dist/output.cjs +1 -0
- package/node_modules/sharp/dist/output.mjs +1 -0
- package/node_modules/sharp/dist/resize.cjs +14 -14
- package/node_modules/sharp/dist/resize.mjs +14 -14
- package/node_modules/sharp/dist/sharp.cjs +3 -3
- package/node_modules/sharp/dist/sharp.mjs +3 -3
- package/node_modules/sharp/lib/index.d.ts +2 -2
- package/node_modules/sharp/package.json +35 -35
- package/node_modules/sharp/src/binding.gyp +1 -1
- package/node_modules/sharp/src/common.cc +4 -4
- package/node_modules/sharp/src/common.h +2 -2
- package/node_modules/sharp/src/pipeline.cc +31 -6
- package/node_modules/sharp/src/utilities.cc +1 -1
- package/node_modules/spdx-license-ids/index.json +13 -0
- package/node_modules/spdx-license-ids/package.json +1 -1
- package/node_modules/stream-buffers/.codeclimate.yml +12 -0
- package/node_modules/stream-buffers/.eslintignore +1 -0
- package/node_modules/stream-buffers/.eslintrc +25 -0
- package/node_modules/stream-buffers/.github/workflows/codeql-analysis.yml +71 -0
- package/node_modules/stream-buffers/.github/workflows/node.js.yml +31 -0
- package/node_modules/stream-buffers/.mailmap +1 -0
- package/node_modules/stream-buffers/.nvmrc +1 -0
- package/node_modules/stream-buffers/README.md +65 -65
- package/node_modules/stream-buffers/lib/constants.js +8 -6
- package/node_modules/stream-buffers/lib/readable_streambuffer.js +114 -136
- package/node_modules/stream-buffers/lib/streambuffer.js +5 -3
- package/node_modules/stream-buffers/lib/writable_streambuffer.js +72 -97
- package/node_modules/stream-buffers/package.json +7 -5
- package/node_modules/type-fest/index.d.ts +7 -7
- package/node_modules/type-fest/package.json +2 -1
- package/node_modules/type-fest/readme.md +7 -16
- package/node_modules/type-fest/source/all-extend.d.ts +9 -7
- package/node_modules/type-fest/source/array-reverse.d.ts +13 -12
- package/node_modules/type-fest/source/array-tail.d.ts +3 -3
- package/node_modules/type-fest/source/delimiter-case.d.ts +1 -1
- package/node_modules/type-fest/source/get.d.ts +1 -1
- package/node_modules/type-fest/source/int-closed-range.d.ts +4 -1
- package/node_modules/type-fest/source/int-range.d.ts +56 -9
- package/node_modules/type-fest/source/internal/array.d.ts +14 -13
- package/node_modules/type-fest/source/internal/numeric.d.ts +0 -38
- package/node_modules/type-fest/source/internal/object.d.ts +30 -1
- package/node_modules/type-fest/source/is-boolean-literal.d.ts +39 -0
- package/node_modules/type-fest/source/is-literal.d.ts +43 -269
- package/node_modules/type-fest/source/is-numeric-literal.d.ts +50 -0
- package/node_modules/type-fest/source/is-string-literal.d.ts +72 -0
- package/node_modules/type-fest/source/is-symbol-literal.d.ts +39 -0
- package/node_modules/type-fest/source/is-tuple.d.ts +3 -3
- package/node_modules/type-fest/source/jsonify.d.ts +1 -5
- package/node_modules/type-fest/source/merge-deep.d.ts +3 -3
- package/node_modules/type-fest/source/remove-prefix.d.ts +1 -1
- package/node_modules/type-fest/source/remove-suffix.d.ts +1 -1
- package/node_modules/type-fest/source/rename-keys.d.ts +163 -0
- package/node_modules/type-fest/source/set-required.d.ts +10 -9
- package/node_modules/type-fest/source/shared-union-fields-deep.d.ts +6 -4
- package/node_modules/type-fest/source/some-extend.d.ts +9 -7
- package/node_modules/type-fest/source/split-on-rest-element.d.ts +14 -13
- package/node_modules/type-fest/source/split.d.ts +22 -11
- package/node_modules/type-fest/source/string-repeat.d.ts +1 -1
- package/node_modules/type-fest/source/string-to-array.d.ts +1 -1
- package/node_modules/type-fest/source/tsconfig-json.d.ts +1 -1
- package/node_modules/type-fest/source/typed-array.d.ts +6 -0
- package/node_modules/type-fest/source/union-max.d.ts +56 -0
- package/node_modules/type-fest/source/writable.d.ts +2 -2
- package/package.json +3 -3
- package/node_modules/@appium/support/node_modules/asyncbox/LICENSE +0 -203
- package/node_modules/@appium/support/node_modules/asyncbox/README.md +0 -215
- package/node_modules/@appium/support/node_modules/asyncbox/build/cjs/lib/asyncbox.d.ts +0 -103
- package/node_modules/@appium/support/node_modules/asyncbox/build/cjs/lib/asyncbox.d.ts.map +0 -1
- package/node_modules/@appium/support/node_modules/asyncbox/build/cjs/lib/asyncbox.js +0 -301
- package/node_modules/@appium/support/node_modules/asyncbox/build/cjs/lib/asyncbox.js.map +0 -1
- package/node_modules/@appium/support/node_modules/asyncbox/build/cjs/lib/types.d.ts +0 -84
- package/node_modules/@appium/support/node_modules/asyncbox/build/cjs/lib/types.d.ts.map +0 -1
- package/node_modules/@appium/support/node_modules/asyncbox/build/cjs/lib/types.js +0 -3
- package/node_modules/@appium/support/node_modules/asyncbox/build/cjs/lib/types.js.map +0 -1
- package/node_modules/@appium/support/node_modules/asyncbox/build/cjs/package.json +0 -3
- package/node_modules/@appium/support/node_modules/asyncbox/build/esm/lib/asyncbox.d.ts +0 -103
- package/node_modules/@appium/support/node_modules/asyncbox/build/esm/lib/asyncbox.d.ts.map +0 -1
- package/node_modules/@appium/support/node_modules/asyncbox/build/esm/lib/asyncbox.js +0 -288
- package/node_modules/@appium/support/node_modules/asyncbox/build/esm/lib/asyncbox.js.map +0 -1
- package/node_modules/@appium/support/node_modules/asyncbox/build/esm/lib/types.d.ts +0 -84
- package/node_modules/@appium/support/node_modules/asyncbox/build/esm/lib/types.d.ts.map +0 -1
- package/node_modules/@appium/support/node_modules/asyncbox/build/esm/lib/types.js +0 -2
- package/node_modules/@appium/support/node_modules/asyncbox/build/esm/lib/types.js.map +0 -1
- package/node_modules/@appium/support/node_modules/asyncbox/build/esm/package.json +0 -3
- package/node_modules/@appium/support/node_modules/asyncbox/lib/asyncbox.ts +0 -365
- package/node_modules/@appium/support/node_modules/asyncbox/lib/types.ts +0 -88
- package/node_modules/@appium/support/node_modules/asyncbox/package.json +0 -74
- package/node_modules/@appium/support/node_modules/axios/CHANGELOG.md +0 -1872
- package/node_modules/@appium/support/node_modules/axios/LICENSE +0 -7
- package/node_modules/@appium/support/node_modules/axios/MIGRATION_GUIDE.md +0 -877
- package/node_modules/@appium/support/node_modules/axios/README.md +0 -2623
- package/node_modules/@appium/support/node_modules/axios/dist/axios.js +0 -5509
- package/node_modules/@appium/support/node_modules/axios/dist/axios.min.js +0 -5
- package/node_modules/@appium/support/node_modules/axios/dist/axios.min.js.map +0 -1
- package/node_modules/@appium/support/node_modules/axios/dist/browser/axios.cjs +0 -5469
- package/node_modules/@appium/support/node_modules/axios/dist/esm/axios.js +0 -5490
- package/node_modules/@appium/support/node_modules/axios/dist/esm/axios.min.js +0 -3
- package/node_modules/@appium/support/node_modules/axios/dist/esm/axios.min.js.map +0 -1
- package/node_modules/@appium/support/node_modules/axios/dist/node/axios.cjs +0 -6356
- package/node_modules/@appium/support/node_modules/axios/index.d.cts +0 -762
- package/node_modules/@appium/support/node_modules/axios/index.d.ts +0 -783
- package/node_modules/@appium/support/node_modules/axios/index.js +0 -45
- package/node_modules/@appium/support/node_modules/axios/lib/adapters/README.md +0 -36
- package/node_modules/@appium/support/node_modules/axios/lib/adapters/adapters.js +0 -132
- package/node_modules/@appium/support/node_modules/axios/lib/adapters/fetch.js +0 -643
- package/node_modules/@appium/support/node_modules/axios/lib/adapters/http.js +0 -1406
- package/node_modules/@appium/support/node_modules/axios/lib/adapters/xhr.js +0 -228
- package/node_modules/@appium/support/node_modules/axios/lib/axios.js +0 -89
- package/node_modules/@appium/support/node_modules/axios/lib/cancel/CancelToken.js +0 -135
- package/node_modules/@appium/support/node_modules/axios/lib/cancel/CanceledError.js +0 -22
- package/node_modules/@appium/support/node_modules/axios/lib/cancel/isCancel.js +0 -5
- package/node_modules/@appium/support/node_modules/axios/lib/core/Axios.js +0 -301
- package/node_modules/@appium/support/node_modules/axios/lib/core/AxiosError.js +0 -219
- package/node_modules/@appium/support/node_modules/axios/lib/core/AxiosHeaders.js +0 -474
- package/node_modules/@appium/support/node_modules/axios/lib/core/InterceptorManager.js +0 -72
- package/node_modules/@appium/support/node_modules/axios/lib/core/README.md +0 -8
- package/node_modules/@appium/support/node_modules/axios/lib/core/buildFullPath.js +0 -88
- package/node_modules/@appium/support/node_modules/axios/lib/core/dispatchRequest.js +0 -89
- package/node_modules/@appium/support/node_modules/axios/lib/core/mergeConfig.js +0 -174
- package/node_modules/@appium/support/node_modules/axios/lib/core/setFormDataHeaders.js +0 -27
- package/node_modules/@appium/support/node_modules/axios/lib/core/settle.js +0 -27
- package/node_modules/@appium/support/node_modules/axios/lib/core/transformData.js +0 -28
- package/node_modules/@appium/support/node_modules/axios/lib/defaults/index.js +0 -177
- package/node_modules/@appium/support/node_modules/axios/lib/defaults/transitional.js +0 -10
- package/node_modules/@appium/support/node_modules/axios/lib/env/README.md +0 -3
- package/node_modules/@appium/support/node_modules/axios/lib/env/classes/FormData.js +0 -2
- package/node_modules/@appium/support/node_modules/axios/lib/env/data.js +0 -1
- package/node_modules/@appium/support/node_modules/axios/lib/helpers/AxiosTransformStream.js +0 -156
- package/node_modules/@appium/support/node_modules/axios/lib/helpers/AxiosURLSearchParams.js +0 -59
- package/node_modules/@appium/support/node_modules/axios/lib/helpers/Http2Sessions.js +0 -119
- package/node_modules/@appium/support/node_modules/axios/lib/helpers/HttpStatusCode.js +0 -78
- package/node_modules/@appium/support/node_modules/axios/lib/helpers/README.md +0 -7
- package/node_modules/@appium/support/node_modules/axios/lib/helpers/ZlibHeaderTransformStream.js +0 -29
- package/node_modules/@appium/support/node_modules/axios/lib/helpers/bind.js +0 -14
- package/node_modules/@appium/support/node_modules/axios/lib/helpers/buildURL.js +0 -69
- package/node_modules/@appium/support/node_modules/axios/lib/helpers/callbackify.js +0 -18
- package/node_modules/@appium/support/node_modules/axios/lib/helpers/combineURLs.js +0 -23
- package/node_modules/@appium/support/node_modules/axios/lib/helpers/composeSignals.js +0 -68
- package/node_modules/@appium/support/node_modules/axios/lib/helpers/cookies.js +0 -64
- package/node_modules/@appium/support/node_modules/axios/lib/helpers/deprecatedMethod.js +0 -31
- package/node_modules/@appium/support/node_modules/axios/lib/helpers/estimateDataURLDecodedBytes.js +0 -166
- package/node_modules/@appium/support/node_modules/axios/lib/helpers/formDataToJSON.js +0 -125
- package/node_modules/@appium/support/node_modules/axios/lib/helpers/formDataToStream.js +0 -119
- package/node_modules/@appium/support/node_modules/axios/lib/helpers/fromDataURI.js +0 -68
- package/node_modules/@appium/support/node_modules/axios/lib/helpers/isAbsoluteURL.js +0 -19
- package/node_modules/@appium/support/node_modules/axios/lib/helpers/isAxiosError.js +0 -14
- package/node_modules/@appium/support/node_modules/axios/lib/helpers/isURLSameOrigin.js +0 -16
- package/node_modules/@appium/support/node_modules/axios/lib/helpers/null.js +0 -2
- package/node_modules/@appium/support/node_modules/axios/lib/helpers/parseHeaders.js +0 -71
- package/node_modules/@appium/support/node_modules/axios/lib/helpers/parseProtocol.js +0 -6
- package/node_modules/@appium/support/node_modules/axios/lib/helpers/progressEventReducer.js +0 -54
- package/node_modules/@appium/support/node_modules/axios/lib/helpers/readBlob.js +0 -15
- package/node_modules/@appium/support/node_modules/axios/lib/helpers/resolveConfig.js +0 -105
- package/node_modules/@appium/support/node_modules/axios/lib/helpers/sanitizeHeaderValue.js +0 -60
- package/node_modules/@appium/support/node_modules/axios/lib/helpers/shouldBypassProxy.js +0 -329
- package/node_modules/@appium/support/node_modules/axios/lib/helpers/speedometer.js +0 -55
- package/node_modules/@appium/support/node_modules/axios/lib/helpers/spread.js +0 -28
- package/node_modules/@appium/support/node_modules/axios/lib/helpers/throttle.js +0 -44
- package/node_modules/@appium/support/node_modules/axios/lib/helpers/toFormData.js +0 -286
- package/node_modules/@appium/support/node_modules/axios/lib/helpers/toURLEncodedForm.js +0 -19
- package/node_modules/@appium/support/node_modules/axios/lib/helpers/trackStream.js +0 -89
- package/node_modules/@appium/support/node_modules/axios/lib/helpers/validator.js +0 -112
- package/node_modules/@appium/support/node_modules/axios/lib/platform/browser/classes/Blob.js +0 -3
- package/node_modules/@appium/support/node_modules/axios/lib/platform/browser/classes/FormData.js +0 -3
- package/node_modules/@appium/support/node_modules/axios/lib/platform/browser/classes/URLSearchParams.js +0 -4
- package/node_modules/@appium/support/node_modules/axios/lib/platform/browser/index.js +0 -13
- package/node_modules/@appium/support/node_modules/axios/lib/platform/common/utils.js +0 -52
- package/node_modules/@appium/support/node_modules/axios/lib/platform/index.js +0 -7
- package/node_modules/@appium/support/node_modules/axios/lib/platform/node/classes/Buffer.js +0 -11
- package/node_modules/@appium/support/node_modules/axios/lib/platform/node/classes/FormData.js +0 -3
- package/node_modules/@appium/support/node_modules/axios/lib/platform/node/classes/URLSearchParams.js +0 -4
- package/node_modules/@appium/support/node_modules/axios/lib/platform/node/index.js +0 -37
- package/node_modules/@appium/support/node_modules/axios/lib/utils.js +0 -1029
- package/node_modules/@appium/support/node_modules/axios/package.json +0 -203
- package/node_modules/@img/sharp-darwin-arm64/lib/sharp-darwin-arm64-0.35.4.node +0 -0
- package/node_modules/big-integer/BigInteger.d.ts +0 -2393
- package/node_modules/big-integer/BigInteger.js +0 -1453
- package/node_modules/big-integer/BigInteger.min.js +0 -1
- package/node_modules/big-integer/LICENSE +0 -24
- package/node_modules/big-integer/README.md +0 -589
- package/node_modules/big-integer/bower.json +0 -29
- package/node_modules/big-integer/package.json +0 -48
- package/node_modules/big-integer/tsconfig.json +0 -24
- package/node_modules/bplist-creator/bplistCreator.d.ts +0 -8
- package/node_modules/bplist-creator/bplistCreator.js +0 -460
- package/node_modules/bplist-creator/test/airplay.bplist +0 -0
- package/node_modules/bplist-creator/test/binaryData.bplist +0 -0
- package/node_modules/bplist-creator/test/creatorTest.js +0 -211
- package/node_modules/bplist-creator/test/iTunes-small.bplist +0 -0
- package/node_modules/bplist-creator/test/integers.bplist +0 -0
- package/node_modules/bplist-creator/test/sample1.bplist +0 -0
- package/node_modules/bplist-creator/test/sample2.bplist +0 -0
- package/node_modules/bplist-creator/test/uid.bplist +0 -0
- package/node_modules/bplist-creator/test/utf16.bplist +0 -0
- package/node_modules/bplist-parser/.editorconfig +0 -12
- package/node_modules/bplist-parser/.eslintignore +0 -1
- package/node_modules/bplist-parser/.eslintrc.js +0 -296
- package/node_modules/bplist-parser/bplistParser.d.ts +0 -8
- package/node_modules/stream-buffers/.travis.yml +0 -28
- package/node_modules/stream-buffers/coverage/coverage.json +0 -1
- package/node_modules/stream-buffers/coverage/lcov-report/base.css +0 -182
- package/node_modules/stream-buffers/coverage/lcov-report/index.html +0 -73
- package/node_modules/stream-buffers/coverage/lcov-report/lib/constants.js.html +0 -63
- package/node_modules/stream-buffers/coverage/lcov-report/lib/index.html +0 -112
- package/node_modules/stream-buffers/coverage/lcov-report/lib/readable_streambuffer.js.html +0 -453
- package/node_modules/stream-buffers/coverage/lcov-report/lib/streambuffer.js.html +0 -54
- package/node_modules/stream-buffers/coverage/lcov-report/lib/writable_streambuffer.js.html +0 -336
- package/node_modules/stream-buffers/coverage/lcov-report/prettify.css +0 -1
- package/node_modules/stream-buffers/coverage/lcov-report/prettify.js +0 -1
- package/node_modules/stream-buffers/coverage/lcov-report/sort-arrow-sprite.png +0 -0
- package/node_modules/stream-buffers/coverage/lcov-report/sorter.js +0 -156
- package/node_modules/stream-buffers/coverage/lcov.info +0 -305
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "big-integer",
|
|
3
|
-
"description": "An arbitrary length integer library for Javascript",
|
|
4
|
-
"main": "./BigInteger.js",
|
|
5
|
-
"authors": [
|
|
6
|
-
"Peter Olson"
|
|
7
|
-
],
|
|
8
|
-
"license": "Unlicense",
|
|
9
|
-
"keywords": [
|
|
10
|
-
"math",
|
|
11
|
-
"big",
|
|
12
|
-
"bignum",
|
|
13
|
-
"bigint",
|
|
14
|
-
"biginteger",
|
|
15
|
-
"integer",
|
|
16
|
-
"arbitrary",
|
|
17
|
-
"precision",
|
|
18
|
-
"arithmetic"
|
|
19
|
-
],
|
|
20
|
-
"homepage": "https://github.com/peterolson/BigInteger.js",
|
|
21
|
-
"ignore": [
|
|
22
|
-
"**/.*",
|
|
23
|
-
"node_modules",
|
|
24
|
-
"bower_components",
|
|
25
|
-
"test",
|
|
26
|
-
"coverage",
|
|
27
|
-
"tests"
|
|
28
|
-
]
|
|
29
|
-
}
|
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "big-integer",
|
|
3
|
-
"version": "1.6.52",
|
|
4
|
-
"author": "Peter Olson <peter.e.c.olson+npm@gmail.com>",
|
|
5
|
-
"description": "An arbitrary length integer library for Javascript",
|
|
6
|
-
"contributors": [],
|
|
7
|
-
"bin": {},
|
|
8
|
-
"scripts": {
|
|
9
|
-
"test": "tsc && karma start my.conf.js && node spec/tsDefinitions.js",
|
|
10
|
-
"minify": "uglifyjs BigInteger.js -o BigInteger.min.js"
|
|
11
|
-
},
|
|
12
|
-
"main": "./BigInteger",
|
|
13
|
-
"repository": {
|
|
14
|
-
"type": "git",
|
|
15
|
-
"url": "git@github.com:peterolson/BigInteger.js.git"
|
|
16
|
-
},
|
|
17
|
-
"keywords": [
|
|
18
|
-
"math",
|
|
19
|
-
"big",
|
|
20
|
-
"bignum",
|
|
21
|
-
"bigint",
|
|
22
|
-
"biginteger",
|
|
23
|
-
"integer",
|
|
24
|
-
"arbitrary",
|
|
25
|
-
"precision",
|
|
26
|
-
"arithmetic"
|
|
27
|
-
],
|
|
28
|
-
"devDependencies": {
|
|
29
|
-
"@types/lodash": "^4.14.175",
|
|
30
|
-
"@types/node": "^7.10.2",
|
|
31
|
-
"coveralls": "^3.0.6",
|
|
32
|
-
"jasmine": "3.5.0",
|
|
33
|
-
"jasmine-core": "^3.5.0",
|
|
34
|
-
"karma": "^6.3.4",
|
|
35
|
-
"karma-cli": "^2.0.0",
|
|
36
|
-
"karma-coverage": "^2.0.3",
|
|
37
|
-
"karma-jasmine": "^4.0.1",
|
|
38
|
-
"karma-phantomjs-launcher": "^1.0.4",
|
|
39
|
-
"lodash": "^4.17.21",
|
|
40
|
-
"typescript": "^5.3.2",
|
|
41
|
-
"uglify-js": "^3.17.4"
|
|
42
|
-
},
|
|
43
|
-
"license": "Unlicense",
|
|
44
|
-
"engines": {
|
|
45
|
-
"node": ">=0.6"
|
|
46
|
-
},
|
|
47
|
-
"typings": "./BigInteger.d.ts"
|
|
48
|
-
}
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"compilerOptions": {
|
|
3
|
-
"target": "esnext",
|
|
4
|
-
"module": "commonjs",
|
|
5
|
-
"lib": [
|
|
6
|
-
"es6"
|
|
7
|
-
],
|
|
8
|
-
"noImplicitAny": true,
|
|
9
|
-
"noImplicitThis": true,
|
|
10
|
-
"strictNullChecks": false,
|
|
11
|
-
"baseUrl": "./",
|
|
12
|
-
"moduleResolution": "node",
|
|
13
|
-
"allowJs": true,
|
|
14
|
-
"typeRoots": [
|
|
15
|
-
"./"
|
|
16
|
-
],
|
|
17
|
-
"types": [],
|
|
18
|
-
"forceConsistentCasingInFileNames": true
|
|
19
|
-
},
|
|
20
|
-
"files": [
|
|
21
|
-
"BigInteger.d.ts",
|
|
22
|
-
"spec/tsDefinitions.ts"
|
|
23
|
-
]
|
|
24
|
-
}
|
|
@@ -1,460 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
// adapted from http://code.google.com/p/plist/source/browse/trunk/src/main/java/com/dd/plist/BinaryPropertyListWriter.java
|
|
4
|
-
|
|
5
|
-
var streamBuffers = require("stream-buffers");
|
|
6
|
-
|
|
7
|
-
var debug = false;
|
|
8
|
-
|
|
9
|
-
function Real(value) {
|
|
10
|
-
this.value = value;
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
module.exports = function(dicts) {
|
|
14
|
-
var buffer = new streamBuffers.WritableStreamBuffer();
|
|
15
|
-
buffer.write(Buffer.from("bplist00"));
|
|
16
|
-
|
|
17
|
-
if (debug) {
|
|
18
|
-
console.log('create', require('util').inspect(dicts, false, 10));
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
if (dicts instanceof Array && dicts.length === 1) {
|
|
22
|
-
dicts = dicts[0];
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
var entries = toEntries(dicts);
|
|
26
|
-
if (debug) {
|
|
27
|
-
console.log('entries', entries);
|
|
28
|
-
}
|
|
29
|
-
var idSizeInBytes = computeIdSizeInBytes(entries.length);
|
|
30
|
-
var offsets = [];
|
|
31
|
-
var offsetSizeInBytes;
|
|
32
|
-
var offsetTableOffset;
|
|
33
|
-
|
|
34
|
-
updateEntryIds();
|
|
35
|
-
|
|
36
|
-
entries.forEach(function(entry, entryIdx) {
|
|
37
|
-
offsets[entryIdx] = buffer.size();
|
|
38
|
-
if (!entry) {
|
|
39
|
-
buffer.write(0x00);
|
|
40
|
-
} else {
|
|
41
|
-
write(entry);
|
|
42
|
-
}
|
|
43
|
-
});
|
|
44
|
-
|
|
45
|
-
writeOffsetTable();
|
|
46
|
-
writeTrailer();
|
|
47
|
-
return buffer.getContents();
|
|
48
|
-
|
|
49
|
-
function updateEntryIds() {
|
|
50
|
-
var strings = {};
|
|
51
|
-
var entryId = 0;
|
|
52
|
-
entries.forEach(function(entry) {
|
|
53
|
-
if (entry.id) {
|
|
54
|
-
return;
|
|
55
|
-
}
|
|
56
|
-
if (entry.type === 'string') {
|
|
57
|
-
if (!entry.bplistOverride && strings.hasOwnProperty(entry.value)) {
|
|
58
|
-
entry.type = 'stringref';
|
|
59
|
-
entry.id = strings[entry.value];
|
|
60
|
-
} else {
|
|
61
|
-
strings[entry.value] = entry.id = entryId++;
|
|
62
|
-
}
|
|
63
|
-
} else {
|
|
64
|
-
entry.id = entryId++;
|
|
65
|
-
}
|
|
66
|
-
});
|
|
67
|
-
|
|
68
|
-
entries = entries.filter(function(entry) {
|
|
69
|
-
return (entry.type !== 'stringref');
|
|
70
|
-
});
|
|
71
|
-
}
|
|
72
|
-
|
|
73
|
-
function writeTrailer() {
|
|
74
|
-
if (debug) {
|
|
75
|
-
console.log('0x' + buffer.size().toString(16), 'writeTrailer');
|
|
76
|
-
}
|
|
77
|
-
// 6 null bytes
|
|
78
|
-
buffer.write(Buffer.from([0, 0, 0, 0, 0, 0]));
|
|
79
|
-
|
|
80
|
-
// size of an offset
|
|
81
|
-
if (debug) {
|
|
82
|
-
console.log('0x' + buffer.size().toString(16), 'writeTrailer(offsetSizeInBytes):', offsetSizeInBytes);
|
|
83
|
-
}
|
|
84
|
-
writeByte(offsetSizeInBytes);
|
|
85
|
-
|
|
86
|
-
// size of a ref
|
|
87
|
-
if (debug) {
|
|
88
|
-
console.log('0x' + buffer.size().toString(16), 'writeTrailer(offsetSizeInBytes):', idSizeInBytes);
|
|
89
|
-
}
|
|
90
|
-
writeByte(idSizeInBytes);
|
|
91
|
-
|
|
92
|
-
// number of objects
|
|
93
|
-
if (debug) {
|
|
94
|
-
console.log('0x' + buffer.size().toString(16), 'writeTrailer(number of objects):', entries.length);
|
|
95
|
-
}
|
|
96
|
-
writeLong(entries.length);
|
|
97
|
-
|
|
98
|
-
// top object
|
|
99
|
-
if (debug) {
|
|
100
|
-
console.log('0x' + buffer.size().toString(16), 'writeTrailer(top object)');
|
|
101
|
-
}
|
|
102
|
-
writeLong(0);
|
|
103
|
-
|
|
104
|
-
// offset table offset
|
|
105
|
-
if (debug) {
|
|
106
|
-
console.log('0x' + buffer.size().toString(16), 'writeTrailer(offset table offset):', offsetTableOffset);
|
|
107
|
-
}
|
|
108
|
-
writeLong(offsetTableOffset);
|
|
109
|
-
}
|
|
110
|
-
|
|
111
|
-
function writeOffsetTable() {
|
|
112
|
-
if (debug) {
|
|
113
|
-
console.log('0x' + buffer.size().toString(16), 'writeOffsetTable');
|
|
114
|
-
}
|
|
115
|
-
offsetTableOffset = buffer.size();
|
|
116
|
-
offsetSizeInBytes = computeOffsetSizeInBytes(offsetTableOffset);
|
|
117
|
-
offsets.forEach(function(offset) {
|
|
118
|
-
writeBytes(offset, offsetSizeInBytes);
|
|
119
|
-
});
|
|
120
|
-
}
|
|
121
|
-
|
|
122
|
-
function write(entry) {
|
|
123
|
-
switch (entry.type) {
|
|
124
|
-
case 'dict':
|
|
125
|
-
writeDict(entry);
|
|
126
|
-
break;
|
|
127
|
-
case 'number':
|
|
128
|
-
case 'double':
|
|
129
|
-
writeNumber(entry);
|
|
130
|
-
break;
|
|
131
|
-
case 'UID':
|
|
132
|
-
writeUID(entry);
|
|
133
|
-
break;
|
|
134
|
-
case 'array':
|
|
135
|
-
writeArray(entry);
|
|
136
|
-
break;
|
|
137
|
-
case 'boolean':
|
|
138
|
-
writeBoolean(entry);
|
|
139
|
-
break;
|
|
140
|
-
case 'string':
|
|
141
|
-
case 'string-utf16':
|
|
142
|
-
writeString(entry);
|
|
143
|
-
break;
|
|
144
|
-
case 'date':
|
|
145
|
-
writeDate(entry);
|
|
146
|
-
break;
|
|
147
|
-
case 'data':
|
|
148
|
-
writeData(entry);
|
|
149
|
-
break;
|
|
150
|
-
default:
|
|
151
|
-
throw new Error("unhandled entry type: " + entry.type);
|
|
152
|
-
}
|
|
153
|
-
}
|
|
154
|
-
|
|
155
|
-
function writeDate(entry) {
|
|
156
|
-
writeByte(0x33);
|
|
157
|
-
var date = (Date.parse(entry.value)/1000) - 978307200
|
|
158
|
-
writeDouble(date)
|
|
159
|
-
}
|
|
160
|
-
|
|
161
|
-
function writeDict(entry) {
|
|
162
|
-
if (debug) {
|
|
163
|
-
var keysStr = entry.entryKeys.map(function(k) {return k.id;});
|
|
164
|
-
var valsStr = entry.entryValues.map(function(k) {return k.id;});
|
|
165
|
-
console.log('0x' + buffer.size().toString(16), 'writeDict', '(id: ' + entry.id + ')', '(keys: ' + keysStr + ')', '(values: ' + valsStr + ')');
|
|
166
|
-
}
|
|
167
|
-
writeIntHeader(0xD, entry.entryKeys.length);
|
|
168
|
-
entry.entryKeys.forEach(function(entry) {
|
|
169
|
-
writeID(entry.id);
|
|
170
|
-
});
|
|
171
|
-
entry.entryValues.forEach(function(entry) {
|
|
172
|
-
writeID(entry.id);
|
|
173
|
-
});
|
|
174
|
-
}
|
|
175
|
-
|
|
176
|
-
function writeNumber(entry) {
|
|
177
|
-
if (debug) {
|
|
178
|
-
console.log('0x' + buffer.size().toString(16), 'writeNumber', entry.value, ' (type: ' + entry.type + ')', '(id: ' + entry.id + ')');
|
|
179
|
-
}
|
|
180
|
-
|
|
181
|
-
if (typeof entry.value === 'bigint') {
|
|
182
|
-
var width = 16;
|
|
183
|
-
var hex = entry.value.toString(width);
|
|
184
|
-
var buf = Buffer.from(hex.padStart(width * 2, '0').slice(0, width * 2), 'hex');
|
|
185
|
-
writeByte(0x14);
|
|
186
|
-
buffer.write(buf);
|
|
187
|
-
} else if (entry.type !== 'double' && parseFloat(entry.value).toFixed() == entry.value) {
|
|
188
|
-
if (entry.value < 0) {
|
|
189
|
-
writeByte(0x13);
|
|
190
|
-
writeBytes(entry.value, 8, true);
|
|
191
|
-
} else if (entry.value <= 0xff) {
|
|
192
|
-
writeByte(0x10);
|
|
193
|
-
writeBytes(entry.value, 1);
|
|
194
|
-
} else if (entry.value <= 0xffff) {
|
|
195
|
-
writeByte(0x11);
|
|
196
|
-
writeBytes(entry.value, 2);
|
|
197
|
-
} else if (entry.value <= 0xffffffff) {
|
|
198
|
-
writeByte(0x12);
|
|
199
|
-
writeBytes(entry.value, 4);
|
|
200
|
-
} else {
|
|
201
|
-
writeByte(0x13);
|
|
202
|
-
writeBytes(entry.value, 8);
|
|
203
|
-
}
|
|
204
|
-
} else {
|
|
205
|
-
writeByte(0x23);
|
|
206
|
-
writeDouble(entry.value);
|
|
207
|
-
}
|
|
208
|
-
}
|
|
209
|
-
|
|
210
|
-
function writeUID(entry) {
|
|
211
|
-
if (debug) {
|
|
212
|
-
console.log('0x' + buffer.size().toString(16), 'writeUID', entry.value, ' (type: ' + entry.type + ')', '(id: ' + entry.id + ')');
|
|
213
|
-
}
|
|
214
|
-
|
|
215
|
-
writeIntHeader(0x8, 0x0);
|
|
216
|
-
writeID(entry.value);
|
|
217
|
-
}
|
|
218
|
-
|
|
219
|
-
function writeArray(entry) {
|
|
220
|
-
if (debug) {
|
|
221
|
-
console.log('0x' + buffer.size().toString(16), 'writeArray (length: ' + entry.entries.length + ')', '(id: ' + entry.id + ')');
|
|
222
|
-
}
|
|
223
|
-
writeIntHeader(0xA, entry.entries.length);
|
|
224
|
-
entry.entries.forEach(function(e) {
|
|
225
|
-
writeID(e.id);
|
|
226
|
-
});
|
|
227
|
-
}
|
|
228
|
-
|
|
229
|
-
function writeBoolean(entry) {
|
|
230
|
-
if (debug) {
|
|
231
|
-
console.log('0x' + buffer.size().toString(16), 'writeBoolean', entry.value, '(id: ' + entry.id + ')');
|
|
232
|
-
}
|
|
233
|
-
writeByte(entry.value ? 0x09 : 0x08);
|
|
234
|
-
}
|
|
235
|
-
|
|
236
|
-
function writeString(entry) {
|
|
237
|
-
if (debug) {
|
|
238
|
-
console.log('0x' + buffer.size().toString(16), 'writeString', entry.value, '(id: ' + entry.id + ')');
|
|
239
|
-
}
|
|
240
|
-
if (entry.type === 'string-utf16' || mustBeUtf16(entry.value)) {
|
|
241
|
-
var utf16 = Buffer.from(entry.value, 'ucs2');
|
|
242
|
-
writeIntHeader(0x6, utf16.length / 2);
|
|
243
|
-
// needs to be big endian so swap the bytes
|
|
244
|
-
for (var i = 0; i < utf16.length; i += 2) {
|
|
245
|
-
var t = utf16[i + 0];
|
|
246
|
-
utf16[i + 0] = utf16[i + 1];
|
|
247
|
-
utf16[i + 1] = t;
|
|
248
|
-
}
|
|
249
|
-
buffer.write(utf16);
|
|
250
|
-
} else {
|
|
251
|
-
var utf8 = Buffer.from(entry.value, 'ascii');
|
|
252
|
-
writeIntHeader(0x5, utf8.length);
|
|
253
|
-
buffer.write(utf8);
|
|
254
|
-
}
|
|
255
|
-
}
|
|
256
|
-
|
|
257
|
-
function writeData(entry) {
|
|
258
|
-
if (debug) {
|
|
259
|
-
console.log('0x' + buffer.size().toString(16), 'writeData', entry.value, '(id: ' + entry.id + ')');
|
|
260
|
-
}
|
|
261
|
-
writeIntHeader(0x4, entry.value.length);
|
|
262
|
-
buffer.write(entry.value);
|
|
263
|
-
}
|
|
264
|
-
|
|
265
|
-
function writeLong(l) {
|
|
266
|
-
writeBytes(l, 8);
|
|
267
|
-
}
|
|
268
|
-
|
|
269
|
-
function writeByte(b) {
|
|
270
|
-
buffer.write(Buffer.from([b]));
|
|
271
|
-
}
|
|
272
|
-
|
|
273
|
-
function writeDouble(v) {
|
|
274
|
-
var buf = Buffer.alloc(8);
|
|
275
|
-
buf.writeDoubleBE(v, 0);
|
|
276
|
-
buffer.write(buf);
|
|
277
|
-
}
|
|
278
|
-
|
|
279
|
-
function writeIntHeader(kind, value) {
|
|
280
|
-
if (value < 15) {
|
|
281
|
-
writeByte((kind << 4) + value);
|
|
282
|
-
} else if (value < 256) {
|
|
283
|
-
writeByte((kind << 4) + 15);
|
|
284
|
-
writeByte(0x10);
|
|
285
|
-
writeBytes(value, 1);
|
|
286
|
-
} else if (value < 65536) {
|
|
287
|
-
writeByte((kind << 4) + 15);
|
|
288
|
-
writeByte(0x11);
|
|
289
|
-
writeBytes(value, 2);
|
|
290
|
-
} else {
|
|
291
|
-
writeByte((kind << 4) + 15);
|
|
292
|
-
writeByte(0x12);
|
|
293
|
-
writeBytes(value, 4);
|
|
294
|
-
}
|
|
295
|
-
}
|
|
296
|
-
|
|
297
|
-
function writeID(id) {
|
|
298
|
-
writeBytes(id, idSizeInBytes);
|
|
299
|
-
}
|
|
300
|
-
|
|
301
|
-
function writeBytes(value, bytes, is_signedint) {
|
|
302
|
-
// write low-order bytes big-endian style
|
|
303
|
-
var buf = Buffer.alloc(bytes);
|
|
304
|
-
var z = 0;
|
|
305
|
-
|
|
306
|
-
// javascript doesn't handle large numbers
|
|
307
|
-
while (bytes > 4) {
|
|
308
|
-
buf[z++] = is_signedint ? 0xff : 0;
|
|
309
|
-
bytes--;
|
|
310
|
-
}
|
|
311
|
-
|
|
312
|
-
for (var i = bytes - 1; i >= 0; i--) {
|
|
313
|
-
buf[z++] = value >> (8 * i);
|
|
314
|
-
}
|
|
315
|
-
buffer.write(buf);
|
|
316
|
-
}
|
|
317
|
-
|
|
318
|
-
function mustBeUtf16(string) {
|
|
319
|
-
return Buffer.byteLength(string, 'utf8') != string.length;
|
|
320
|
-
}
|
|
321
|
-
};
|
|
322
|
-
|
|
323
|
-
function toEntries(dicts) {
|
|
324
|
-
if (dicts.bplistOverride) {
|
|
325
|
-
return [dicts];
|
|
326
|
-
}
|
|
327
|
-
|
|
328
|
-
if (dicts instanceof Array) {
|
|
329
|
-
return toEntriesArray(dicts);
|
|
330
|
-
} else if (dicts instanceof Buffer) {
|
|
331
|
-
return [
|
|
332
|
-
{
|
|
333
|
-
type: 'data',
|
|
334
|
-
value: dicts
|
|
335
|
-
}
|
|
336
|
-
];
|
|
337
|
-
} else if (dicts instanceof Real) {
|
|
338
|
-
return [
|
|
339
|
-
{
|
|
340
|
-
type: 'double',
|
|
341
|
-
value: dicts.value
|
|
342
|
-
}
|
|
343
|
-
];
|
|
344
|
-
} else if (typeof(dicts) === 'object') {
|
|
345
|
-
if (dicts instanceof Date) {
|
|
346
|
-
return [
|
|
347
|
-
{
|
|
348
|
-
type: 'date',
|
|
349
|
-
value: dicts
|
|
350
|
-
}
|
|
351
|
-
]
|
|
352
|
-
} else if (Object.keys(dicts).length == 1 && typeof(dicts.UID) === 'number') {
|
|
353
|
-
return [
|
|
354
|
-
{
|
|
355
|
-
type: 'UID',
|
|
356
|
-
value: dicts.UID
|
|
357
|
-
}
|
|
358
|
-
]
|
|
359
|
-
} else {
|
|
360
|
-
return toEntriesObject(dicts);
|
|
361
|
-
}
|
|
362
|
-
} else if (typeof(dicts) === 'string') {
|
|
363
|
-
return [
|
|
364
|
-
{
|
|
365
|
-
type: 'string',
|
|
366
|
-
value: dicts
|
|
367
|
-
}
|
|
368
|
-
];
|
|
369
|
-
} else if (typeof(dicts) === 'number') {
|
|
370
|
-
return [
|
|
371
|
-
{
|
|
372
|
-
type: 'number',
|
|
373
|
-
value: dicts
|
|
374
|
-
}
|
|
375
|
-
];
|
|
376
|
-
} else if (typeof(dicts) === 'boolean') {
|
|
377
|
-
return [
|
|
378
|
-
{
|
|
379
|
-
type: 'boolean',
|
|
380
|
-
value: dicts
|
|
381
|
-
}
|
|
382
|
-
];
|
|
383
|
-
} else if (typeof(dicts) === 'bigint') {
|
|
384
|
-
return [
|
|
385
|
-
{
|
|
386
|
-
type: 'number',
|
|
387
|
-
value: dicts
|
|
388
|
-
}
|
|
389
|
-
];
|
|
390
|
-
} else {
|
|
391
|
-
throw new Error('unhandled entry: ' + dicts);
|
|
392
|
-
}
|
|
393
|
-
}
|
|
394
|
-
|
|
395
|
-
function toEntriesArray(arr) {
|
|
396
|
-
if (debug) {
|
|
397
|
-
console.log('toEntriesArray');
|
|
398
|
-
}
|
|
399
|
-
var results = [
|
|
400
|
-
{
|
|
401
|
-
type: 'array',
|
|
402
|
-
entries: []
|
|
403
|
-
}
|
|
404
|
-
];
|
|
405
|
-
arr.forEach(function(v) {
|
|
406
|
-
var entry = toEntries(v);
|
|
407
|
-
results[0].entries.push(entry[0]);
|
|
408
|
-
results = results.concat(entry);
|
|
409
|
-
});
|
|
410
|
-
return results;
|
|
411
|
-
}
|
|
412
|
-
|
|
413
|
-
function toEntriesObject(dict) {
|
|
414
|
-
if (debug) {
|
|
415
|
-
console.log('toEntriesObject');
|
|
416
|
-
}
|
|
417
|
-
var results = [
|
|
418
|
-
{
|
|
419
|
-
type: 'dict',
|
|
420
|
-
entryKeys: [],
|
|
421
|
-
entryValues: []
|
|
422
|
-
}
|
|
423
|
-
];
|
|
424
|
-
Object.keys(dict).forEach(function(key) {
|
|
425
|
-
var entryKey = toEntries(key);
|
|
426
|
-
results[0].entryKeys.push(entryKey[0]);
|
|
427
|
-
results = results.concat(entryKey[0]);
|
|
428
|
-
});
|
|
429
|
-
Object.keys(dict).forEach(function(key) {
|
|
430
|
-
var entryValue = toEntries(dict[key]);
|
|
431
|
-
results[0].entryValues.push(entryValue[0]);
|
|
432
|
-
results = results.concat(entryValue);
|
|
433
|
-
});
|
|
434
|
-
return results;
|
|
435
|
-
}
|
|
436
|
-
|
|
437
|
-
function computeOffsetSizeInBytes(maxOffset) {
|
|
438
|
-
if (maxOffset < 256) {
|
|
439
|
-
return 1;
|
|
440
|
-
}
|
|
441
|
-
if (maxOffset < 65536) {
|
|
442
|
-
return 2;
|
|
443
|
-
}
|
|
444
|
-
if (maxOffset < 4294967296) {
|
|
445
|
-
return 4;
|
|
446
|
-
}
|
|
447
|
-
return 8;
|
|
448
|
-
}
|
|
449
|
-
|
|
450
|
-
function computeIdSizeInBytes(numberOfIds) {
|
|
451
|
-
if (numberOfIds < 256) {
|
|
452
|
-
return 1;
|
|
453
|
-
}
|
|
454
|
-
if (numberOfIds < 65536) {
|
|
455
|
-
return 2;
|
|
456
|
-
}
|
|
457
|
-
return 4;
|
|
458
|
-
}
|
|
459
|
-
|
|
460
|
-
module.exports.Real = Real;
|
|
Binary file
|
|
Binary file
|