appium-mac2-driver 4.5.1 → 4.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +6 -0
- package/build/lib/commands/clipboard.js +2 -2
- package/build/lib/commands/clipboard.js.map +1 -1
- package/build/lib/commands/context.d.ts +66 -0
- package/build/lib/commands/context.d.ts.map +1 -0
- package/build/lib/commands/context.js +206 -0
- package/build/lib/commands/context.js.map +1 -0
- package/build/lib/commands/execute.d.ts.map +1 -1
- package/build/lib/commands/execute.js +4 -0
- package/build/lib/commands/execute.js.map +1 -1
- package/build/lib/commands/find.d.ts.map +1 -1
- package/build/lib/commands/find.js +4 -0
- package/build/lib/commands/find.js.map +1 -1
- package/build/lib/constraints.d.ts +12 -0
- package/build/lib/constraints.d.ts.map +1 -1
- package/build/lib/constraints.js +12 -0
- package/build/lib/constraints.js.map +1 -1
- package/build/lib/driver.d.ts +26 -0
- package/build/lib/driver.d.ts.map +1 -1
- package/build/lib/driver.js +83 -3
- package/build/lib/driver.js.map +1 -1
- package/build/lib/execute-method-map.d.ts +6 -0
- package/build/lib/execute-method-map.d.ts.map +1 -1
- package/build/lib/execute-method-map.js +6 -0
- package/build/lib/execute-method-map.js.map +1 -1
- package/build/lib/types.d.ts +19 -0
- package/build/lib/types.d.ts.map +1 -1
- package/lib/commands/clipboard.ts +2 -2
- package/lib/commands/context.ts +228 -0
- package/lib/commands/execute.ts +4 -0
- package/lib/commands/find.ts +5 -0
- package/lib/constraints.ts +12 -0
- package/lib/driver.ts +93 -3
- package/lib/execute-method-map.ts +6 -0
- package/lib/types.ts +22 -0
- package/node_modules/@appium/base-driver/LICENSE +201 -0
- package/node_modules/@appium/base-driver/README.md +15 -0
- package/node_modules/@appium/base-driver/build/lib/basedriver/capabilities.d.ts +59 -0
- package/node_modules/@appium/base-driver/build/lib/basedriver/capabilities.d.ts.map +1 -0
- package/node_modules/@appium/base-driver/build/lib/basedriver/capabilities.js +315 -0
- package/node_modules/@appium/base-driver/build/lib/basedriver/capabilities.js.map +1 -0
- package/node_modules/@appium/base-driver/build/lib/basedriver/commands/bidi-subscriptions.d.ts +12 -0
- package/node_modules/@appium/base-driver/build/lib/basedriver/commands/bidi-subscriptions.d.ts.map +1 -0
- package/node_modules/@appium/base-driver/build/lib/basedriver/commands/bidi-subscriptions.js +33 -0
- package/node_modules/@appium/base-driver/build/lib/basedriver/commands/bidi-subscriptions.js.map +1 -0
- package/node_modules/@appium/base-driver/build/lib/basedriver/commands/bidi.d.ts +6 -0
- package/node_modules/@appium/base-driver/build/lib/basedriver/commands/bidi.d.ts.map +1 -0
- package/node_modules/@appium/base-driver/build/lib/basedriver/commands/bidi.js +72 -0
- package/node_modules/@appium/base-driver/build/lib/basedriver/commands/bidi.js.map +1 -0
- package/node_modules/@appium/base-driver/build/lib/basedriver/commands/event.d.ts +6 -0
- package/node_modules/@appium/base-driver/build/lib/basedriver/commands/event.d.ts.map +1 -0
- package/node_modules/@appium/base-driver/build/lib/basedriver/commands/event.js +36 -0
- package/node_modules/@appium/base-driver/build/lib/basedriver/commands/event.js.map +1 -0
- package/node_modules/@appium/base-driver/build/lib/basedriver/commands/execute.d.ts +6 -0
- package/node_modules/@appium/base-driver/build/lib/basedriver/commands/execute.d.ts.map +1 -0
- package/node_modules/@appium/base-driver/build/lib/basedriver/commands/execute.js +33 -0
- package/node_modules/@appium/base-driver/build/lib/basedriver/commands/execute.js.map +1 -0
- package/node_modules/@appium/base-driver/build/lib/basedriver/commands/find.d.ts +6 -0
- package/node_modules/@appium/base-driver/build/lib/basedriver/commands/find.d.ts.map +1 -0
- package/node_modules/@appium/base-driver/build/lib/basedriver/commands/find.js +55 -0
- package/node_modules/@appium/base-driver/build/lib/basedriver/commands/find.js.map +1 -0
- package/node_modules/@appium/base-driver/build/lib/basedriver/commands/index.d.ts +7 -0
- package/node_modules/@appium/base-driver/build/lib/basedriver/commands/index.d.ts.map +1 -0
- package/node_modules/@appium/base-driver/build/lib/basedriver/commands/index.js +9 -0
- package/node_modules/@appium/base-driver/build/lib/basedriver/commands/index.js.map +1 -0
- package/node_modules/@appium/base-driver/build/lib/basedriver/commands/log.d.ts +6 -0
- package/node_modules/@appium/base-driver/build/lib/basedriver/commands/log.d.ts.map +1 -0
- package/node_modules/@appium/base-driver/build/lib/basedriver/commands/log.js +20 -0
- package/node_modules/@appium/base-driver/build/lib/basedriver/commands/log.js.map +1 -0
- package/node_modules/@appium/base-driver/build/lib/basedriver/commands/mixin.d.ts +12 -0
- package/node_modules/@appium/base-driver/build/lib/basedriver/commands/mixin.d.ts.map +1 -0
- package/node_modules/@appium/base-driver/build/lib/basedriver/commands/mixin.js +16 -0
- package/node_modules/@appium/base-driver/build/lib/basedriver/commands/mixin.js.map +1 -0
- package/node_modules/@appium/base-driver/build/lib/basedriver/commands/timeout.d.ts +6 -0
- package/node_modules/@appium/base-driver/build/lib/basedriver/commands/timeout.d.ts.map +1 -0
- package/node_modules/@appium/base-driver/build/lib/basedriver/commands/timeout.js +110 -0
- package/node_modules/@appium/base-driver/build/lib/basedriver/commands/timeout.js.map +1 -0
- package/node_modules/@appium/base-driver/build/lib/basedriver/core.d.ts +154 -0
- package/node_modules/@appium/base-driver/build/lib/basedriver/core.d.ts.map +1 -0
- package/node_modules/@appium/base-driver/build/lib/basedriver/core.js +364 -0
- package/node_modules/@appium/base-driver/build/lib/basedriver/core.js.map +1 -0
- package/node_modules/@appium/base-driver/build/lib/basedriver/device-settings.d.ts +27 -0
- package/node_modules/@appium/base-driver/build/lib/basedriver/device-settings.d.ts.map +1 -0
- package/node_modules/@appium/base-driver/build/lib/basedriver/device-settings.js +56 -0
- package/node_modules/@appium/base-driver/build/lib/basedriver/device-settings.js.map +1 -0
- package/node_modules/@appium/base-driver/build/lib/basedriver/driver.d.ts +68 -0
- package/node_modules/@appium/base-driver/build/lib/basedriver/driver.d.ts.map +1 -0
- package/node_modules/@appium/base-driver/build/lib/basedriver/driver.js +378 -0
- package/node_modules/@appium/base-driver/build/lib/basedriver/driver.js.map +1 -0
- package/node_modules/@appium/base-driver/build/lib/basedriver/extension-core.d.ts +19 -0
- package/node_modules/@appium/base-driver/build/lib/basedriver/extension-core.d.ts.map +1 -0
- package/node_modules/@appium/base-driver/build/lib/basedriver/extension-core.js +132 -0
- package/node_modules/@appium/base-driver/build/lib/basedriver/extension-core.js.map +1 -0
- package/node_modules/@appium/base-driver/build/lib/basedriver/helpers.d.ts +59 -0
- package/node_modules/@appium/base-driver/build/lib/basedriver/helpers.d.ts.map +1 -0
- package/node_modules/@appium/base-driver/build/lib/basedriver/helpers.js +556 -0
- package/node_modules/@appium/base-driver/build/lib/basedriver/helpers.js.map +1 -0
- package/node_modules/@appium/base-driver/build/lib/basedriver/ipc.d.ts +36 -0
- package/node_modules/@appium/base-driver/build/lib/basedriver/ipc.d.ts.map +1 -0
- package/node_modules/@appium/base-driver/build/lib/basedriver/ipc.js +155 -0
- package/node_modules/@appium/base-driver/build/lib/basedriver/ipc.js.map +1 -0
- package/node_modules/@appium/base-driver/build/lib/basedriver/logger.d.ts +2 -0
- package/node_modules/@appium/base-driver/build/lib/basedriver/logger.d.ts.map +1 -0
- package/node_modules/@appium/base-driver/build/lib/basedriver/logger.js +6 -0
- package/node_modules/@appium/base-driver/build/lib/basedriver/logger.js.map +1 -0
- package/node_modules/@appium/base-driver/build/lib/basedriver/validation.d.ts +7 -0
- package/node_modules/@appium/base-driver/build/lib/basedriver/validation.d.ts.map +1 -0
- package/node_modules/@appium/base-driver/build/lib/basedriver/validation.js +125 -0
- package/node_modules/@appium/base-driver/build/lib/basedriver/validation.js.map +1 -0
- package/node_modules/@appium/base-driver/build/lib/constants.d.ts +9 -0
- package/node_modules/@appium/base-driver/build/lib/constants.d.ts.map +1 -0
- package/node_modules/@appium/base-driver/build/lib/constants.js +20 -0
- package/node_modules/@appium/base-driver/build/lib/constants.js.map +1 -0
- package/node_modules/@appium/base-driver/build/lib/express/express-logging.d.ts +12 -0
- package/node_modules/@appium/base-driver/build/lib/express/express-logging.d.ts.map +1 -0
- package/node_modules/@appium/base-driver/build/lib/express/express-logging.js +71 -0
- package/node_modules/@appium/base-driver/build/lib/express/express-logging.js.map +1 -0
- package/node_modules/@appium/base-driver/build/lib/express/idempotency.d.ts +7 -0
- package/node_modules/@appium/base-driver/build/lib/express/idempotency.d.ts.map +1 -0
- package/node_modules/@appium/base-driver/build/lib/express/idempotency.js +167 -0
- package/node_modules/@appium/base-driver/build/lib/express/idempotency.js.map +1 -0
- package/node_modules/@appium/base-driver/build/lib/express/logger.d.ts +2 -0
- package/node_modules/@appium/base-driver/build/lib/express/logger.d.ts.map +1 -0
- package/node_modules/@appium/base-driver/build/lib/express/logger.js +6 -0
- package/node_modules/@appium/base-driver/build/lib/express/logger.js.map +1 -0
- package/node_modules/@appium/base-driver/build/lib/express/middleware.d.ts +67 -0
- package/node_modules/@appium/base-driver/build/lib/express/middleware.d.ts.map +1 -0
- package/node_modules/@appium/base-driver/build/lib/express/middleware.js +164 -0
- package/node_modules/@appium/base-driver/build/lib/express/middleware.js.map +1 -0
- package/node_modules/@appium/base-driver/build/lib/express/server.d.ts +70 -0
- package/node_modules/@appium/base-driver/build/lib/express/server.d.ts.map +1 -0
- package/node_modules/@appium/base-driver/build/lib/express/server.js +287 -0
- package/node_modules/@appium/base-driver/build/lib/express/server.js.map +1 -0
- package/node_modules/@appium/base-driver/build/lib/express/websocket.d.ts +23 -0
- package/node_modules/@appium/base-driver/build/lib/express/websocket.d.ts.map +1 -0
- package/node_modules/@appium/base-driver/build/lib/express/websocket.js +64 -0
- package/node_modules/@appium/base-driver/build/lib/express/websocket.js.map +1 -0
- package/node_modules/@appium/base-driver/build/lib/helpers/capabilities.d.ts +11 -0
- package/node_modules/@appium/base-driver/build/lib/helpers/capabilities.d.ts.map +1 -0
- package/node_modules/@appium/base-driver/build/lib/helpers/capabilities.js +70 -0
- package/node_modules/@appium/base-driver/build/lib/helpers/capabilities.js.map +1 -0
- package/node_modules/@appium/base-driver/build/lib/helpers/extension-command-name.d.ts +11 -0
- package/node_modules/@appium/base-driver/build/lib/helpers/extension-command-name.d.ts.map +1 -0
- package/node_modules/@appium/base-driver/build/lib/helpers/extension-command-name.js +23 -0
- package/node_modules/@appium/base-driver/build/lib/helpers/extension-command-name.js.map +1 -0
- package/node_modules/@appium/base-driver/build/lib/helpers/levenshtein-match.d.ts +27 -0
- package/node_modules/@appium/base-driver/build/lib/helpers/levenshtein-match.d.ts.map +1 -0
- package/node_modules/@appium/base-driver/build/lib/helpers/levenshtein-match.js +57 -0
- package/node_modules/@appium/base-driver/build/lib/helpers/levenshtein-match.js.map +1 -0
- package/node_modules/@appium/base-driver/build/lib/helpers/session.d.ts +7 -0
- package/node_modules/@appium/base-driver/build/lib/helpers/session.d.ts.map +1 -0
- package/node_modules/@appium/base-driver/build/lib/helpers/session.js +12 -0
- package/node_modules/@appium/base-driver/build/lib/helpers/session.js.map +1 -0
- package/node_modules/@appium/base-driver/build/lib/index.d.ts +24 -0
- package/node_modules/@appium/base-driver/build/lib/index.d.ts.map +1 -0
- package/node_modules/@appium/base-driver/build/lib/index.js +75 -0
- package/node_modules/@appium/base-driver/build/lib/index.js.map +1 -0
- package/node_modules/@appium/base-driver/build/lib/jsonwp-proxy/protocol-converter.d.ts +53 -0
- package/node_modules/@appium/base-driver/build/lib/jsonwp-proxy/protocol-converter.d.ts.map +1 -0
- package/node_modules/@appium/base-driver/build/lib/jsonwp-proxy/protocol-converter.js +213 -0
- package/node_modules/@appium/base-driver/build/lib/jsonwp-proxy/protocol-converter.js.map +1 -0
- package/node_modules/@appium/base-driver/build/lib/jsonwp-proxy/proxy-request.d.ts +12 -0
- package/node_modules/@appium/base-driver/build/lib/jsonwp-proxy/proxy-request.d.ts.map +1 -0
- package/node_modules/@appium/base-driver/build/lib/jsonwp-proxy/proxy-request.js +55 -0
- package/node_modules/@appium/base-driver/build/lib/jsonwp-proxy/proxy-request.js.map +1 -0
- package/node_modules/@appium/base-driver/build/lib/jsonwp-proxy/proxy.d.ts +83 -0
- package/node_modules/@appium/base-driver/build/lib/jsonwp-proxy/proxy.d.ts.map +1 -0
- package/node_modules/@appium/base-driver/build/lib/jsonwp-proxy/proxy.js +413 -0
- package/node_modules/@appium/base-driver/build/lib/jsonwp-proxy/proxy.js.map +1 -0
- package/node_modules/@appium/base-driver/build/lib/jsonwp-status/status.d.ts +114 -0
- package/node_modules/@appium/base-driver/build/lib/jsonwp-status/status.d.ts.map +1 -0
- package/node_modules/@appium/base-driver/build/lib/jsonwp-status/status.js +122 -0
- package/node_modules/@appium/base-driver/build/lib/jsonwp-status/status.js.map +1 -0
- package/node_modules/@appium/base-driver/build/lib/protocol/bidi-commands.d.ts +31 -0
- package/node_modules/@appium/base-driver/build/lib/protocol/bidi-commands.d.ts.map +1 -0
- package/node_modules/@appium/base-driver/build/lib/protocol/bidi-commands.js +40 -0
- package/node_modules/@appium/base-driver/build/lib/protocol/bidi-commands.js.map +1 -0
- package/node_modules/@appium/base-driver/build/lib/protocol/errors.d.ts +346 -0
- package/node_modules/@appium/base-driver/build/lib/protocol/errors.d.ts.map +1 -0
- package/node_modules/@appium/base-driver/build/lib/protocol/errors.js +831 -0
- package/node_modules/@appium/base-driver/build/lib/protocol/errors.js.map +1 -0
- package/node_modules/@appium/base-driver/build/lib/protocol/helpers.d.ts +18 -0
- package/node_modules/@appium/base-driver/build/lib/protocol/helpers.d.ts.map +1 -0
- package/node_modules/@appium/base-driver/build/lib/protocol/helpers.js +43 -0
- package/node_modules/@appium/base-driver/build/lib/protocol/helpers.js.map +1 -0
- package/node_modules/@appium/base-driver/build/lib/protocol/index.d.ts +5 -0
- package/node_modules/@appium/base-driver/build/lib/protocol/index.d.ts.map +1 -0
- package/node_modules/@appium/base-driver/build/lib/protocol/index.js +27 -0
- package/node_modules/@appium/base-driver/build/lib/protocol/index.js.map +1 -0
- package/node_modules/@appium/base-driver/build/lib/protocol/protocol.d.ts +66 -0
- package/node_modules/@appium/base-driver/build/lib/protocol/protocol.d.ts.map +1 -0
- package/node_modules/@appium/base-driver/build/lib/protocol/protocol.js +513 -0
- package/node_modules/@appium/base-driver/build/lib/protocol/protocol.js.map +1 -0
- package/node_modules/@appium/base-driver/build/lib/protocol/routes/appium-device.d.ts +128 -0
- package/node_modules/@appium/base-driver/build/lib/protocol/routes/appium-device.d.ts.map +1 -0
- package/node_modules/@appium/base-driver/build/lib/protocol/routes/appium-device.js +94 -0
- package/node_modules/@appium/base-driver/build/lib/protocol/routes/appium-device.js.map +1 -0
- package/node_modules/@appium/base-driver/build/lib/protocol/routes/appium.d.ts +70 -0
- package/node_modules/@appium/base-driver/build/lib/protocol/routes/appium.d.ts.map +1 -0
- package/node_modules/@appium/base-driver/build/lib/protocol/routes/appium.js +42 -0
- package/node_modules/@appium/base-driver/build/lib/protocol/routes/appium.js.map +1 -0
- package/node_modules/@appium/base-driver/build/lib/protocol/routes/extensions/chromium-cdp.d.ts +15 -0
- package/node_modules/@appium/base-driver/build/lib/protocol/routes/extensions/chromium-cdp.d.ts.map +1 -0
- package/node_modules/@appium/base-driver/build/lib/protocol/routes/extensions/chromium-cdp.js +13 -0
- package/node_modules/@appium/base-driver/build/lib/protocol/routes/extensions/chromium-cdp.js.map +1 -0
- package/node_modules/@appium/base-driver/build/lib/protocol/routes/extensions/custom-handlers.d.ts +15 -0
- package/node_modules/@appium/base-driver/build/lib/protocol/routes/extensions/custom-handlers.d.ts.map +1 -0
- package/node_modules/@appium/base-driver/build/lib/protocol/routes/extensions/custom-handlers.js +13 -0
- package/node_modules/@appium/base-driver/build/lib/protocol/routes/extensions/custom-handlers.js.map +1 -0
- package/node_modules/@appium/base-driver/build/lib/protocol/routes/extensions/device-posture.d.ts +18 -0
- package/node_modules/@appium/base-driver/build/lib/protocol/routes/extensions/device-posture.d.ts.map +1 -0
- package/node_modules/@appium/base-driver/build/lib/protocol/routes/extensions/device-posture.js +14 -0
- package/node_modules/@appium/base-driver/build/lib/protocol/routes/extensions/device-posture.js.map +1 -0
- package/node_modules/@appium/base-driver/build/lib/protocol/routes/extensions/fedcm.d.ts +56 -0
- package/node_modules/@appium/base-driver/build/lib/protocol/routes/extensions/fedcm.d.ts.map +1 -0
- package/node_modules/@appium/base-driver/build/lib/protocol/routes/extensions/fedcm.js +34 -0
- package/node_modules/@appium/base-driver/build/lib/protocol/routes/extensions/fedcm.js.map +1 -0
- package/node_modules/@appium/base-driver/build/lib/protocol/routes/extensions/index.d.ts +228 -0
- package/node_modules/@appium/base-driver/build/lib/protocol/routes/extensions/index.d.ts.map +1 -0
- package/node_modules/@appium/base-driver/build/lib/protocol/routes/extensions/index.js +37 -0
- package/node_modules/@appium/base-driver/build/lib/protocol/routes/extensions/index.js.map +1 -0
- package/node_modules/@appium/base-driver/build/lib/protocol/routes/extensions/payment.d.ts +15 -0
- package/node_modules/@appium/base-driver/build/lib/protocol/routes/extensions/payment.d.ts.map +1 -0
- package/node_modules/@appium/base-driver/build/lib/protocol/routes/extensions/payment.js +13 -0
- package/node_modules/@appium/base-driver/build/lib/protocol/routes/extensions/payment.js.map +1 -0
- package/node_modules/@appium/base-driver/build/lib/protocol/routes/extensions/permissions.d.ts +15 -0
- package/node_modules/@appium/base-driver/build/lib/protocol/routes/extensions/permissions.d.ts.map +1 -0
- package/node_modules/@appium/base-driver/build/lib/protocol/routes/extensions/permissions.js +13 -0
- package/node_modules/@appium/base-driver/build/lib/protocol/routes/extensions/permissions.js.map +1 -0
- package/node_modules/@appium/base-driver/build/lib/protocol/routes/extensions/pressure.d.ts +27 -0
- package/node_modules/@appium/base-driver/build/lib/protocol/routes/extensions/pressure.d.ts.map +1 -0
- package/node_modules/@appium/base-driver/build/lib/protocol/routes/extensions/pressure.js +20 -0
- package/node_modules/@appium/base-driver/build/lib/protocol/routes/extensions/pressure.js.map +1 -0
- package/node_modules/@appium/base-driver/build/lib/protocol/routes/extensions/privacy.d.ts +18 -0
- package/node_modules/@appium/base-driver/build/lib/protocol/routes/extensions/privacy.d.ts.map +1 -0
- package/node_modules/@appium/base-driver/build/lib/protocol/routes/extensions/privacy.js +14 -0
- package/node_modules/@appium/base-driver/build/lib/protocol/routes/extensions/privacy.js.map +1 -0
- package/node_modules/@appium/base-driver/build/lib/protocol/routes/extensions/reporting.d.ts +16 -0
- package/node_modules/@appium/base-driver/build/lib/protocol/routes/extensions/reporting.d.ts.map +1 -0
- package/node_modules/@appium/base-driver/build/lib/protocol/routes/extensions/reporting.js +16 -0
- package/node_modules/@appium/base-driver/build/lib/protocol/routes/extensions/reporting.js.map +1 -0
- package/node_modules/@appium/base-driver/build/lib/protocol/routes/extensions/selenium.d.ts +19 -0
- package/node_modules/@appium/base-driver/build/lib/protocol/routes/extensions/selenium.d.ts.map +1 -0
- package/node_modules/@appium/base-driver/build/lib/protocol/routes/extensions/selenium.js +15 -0
- package/node_modules/@appium/base-driver/build/lib/protocol/routes/extensions/selenium.js.map +1 -0
- package/node_modules/@appium/base-driver/build/lib/protocol/routes/extensions/sensor.d.ts +30 -0
- package/node_modules/@appium/base-driver/build/lib/protocol/routes/extensions/sensor.d.ts.map +1 -0
- package/node_modules/@appium/base-driver/build/lib/protocol/routes/extensions/sensor.js +24 -0
- package/node_modules/@appium/base-driver/build/lib/protocol/routes/extensions/sensor.js.map +1 -0
- package/node_modules/@appium/base-driver/build/lib/protocol/routes/extensions/storage-access.d.ts +15 -0
- package/node_modules/@appium/base-driver/build/lib/protocol/routes/extensions/storage-access.d.ts.map +1 -0
- package/node_modules/@appium/base-driver/build/lib/protocol/routes/extensions/storage-access.js +13 -0
- package/node_modules/@appium/base-driver/build/lib/protocol/routes/extensions/storage-access.js.map +1 -0
- package/node_modules/@appium/base-driver/build/lib/protocol/routes/extensions/webauthn.d.ts +51 -0
- package/node_modules/@appium/base-driver/build/lib/protocol/routes/extensions/webauthn.d.ts.map +1 -0
- package/node_modules/@appium/base-driver/build/lib/protocol/routes/extensions/webauthn.js +48 -0
- package/node_modules/@appium/base-driver/build/lib/protocol/routes/extensions/webauthn.js.map +1 -0
- package/node_modules/@appium/base-driver/build/lib/protocol/routes/index.d.ts +898 -0
- package/node_modules/@appium/base-driver/build/lib/protocol/routes/index.d.ts.map +1 -0
- package/node_modules/@appium/base-driver/build/lib/protocol/routes/index.js +90 -0
- package/node_modules/@appium/base-driver/build/lib/protocol/routes/index.js.map +1 -0
- package/node_modules/@appium/base-driver/build/lib/protocol/routes/jsonwp.d.ts +80 -0
- package/node_modules/@appium/base-driver/build/lib/protocol/routes/jsonwp.d.ts.map +1 -0
- package/node_modules/@appium/base-driver/build/lib/protocol/routes/jsonwp.js +58 -0
- package/node_modules/@appium/base-driver/build/lib/protocol/routes/jsonwp.js.map +1 -0
- package/node_modules/@appium/base-driver/build/lib/protocol/routes/mjsonwp.d.ts +53 -0
- package/node_modules/@appium/base-driver/build/lib/protocol/routes/mjsonwp.d.ts.map +1 -0
- package/node_modules/@appium/base-driver/build/lib/protocol/routes/mjsonwp.js +29 -0
- package/node_modules/@appium/base-driver/build/lib/protocol/routes/mjsonwp.js.map +1 -0
- package/node_modules/@appium/base-driver/build/lib/protocol/routes/w3c.d.ts +361 -0
- package/node_modules/@appium/base-driver/build/lib/protocol/routes/w3c.d.ts.map +1 -0
- package/node_modules/@appium/base-driver/build/lib/protocol/routes/w3c.js +246 -0
- package/node_modules/@appium/base-driver/build/lib/protocol/routes/w3c.js.map +1 -0
- package/node_modules/@appium/base-driver/build/lib/protocol/validators.d.ts +5 -0
- package/node_modules/@appium/base-driver/build/lib/protocol/validators.d.ts.map +1 -0
- package/node_modules/@appium/base-driver/build/lib/protocol/validators.js +21 -0
- package/node_modules/@appium/base-driver/build/lib/protocol/validators.js.map +1 -0
- package/node_modules/@appium/base-driver/build/lib/test-pages/crash.d.ts +9 -0
- package/node_modules/@appium/base-driver/build/lib/test-pages/crash.d.ts.map +1 -0
- package/node_modules/@appium/base-driver/build/lib/test-pages/crash.js +18 -0
- package/node_modules/@appium/base-driver/build/lib/test-pages/crash.js.map +1 -0
- package/node_modules/@appium/base-driver/build/lib/test-pages/env.d.ts +5 -0
- package/node_modules/@appium/base-driver/build/lib/test-pages/env.d.ts.map +1 -0
- package/node_modules/@appium/base-driver/build/lib/test-pages/env.js +12 -0
- package/node_modules/@appium/base-driver/build/lib/test-pages/env.js.map +1 -0
- package/node_modules/@appium/base-driver/build/lib/test-pages/handlers.d.ts +10 -0
- package/node_modules/@appium/base-driver/build/lib/test-pages/handlers.d.ts.map +1 -0
- package/node_modules/@appium/base-driver/build/lib/test-pages/handlers.js +66 -0
- package/node_modules/@appium/base-driver/build/lib/test-pages/handlers.js.map +1 -0
- package/node_modules/@appium/base-driver/build/lib/test-pages/index.d.ts +6 -0
- package/node_modules/@appium/base-driver/build/lib/test-pages/index.d.ts.map +1 -0
- package/node_modules/@appium/base-driver/build/lib/test-pages/index.js +35 -0
- package/node_modules/@appium/base-driver/build/lib/test-pages/index.js.map +1 -0
- package/node_modules/@appium/base-driver/build/lib/test-pages/static-dir.d.ts +8 -0
- package/node_modules/@appium/base-driver/build/lib/test-pages/static-dir.d.ts.map +1 -0
- package/node_modules/@appium/base-driver/build/lib/test-pages/static-dir.js +23 -0
- package/node_modules/@appium/base-driver/build/lib/test-pages/static-dir.js.map +1 -0
- package/node_modules/@appium/base-driver/build/lib/test-pages/template.d.ts +3 -0
- package/node_modules/@appium/base-driver/build/lib/test-pages/template.d.ts.map +1 -0
- package/node_modules/@appium/base-driver/build/lib/test-pages/template.js +19 -0
- package/node_modules/@appium/base-driver/build/lib/test-pages/template.js.map +1 -0
- package/node_modules/@appium/base-driver/build/lib/utils.d.ts +14 -0
- package/node_modules/@appium/base-driver/build/lib/utils.d.ts.map +1 -0
- package/node_modules/@appium/base-driver/build/lib/utils.js +55 -0
- package/node_modules/@appium/base-driver/build/lib/utils.js.map +1 -0
- package/node_modules/@appium/base-driver/lib/basedriver/capabilities.ts +413 -0
- package/node_modules/@appium/base-driver/lib/basedriver/commands/bidi-subscriptions.ts +36 -0
- package/node_modules/@appium/base-driver/lib/basedriver/commands/bidi.ts +88 -0
- package/node_modules/@appium/base-driver/lib/basedriver/commands/event.ts +49 -0
- package/node_modules/@appium/base-driver/lib/basedriver/commands/execute.ts +48 -0
- package/node_modules/@appium/base-driver/lib/basedriver/commands/find.ts +120 -0
- package/node_modules/@appium/base-driver/lib/basedriver/commands/index.ts +6 -0
- package/node_modules/@appium/base-driver/lib/basedriver/commands/log.ts +35 -0
- package/node_modules/@appium/base-driver/lib/basedriver/commands/mixin.ts +15 -0
- package/node_modules/@appium/base-driver/lib/basedriver/commands/timeout.ts +136 -0
- package/node_modules/@appium/base-driver/lib/basedriver/core.ts +406 -0
- package/node_modules/@appium/base-driver/lib/basedriver/device-settings.ts +64 -0
- package/node_modules/@appium/base-driver/lib/basedriver/driver.ts +451 -0
- package/node_modules/@appium/base-driver/lib/basedriver/extension-core.ts +165 -0
- package/node_modules/@appium/base-driver/lib/basedriver/helpers.ts +621 -0
- package/node_modules/@appium/base-driver/lib/basedriver/ipc.ts +193 -0
- package/node_modules/@appium/base-driver/lib/basedriver/logger.ts +3 -0
- package/node_modules/@appium/base-driver/lib/basedriver/validation.ts +142 -0
- package/node_modules/@appium/base-driver/lib/constants.ts +19 -0
- package/node_modules/@appium/base-driver/lib/express/express-logging.ts +80 -0
- package/node_modules/@appium/base-driver/lib/express/idempotency.ts +198 -0
- package/node_modules/@appium/base-driver/lib/express/logger.ts +3 -0
- package/node_modules/@appium/base-driver/lib/express/middleware.ts +207 -0
- package/node_modules/@appium/base-driver/lib/express/server.ts +443 -0
- package/node_modules/@appium/base-driver/lib/express/websocket.ts +71 -0
- package/node_modules/@appium/base-driver/lib/helpers/capabilities.ts +87 -0
- package/node_modules/@appium/base-driver/lib/helpers/extension-command-name.ts +25 -0
- package/node_modules/@appium/base-driver/lib/helpers/levenshtein-match.ts +75 -0
- package/node_modules/@appium/base-driver/lib/helpers/session.ts +8 -0
- package/node_modules/@appium/base-driver/lib/index.ts +50 -0
- package/node_modules/@appium/base-driver/lib/jsonwp-proxy/protocol-converter.ts +246 -0
- package/node_modules/@appium/base-driver/lib/jsonwp-proxy/proxy-request.ts +52 -0
- package/node_modules/@appium/base-driver/lib/jsonwp-proxy/proxy.ts +478 -0
- package/node_modules/@appium/base-driver/lib/jsonwp-status/status.ts +120 -0
- package/node_modules/@appium/base-driver/lib/protocol/bidi-commands.ts +41 -0
- package/node_modules/@appium/base-driver/lib/protocol/errors.ts +1125 -0
- package/node_modules/@appium/base-driver/lib/protocol/helpers.ts +41 -0
- package/node_modules/@appium/base-driver/lib/protocol/index.ts +38 -0
- package/node_modules/@appium/base-driver/lib/protocol/protocol.ts +624 -0
- package/node_modules/@appium/base-driver/lib/protocol/routes/appium-device.ts +92 -0
- package/node_modules/@appium/base-driver/lib/protocol/routes/appium.ts +40 -0
- package/node_modules/@appium/base-driver/lib/protocol/routes/extensions/chromium-cdp.ts +11 -0
- package/node_modules/@appium/base-driver/lib/protocol/routes/extensions/custom-handlers.ts +11 -0
- package/node_modules/@appium/base-driver/lib/protocol/routes/extensions/device-posture.ts +12 -0
- package/node_modules/@appium/base-driver/lib/protocol/routes/extensions/fedcm.ts +32 -0
- package/node_modules/@appium/base-driver/lib/protocol/routes/extensions/index.ts +36 -0
- package/node_modules/@appium/base-driver/lib/protocol/routes/extensions/payment.ts +11 -0
- package/node_modules/@appium/base-driver/lib/protocol/routes/extensions/permissions.ts +11 -0
- package/node_modules/@appium/base-driver/lib/protocol/routes/extensions/pressure.ts +18 -0
- package/node_modules/@appium/base-driver/lib/protocol/routes/extensions/privacy.ts +12 -0
- package/node_modules/@appium/base-driver/lib/protocol/routes/extensions/reporting.ts +14 -0
- package/node_modules/@appium/base-driver/lib/protocol/routes/extensions/selenium.ts +13 -0
- package/node_modules/@appium/base-driver/lib/protocol/routes/extensions/sensor.ts +22 -0
- package/node_modules/@appium/base-driver/lib/protocol/routes/extensions/storage-access.ts +11 -0
- package/node_modules/@appium/base-driver/lib/protocol/routes/extensions/webauthn.ts +46 -0
- package/node_modules/@appium/base-driver/lib/protocol/routes/index.ts +94 -0
- package/node_modules/@appium/base-driver/lib/protocol/routes/jsonwp.ts +56 -0
- package/node_modules/@appium/base-driver/lib/protocol/routes/mjsonwp.ts +27 -0
- package/node_modules/@appium/base-driver/lib/protocol/routes/w3c.ts +253 -0
- package/node_modules/@appium/base-driver/lib/protocol/validators.ts +20 -0
- package/node_modules/@appium/base-driver/lib/test-pages/crash.ts +15 -0
- package/node_modules/@appium/base-driver/lib/test-pages/env.ts +9 -0
- package/node_modules/@appium/base-driver/lib/test-pages/handlers.ts +67 -0
- package/node_modules/@appium/base-driver/lib/test-pages/index.ts +36 -0
- package/node_modules/@appium/base-driver/lib/test-pages/static-dir.ts +19 -0
- package/node_modules/@appium/base-driver/lib/test-pages/template.ts +15 -0
- package/node_modules/@appium/base-driver/lib/utils.ts +62 -0
- package/node_modules/@appium/base-driver/node_modules/axios/CHANGELOG.md +1934 -0
- package/node_modules/@appium/base-driver/node_modules/axios/LICENSE +7 -0
- package/node_modules/@appium/base-driver/node_modules/axios/MIGRATION_GUIDE.md +877 -0
- package/node_modules/@appium/base-driver/node_modules/axios/README.md +2851 -0
- package/node_modules/@appium/base-driver/node_modules/axios/dist/axios.js +5807 -0
- package/node_modules/@appium/base-driver/node_modules/axios/dist/axios.min.js +5 -0
- package/node_modules/@appium/base-driver/node_modules/axios/dist/axios.min.js.map +1 -0
- package/node_modules/@appium/base-driver/node_modules/axios/dist/browser/axios.cjs +5829 -0
- package/node_modules/@appium/base-driver/node_modules/axios/dist/esm/axios.js +5850 -0
- package/node_modules/@appium/base-driver/node_modules/axios/dist/esm/axios.min.js +3 -0
- package/node_modules/@appium/base-driver/node_modules/axios/dist/esm/axios.min.js.map +1 -0
- package/node_modules/@appium/base-driver/node_modules/axios/dist/node/axios.cjs +6808 -0
- package/node_modules/@appium/base-driver/node_modules/axios/index.d.cts +766 -0
- package/node_modules/@appium/base-driver/node_modules/axios/index.d.ts +787 -0
- package/node_modules/@appium/base-driver/node_modules/axios/index.js +45 -0
- package/node_modules/@appium/base-driver/node_modules/axios/lib/adapters/README.md +36 -0
- package/node_modules/@appium/base-driver/node_modules/axios/lib/adapters/adapters.js +132 -0
- package/node_modules/@appium/base-driver/node_modules/axios/lib/adapters/fetch.js +696 -0
- package/node_modules/@appium/base-driver/node_modules/axios/lib/adapters/http.js +1490 -0
- package/node_modules/@appium/base-driver/node_modules/axios/lib/adapters/xhr.js +277 -0
- package/node_modules/@appium/base-driver/node_modules/axios/lib/axios.js +89 -0
- package/node_modules/@appium/base-driver/node_modules/axios/lib/cancel/CancelToken.js +135 -0
- package/node_modules/@appium/base-driver/node_modules/axios/lib/cancel/CanceledError.js +22 -0
- package/node_modules/@appium/base-driver/node_modules/axios/lib/cancel/isCancel.js +5 -0
- package/node_modules/@appium/base-driver/node_modules/axios/lib/core/Axios.js +306 -0
- package/node_modules/@appium/base-driver/node_modules/axios/lib/core/AxiosError.js +219 -0
- package/node_modules/@appium/base-driver/node_modules/axios/lib/core/AxiosHeaders.js +474 -0
- package/node_modules/@appium/base-driver/node_modules/axios/lib/core/InterceptorManager.js +171 -0
- package/node_modules/@appium/base-driver/node_modules/axios/lib/core/README.md +8 -0
- package/node_modules/@appium/base-driver/node_modules/axios/lib/core/buildFullPath.js +76 -0
- package/node_modules/@appium/base-driver/node_modules/axios/lib/core/dispatchRequest.js +95 -0
- package/node_modules/@appium/base-driver/node_modules/axios/lib/core/mergeConfig.js +174 -0
- package/node_modules/@appium/base-driver/node_modules/axios/lib/core/methodList.js +17 -0
- package/node_modules/@appium/base-driver/node_modules/axios/lib/core/setFormDataHeaders.js +27 -0
- package/node_modules/@appium/base-driver/node_modules/axios/lib/core/settle.js +27 -0
- package/node_modules/@appium/base-driver/node_modules/axios/lib/core/transformData.js +28 -0
- package/node_modules/@appium/base-driver/node_modules/axios/lib/defaults/index.js +178 -0
- package/node_modules/@appium/base-driver/node_modules/axios/lib/defaults/transitional.js +10 -0
- package/node_modules/@appium/base-driver/node_modules/axios/lib/env/README.md +3 -0
- package/node_modules/@appium/base-driver/node_modules/axios/lib/env/classes/FormData.js +2 -0
- package/node_modules/@appium/base-driver/node_modules/axios/lib/env/data.js +1 -0
- package/node_modules/@appium/base-driver/node_modules/axios/lib/helpers/AxiosTransformStream.js +156 -0
- package/node_modules/@appium/base-driver/node_modules/axios/lib/helpers/AxiosURLSearchParams.js +59 -0
- package/node_modules/@appium/base-driver/node_modules/axios/lib/helpers/Http2Sessions.js +121 -0
- package/node_modules/@appium/base-driver/node_modules/axios/lib/helpers/HttpStatusCode.js +88 -0
- package/node_modules/@appium/base-driver/node_modules/axios/lib/helpers/README.md +7 -0
- package/node_modules/@appium/base-driver/node_modules/axios/lib/helpers/ZlibHeaderTransformStream.js +29 -0
- package/node_modules/@appium/base-driver/node_modules/axios/lib/helpers/bind.js +14 -0
- package/node_modules/@appium/base-driver/node_modules/axios/lib/helpers/buildURL.js +69 -0
- package/node_modules/@appium/base-driver/node_modules/axios/lib/helpers/callbackify.js +18 -0
- package/node_modules/@appium/base-driver/node_modules/axios/lib/helpers/combineURLs.js +23 -0
- package/node_modules/@appium/base-driver/node_modules/axios/lib/helpers/composeSignals.js +68 -0
- package/node_modules/@appium/base-driver/node_modules/axios/lib/helpers/cookies.js +64 -0
- package/node_modules/@appium/base-driver/node_modules/axios/lib/helpers/deprecatedMethod.js +31 -0
- package/node_modules/@appium/base-driver/node_modules/axios/lib/helpers/estimateDataURLDecodedBytes.js +166 -0
- package/node_modules/@appium/base-driver/node_modules/axios/lib/helpers/formDataToJSON.js +125 -0
- package/node_modules/@appium/base-driver/node_modules/axios/lib/helpers/formDataToStream.js +119 -0
- package/node_modules/@appium/base-driver/node_modules/axios/lib/helpers/fromDataURI.js +69 -0
- package/node_modules/@appium/base-driver/node_modules/axios/lib/helpers/isAbsoluteURL.js +19 -0
- package/node_modules/@appium/base-driver/node_modules/axios/lib/helpers/isAxiosError.js +14 -0
- package/node_modules/@appium/base-driver/node_modules/axios/lib/helpers/isURLSameOrigin.js +16 -0
- package/node_modules/@appium/base-driver/node_modules/axios/lib/helpers/normalizeURLForProtocolCheck.js +24 -0
- package/node_modules/@appium/base-driver/node_modules/axios/lib/helpers/null.js +2 -0
- package/node_modules/@appium/base-driver/node_modules/axios/lib/helpers/parseHeaders.js +71 -0
- package/node_modules/@appium/base-driver/node_modules/axios/lib/helpers/parseProtocol.js +6 -0
- package/node_modules/@appium/base-driver/node_modules/axios/lib/helpers/progressEventReducer.js +54 -0
- package/node_modules/@appium/base-driver/node_modules/axios/lib/helpers/readBlob.js +15 -0
- package/node_modules/@appium/base-driver/node_modules/axios/lib/helpers/resolveConfig.js +107 -0
- package/node_modules/@appium/base-driver/node_modules/axios/lib/helpers/sanitizeHeaderValue.js +60 -0
- package/node_modules/@appium/base-driver/node_modules/axios/lib/helpers/shouldBypassProxy.js +505 -0
- package/node_modules/@appium/base-driver/node_modules/axios/lib/helpers/speedometer.js +55 -0
- package/node_modules/@appium/base-driver/node_modules/axios/lib/helpers/spread.js +28 -0
- package/node_modules/@appium/base-driver/node_modules/axios/lib/helpers/throttle.js +45 -0
- package/node_modules/@appium/base-driver/node_modules/axios/lib/helpers/toFormData.js +279 -0
- package/node_modules/@appium/base-driver/node_modules/axios/lib/helpers/toURLEncodedForm.js +19 -0
- package/node_modules/@appium/base-driver/node_modules/axios/lib/helpers/trackStream.js +89 -0
- package/node_modules/@appium/base-driver/node_modules/axios/lib/helpers/validator.js +112 -0
- package/node_modules/@appium/base-driver/node_modules/axios/lib/platform/browser/classes/Blob.js +3 -0
- package/node_modules/@appium/base-driver/node_modules/axios/lib/platform/browser/classes/FormData.js +3 -0
- package/node_modules/@appium/base-driver/node_modules/axios/lib/platform/browser/classes/URLSearchParams.js +4 -0
- package/node_modules/@appium/base-driver/node_modules/axios/lib/platform/browser/index.js +13 -0
- package/node_modules/@appium/base-driver/node_modules/axios/lib/platform/common/utils.js +52 -0
- package/node_modules/@appium/base-driver/node_modules/axios/lib/platform/index.js +7 -0
- package/node_modules/@appium/base-driver/node_modules/axios/lib/platform/node/classes/Buffer.js +11 -0
- package/node_modules/@appium/base-driver/node_modules/axios/lib/platform/node/classes/FormData.js +3 -0
- package/node_modules/@appium/base-driver/node_modules/axios/lib/platform/node/classes/URLSearchParams.js +4 -0
- package/node_modules/@appium/base-driver/node_modules/axios/lib/platform/node/index.js +37 -0
- package/node_modules/@appium/base-driver/node_modules/axios/lib/utils.js +1150 -0
- package/node_modules/@appium/base-driver/node_modules/axios/package.json +203 -0
- package/node_modules/@appium/base-driver/package.json +75 -0
- package/node_modules/@appium/base-driver/test-fixtures/static/appium.png +0 -0
- package/node_modules/@appium/base-driver/test-fixtures/static/favicon.ico +0 -0
- package/node_modules/@appium/base-driver/test-fixtures/static/js/jquery.min.js +5 -0
- package/node_modules/@appium/base-driver/test-fixtures/static/test/frameset.html +10 -0
- package/node_modules/@appium/base-driver/test-fixtures/static/test/guinea-pig-app-banner.html +84 -0
- package/node_modules/@appium/base-driver/test-fixtures/static/test/guinea-pig-scrollable.html +135 -0
- package/node_modules/@appium/base-driver/test-fixtures/static/test/guinea-pig.html +90 -0
- package/node_modules/@appium/base-driver/test-fixtures/static/test/guinea-pig2.html +11 -0
- package/node_modules/@appium/base-driver/test-fixtures/static/test/guinea-pig3.html +11 -0
- package/node_modules/@appium/base-driver/test-fixtures/static/test/guinea-pig4.html +11 -0
- package/node_modules/@appium/base-driver/test-fixtures/static/test/guinea-pig5.html +11 -0
- package/node_modules/@appium/base-driver/test-fixtures/static/test/iframes.html +14 -0
- package/node_modules/@appium/base-driver/test-fixtures/static/test/shadow-dom.html +34 -0
- package/node_modules/@appium/base-driver/test-fixtures/static/test/subframe1.html +9 -0
- package/node_modules/@appium/base-driver/test-fixtures/static/test/subframe2.html +8 -0
- package/node_modules/@appium/base-driver/test-fixtures/static/test/subframe3.html +11 -0
- package/node_modules/@appium/base-driver/test-fixtures/static/test/touch.html +56 -0
- package/node_modules/@appium/base-driver/test-fixtures/static/test/welcome.html +10 -0
- package/node_modules/@appium/base-driver/tsconfig.json +28 -0
- package/node_modules/accepts/HISTORY.md +250 -0
- package/node_modules/accepts/LICENSE +23 -0
- package/node_modules/accepts/README.md +140 -0
- package/node_modules/accepts/index.js +238 -0
- package/node_modules/accepts/package.json +47 -0
- package/node_modules/appium-chromedriver/CHANGELOG.md +1932 -0
- package/node_modules/appium-chromedriver/LICENSE +201 -0
- package/node_modules/appium-chromedriver/README.md +146 -0
- package/node_modules/appium-chromedriver/build/lib/chromedriver.d.ts +121 -0
- package/node_modules/appium-chromedriver/build/lib/chromedriver.d.ts.map +1 -0
- package/node_modules/appium-chromedriver/build/lib/chromedriver.js +307 -0
- package/node_modules/appium-chromedriver/build/lib/chromedriver.js.map +1 -0
- package/node_modules/appium-chromedriver/build/lib/commands/binary.d.ts +28 -0
- package/node_modules/appium-chromedriver/build/lib/commands/binary.d.ts.map +1 -0
- package/node_modules/appium-chromedriver/build/lib/commands/binary.js +300 -0
- package/node_modules/appium-chromedriver/build/lib/commands/binary.js.map +1 -0
- package/node_modules/appium-chromedriver/build/lib/commands/process.d.ts +18 -0
- package/node_modules/appium-chromedriver/build/lib/commands/process.d.ts.map +1 -0
- package/node_modules/appium-chromedriver/build/lib/commands/process.js +104 -0
- package/node_modules/appium-chromedriver/build/lib/commands/process.js.map +1 -0
- package/node_modules/appium-chromedriver/build/lib/commands/session.d.ts +28 -0
- package/node_modules/appium-chromedriver/build/lib/commands/session.d.ts.map +1 -0
- package/node_modules/appium-chromedriver/build/lib/commands/session.js +88 -0
- package/node_modules/appium-chromedriver/build/lib/commands/session.js.map +1 -0
- package/node_modules/appium-chromedriver/build/lib/commands/types.d.ts +32 -0
- package/node_modules/appium-chromedriver/build/lib/commands/types.d.ts.map +1 -0
- package/node_modules/appium-chromedriver/build/lib/commands/types.js +2 -0
- package/node_modules/appium-chromedriver/build/lib/commands/types.js.map +1 -0
- package/node_modules/appium-chromedriver/build/lib/commands/version.d.ts +7 -0
- package/node_modules/appium-chromedriver/build/lib/commands/version.d.ts.map +1 -0
- package/node_modules/appium-chromedriver/build/lib/commands/version.js +94 -0
- package/node_modules/appium-chromedriver/build/lib/commands/version.js.map +1 -0
- package/node_modules/appium-chromedriver/build/lib/constants.d.ts +30 -0
- package/node_modules/appium-chromedriver/build/lib/constants.d.ts.map +1 -0
- package/node_modules/appium-chromedriver/build/lib/constants.js +32 -0
- package/node_modules/appium-chromedriver/build/lib/constants.js.map +1 -0
- package/node_modules/appium-chromedriver/build/lib/index.d.ts +6 -0
- package/node_modules/appium-chromedriver/build/lib/index.d.ts.map +1 -0
- package/node_modules/appium-chromedriver/build/lib/index.js +5 -0
- package/node_modules/appium-chromedriver/build/lib/index.js.map +1 -0
- package/node_modules/appium-chromedriver/build/lib/storage-client/chromelabs.d.ts +22 -0
- package/node_modules/appium-chromedriver/build/lib/storage-client/chromelabs.d.ts.map +1 -0
- package/node_modules/appium-chromedriver/build/lib/storage-client/chromelabs.js +136 -0
- package/node_modules/appium-chromedriver/build/lib/storage-client/chromelabs.js.map +1 -0
- package/node_modules/appium-chromedriver/build/lib/storage-client/googleapis.d.ts +30 -0
- package/node_modules/appium-chromedriver/build/lib/storage-client/googleapis.d.ts.map +1 -0
- package/node_modules/appium-chromedriver/build/lib/storage-client/googleapis.js +162 -0
- package/node_modules/appium-chromedriver/build/lib/storage-client/googleapis.js.map +1 -0
- package/node_modules/appium-chromedriver/build/lib/storage-client/storage-client.d.ts +73 -0
- package/node_modules/appium-chromedriver/build/lib/storage-client/storage-client.d.ts.map +1 -0
- package/node_modules/appium-chromedriver/build/lib/storage-client/storage-client.js +347 -0
- package/node_modules/appium-chromedriver/build/lib/storage-client/storage-client.js.map +1 -0
- package/node_modules/appium-chromedriver/build/lib/types.d.ts +117 -0
- package/node_modules/appium-chromedriver/build/lib/types.d.ts.map +1 -0
- package/node_modules/appium-chromedriver/build/lib/types.js +2 -0
- package/node_modules/appium-chromedriver/build/lib/types.js.map +1 -0
- package/node_modules/appium-chromedriver/build/lib/utils.d.ts +81 -0
- package/node_modules/appium-chromedriver/build/lib/utils.d.ts.map +1 -0
- package/node_modules/appium-chromedriver/build/lib/utils.js +164 -0
- package/node_modules/appium-chromedriver/build/lib/utils.js.map +1 -0
- package/node_modules/appium-chromedriver/config/mapping.json +283 -0
- package/node_modules/appium-chromedriver/lib/chromedriver.ts +363 -0
- package/node_modules/appium-chromedriver/lib/commands/binary.ts +379 -0
- package/node_modules/appium-chromedriver/lib/commands/process.ts +110 -0
- package/node_modules/appium-chromedriver/lib/commands/session.ts +105 -0
- package/node_modules/appium-chromedriver/lib/commands/types.ts +36 -0
- package/node_modules/appium-chromedriver/lib/commands/version.ts +108 -0
- package/node_modules/appium-chromedriver/lib/constants.ts +35 -0
- package/node_modules/appium-chromedriver/lib/index.ts +5 -0
- package/node_modules/appium-chromedriver/lib/storage-client/chromelabs.ts +167 -0
- package/node_modules/appium-chromedriver/lib/storage-client/googleapis.ts +199 -0
- package/node_modules/appium-chromedriver/lib/storage-client/storage-client.ts +413 -0
- package/node_modules/appium-chromedriver/lib/types.ts +116 -0
- package/node_modules/appium-chromedriver/lib/utils.ts +196 -0
- package/node_modules/appium-chromedriver/package.json +71 -0
- package/node_modules/async-lock/AUTHORS +21 -0
- package/node_modules/async-lock/History.md +132 -0
- package/node_modules/async-lock/LICENSE +22 -0
- package/node_modules/async-lock/README.md +177 -0
- package/node_modules/async-lock/index.js +2 -0
- package/node_modules/async-lock/lib/index.js +312 -0
- package/node_modules/async-lock/package.json +48 -0
- package/node_modules/bare-buffer/CMakeLists.txt +30 -0
- package/node_modules/bare-buffer/LICENSE +201 -0
- package/node_modules/bare-buffer/README.md +26 -0
- package/node_modules/bare-buffer/binding.c +2041 -0
- package/node_modules/bare-buffer/binding.js +1 -0
- package/node_modules/bare-buffer/global.d.ts +21 -0
- package/node_modules/bare-buffer/global.js +6 -0
- package/node_modules/bare-buffer/index.d.ts +769 -0
- package/node_modules/bare-buffer/index.js +1339 -0
- package/node_modules/bare-buffer/lib/ascii.js +36 -0
- package/node_modules/bare-buffer/lib/base64.js +25 -0
- package/node_modules/bare-buffer/lib/base64url.js +25 -0
- package/node_modules/bare-buffer/lib/checked.js +23 -0
- package/node_modules/bare-buffer/lib/constants.d.ts +7 -0
- package/node_modules/bare-buffer/lib/constants.js +3 -0
- package/node_modules/bare-buffer/lib/hex.js +20 -0
- package/node_modules/bare-buffer/lib/latin1.js +14 -0
- package/node_modules/bare-buffer/lib/utf16le.js +20 -0
- package/node_modules/bare-buffer/lib/utf8.js +18 -0
- package/node_modules/bare-buffer/package.json +59 -0
- package/node_modules/bare-buffer/prebuilds/android-arm/bare-buffer.bare +0 -0
- package/node_modules/bare-buffer/prebuilds/android-arm64/bare-buffer.bare +0 -0
- package/node_modules/bare-buffer/prebuilds/android-ia32/bare-buffer.bare +0 -0
- package/node_modules/bare-buffer/prebuilds/android-x64/bare-buffer.bare +0 -0
- package/node_modules/bare-buffer/prebuilds/darwin-arm64/bare-buffer.bare +0 -0
- package/node_modules/bare-buffer/prebuilds/darwin-x64/bare-buffer.bare +0 -0
- package/node_modules/bare-buffer/prebuilds/ios-arm64/bare-buffer.bare +0 -0
- package/node_modules/bare-buffer/prebuilds/ios-arm64-simulator/bare-buffer.bare +0 -0
- package/node_modules/bare-buffer/prebuilds/ios-x64-simulator/bare-buffer.bare +0 -0
- package/node_modules/bare-buffer/prebuilds/linux-arm64/bare-buffer.bare +0 -0
- package/node_modules/bare-buffer/prebuilds/linux-x64/bare-buffer.bare +0 -0
- package/node_modules/bare-buffer/prebuilds/win32-arm64/bare-buffer.bare +0 -0
- package/node_modules/bare-buffer/prebuilds/win32-x64/bare-buffer.bare +0 -0
- package/node_modules/bare-url/lib/url-search-params.js +16 -1
- package/node_modules/bare-url/package.json +2 -1
- package/node_modules/bare-url/prebuilds/android-arm/bare-url.bare +0 -0
- package/node_modules/bare-url/prebuilds/android-arm64/bare-url.bare +0 -0
- package/node_modules/bare-url/prebuilds/android-ia32/bare-url.bare +0 -0
- package/node_modules/bare-url/prebuilds/android-x64/bare-url.bare +0 -0
- package/node_modules/bare-url/prebuilds/darwin-arm64/bare-url.bare +0 -0
- package/node_modules/bare-url/prebuilds/darwin-x64/bare-url.bare +0 -0
- package/node_modules/bare-url/prebuilds/ios-arm64/bare-url.bare +0 -0
- package/node_modules/bare-url/prebuilds/ios-arm64-simulator/bare-url.bare +0 -0
- package/node_modules/bare-url/prebuilds/ios-x64-simulator/bare-url.bare +0 -0
- package/node_modules/bare-url/prebuilds/linux-arm64/bare-url.bare +0 -0
- package/node_modules/bare-url/prebuilds/linux-x64/bare-url.bare +0 -0
- package/node_modules/bare-url/prebuilds/win32-arm64/bare-url.bare +0 -0
- package/node_modules/bare-url/prebuilds/win32-x64/bare-url.bare +0 -0
- package/node_modules/basic-auth/HISTORY.md +52 -0
- package/node_modules/basic-auth/LICENSE +24 -0
- package/node_modules/basic-auth/README.md +113 -0
- package/node_modules/basic-auth/index.js +133 -0
- package/node_modules/basic-auth/package.json +41 -0
- package/node_modules/body-parser/LICENSE +23 -0
- package/node_modules/body-parser/README.md +513 -0
- package/node_modules/body-parser/index.js +55 -0
- package/node_modules/body-parser/lib/read.js +264 -0
- package/node_modules/body-parser/lib/types/json.js +186 -0
- package/node_modules/body-parser/lib/types/raw.js +42 -0
- package/node_modules/body-parser/lib/types/text.js +36 -0
- package/node_modules/body-parser/lib/types/urlencoded.js +138 -0
- package/node_modules/body-parser/lib/utils.js +85 -0
- package/node_modules/body-parser/package.json +60 -0
- package/node_modules/bytes/History.md +97 -0
- package/node_modules/bytes/LICENSE +23 -0
- package/node_modules/bytes/Readme.md +152 -0
- package/node_modules/bytes/index.js +170 -0
- package/node_modules/bytes/package.json +42 -0
- package/node_modules/call-bound/.eslintrc +13 -0
- package/node_modules/call-bound/.github/FUNDING.yml +12 -0
- package/node_modules/call-bound/.nycrc +9 -0
- package/node_modules/call-bound/CHANGELOG.md +42 -0
- package/node_modules/call-bound/LICENSE +21 -0
- package/node_modules/call-bound/README.md +53 -0
- package/node_modules/call-bound/index.d.ts +94 -0
- package/node_modules/call-bound/index.js +19 -0
- package/node_modules/call-bound/package.json +99 -0
- package/node_modules/call-bound/test/index.js +61 -0
- package/node_modules/call-bound/tsconfig.json +10 -0
- package/node_modules/content-disposition/LICENSE +22 -0
- package/node_modules/content-disposition/README.md +141 -0
- package/node_modules/content-disposition/index.js +536 -0
- package/node_modules/content-disposition/package.json +40 -0
- package/node_modules/content-type/LICENSE +22 -0
- package/node_modules/content-type/README.md +71 -0
- package/node_modules/content-type/dist/index.d.ts +46 -0
- package/node_modules/content-type/dist/index.js +176 -0
- package/node_modules/content-type/dist/index.js.map +1 -0
- package/node_modules/content-type/package.json +52 -0
- package/node_modules/cookie/LICENSE +24 -0
- package/node_modules/cookie/README.md +317 -0
- package/node_modules/cookie/SECURITY.md +25 -0
- package/node_modules/cookie/index.js +335 -0
- package/node_modules/cookie/package.json +44 -0
- package/node_modules/cookie-signature/History.md +70 -0
- package/node_modules/cookie-signature/LICENSE +22 -0
- package/node_modules/cookie-signature/Readme.md +23 -0
- package/node_modules/cookie-signature/index.js +47 -0
- package/node_modules/cookie-signature/package.json +24 -0
- package/node_modules/depd/History.md +103 -0
- package/node_modules/depd/LICENSE +22 -0
- package/node_modules/depd/Readme.md +280 -0
- package/node_modules/depd/index.js +538 -0
- package/node_modules/depd/lib/browser/index.js +77 -0
- package/node_modules/depd/package.json +45 -0
- package/node_modules/detect-node/LICENSE +21 -0
- package/node_modules/detect-node/Readme.md +30 -0
- package/node_modules/detect-node/browser.js +2 -0
- package/node_modules/detect-node/index.esm.js +2 -0
- package/node_modules/detect-node/index.js +2 -0
- package/node_modules/detect-node/package.json +25 -0
- package/node_modules/ee-first/LICENSE +22 -0
- package/node_modules/ee-first/README.md +80 -0
- package/node_modules/ee-first/index.js +95 -0
- package/node_modules/ee-first/package.json +29 -0
- package/node_modules/encodeurl/LICENSE +22 -0
- package/node_modules/encodeurl/README.md +123 -0
- package/node_modules/encodeurl/index.js +55 -0
- package/node_modules/encodeurl/package.json +44 -0
- package/node_modules/escape-html/LICENSE +24 -0
- package/node_modules/escape-html/Readme.md +43 -0
- package/node_modules/escape-html/index.js +78 -0
- package/node_modules/escape-html/package.json +24 -0
- package/node_modules/etag/HISTORY.md +83 -0
- package/node_modules/etag/LICENSE +22 -0
- package/node_modules/etag/README.md +159 -0
- package/node_modules/etag/index.js +131 -0
- package/node_modules/etag/package.json +47 -0
- package/node_modules/express/LICENSE +24 -0
- package/node_modules/express/Readme.md +276 -0
- package/node_modules/express/index.js +11 -0
- package/node_modules/express/lib/application.js +631 -0
- package/node_modules/express/lib/express.js +81 -0
- package/node_modules/express/lib/request.js +514 -0
- package/node_modules/express/lib/response.js +1053 -0
- package/node_modules/express/lib/utils.js +271 -0
- package/node_modules/express/lib/view.js +205 -0
- package/node_modules/express/node_modules/content-type/HISTORY.md +29 -0
- package/node_modules/express/node_modules/content-type/LICENSE +22 -0
- package/node_modules/express/node_modules/content-type/README.md +94 -0
- package/node_modules/express/node_modules/content-type/index.js +225 -0
- package/node_modules/express/node_modules/content-type/package.json +42 -0
- package/node_modules/express/package.json +99 -0
- package/node_modules/fastest-levenshtein/.eslintrc.json +30 -0
- package/node_modules/fastest-levenshtein/.prettierrc +4 -0
- package/node_modules/fastest-levenshtein/.travis.yml +21 -0
- package/node_modules/fastest-levenshtein/LICENSE.md +21 -0
- package/node_modules/fastest-levenshtein/README.md +57 -0
- package/node_modules/fastest-levenshtein/bench.js +96 -0
- package/node_modules/fastest-levenshtein/esm/mod.d.ts +4 -0
- package/node_modules/fastest-levenshtein/esm/mod.d.ts.map +1 -0
- package/node_modules/fastest-levenshtein/esm/mod.js +138 -0
- package/node_modules/fastest-levenshtein/mod.d.ts +3 -0
- package/node_modules/fastest-levenshtein/mod.js +142 -0
- package/node_modules/fastest-levenshtein/package.json +72 -0
- package/node_modules/fastest-levenshtein/test.js +55 -0
- package/node_modules/fastest-levenshtein/test.ts +67 -0
- package/node_modules/finalhandler/HISTORY.md +239 -0
- package/node_modules/finalhandler/LICENSE +22 -0
- package/node_modules/finalhandler/README.md +150 -0
- package/node_modules/finalhandler/index.js +293 -0
- package/node_modules/finalhandler/package.json +47 -0
- package/node_modules/forwarded/HISTORY.md +21 -0
- package/node_modules/forwarded/LICENSE +22 -0
- package/node_modules/forwarded/README.md +57 -0
- package/node_modules/forwarded/index.js +90 -0
- package/node_modules/forwarded/package.json +45 -0
- package/node_modules/fresh/HISTORY.md +80 -0
- package/node_modules/fresh/LICENSE +23 -0
- package/node_modules/fresh/README.md +117 -0
- package/node_modules/fresh/index.js +136 -0
- package/node_modules/fresh/package.json +46 -0
- package/node_modules/handle-thing/.travis.yml +15 -0
- package/node_modules/handle-thing/README.md +44 -0
- package/node_modules/handle-thing/lib/handle.js +263 -0
- package/node_modules/handle-thing/lib/queue.js +48 -0
- package/node_modules/handle-thing/package.json +38 -0
- package/node_modules/handle-thing/test/api-test.js +110 -0
- package/node_modules/hpack.js/.npmignore +2 -0
- package/node_modules/hpack.js/.travis.yml +6 -0
- package/node_modules/hpack.js/README.md +52 -0
- package/node_modules/hpack.js/bin/benchmark +34 -0
- package/node_modules/hpack.js/lib/hpack/compressor.js +127 -0
- package/node_modules/hpack.js/lib/hpack/decoder.js +169 -0
- package/node_modules/hpack.js/lib/hpack/decompressor.js +116 -0
- package/node_modules/hpack.js/lib/hpack/encoder.js +129 -0
- package/node_modules/hpack.js/lib/hpack/huffman.js +159 -0
- package/node_modules/hpack.js/lib/hpack/static-table.js +691 -0
- package/node_modules/hpack.js/lib/hpack/table.js +85 -0
- package/node_modules/hpack.js/lib/hpack/utils.js +25 -0
- package/node_modules/hpack.js/lib/hpack.js +12 -0
- package/node_modules/hpack.js/node_modules/readable-stream/.travis.yml +34 -0
- package/node_modules/hpack.js/node_modules/readable-stream/CONTRIBUTING.md +38 -0
- package/node_modules/hpack.js/node_modules/readable-stream/GOVERNANCE.md +136 -0
- package/node_modules/hpack.js/node_modules/readable-stream/LICENSE +47 -0
- package/node_modules/hpack.js/node_modules/readable-stream/README.md +58 -0
- package/node_modules/hpack.js/node_modules/readable-stream/doc/wg-meetings/2015-01-30.md +60 -0
- package/node_modules/hpack.js/node_modules/readable-stream/duplex-browser.js +1 -0
- package/node_modules/hpack.js/node_modules/readable-stream/duplex.js +1 -0
- package/node_modules/hpack.js/node_modules/readable-stream/lib/_stream_duplex.js +131 -0
- package/node_modules/hpack.js/node_modules/readable-stream/lib/_stream_passthrough.js +47 -0
- package/node_modules/hpack.js/node_modules/readable-stream/lib/_stream_readable.js +1019 -0
- package/node_modules/hpack.js/node_modules/readable-stream/lib/_stream_transform.js +214 -0
- package/node_modules/hpack.js/node_modules/readable-stream/lib/_stream_writable.js +685 -0
- package/node_modules/hpack.js/node_modules/readable-stream/lib/internal/streams/BufferList.js +78 -0
- package/node_modules/hpack.js/node_modules/readable-stream/lib/internal/streams/destroy.js +84 -0
- package/node_modules/hpack.js/node_modules/readable-stream/lib/internal/streams/stream-browser.js +1 -0
- package/node_modules/hpack.js/node_modules/readable-stream/lib/internal/streams/stream.js +1 -0
- package/node_modules/hpack.js/node_modules/readable-stream/package.json +52 -0
- package/node_modules/hpack.js/node_modules/readable-stream/passthrough.js +1 -0
- package/node_modules/hpack.js/node_modules/readable-stream/readable-browser.js +7 -0
- package/node_modules/hpack.js/node_modules/readable-stream/readable.js +19 -0
- package/node_modules/hpack.js/node_modules/readable-stream/transform.js +1 -0
- package/node_modules/hpack.js/node_modules/readable-stream/writable-browser.js +1 -0
- package/node_modules/hpack.js/node_modules/readable-stream/writable.js +8 -0
- package/node_modules/hpack.js/node_modules/string_decoder/.travis.yml +50 -0
- package/node_modules/hpack.js/node_modules/string_decoder/LICENSE +48 -0
- package/node_modules/hpack.js/node_modules/string_decoder/README.md +47 -0
- package/node_modules/hpack.js/node_modules/string_decoder/lib/string_decoder.js +296 -0
- package/node_modules/hpack.js/node_modules/string_decoder/package.json +31 -0
- package/node_modules/hpack.js/package.json +35 -0
- package/node_modules/hpack.js/test/compressor-test.js +136 -0
- package/node_modules/hpack.js/test/decoder-test.js +181 -0
- package/node_modules/hpack.js/test/decompressor-test.js +184 -0
- package/node_modules/hpack.js/test/encoder-test.js +166 -0
- package/node_modules/hpack.js/test/fixtures.js +232 -0
- package/node_modules/hpack.js/tools/gen-huffman.js +309 -0
- package/node_modules/hpack.js/tools/gen-static-table.js +103 -0
- package/node_modules/hpack.js/tools/utils.js +23 -0
- package/node_modules/http-deceiver/.npmignore +2 -0
- package/node_modules/http-deceiver/.travis.yml +5 -0
- package/node_modules/http-deceiver/README.md +31 -0
- package/node_modules/http-deceiver/lib/deceiver.js +250 -0
- package/node_modules/http-deceiver/package.json +30 -0
- package/node_modules/http-deceiver/test/api-test.js +226 -0
- package/node_modules/http-errors/HISTORY.md +186 -0
- package/node_modules/http-errors/LICENSE +23 -0
- package/node_modules/http-errors/README.md +169 -0
- package/node_modules/http-errors/index.js +290 -0
- package/node_modules/http-errors/package.json +54 -0
- package/node_modules/http-status-codes/LICENSE +19 -0
- package/node_modules/http-status-codes/README.md +140 -0
- package/node_modules/http-status-codes/build/cjs/index.d.ts +63 -0
- package/node_modules/http-status-codes/build/cjs/index.js +39 -0
- package/node_modules/http-status-codes/build/cjs/legacy.d.ts +326 -0
- package/node_modules/http-status-codes/build/cjs/legacy.js +330 -0
- package/node_modules/http-status-codes/build/cjs/reason-phrases.d.ts +356 -0
- package/node_modules/http-status-codes/build/cjs/reason-phrases.js +361 -0
- package/node_modules/http-status-codes/build/cjs/status-codes.d.ts +356 -0
- package/node_modules/http-status-codes/build/cjs/status-codes.js +361 -0
- package/node_modules/http-status-codes/build/cjs/utils-functions.d.ts +28 -0
- package/node_modules/http-status-codes/build/cjs/utils-functions.js +46 -0
- package/node_modules/http-status-codes/build/cjs/utils.d.ts +2 -0
- package/node_modules/http-status-codes/build/cjs/utils.js +124 -0
- package/node_modules/http-status-codes/build/es/index.d.ts +63 -0
- package/node_modules/http-status-codes/build/es/index.js +19 -0
- package/node_modules/http-status-codes/build/es/legacy.d.ts +326 -0
- package/node_modules/http-status-codes/build/es/legacy.js +327 -0
- package/node_modules/http-status-codes/build/es/reason-phrases.d.ts +356 -0
- package/node_modules/http-status-codes/build/es/reason-phrases.js +358 -0
- package/node_modules/http-status-codes/build/es/status-codes.d.ts +356 -0
- package/node_modules/http-status-codes/build/es/status-codes.js +358 -0
- package/node_modules/http-status-codes/build/es/utils-functions.d.ts +28 -0
- package/node_modules/http-status-codes/build/es/utils-functions.js +41 -0
- package/node_modules/http-status-codes/build/es/utils.d.ts +2 -0
- package/node_modules/http-status-codes/build/es/utils.js +121 -0
- package/node_modules/http-status-codes/package.json +51 -0
- package/node_modules/iconv-lite/LICENSE +21 -0
- package/node_modules/iconv-lite/README.md +138 -0
- package/node_modules/iconv-lite/encodings/dbcs-codec.js +532 -0
- package/node_modules/iconv-lite/encodings/dbcs-data.js +185 -0
- package/node_modules/iconv-lite/encodings/index.js +23 -0
- package/node_modules/iconv-lite/encodings/internal.js +218 -0
- package/node_modules/iconv-lite/encodings/sbcs-codec.js +75 -0
- package/node_modules/iconv-lite/encodings/sbcs-data-generated.js +451 -0
- package/node_modules/iconv-lite/encodings/sbcs-data.js +180 -0
- package/node_modules/iconv-lite/encodings/tables/big5-added.json +122 -0
- package/node_modules/iconv-lite/encodings/tables/cp936.json +264 -0
- package/node_modules/iconv-lite/encodings/tables/cp949.json +273 -0
- package/node_modules/iconv-lite/encodings/tables/cp950.json +177 -0
- package/node_modules/iconv-lite/encodings/tables/eucjp.json +182 -0
- package/node_modules/iconv-lite/encodings/tables/gb18030-ranges.json +1 -0
- package/node_modules/iconv-lite/encodings/tables/gbk-added.json +56 -0
- package/node_modules/iconv-lite/encodings/tables/shiftjis.json +125 -0
- package/node_modules/iconv-lite/encodings/utf16.js +187 -0
- package/node_modules/iconv-lite/encodings/utf32.js +314 -0
- package/node_modules/iconv-lite/encodings/utf7.js +283 -0
- package/node_modules/iconv-lite/lib/bom-handling.js +48 -0
- package/node_modules/iconv-lite/lib/helpers/merge-exports.js +13 -0
- package/node_modules/iconv-lite/lib/index.d.ts +129 -0
- package/node_modules/iconv-lite/lib/index.js +182 -0
- package/node_modules/iconv-lite/lib/streams.js +105 -0
- package/node_modules/iconv-lite/package.json +70 -0
- package/node_modules/iconv-lite/types/encodings.d.ts +425 -0
- package/node_modules/ipaddr.js/LICENSE +19 -0
- package/node_modules/ipaddr.js/README.md +233 -0
- package/node_modules/ipaddr.js/ipaddr.min.js +1 -0
- package/node_modules/ipaddr.js/lib/ipaddr.js +673 -0
- package/node_modules/ipaddr.js/lib/ipaddr.js.d.ts +68 -0
- package/node_modules/ipaddr.js/package.json +35 -0
- package/node_modules/is-promise/LICENSE +19 -0
- package/node_modules/is-promise/index.d.ts +2 -0
- package/node_modules/is-promise/index.js +6 -0
- package/node_modules/is-promise/index.mjs +3 -0
- package/node_modules/is-promise/package.json +30 -0
- package/node_modules/is-promise/readme.md +33 -0
- package/node_modules/media-typer/HISTORY.md +50 -0
- package/node_modules/media-typer/LICENSE +22 -0
- package/node_modules/media-typer/README.md +94 -0
- package/node_modules/media-typer/index.js +135 -0
- package/node_modules/media-typer/package.json +37 -0
- package/node_modules/merge-descriptors/index.d.ts +11 -0
- package/node_modules/merge-descriptors/index.js +26 -0
- package/node_modules/merge-descriptors/license +11 -0
- package/node_modules/merge-descriptors/package.json +50 -0
- package/node_modules/merge-descriptors/readme.md +55 -0
- package/node_modules/method-override/HISTORY.md +163 -0
- package/node_modules/method-override/LICENSE +23 -0
- package/node_modules/method-override/README.md +180 -0
- package/node_modules/method-override/index.js +144 -0
- package/node_modules/method-override/node_modules/debug/.coveralls.yml +1 -0
- package/node_modules/method-override/node_modules/debug/.eslintrc +14 -0
- package/node_modules/method-override/node_modules/debug/.npmignore +9 -0
- package/node_modules/method-override/node_modules/debug/.travis.yml +20 -0
- package/node_modules/method-override/node_modules/debug/CHANGELOG.md +395 -0
- package/node_modules/method-override/node_modules/debug/LICENSE +19 -0
- package/node_modules/method-override/node_modules/debug/Makefile +58 -0
- package/node_modules/method-override/node_modules/debug/README.md +368 -0
- package/node_modules/method-override/node_modules/debug/karma.conf.js +70 -0
- package/node_modules/method-override/node_modules/debug/node.js +1 -0
- package/node_modules/method-override/node_modules/debug/package.json +43 -0
- package/node_modules/method-override/node_modules/debug/src/browser.js +195 -0
- package/node_modules/method-override/node_modules/debug/src/debug.js +225 -0
- package/node_modules/method-override/node_modules/debug/src/index.js +10 -0
- package/node_modules/method-override/node_modules/debug/src/node.js +186 -0
- package/node_modules/method-override/node_modules/ms/index.js +152 -0
- package/node_modules/method-override/node_modules/ms/license.md +21 -0
- package/node_modules/method-override/node_modules/ms/package.json +37 -0
- package/node_modules/method-override/node_modules/ms/readme.md +51 -0
- package/node_modules/method-override/package.json +43 -0
- package/node_modules/methods/HISTORY.md +29 -0
- package/node_modules/methods/LICENSE +24 -0
- package/node_modules/methods/README.md +51 -0
- package/node_modules/methods/index.js +69 -0
- package/node_modules/methods/package.json +36 -0
- package/node_modules/mime-db/HISTORY.md +541 -0
- package/node_modules/mime-db/LICENSE +23 -0
- package/node_modules/mime-db/README.md +109 -0
- package/node_modules/mime-db/db.json +9342 -0
- package/node_modules/mime-db/index.js +12 -0
- package/node_modules/mime-db/package.json +56 -0
- package/node_modules/mime-types/HISTORY.md +428 -0
- package/node_modules/mime-types/LICENSE +23 -0
- package/node_modules/mime-types/README.md +126 -0
- package/node_modules/mime-types/index.js +211 -0
- package/node_modules/mime-types/mimeScore.js +57 -0
- package/node_modules/mime-types/package.json +49 -0
- package/node_modules/minimalistic-assert/LICENSE +13 -0
- package/node_modules/minimalistic-assert/index.js +11 -0
- package/node_modules/minimalistic-assert/package.json +19 -0
- package/node_modules/minimalistic-assert/readme.md +4 -0
- package/node_modules/morgan/LICENSE +23 -0
- package/node_modules/morgan/README.md +479 -0
- package/node_modules/morgan/index.js +596 -0
- package/node_modules/morgan/node_modules/debug/.coveralls.yml +1 -0
- package/node_modules/morgan/node_modules/debug/.eslintrc +11 -0
- package/node_modules/morgan/node_modules/debug/.npmignore +9 -0
- package/node_modules/morgan/node_modules/debug/.travis.yml +14 -0
- package/node_modules/morgan/node_modules/debug/CHANGELOG.md +362 -0
- package/node_modules/morgan/node_modules/debug/LICENSE +19 -0
- package/node_modules/morgan/node_modules/debug/Makefile +50 -0
- package/node_modules/morgan/node_modules/debug/README.md +312 -0
- package/node_modules/morgan/node_modules/debug/component.json +19 -0
- package/node_modules/morgan/node_modules/debug/karma.conf.js +70 -0
- package/node_modules/morgan/node_modules/debug/node.js +1 -0
- package/node_modules/morgan/node_modules/debug/package.json +49 -0
- package/node_modules/morgan/node_modules/debug/src/browser.js +185 -0
- package/node_modules/morgan/node_modules/debug/src/debug.js +202 -0
- package/node_modules/morgan/node_modules/debug/src/index.js +10 -0
- package/node_modules/morgan/node_modules/debug/src/inspector-log.js +15 -0
- package/node_modules/morgan/node_modules/debug/src/node.js +248 -0
- package/node_modules/morgan/node_modules/ms/index.js +152 -0
- package/node_modules/morgan/node_modules/ms/license.md +21 -0
- package/node_modules/morgan/node_modules/ms/package.json +37 -0
- package/node_modules/morgan/node_modules/ms/readme.md +51 -0
- package/node_modules/morgan/package.json +55 -0
- package/node_modules/negotiator/LICENSE +24 -0
- package/node_modules/negotiator/README.md +212 -0
- package/node_modules/negotiator/index.js +83 -0
- package/node_modules/negotiator/lib/accept.js +54 -0
- package/node_modules/negotiator/lib/charset.js +145 -0
- package/node_modules/negotiator/lib/encoding.js +184 -0
- package/node_modules/negotiator/lib/language.js +158 -0
- package/node_modules/negotiator/lib/mediaType.js +176 -0
- package/node_modules/negotiator/package.json +49 -0
- package/node_modules/object-inspect/.eslintrc +53 -0
- package/node_modules/object-inspect/.github/FUNDING.yml +12 -0
- package/node_modules/object-inspect/.nycrc +13 -0
- package/node_modules/object-inspect/CHANGELOG.md +424 -0
- package/node_modules/object-inspect/LICENSE +21 -0
- package/node_modules/object-inspect/example/all.js +23 -0
- package/node_modules/object-inspect/example/circular.js +6 -0
- package/node_modules/object-inspect/example/fn.js +5 -0
- package/node_modules/object-inspect/example/inspect.js +10 -0
- package/node_modules/object-inspect/index.js +544 -0
- package/node_modules/object-inspect/package-support.json +20 -0
- package/node_modules/object-inspect/package.json +105 -0
- package/node_modules/object-inspect/readme.markdown +84 -0
- package/node_modules/object-inspect/test/bigint.js +58 -0
- package/node_modules/object-inspect/test/browser/dom.js +15 -0
- package/node_modules/object-inspect/test/circular.js +16 -0
- package/node_modules/object-inspect/test/deep.js +12 -0
- package/node_modules/object-inspect/test/element.js +53 -0
- package/node_modules/object-inspect/test/err.js +48 -0
- package/node_modules/object-inspect/test/fakes.js +29 -0
- package/node_modules/object-inspect/test/fn.js +76 -0
- package/node_modules/object-inspect/test/global.js +17 -0
- package/node_modules/object-inspect/test/has.js +15 -0
- package/node_modules/object-inspect/test/holes.js +15 -0
- package/node_modules/object-inspect/test/indent-option.js +271 -0
- package/node_modules/object-inspect/test/inspect.js +139 -0
- package/node_modules/object-inspect/test/lowbyte.js +12 -0
- package/node_modules/object-inspect/test/number.js +58 -0
- package/node_modules/object-inspect/test/quoteStyle.js +26 -0
- package/node_modules/object-inspect/test/toStringTag.js +40 -0
- package/node_modules/object-inspect/test/undef.js +12 -0
- package/node_modules/object-inspect/test/values.js +261 -0
- package/node_modules/object-inspect/test-core-js.js +26 -0
- package/node_modules/object-inspect/util.inspect.js +1 -0
- package/node_modules/obuf/LICENSE +20 -0
- package/node_modules/obuf/README.md +12 -0
- package/node_modules/obuf/index.js +396 -0
- package/node_modules/obuf/package.json +27 -0
- package/node_modules/obuf/test/buffer-test.js +268 -0
- package/node_modules/on-finished/LICENSE +23 -0
- package/node_modules/on-finished/README.md +162 -0
- package/node_modules/on-finished/index.js +246 -0
- package/node_modules/on-finished/package.json +43 -0
- package/node_modules/on-headers/HISTORY.md +26 -0
- package/node_modules/on-headers/LICENSE +22 -0
- package/node_modules/on-headers/README.md +81 -0
- package/node_modules/on-headers/index.js +180 -0
- package/node_modules/on-headers/package.json +44 -0
- package/node_modules/parseurl/HISTORY.md +58 -0
- package/node_modules/parseurl/LICENSE +24 -0
- package/node_modules/parseurl/README.md +133 -0
- package/node_modules/parseurl/index.js +158 -0
- package/node_modules/parseurl/package.json +40 -0
- package/node_modules/path-to-regexp/LICENSE +21 -0
- package/node_modules/path-to-regexp/Readme.md +224 -0
- package/node_modules/path-to-regexp/dist/index.d.ts +147 -0
- package/node_modules/path-to-regexp/dist/index.js +431 -0
- package/node_modules/path-to-regexp/dist/index.js.map +1 -0
- package/node_modules/path-to-regexp/package.json +64 -0
- package/node_modules/proxy-addr/HISTORY.md +167 -0
- package/node_modules/proxy-addr/LICENSE +22 -0
- package/node_modules/proxy-addr/README.md +139 -0
- package/node_modules/proxy-addr/index.js +359 -0
- package/node_modules/proxy-addr/package.json +51 -0
- package/node_modules/qs/.editorconfig +46 -0
- package/node_modules/qs/.github/FUNDING.yml +12 -0
- package/node_modules/qs/.github/SECURITY.md +11 -0
- package/node_modules/qs/.github/THREAT_MODEL.md +80 -0
- package/node_modules/qs/.nycrc +13 -0
- package/node_modules/qs/CHANGELOG.md +937 -0
- package/node_modules/qs/LICENSE.md +29 -0
- package/node_modules/qs/README.md +857 -0
- package/node_modules/qs/dist/qs.js +141 -0
- package/node_modules/qs/eslint.config.mjs +68 -0
- package/node_modules/qs/lib/formats.js +28 -0
- package/node_modules/qs/lib/index.js +11 -0
- package/node_modules/qs/lib/parse.js +522 -0
- package/node_modules/qs/lib/stringify.js +380 -0
- package/node_modules/qs/lib/utils.js +531 -0
- package/node_modules/qs/package.json +95 -0
- package/node_modules/qs/test/empty-keys-cases.js +267 -0
- package/node_modules/qs/test/parse.js +2629 -0
- package/node_modules/qs/test/stringify.js +2217 -0
- package/node_modules/qs/test/utils.js +880 -0
- package/node_modules/range-parser/HISTORY.md +56 -0
- package/node_modules/range-parser/LICENSE +23 -0
- package/node_modules/range-parser/README.md +85 -0
- package/node_modules/range-parser/index.js +181 -0
- package/node_modules/range-parser/package.json +48 -0
- package/node_modules/raw-body/LICENSE +22 -0
- package/node_modules/raw-body/README.md +223 -0
- package/node_modules/raw-body/index.d.ts +85 -0
- package/node_modules/raw-body/index.js +336 -0
- package/node_modules/raw-body/package.json +46 -0
- package/node_modules/router/HISTORY.md +228 -0
- package/node_modules/router/LICENSE +23 -0
- package/node_modules/router/README.md +416 -0
- package/node_modules/router/index.js +748 -0
- package/node_modules/router/lib/layer.js +247 -0
- package/node_modules/router/lib/route.js +242 -0
- package/node_modules/router/package.json +44 -0
- package/node_modules/safer-buffer/LICENSE +21 -0
- package/node_modules/safer-buffer/Porting-Buffer.md +268 -0
- package/node_modules/safer-buffer/Readme.md +156 -0
- package/node_modules/safer-buffer/dangerous.js +58 -0
- package/node_modules/safer-buffer/package.json +34 -0
- package/node_modules/safer-buffer/safer.js +77 -0
- package/node_modules/safer-buffer/tests.js +406 -0
- package/node_modules/select-hose/.jscsrc +46 -0
- package/node_modules/select-hose/.jshintrc +89 -0
- package/node_modules/select-hose/.npmignore +2 -0
- package/node_modules/select-hose/.travis.yml +5 -0
- package/node_modules/select-hose/README.md +31 -0
- package/node_modules/select-hose/lib/hose.js +101 -0
- package/node_modules/select-hose/package.json +31 -0
- package/node_modules/select-hose/test/api-test.js +111 -0
- package/node_modules/select-hose/test/fixtures.js +14 -0
- package/node_modules/send/LICENSE +23 -0
- package/node_modules/send/README.md +317 -0
- package/node_modules/send/index.js +997 -0
- package/node_modules/send/package.json +63 -0
- package/node_modules/serve-favicon/HISTORY.md +194 -0
- package/node_modules/serve-favicon/LICENSE +25 -0
- package/node_modules/serve-favicon/README.md +136 -0
- package/node_modules/serve-favicon/index.js +226 -0
- package/node_modules/serve-favicon/node_modules/fresh/HISTORY.md +70 -0
- package/node_modules/serve-favicon/node_modules/fresh/LICENSE +23 -0
- package/node_modules/serve-favicon/node_modules/fresh/README.md +119 -0
- package/node_modules/serve-favicon/node_modules/fresh/index.js +137 -0
- package/node_modules/serve-favicon/node_modules/fresh/package.json +46 -0
- package/node_modules/serve-favicon/node_modules/safe-buffer/LICENSE +21 -0
- package/node_modules/serve-favicon/node_modules/safe-buffer/README.md +584 -0
- package/node_modules/serve-favicon/node_modules/safe-buffer/index.d.ts +187 -0
- package/node_modules/serve-favicon/node_modules/safe-buffer/index.js +65 -0
- package/node_modules/serve-favicon/node_modules/safe-buffer/package.json +51 -0
- package/node_modules/serve-favicon/package.json +47 -0
- package/node_modules/serve-static/LICENSE +25 -0
- package/node_modules/serve-static/README.md +253 -0
- package/node_modules/serve-static/index.js +208 -0
- package/node_modules/serve-static/package.json +44 -0
- package/node_modules/setprototypeof/LICENSE +13 -0
- package/node_modules/setprototypeof/README.md +31 -0
- package/node_modules/setprototypeof/index.d.ts +2 -0
- package/node_modules/setprototypeof/index.js +17 -0
- package/node_modules/setprototypeof/package.json +38 -0
- package/node_modules/setprototypeof/test/index.js +24 -0
- package/node_modules/side-channel/.editorconfig +9 -0
- package/node_modules/side-channel/.eslintrc +12 -0
- package/node_modules/side-channel/.github/FUNDING.yml +12 -0
- package/node_modules/side-channel/.nycrc +13 -0
- package/node_modules/side-channel/CHANGELOG.md +120 -0
- package/node_modules/side-channel/LICENSE +21 -0
- package/node_modules/side-channel/README.md +61 -0
- package/node_modules/side-channel/index.d.ts +14 -0
- package/node_modules/side-channel/index.js +46 -0
- package/node_modules/side-channel/package.json +85 -0
- package/node_modules/side-channel/test/index.js +120 -0
- package/node_modules/side-channel/tsconfig.json +9 -0
- package/node_modules/side-channel-list/.editorconfig +9 -0
- package/node_modules/side-channel-list/.eslintrc +11 -0
- package/node_modules/side-channel-list/.github/FUNDING.yml +12 -0
- package/node_modules/side-channel-list/.nycrc +13 -0
- package/node_modules/side-channel-list/CHANGELOG.md +36 -0
- package/node_modules/side-channel-list/LICENSE +21 -0
- package/node_modules/side-channel-list/README.md +62 -0
- package/node_modules/side-channel-list/index.d.ts +13 -0
- package/node_modules/side-channel-list/index.js +111 -0
- package/node_modules/side-channel-list/list.d.ts +14 -0
- package/node_modules/side-channel-list/package.json +77 -0
- package/node_modules/side-channel-list/test/index.js +154 -0
- package/node_modules/side-channel-list/tsconfig.json +9 -0
- package/node_modules/side-channel-map/.editorconfig +9 -0
- package/node_modules/side-channel-map/.eslintrc +11 -0
- package/node_modules/side-channel-map/.github/FUNDING.yml +12 -0
- package/node_modules/side-channel-map/.nycrc +13 -0
- package/node_modules/side-channel-map/CHANGELOG.md +22 -0
- package/node_modules/side-channel-map/LICENSE +21 -0
- package/node_modules/side-channel-map/README.md +62 -0
- package/node_modules/side-channel-map/index.d.ts +15 -0
- package/node_modules/side-channel-map/index.js +68 -0
- package/node_modules/side-channel-map/package.json +80 -0
- package/node_modules/side-channel-map/test/index.js +114 -0
- package/node_modules/side-channel-map/tsconfig.json +9 -0
- package/node_modules/side-channel-weakmap/.editorconfig +9 -0
- package/node_modules/side-channel-weakmap/.eslintrc +12 -0
- package/node_modules/side-channel-weakmap/.github/FUNDING.yml +12 -0
- package/node_modules/side-channel-weakmap/.nycrc +13 -0
- package/node_modules/side-channel-weakmap/CHANGELOG.md +28 -0
- package/node_modules/side-channel-weakmap/LICENSE +21 -0
- package/node_modules/side-channel-weakmap/README.md +62 -0
- package/node_modules/side-channel-weakmap/index.d.ts +15 -0
- package/node_modules/side-channel-weakmap/index.js +84 -0
- package/node_modules/side-channel-weakmap/package.json +87 -0
- package/node_modules/side-channel-weakmap/test/index.js +114 -0
- package/node_modules/side-channel-weakmap/tsconfig.json +9 -0
- package/node_modules/spdy/.travis.yml +13 -0
- package/node_modules/spdy/README.md +267 -0
- package/node_modules/spdy/lib/spdy/agent.js +295 -0
- package/node_modules/spdy/lib/spdy/handle.js +247 -0
- package/node_modules/spdy/lib/spdy/request.js +33 -0
- package/node_modules/spdy/lib/spdy/response.js +100 -0
- package/node_modules/spdy/lib/spdy/server.js +288 -0
- package/node_modules/spdy/lib/spdy/socket.js +39 -0
- package/node_modules/spdy/lib/spdy.js +20 -0
- package/node_modules/spdy/package.json +54 -0
- package/node_modules/spdy/test/client-test.js +242 -0
- package/node_modules/spdy/test/fixtures.js +95 -0
- package/node_modules/spdy/test/server-test.js +487 -0
- package/node_modules/spdy-transport/.travis.yml +14 -0
- package/node_modules/spdy-transport/README.md +76 -0
- package/node_modules/spdy-transport/lib/spdy-transport/connection.js +845 -0
- package/node_modules/spdy-transport/lib/spdy-transport/priority.js +188 -0
- package/node_modules/spdy-transport/lib/spdy-transport/protocol/base/constants.js +4 -0
- package/node_modules/spdy-transport/lib/spdy-transport/protocol/base/framer.js +58 -0
- package/node_modules/spdy-transport/lib/spdy-transport/protocol/base/index.js +7 -0
- package/node_modules/spdy-transport/lib/spdy-transport/protocol/base/parser.js +106 -0
- package/node_modules/spdy-transport/lib/spdy-transport/protocol/base/scheduler.js +216 -0
- package/node_modules/spdy-transport/lib/spdy-transport/protocol/base/utils.js +94 -0
- package/node_modules/spdy-transport/lib/spdy-transport/protocol/http2/constants.js +93 -0
- package/node_modules/spdy-transport/lib/spdy-transport/protocol/http2/framer.js +542 -0
- package/node_modules/spdy-transport/lib/spdy-transport/protocol/http2/hpack-pool.js +34 -0
- package/node_modules/spdy-transport/lib/spdy-transport/protocol/http2/index.js +8 -0
- package/node_modules/spdy-transport/lib/spdy-transport/protocol/http2/parser.js +578 -0
- package/node_modules/spdy-transport/lib/spdy-transport/protocol/spdy/constants.js +146 -0
- package/node_modules/spdy-transport/lib/spdy-transport/protocol/spdy/dictionary.js +203 -0
- package/node_modules/spdy-transport/lib/spdy-transport/protocol/spdy/framer.js +519 -0
- package/node_modules/spdy-transport/lib/spdy-transport/protocol/spdy/index.js +9 -0
- package/node_modules/spdy-transport/lib/spdy-transport/protocol/spdy/parser.js +485 -0
- package/node_modules/spdy-transport/lib/spdy-transport/protocol/spdy/zlib-pool.js +65 -0
- package/node_modules/spdy-transport/lib/spdy-transport/stream.js +710 -0
- package/node_modules/spdy-transport/lib/spdy-transport/utils.js +196 -0
- package/node_modules/spdy-transport/lib/spdy-transport/window.js +174 -0
- package/node_modules/spdy-transport/lib/spdy-transport.js +25 -0
- package/node_modules/spdy-transport/node_modules/readable-stream/CONTRIBUTING.md +38 -0
- package/node_modules/spdy-transport/node_modules/readable-stream/GOVERNANCE.md +136 -0
- package/node_modules/spdy-transport/node_modules/readable-stream/LICENSE +47 -0
- package/node_modules/spdy-transport/node_modules/readable-stream/README.md +106 -0
- package/node_modules/spdy-transport/node_modules/readable-stream/errors-browser.js +127 -0
- package/node_modules/spdy-transport/node_modules/readable-stream/errors.js +116 -0
- package/node_modules/spdy-transport/node_modules/readable-stream/experimentalWarning.js +17 -0
- package/node_modules/spdy-transport/node_modules/readable-stream/lib/_stream_duplex.js +126 -0
- package/node_modules/spdy-transport/node_modules/readable-stream/lib/_stream_passthrough.js +37 -0
- package/node_modules/spdy-transport/node_modules/readable-stream/lib/_stream_readable.js +1027 -0
- package/node_modules/spdy-transport/node_modules/readable-stream/lib/_stream_transform.js +190 -0
- package/node_modules/spdy-transport/node_modules/readable-stream/lib/_stream_writable.js +641 -0
- package/node_modules/spdy-transport/node_modules/readable-stream/lib/internal/streams/async_iterator.js +180 -0
- package/node_modules/spdy-transport/node_modules/readable-stream/lib/internal/streams/buffer_list.js +183 -0
- package/node_modules/spdy-transport/node_modules/readable-stream/lib/internal/streams/destroy.js +96 -0
- package/node_modules/spdy-transport/node_modules/readable-stream/lib/internal/streams/end-of-stream.js +86 -0
- package/node_modules/spdy-transport/node_modules/readable-stream/lib/internal/streams/from-browser.js +3 -0
- package/node_modules/spdy-transport/node_modules/readable-stream/lib/internal/streams/from.js +52 -0
- package/node_modules/spdy-transport/node_modules/readable-stream/lib/internal/streams/pipeline.js +86 -0
- package/node_modules/spdy-transport/node_modules/readable-stream/lib/internal/streams/state.js +22 -0
- package/node_modules/spdy-transport/node_modules/readable-stream/lib/internal/streams/stream-browser.js +1 -0
- package/node_modules/spdy-transport/node_modules/readable-stream/lib/internal/streams/stream.js +1 -0
- package/node_modules/spdy-transport/node_modules/readable-stream/package.json +68 -0
- package/node_modules/spdy-transport/node_modules/readable-stream/readable-browser.js +9 -0
- package/node_modules/spdy-transport/node_modules/readable-stream/readable.js +16 -0
- package/node_modules/spdy-transport/package.json +43 -0
- package/node_modules/statuses/HISTORY.md +87 -0
- package/node_modules/statuses/LICENSE +23 -0
- package/node_modules/statuses/README.md +139 -0
- package/node_modules/statuses/codes.json +65 -0
- package/node_modules/statuses/index.js +146 -0
- package/node_modules/statuses/package.json +49 -0
- package/node_modules/toidentifier/HISTORY.md +9 -0
- package/node_modules/toidentifier/LICENSE +21 -0
- package/node_modules/toidentifier/README.md +61 -0
- package/node_modules/toidentifier/index.js +32 -0
- package/node_modules/toidentifier/package.json +38 -0
- package/node_modules/type-is/HISTORY.md +292 -0
- package/node_modules/type-is/LICENSE +23 -0
- package/node_modules/type-is/README.md +198 -0
- package/node_modules/type-is/index.js +240 -0
- package/node_modules/type-is/package.json +51 -0
- package/node_modules/unpipe/HISTORY.md +4 -0
- package/node_modules/unpipe/LICENSE +22 -0
- package/node_modules/unpipe/README.md +43 -0
- package/node_modules/unpipe/index.js +69 -0
- package/node_modules/unpipe/package.json +27 -0
- package/node_modules/vary/HISTORY.md +39 -0
- package/node_modules/vary/LICENSE +22 -0
- package/node_modules/vary/README.md +101 -0
- package/node_modules/vary/index.js +149 -0
- package/node_modules/vary/package.json +43 -0
- package/node_modules/wbuf/README.md +26 -0
- package/node_modules/wbuf/index.js +425 -0
- package/node_modules/wbuf/package.json +29 -0
- package/node_modules/wbuf/test/wbuf-test.js +357 -0
- package/node_modules/xpath/LICENSE +22 -0
- package/node_modules/xpath/README.md +133 -0
- package/node_modules/xpath/package.json +43 -0
- package/node_modules/xpath/xpath.d.ts +110 -0
- package/node_modules/xpath/xpath.js +5056 -0
- package/package.json +3 -1
|
@@ -0,0 +1,1150 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
import bind from './helpers/bind.js';
|
|
4
|
+
|
|
5
|
+
// utils is a library of generic helper functions non-specific to axios
|
|
6
|
+
|
|
7
|
+
const { toString } = Object.prototype;
|
|
8
|
+
const { getPrototypeOf } = Object;
|
|
9
|
+
const { iterator, toStringTag } = Symbol;
|
|
10
|
+
|
|
11
|
+
/* Creating a function that will check if an object has a property. */
|
|
12
|
+
const hasOwnProperty = (
|
|
13
|
+
({ hasOwnProperty }) =>
|
|
14
|
+
(obj, prop) =>
|
|
15
|
+
hasOwnProperty.call(obj, prop)
|
|
16
|
+
)(Object.prototype);
|
|
17
|
+
|
|
18
|
+
const isUnsafeObjectKey = (prop) =>
|
|
19
|
+
typeof prop === 'string' &&
|
|
20
|
+
(prop === '__proto__' || prop === 'constructor' || prop === 'prototype');
|
|
21
|
+
|
|
22
|
+
/**
|
|
23
|
+
* Determine whether an inherited object must be treated as a shared-prototype
|
|
24
|
+
* boundary. Cross-realm Object.prototype objects cannot be distinguished
|
|
25
|
+
* reliably from application-created null-prototype objects because their
|
|
26
|
+
* properties are mutable, so all inherited terminal prototypes are excluded
|
|
27
|
+
* as a fail-closed boundary. A null-prototype source still keeps its own
|
|
28
|
+
* properties, as produced by mergeConfig and other safe materialization paths.
|
|
29
|
+
*
|
|
30
|
+
* @param {*} obj The object to inspect
|
|
31
|
+
* @param {*} prototype The object's prototype
|
|
32
|
+
* @param {boolean} source Whether obj is the original traversal source
|
|
33
|
+
*
|
|
34
|
+
* @returns {boolean} True when obj is a safe prototype traversal boundary
|
|
35
|
+
*/
|
|
36
|
+
const isPrototypeBoundary = (obj, prototype, source) =>
|
|
37
|
+
obj === Object.prototype || (!source && prototype === null);
|
|
38
|
+
|
|
39
|
+
/**
|
|
40
|
+
* Determine whether an object can retain its identity through code paths that
|
|
41
|
+
* add, replace, and remove config properties without bypassing unsafe-key
|
|
42
|
+
* filtering. Immutable objects, unsafe-key-bearing objects, and objects with
|
|
43
|
+
* accessor or restricted data properties must be materialized instead.
|
|
44
|
+
*
|
|
45
|
+
* @param {*} obj The object to inspect
|
|
46
|
+
*
|
|
47
|
+
* @returns {boolean} True when every own property is safe and fully mutable
|
|
48
|
+
*/
|
|
49
|
+
const isSafeAndFullyMutable = (obj) => {
|
|
50
|
+
if (!Object.isExtensible(obj)) {
|
|
51
|
+
return false;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
const props = Object.getOwnPropertyNames(obj);
|
|
55
|
+
|
|
56
|
+
if (Object.getOwnPropertySymbols) {
|
|
57
|
+
props.push(...Object.getOwnPropertySymbols(obj));
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
return props.every((prop) => {
|
|
61
|
+
if (isUnsafeObjectKey(prop)) {
|
|
62
|
+
return false;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
const descriptor = Object.getOwnPropertyDescriptor(obj, prop);
|
|
66
|
+
|
|
67
|
+
return !!descriptor && descriptor.configurable && descriptor.writable === true;
|
|
68
|
+
});
|
|
69
|
+
};
|
|
70
|
+
|
|
71
|
+
/**
|
|
72
|
+
* Walk the prototype chain (excluding the source realm's Object.prototype)
|
|
73
|
+
* looking for an own `prop`. This distinguishes genuine own/inherited members
|
|
74
|
+
* — including class accessors and template prototypes — from members injected
|
|
75
|
+
* via Object.prototype pollution (e.g. `Object.prototype.username = '...'`),
|
|
76
|
+
* which live on Object.prototype itself and are therefore never matched.
|
|
77
|
+
*
|
|
78
|
+
* @param {*} thing The value whose chain to inspect
|
|
79
|
+
* @param {string|symbol} prop The property key to look for
|
|
80
|
+
*
|
|
81
|
+
* @returns {boolean} True when `prop` is owned below Object.prototype
|
|
82
|
+
*/
|
|
83
|
+
const hasOwnInPrototypeChain = (thing, prop) => {
|
|
84
|
+
let obj = thing;
|
|
85
|
+
const seen = [];
|
|
86
|
+
|
|
87
|
+
while (obj != null) {
|
|
88
|
+
if (seen.indexOf(obj) !== -1) {
|
|
89
|
+
return false;
|
|
90
|
+
}
|
|
91
|
+
seen.push(obj);
|
|
92
|
+
|
|
93
|
+
const prototype = getPrototypeOf(obj);
|
|
94
|
+
|
|
95
|
+
if (isPrototypeBoundary(obj, prototype, obj === thing)) {
|
|
96
|
+
return false;
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
if (hasOwnProperty(obj, prop)) {
|
|
100
|
+
return true;
|
|
101
|
+
}
|
|
102
|
+
obj = prototype;
|
|
103
|
+
}
|
|
104
|
+
return false;
|
|
105
|
+
};
|
|
106
|
+
|
|
107
|
+
/**
|
|
108
|
+
* Read `obj[prop]` only when it is safe from Object.prototype pollution. Own
|
|
109
|
+
* properties and members inherited from a non-Object.prototype source (a class
|
|
110
|
+
* instance or template object) are honored; a value reachable only through a
|
|
111
|
+
* polluted Object.prototype is ignored and `undefined` is returned.
|
|
112
|
+
*
|
|
113
|
+
* @param {*} obj The source object
|
|
114
|
+
* @param {string|symbol} prop The property key to read
|
|
115
|
+
*
|
|
116
|
+
* @returns {*} The resolved value, or undefined when unsafe/absent
|
|
117
|
+
*/
|
|
118
|
+
const getSafeProp = (obj, prop) =>
|
|
119
|
+
obj != null && hasOwnInPrototypeChain(obj, prop) ? obj[prop] : undefined;
|
|
120
|
+
|
|
121
|
+
/**
|
|
122
|
+
* Flatten an object and its application-defined prototype chain into a
|
|
123
|
+
* null-prototype object. Members inherited only from the source realm's
|
|
124
|
+
* Object.prototype are deliberately excluded, while class/template members
|
|
125
|
+
* below that boundary are preserved.
|
|
126
|
+
*
|
|
127
|
+
* @param {*} thing The value to flatten
|
|
128
|
+
*
|
|
129
|
+
* @returns {*} A null-prototype copy, or the original value when it is already
|
|
130
|
+
* structurally safe or is not an object
|
|
131
|
+
*/
|
|
132
|
+
const toSafeFlatObject = (thing) => {
|
|
133
|
+
if (thing == null || (typeof thing !== 'object' && typeof thing !== 'function')) {
|
|
134
|
+
return thing;
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
const sourcePrototype = getPrototypeOf(thing);
|
|
138
|
+
|
|
139
|
+
if (sourcePrototype === null && isSafeAndFullyMutable(thing)) {
|
|
140
|
+
return thing;
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
const result = Object.create(null);
|
|
144
|
+
const merged = Object.create(null);
|
|
145
|
+
const seen = [];
|
|
146
|
+
let current = thing;
|
|
147
|
+
|
|
148
|
+
while (current != null) {
|
|
149
|
+
if (seen.indexOf(current) !== -1) {
|
|
150
|
+
break;
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
seen.push(current);
|
|
154
|
+
|
|
155
|
+
const prototype = current === thing ? sourcePrototype : getPrototypeOf(current);
|
|
156
|
+
|
|
157
|
+
if (isPrototypeBoundary(current, prototype, current === thing)) {
|
|
158
|
+
break;
|
|
159
|
+
}
|
|
160
|
+
|
|
161
|
+
const props = Object.getOwnPropertyNames(current);
|
|
162
|
+
|
|
163
|
+
if (Object.getOwnPropertySymbols) {
|
|
164
|
+
props.push(...Object.getOwnPropertySymbols(current));
|
|
165
|
+
}
|
|
166
|
+
|
|
167
|
+
for (const prop of props) {
|
|
168
|
+
if (isUnsafeObjectKey(prop)) {
|
|
169
|
+
continue;
|
|
170
|
+
}
|
|
171
|
+
|
|
172
|
+
if (!hasOwnProperty(merged, prop)) {
|
|
173
|
+
result[prop] = thing[prop];
|
|
174
|
+
merged[prop] = true;
|
|
175
|
+
}
|
|
176
|
+
}
|
|
177
|
+
|
|
178
|
+
current = prototype;
|
|
179
|
+
}
|
|
180
|
+
|
|
181
|
+
return result;
|
|
182
|
+
};
|
|
183
|
+
|
|
184
|
+
const kindOf = ((cache) => (thing) => {
|
|
185
|
+
const str = toString.call(thing);
|
|
186
|
+
return cache[str] || (cache[str] = str.slice(8, -1).toLowerCase());
|
|
187
|
+
})(Object.create(null));
|
|
188
|
+
|
|
189
|
+
const kindOfTest = (type) => {
|
|
190
|
+
type = type.toLowerCase();
|
|
191
|
+
return (thing) => kindOf(thing) === type;
|
|
192
|
+
};
|
|
193
|
+
|
|
194
|
+
const typeOfTest = (type) => (thing) => typeof thing === type;
|
|
195
|
+
|
|
196
|
+
/**
|
|
197
|
+
* Determine if a value is a non-null object
|
|
198
|
+
*
|
|
199
|
+
* @param {Object} val The value to test
|
|
200
|
+
*
|
|
201
|
+
* @returns {boolean} True if value is an Array, otherwise false
|
|
202
|
+
*/
|
|
203
|
+
const { isArray } = Array;
|
|
204
|
+
|
|
205
|
+
/**
|
|
206
|
+
* Determine if a value is undefined
|
|
207
|
+
*
|
|
208
|
+
* @param {*} val The value to test
|
|
209
|
+
*
|
|
210
|
+
* @returns {boolean} True if the value is undefined, otherwise false
|
|
211
|
+
*/
|
|
212
|
+
const isUndefined = typeOfTest('undefined');
|
|
213
|
+
|
|
214
|
+
/**
|
|
215
|
+
* Determine if a value is a Buffer
|
|
216
|
+
*
|
|
217
|
+
* @param {*} val The value to test
|
|
218
|
+
*
|
|
219
|
+
* @returns {boolean} True if value is a Buffer, otherwise false
|
|
220
|
+
*/
|
|
221
|
+
function isBuffer(val) {
|
|
222
|
+
return (
|
|
223
|
+
val !== null &&
|
|
224
|
+
!isUndefined(val) &&
|
|
225
|
+
val.constructor !== null &&
|
|
226
|
+
!isUndefined(val.constructor) &&
|
|
227
|
+
isFunction(val.constructor.isBuffer) &&
|
|
228
|
+
val.constructor.isBuffer(val)
|
|
229
|
+
);
|
|
230
|
+
}
|
|
231
|
+
|
|
232
|
+
/**
|
|
233
|
+
* Determine if a value is an ArrayBuffer
|
|
234
|
+
*
|
|
235
|
+
* @param {*} val The value to test
|
|
236
|
+
*
|
|
237
|
+
* @returns {boolean} True if value is an ArrayBuffer, otherwise false
|
|
238
|
+
*/
|
|
239
|
+
const isArrayBuffer = kindOfTest('ArrayBuffer');
|
|
240
|
+
|
|
241
|
+
/**
|
|
242
|
+
* Determine if a value is a view on an ArrayBuffer
|
|
243
|
+
*
|
|
244
|
+
* @param {*} val The value to test
|
|
245
|
+
*
|
|
246
|
+
* @returns {boolean} True if value is a view on an ArrayBuffer, otherwise false
|
|
247
|
+
*/
|
|
248
|
+
function isArrayBufferView(val) {
|
|
249
|
+
let result;
|
|
250
|
+
if (typeof ArrayBuffer !== 'undefined' && ArrayBuffer.isView) {
|
|
251
|
+
result = ArrayBuffer.isView(val);
|
|
252
|
+
} else {
|
|
253
|
+
result = val && val.buffer && isArrayBuffer(val.buffer);
|
|
254
|
+
}
|
|
255
|
+
return result;
|
|
256
|
+
}
|
|
257
|
+
|
|
258
|
+
/**
|
|
259
|
+
* Determine if a value is a String
|
|
260
|
+
*
|
|
261
|
+
* @param {*} val The value to test
|
|
262
|
+
*
|
|
263
|
+
* @returns {boolean} True if value is a String, otherwise false
|
|
264
|
+
*/
|
|
265
|
+
const isString = typeOfTest('string');
|
|
266
|
+
|
|
267
|
+
/**
|
|
268
|
+
* Determine if a value is a Function
|
|
269
|
+
*
|
|
270
|
+
* @param {*} val The value to test
|
|
271
|
+
* @returns {boolean} True if value is a Function, otherwise false
|
|
272
|
+
*/
|
|
273
|
+
const isFunction = typeOfTest('function');
|
|
274
|
+
|
|
275
|
+
/**
|
|
276
|
+
* Determine if a value is a Number
|
|
277
|
+
*
|
|
278
|
+
* @param {*} val The value to test
|
|
279
|
+
*
|
|
280
|
+
* @returns {boolean} True if value is a Number, otherwise false
|
|
281
|
+
*/
|
|
282
|
+
const isNumber = typeOfTest('number');
|
|
283
|
+
|
|
284
|
+
/**
|
|
285
|
+
* Determine if a value is an Object
|
|
286
|
+
*
|
|
287
|
+
* @param {*} thing The value to test
|
|
288
|
+
*
|
|
289
|
+
* @returns {boolean} True if value is an Object, otherwise false
|
|
290
|
+
*/
|
|
291
|
+
const isObject = (thing) => thing !== null && typeof thing === 'object';
|
|
292
|
+
|
|
293
|
+
/**
|
|
294
|
+
* Determine if a value is a Boolean
|
|
295
|
+
*
|
|
296
|
+
* @param {*} thing The value to test
|
|
297
|
+
* @returns {boolean} True if value is a Boolean, otherwise false
|
|
298
|
+
*/
|
|
299
|
+
const isBoolean = (thing) => thing === true || thing === false;
|
|
300
|
+
|
|
301
|
+
/**
|
|
302
|
+
* Determine if a value is a plain Object
|
|
303
|
+
*
|
|
304
|
+
* @param {*} val The value to test
|
|
305
|
+
*
|
|
306
|
+
* @returns {boolean} True if value is a plain Object, otherwise false
|
|
307
|
+
*/
|
|
308
|
+
const isPlainObject = (val) => {
|
|
309
|
+
if (!isObject(val)) {
|
|
310
|
+
return false;
|
|
311
|
+
}
|
|
312
|
+
|
|
313
|
+
const prototype = getPrototypeOf(val);
|
|
314
|
+
return (
|
|
315
|
+
(prototype === null || prototype === Object.prototype || getPrototypeOf(prototype) === null) &&
|
|
316
|
+
// Treat safe own/inherited Symbol.toStringTag or Symbol.iterator members as
|
|
317
|
+
// evidence the value is tagged/iterable, while ignoring members reachable
|
|
318
|
+
// only through shared or terminal prototype boundaries.
|
|
319
|
+
!hasOwnInPrototypeChain(val, toStringTag) &&
|
|
320
|
+
!hasOwnInPrototypeChain(val, iterator)
|
|
321
|
+
);
|
|
322
|
+
};
|
|
323
|
+
|
|
324
|
+
/**
|
|
325
|
+
* Determine if a value is an empty object (safely handles Buffers)
|
|
326
|
+
*
|
|
327
|
+
* @param {*} val The value to test
|
|
328
|
+
*
|
|
329
|
+
* @returns {boolean} True if value is an empty object, otherwise false
|
|
330
|
+
*/
|
|
331
|
+
const isEmptyObject = (val) => {
|
|
332
|
+
// Early return for non-objects or Buffers to prevent RangeError
|
|
333
|
+
if (!isObject(val) || isBuffer(val)) {
|
|
334
|
+
return false;
|
|
335
|
+
}
|
|
336
|
+
|
|
337
|
+
try {
|
|
338
|
+
return Object.keys(val).length === 0 && Object.getPrototypeOf(val) === Object.prototype;
|
|
339
|
+
} catch (e) {
|
|
340
|
+
// Fallback for any other objects that might cause RangeError with Object.keys()
|
|
341
|
+
return false;
|
|
342
|
+
}
|
|
343
|
+
};
|
|
344
|
+
|
|
345
|
+
/**
|
|
346
|
+
* Determine if a value is a Date
|
|
347
|
+
*
|
|
348
|
+
* @param {*} val The value to test
|
|
349
|
+
*
|
|
350
|
+
* @returns {boolean} True if value is a Date, otherwise false
|
|
351
|
+
*/
|
|
352
|
+
const isDate = kindOfTest('Date');
|
|
353
|
+
|
|
354
|
+
/**
|
|
355
|
+
* Determine if a value is a File
|
|
356
|
+
*
|
|
357
|
+
* @param {*} val The value to test
|
|
358
|
+
*
|
|
359
|
+
* @returns {boolean} True if value is a File, otherwise false
|
|
360
|
+
*/
|
|
361
|
+
const isFile = kindOfTest('File');
|
|
362
|
+
|
|
363
|
+
/**
|
|
364
|
+
* Determine if a value is a React Native Blob
|
|
365
|
+
* React Native "blob": an object with a `uri` attribute. Optionally, it can
|
|
366
|
+
* also have a `name` and `type` attribute to specify filename and content type
|
|
367
|
+
*
|
|
368
|
+
* @see https://github.com/facebook/react-native/blob/26684cf3adf4094eb6c405d345a75bf8c7c0bf88/Libraries/Network/FormData.js#L68-L71
|
|
369
|
+
*
|
|
370
|
+
* @param {*} value The value to test
|
|
371
|
+
*
|
|
372
|
+
* @returns {boolean} True if value is a React Native Blob, otherwise false
|
|
373
|
+
*/
|
|
374
|
+
const isReactNativeBlob = (value) => {
|
|
375
|
+
return !!(value && typeof value.uri !== 'undefined');
|
|
376
|
+
};
|
|
377
|
+
|
|
378
|
+
/**
|
|
379
|
+
* Determine if environment is React Native
|
|
380
|
+
* ReactNative `FormData` has a non-standard `getParts()` method
|
|
381
|
+
*
|
|
382
|
+
* @param {*} formData The formData to test
|
|
383
|
+
*
|
|
384
|
+
* @returns {boolean} True if environment is React Native, otherwise false
|
|
385
|
+
*/
|
|
386
|
+
const isReactNative = (formData) => formData && typeof formData.getParts !== 'undefined';
|
|
387
|
+
|
|
388
|
+
/**
|
|
389
|
+
* Determine if a value is a Blob
|
|
390
|
+
*
|
|
391
|
+
* @param {*} val The value to test
|
|
392
|
+
*
|
|
393
|
+
* @returns {boolean} True if value is a Blob, otherwise false
|
|
394
|
+
*/
|
|
395
|
+
const isBlob = kindOfTest('Blob');
|
|
396
|
+
|
|
397
|
+
/**
|
|
398
|
+
* Determine if a value is a FileList
|
|
399
|
+
*
|
|
400
|
+
* @param {*} val The value to test
|
|
401
|
+
*
|
|
402
|
+
* @returns {boolean} True if value is a FileList, otherwise false
|
|
403
|
+
*/
|
|
404
|
+
const isFileList = kindOfTest('FileList');
|
|
405
|
+
const isSet = kindOfTest('Set');
|
|
406
|
+
|
|
407
|
+
/**
|
|
408
|
+
* Determine if a value is a Stream
|
|
409
|
+
*
|
|
410
|
+
* @param {*} val The value to test
|
|
411
|
+
*
|
|
412
|
+
* @returns {boolean} True if value is a Stream, otherwise false
|
|
413
|
+
*/
|
|
414
|
+
const isStream = (val) => isObject(val) && isFunction(val.pipe);
|
|
415
|
+
|
|
416
|
+
/**
|
|
417
|
+
* Determine if a value is a FormData
|
|
418
|
+
*
|
|
419
|
+
* @param {*} thing The value to test
|
|
420
|
+
*
|
|
421
|
+
* @returns {boolean} True if value is an FormData, otherwise false
|
|
422
|
+
*/
|
|
423
|
+
function getGlobal() {
|
|
424
|
+
if (typeof globalThis !== 'undefined') return globalThis;
|
|
425
|
+
if (typeof self !== 'undefined') return self;
|
|
426
|
+
if (typeof window !== 'undefined') return window;
|
|
427
|
+
if (typeof global !== 'undefined') return global;
|
|
428
|
+
return {};
|
|
429
|
+
}
|
|
430
|
+
|
|
431
|
+
const G = getGlobal();
|
|
432
|
+
const FormDataCtor = typeof G.FormData !== 'undefined' ? G.FormData : undefined;
|
|
433
|
+
|
|
434
|
+
const isFormData = (thing) => {
|
|
435
|
+
if (!thing) return false;
|
|
436
|
+
if (FormDataCtor && thing instanceof FormDataCtor) return true;
|
|
437
|
+
// Reject plain objects inheriting directly from Object.prototype so prototype-pollution gadgets can't spoof FormData.
|
|
438
|
+
const proto = getPrototypeOf(thing);
|
|
439
|
+
if (!proto || proto === Object.prototype) return false;
|
|
440
|
+
if (!isFunction(thing.append)) return false;
|
|
441
|
+
const kind = kindOf(thing);
|
|
442
|
+
return (
|
|
443
|
+
kind === 'formdata' ||
|
|
444
|
+
// detect form-data instance
|
|
445
|
+
(kind === 'object' && isFunction(thing.toString) && thing.toString() === '[object FormData]')
|
|
446
|
+
);
|
|
447
|
+
};
|
|
448
|
+
|
|
449
|
+
/**
|
|
450
|
+
* Determine if a value is a URLSearchParams object
|
|
451
|
+
*
|
|
452
|
+
* @param {*} val The value to test
|
|
453
|
+
*
|
|
454
|
+
* @returns {boolean} True if value is a URLSearchParams object, otherwise false
|
|
455
|
+
*/
|
|
456
|
+
const isURLSearchParams = kindOfTest('URLSearchParams');
|
|
457
|
+
|
|
458
|
+
const [isReadableStream, isRequest, isResponse, isHeaders] = [
|
|
459
|
+
'ReadableStream',
|
|
460
|
+
'Request',
|
|
461
|
+
'Response',
|
|
462
|
+
'Headers',
|
|
463
|
+
].map(kindOfTest);
|
|
464
|
+
|
|
465
|
+
/**
|
|
466
|
+
* Trim excess whitespace off the beginning and end of a string
|
|
467
|
+
*
|
|
468
|
+
* @param {String} str The String to trim
|
|
469
|
+
*
|
|
470
|
+
* @returns {String} The String freed of excess whitespace
|
|
471
|
+
*/
|
|
472
|
+
const trim = (str) => {
|
|
473
|
+
return str.trim ? str.trim() : str.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, '');
|
|
474
|
+
};
|
|
475
|
+
/**
|
|
476
|
+
* Iterate over an Array or an Object invoking a function for each item.
|
|
477
|
+
*
|
|
478
|
+
* If `obj` is an Array callback will be called passing
|
|
479
|
+
* the value, index, and complete array for each item.
|
|
480
|
+
*
|
|
481
|
+
* If 'obj' is an Object callback will be called passing
|
|
482
|
+
* the value, key, and complete object for each property.
|
|
483
|
+
*
|
|
484
|
+
* @param {Object|Array<unknown>} obj The object to iterate
|
|
485
|
+
* @param {Function} fn The callback to invoke for each item
|
|
486
|
+
*
|
|
487
|
+
* @param {Object} [options]
|
|
488
|
+
* @param {Boolean} [options.allOwnKeys = false]
|
|
489
|
+
* @returns {any}
|
|
490
|
+
*/
|
|
491
|
+
function forEach(obj, fn, { allOwnKeys = false } = {}) {
|
|
492
|
+
// Don't bother if no value provided
|
|
493
|
+
if (obj === null || typeof obj === 'undefined') {
|
|
494
|
+
return;
|
|
495
|
+
}
|
|
496
|
+
|
|
497
|
+
let i;
|
|
498
|
+
let l;
|
|
499
|
+
|
|
500
|
+
// Force an array if not already something iterable
|
|
501
|
+
if (typeof obj !== 'object') {
|
|
502
|
+
/*eslint no-param-reassign:0*/
|
|
503
|
+
obj = [obj];
|
|
504
|
+
}
|
|
505
|
+
|
|
506
|
+
if (isArray(obj)) {
|
|
507
|
+
// Iterate over array values
|
|
508
|
+
for (i = 0, l = obj.length; i < l; i++) {
|
|
509
|
+
fn.call(null, obj[i], i, obj);
|
|
510
|
+
}
|
|
511
|
+
} else {
|
|
512
|
+
// Buffer check
|
|
513
|
+
if (isBuffer(obj)) {
|
|
514
|
+
return;
|
|
515
|
+
}
|
|
516
|
+
|
|
517
|
+
// Iterate over object keys
|
|
518
|
+
const keys = allOwnKeys ? Object.getOwnPropertyNames(obj) : Object.keys(obj);
|
|
519
|
+
const len = keys.length;
|
|
520
|
+
let key;
|
|
521
|
+
|
|
522
|
+
for (i = 0; i < len; i++) {
|
|
523
|
+
key = keys[i];
|
|
524
|
+
fn.call(null, obj[key], key, obj);
|
|
525
|
+
}
|
|
526
|
+
}
|
|
527
|
+
}
|
|
528
|
+
|
|
529
|
+
/**
|
|
530
|
+
* Finds a key in an object, case-insensitive, returning the actual key name.
|
|
531
|
+
* Returns null if the object is a Buffer or if no match is found.
|
|
532
|
+
*
|
|
533
|
+
* @param {Object} obj - The object to search.
|
|
534
|
+
* @param {string} key - The key to find (case-insensitive).
|
|
535
|
+
* @returns {?string} The actual key name if found, otherwise null.
|
|
536
|
+
*/
|
|
537
|
+
function findKey(obj, key) {
|
|
538
|
+
if (isBuffer(obj)) {
|
|
539
|
+
return null;
|
|
540
|
+
}
|
|
541
|
+
|
|
542
|
+
key = key.toLowerCase();
|
|
543
|
+
const keys = Object.keys(obj);
|
|
544
|
+
let i = keys.length;
|
|
545
|
+
let _key;
|
|
546
|
+
while (i-- > 0) {
|
|
547
|
+
_key = keys[i];
|
|
548
|
+
if (key === _key.toLowerCase()) {
|
|
549
|
+
return _key;
|
|
550
|
+
}
|
|
551
|
+
}
|
|
552
|
+
return null;
|
|
553
|
+
}
|
|
554
|
+
|
|
555
|
+
const _global = (() => {
|
|
556
|
+
/*eslint no-undef:0*/
|
|
557
|
+
if (typeof globalThis !== 'undefined') return globalThis;
|
|
558
|
+
return typeof self !== 'undefined' ? self : typeof window !== 'undefined' ? window : global;
|
|
559
|
+
})();
|
|
560
|
+
|
|
561
|
+
const isContextDefined = (context) => !isUndefined(context) && context !== _global;
|
|
562
|
+
|
|
563
|
+
/**
|
|
564
|
+
* Accepts varargs expecting each argument to be an object, then
|
|
565
|
+
* immutably merges the properties of each object and returns result.
|
|
566
|
+
*
|
|
567
|
+
* When multiple objects contain the same key the later object in
|
|
568
|
+
* the arguments list will take precedence.
|
|
569
|
+
*
|
|
570
|
+
* Example:
|
|
571
|
+
*
|
|
572
|
+
* ```js
|
|
573
|
+
* const result = merge({foo: 123}, {foo: 456});
|
|
574
|
+
* console.log(result.foo); // outputs 456
|
|
575
|
+
* ```
|
|
576
|
+
*
|
|
577
|
+
* @param {Object} obj1 Object to merge
|
|
578
|
+
*
|
|
579
|
+
* @returns {Object} Result of all merge properties
|
|
580
|
+
*/
|
|
581
|
+
function merge(...objs) {
|
|
582
|
+
const { caseless, skipUndefined } = (isContextDefined(this) && this) || {};
|
|
583
|
+
const result = {};
|
|
584
|
+
const assignValue = (val, key) => {
|
|
585
|
+
// Skip dangerous property names to prevent prototype pollution
|
|
586
|
+
if (key === '__proto__' || key === 'constructor' || key === 'prototype') {
|
|
587
|
+
return;
|
|
588
|
+
}
|
|
589
|
+
|
|
590
|
+
// findKey lowercases the key, so caseless lookup only applies to strings —
|
|
591
|
+
// symbol keys are identity-matched.
|
|
592
|
+
const targetKey = (caseless && typeof key === 'string' && findKey(result, key)) || key;
|
|
593
|
+
// Read via own-prop only — a bare `result[targetKey]` walks the prototype
|
|
594
|
+
// chain, so a polluted Object.prototype value could surface here and get
|
|
595
|
+
// copied into the merged result.
|
|
596
|
+
const existing = hasOwnProperty(result, targetKey) ? result[targetKey] : undefined;
|
|
597
|
+
if (isPlainObject(existing) && isPlainObject(val)) {
|
|
598
|
+
result[targetKey] = merge(existing, val);
|
|
599
|
+
} else if (isPlainObject(val)) {
|
|
600
|
+
result[targetKey] = merge({}, val);
|
|
601
|
+
} else if (isArray(val)) {
|
|
602
|
+
result[targetKey] = val.slice();
|
|
603
|
+
} else if (!skipUndefined || !isUndefined(val)) {
|
|
604
|
+
result[targetKey] = val;
|
|
605
|
+
}
|
|
606
|
+
};
|
|
607
|
+
|
|
608
|
+
for (let i = 0, l = objs.length; i < l; i++) {
|
|
609
|
+
const source = objs[i];
|
|
610
|
+
if (!source || isBuffer(source)) {
|
|
611
|
+
continue;
|
|
612
|
+
}
|
|
613
|
+
|
|
614
|
+
forEach(source, assignValue);
|
|
615
|
+
|
|
616
|
+
if (typeof source !== 'object' || isArray(source)) {
|
|
617
|
+
continue;
|
|
618
|
+
}
|
|
619
|
+
|
|
620
|
+
const symbols = Object.getOwnPropertySymbols(source);
|
|
621
|
+
for (let j = 0; j < symbols.length; j++) {
|
|
622
|
+
const symbol = symbols[j];
|
|
623
|
+
if (propertyIsEnumerable.call(source, symbol)) {
|
|
624
|
+
assignValue(source[symbol], symbol);
|
|
625
|
+
}
|
|
626
|
+
}
|
|
627
|
+
}
|
|
628
|
+
return result;
|
|
629
|
+
}
|
|
630
|
+
|
|
631
|
+
/**
|
|
632
|
+
* Extends object a by mutably adding to it the properties of object b.
|
|
633
|
+
*
|
|
634
|
+
* @param {Object} a The object to be extended
|
|
635
|
+
* @param {Object} b The object to copy properties from
|
|
636
|
+
* @param {Object} thisArg The object to bind function to
|
|
637
|
+
*
|
|
638
|
+
* @param {Object} [options]
|
|
639
|
+
* @param {Boolean} [options.allOwnKeys]
|
|
640
|
+
* @returns {Object} The resulting value of object a
|
|
641
|
+
*/
|
|
642
|
+
const extend = (a, b, thisArg, { allOwnKeys } = {}) => {
|
|
643
|
+
forEach(
|
|
644
|
+
b,
|
|
645
|
+
(val, key) => {
|
|
646
|
+
if (thisArg && isFunction(val)) {
|
|
647
|
+
Object.defineProperty(a, key, {
|
|
648
|
+
// Null-proto descriptor so a polluted Object.prototype.get cannot
|
|
649
|
+
// hijack defineProperty's accessor-vs-data resolution.
|
|
650
|
+
__proto__: null,
|
|
651
|
+
value: bind(val, thisArg),
|
|
652
|
+
writable: true,
|
|
653
|
+
enumerable: true,
|
|
654
|
+
configurable: true,
|
|
655
|
+
});
|
|
656
|
+
} else {
|
|
657
|
+
Object.defineProperty(a, key, {
|
|
658
|
+
__proto__: null,
|
|
659
|
+
value: val,
|
|
660
|
+
writable: true,
|
|
661
|
+
enumerable: true,
|
|
662
|
+
configurable: true,
|
|
663
|
+
});
|
|
664
|
+
}
|
|
665
|
+
},
|
|
666
|
+
{ allOwnKeys }
|
|
667
|
+
);
|
|
668
|
+
return a;
|
|
669
|
+
};
|
|
670
|
+
|
|
671
|
+
/**
|
|
672
|
+
* Remove byte order marker. This catches EF BB BF (the UTF-8 BOM)
|
|
673
|
+
*
|
|
674
|
+
* @param {string} content with BOM
|
|
675
|
+
*
|
|
676
|
+
* @returns {string} content value without BOM
|
|
677
|
+
*/
|
|
678
|
+
const stripBOM = (content) => {
|
|
679
|
+
if (content.charCodeAt(0) === 0xfeff) {
|
|
680
|
+
content = content.slice(1);
|
|
681
|
+
}
|
|
682
|
+
return content;
|
|
683
|
+
};
|
|
684
|
+
|
|
685
|
+
/**
|
|
686
|
+
* Inherit the prototype methods from one constructor into another
|
|
687
|
+
* @param {function} constructor
|
|
688
|
+
* @param {function} superConstructor
|
|
689
|
+
* @param {object} [props]
|
|
690
|
+
* @param {object} [descriptors]
|
|
691
|
+
*
|
|
692
|
+
* @returns {void}
|
|
693
|
+
*/
|
|
694
|
+
const inherits = (constructor, superConstructor, props, descriptors) => {
|
|
695
|
+
constructor.prototype = Object.create(superConstructor.prototype, descriptors);
|
|
696
|
+
Object.defineProperty(constructor.prototype, 'constructor', {
|
|
697
|
+
__proto__: null,
|
|
698
|
+
value: constructor,
|
|
699
|
+
writable: true,
|
|
700
|
+
enumerable: false,
|
|
701
|
+
configurable: true,
|
|
702
|
+
});
|
|
703
|
+
Object.defineProperty(constructor, 'super', {
|
|
704
|
+
__proto__: null,
|
|
705
|
+
value: superConstructor.prototype,
|
|
706
|
+
});
|
|
707
|
+
props && Object.assign(constructor.prototype, props);
|
|
708
|
+
};
|
|
709
|
+
|
|
710
|
+
/**
|
|
711
|
+
* Resolve object with deep prototype chain to a flat object
|
|
712
|
+
* @param {Object} sourceObj source object
|
|
713
|
+
* @param {Object} [destObj]
|
|
714
|
+
* @param {Function|Boolean} [filter]
|
|
715
|
+
* @param {Function} [propFilter]
|
|
716
|
+
*
|
|
717
|
+
* @returns {Object}
|
|
718
|
+
*/
|
|
719
|
+
const toFlatObject = (sourceObj, destObj, filter, propFilter) => {
|
|
720
|
+
let props;
|
|
721
|
+
let i;
|
|
722
|
+
let prop;
|
|
723
|
+
const merged = {};
|
|
724
|
+
|
|
725
|
+
destObj = destObj || {};
|
|
726
|
+
// eslint-disable-next-line no-eq-null,eqeqeq
|
|
727
|
+
if (sourceObj == null) return destObj;
|
|
728
|
+
|
|
729
|
+
do {
|
|
730
|
+
props = Object.getOwnPropertyNames(sourceObj);
|
|
731
|
+
i = props.length;
|
|
732
|
+
while (i-- > 0) {
|
|
733
|
+
prop = props[i];
|
|
734
|
+
if ((!propFilter || propFilter(prop, sourceObj, destObj)) && !merged[prop]) {
|
|
735
|
+
destObj[prop] = sourceObj[prop];
|
|
736
|
+
merged[prop] = true;
|
|
737
|
+
}
|
|
738
|
+
}
|
|
739
|
+
sourceObj = filter !== false && getPrototypeOf(sourceObj);
|
|
740
|
+
} while (sourceObj && (!filter || filter(sourceObj, destObj)) && sourceObj !== Object.prototype);
|
|
741
|
+
|
|
742
|
+
return destObj;
|
|
743
|
+
};
|
|
744
|
+
|
|
745
|
+
/**
|
|
746
|
+
* Determines whether a string ends with the characters of a specified string
|
|
747
|
+
*
|
|
748
|
+
* @param {String} str
|
|
749
|
+
* @param {String} searchString
|
|
750
|
+
* @param {Number} [position= 0]
|
|
751
|
+
*
|
|
752
|
+
* @returns {boolean}
|
|
753
|
+
*/
|
|
754
|
+
const endsWith = (str, searchString, position) => {
|
|
755
|
+
str = String(str);
|
|
756
|
+
if (position === undefined || position > str.length) {
|
|
757
|
+
position = str.length;
|
|
758
|
+
}
|
|
759
|
+
position -= searchString.length;
|
|
760
|
+
const lastIndex = str.indexOf(searchString, position);
|
|
761
|
+
return lastIndex !== -1 && lastIndex === position;
|
|
762
|
+
};
|
|
763
|
+
|
|
764
|
+
/**
|
|
765
|
+
* Returns new array from array like object or null if failed
|
|
766
|
+
*
|
|
767
|
+
* @param {*} [thing]
|
|
768
|
+
*
|
|
769
|
+
* @returns {?Array}
|
|
770
|
+
*/
|
|
771
|
+
const toArray = (thing) => {
|
|
772
|
+
if (!thing) return null;
|
|
773
|
+
if (isArray(thing)) return thing;
|
|
774
|
+
let i = thing.length;
|
|
775
|
+
if (!isNumber(i)) return null;
|
|
776
|
+
const arr = new Array(i);
|
|
777
|
+
while (i-- > 0) {
|
|
778
|
+
arr[i] = thing[i];
|
|
779
|
+
}
|
|
780
|
+
return arr;
|
|
781
|
+
};
|
|
782
|
+
|
|
783
|
+
/**
|
|
784
|
+
* Checking if the Uint8Array exists and if it does, it returns a function that checks if the
|
|
785
|
+
* thing passed in is an instance of Uint8Array
|
|
786
|
+
*
|
|
787
|
+
* @param {TypedArray}
|
|
788
|
+
*
|
|
789
|
+
* @returns {Array}
|
|
790
|
+
*/
|
|
791
|
+
// eslint-disable-next-line func-names
|
|
792
|
+
const isTypedArray = ((TypedArray) => {
|
|
793
|
+
// eslint-disable-next-line func-names
|
|
794
|
+
return (thing) => {
|
|
795
|
+
return TypedArray && thing instanceof TypedArray;
|
|
796
|
+
};
|
|
797
|
+
})(typeof Uint8Array !== 'undefined' && getPrototypeOf(Uint8Array));
|
|
798
|
+
|
|
799
|
+
/**
|
|
800
|
+
* For each entry in the object, call the function with the key and value.
|
|
801
|
+
*
|
|
802
|
+
* @param {Object<any, any>} obj - The object to iterate over.
|
|
803
|
+
* @param {Function} fn - The function to call for each entry.
|
|
804
|
+
*
|
|
805
|
+
* @returns {void}
|
|
806
|
+
*/
|
|
807
|
+
const forEachEntry = (obj, fn) => {
|
|
808
|
+
const generator = obj && obj[iterator];
|
|
809
|
+
|
|
810
|
+
const _iterator = generator.call(obj);
|
|
811
|
+
|
|
812
|
+
let result;
|
|
813
|
+
|
|
814
|
+
while ((result = _iterator.next()) && !result.done) {
|
|
815
|
+
const pair = result.value;
|
|
816
|
+
fn.call(obj, pair[0], pair[1]);
|
|
817
|
+
}
|
|
818
|
+
};
|
|
819
|
+
|
|
820
|
+
/**
|
|
821
|
+
* It takes a regular expression and a string, and returns an array of all the matches
|
|
822
|
+
*
|
|
823
|
+
* @param {string} regExp - The regular expression to match against.
|
|
824
|
+
* @param {string} str - The string to search.
|
|
825
|
+
*
|
|
826
|
+
* @returns {Array<boolean>}
|
|
827
|
+
*/
|
|
828
|
+
const matchAll = (regExp, str) => {
|
|
829
|
+
let matches;
|
|
830
|
+
const arr = [];
|
|
831
|
+
|
|
832
|
+
while ((matches = regExp.exec(str)) !== null) {
|
|
833
|
+
arr.push(matches);
|
|
834
|
+
}
|
|
835
|
+
|
|
836
|
+
return arr;
|
|
837
|
+
};
|
|
838
|
+
|
|
839
|
+
/* Checking if the kindOfTest function returns true when passed an HTMLFormElement. */
|
|
840
|
+
const isHTMLForm = kindOfTest('HTMLFormElement');
|
|
841
|
+
|
|
842
|
+
const toCamelCase = (str) => {
|
|
843
|
+
return str.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g, function replacer(m, p1, p2) {
|
|
844
|
+
return p1.toUpperCase() + p2;
|
|
845
|
+
});
|
|
846
|
+
};
|
|
847
|
+
|
|
848
|
+
const { propertyIsEnumerable } = Object.prototype;
|
|
849
|
+
|
|
850
|
+
/**
|
|
851
|
+
* Determine if a value is a RegExp object
|
|
852
|
+
*
|
|
853
|
+
* @param {*} val The value to test
|
|
854
|
+
*
|
|
855
|
+
* @returns {boolean} True if value is a RegExp object, otherwise false
|
|
856
|
+
*/
|
|
857
|
+
const isRegExp = kindOfTest('RegExp');
|
|
858
|
+
|
|
859
|
+
const reduceDescriptors = (obj, reducer) => {
|
|
860
|
+
const descriptors = Object.getOwnPropertyDescriptors(obj);
|
|
861
|
+
const reducedDescriptors = {};
|
|
862
|
+
|
|
863
|
+
forEach(descriptors, (descriptor, name) => {
|
|
864
|
+
let ret;
|
|
865
|
+
if ((ret = reducer(descriptor, name, obj)) !== false) {
|
|
866
|
+
reducedDescriptors[name] = ret || descriptor;
|
|
867
|
+
}
|
|
868
|
+
});
|
|
869
|
+
|
|
870
|
+
Object.defineProperties(obj, reducedDescriptors);
|
|
871
|
+
};
|
|
872
|
+
|
|
873
|
+
/**
|
|
874
|
+
* Makes all methods read-only
|
|
875
|
+
* @param {Object} obj
|
|
876
|
+
*/
|
|
877
|
+
|
|
878
|
+
const freezeMethods = (obj) => {
|
|
879
|
+
reduceDescriptors(obj, (descriptor, name) => {
|
|
880
|
+
// skip restricted props in strict mode
|
|
881
|
+
if (isFunction(obj) && ['arguments', 'caller', 'callee'].includes(name)) {
|
|
882
|
+
return false;
|
|
883
|
+
}
|
|
884
|
+
|
|
885
|
+
const value = obj[name];
|
|
886
|
+
|
|
887
|
+
if (!isFunction(value)) return;
|
|
888
|
+
|
|
889
|
+
descriptor.enumerable = false;
|
|
890
|
+
|
|
891
|
+
if ('writable' in descriptor) {
|
|
892
|
+
descriptor.writable = false;
|
|
893
|
+
return;
|
|
894
|
+
}
|
|
895
|
+
|
|
896
|
+
if (!descriptor.set) {
|
|
897
|
+
descriptor.set = () => {
|
|
898
|
+
throw Error("Can not rewrite read-only method '" + name + "'");
|
|
899
|
+
};
|
|
900
|
+
}
|
|
901
|
+
});
|
|
902
|
+
};
|
|
903
|
+
|
|
904
|
+
/**
|
|
905
|
+
* Converts an array or a delimited string into an object set with values as keys and true as values.
|
|
906
|
+
* Useful for fast membership checks.
|
|
907
|
+
*
|
|
908
|
+
* @param {Array|string} arrayOrString - The array or string to convert.
|
|
909
|
+
* @param {string} delimiter - The delimiter to use if input is a string.
|
|
910
|
+
* @returns {Object} An object with keys from the array or string, values set to true.
|
|
911
|
+
*/
|
|
912
|
+
const toObjectSet = (arrayOrString, delimiter) => {
|
|
913
|
+
const obj = {};
|
|
914
|
+
|
|
915
|
+
const define = (arr) => {
|
|
916
|
+
arr.forEach((value) => {
|
|
917
|
+
obj[value] = true;
|
|
918
|
+
});
|
|
919
|
+
};
|
|
920
|
+
|
|
921
|
+
isArray(arrayOrString) ? define(arrayOrString) : define(String(arrayOrString).split(delimiter));
|
|
922
|
+
|
|
923
|
+
return obj;
|
|
924
|
+
};
|
|
925
|
+
|
|
926
|
+
const noop = () => {};
|
|
927
|
+
|
|
928
|
+
const toFiniteNumber = (value, defaultValue) => {
|
|
929
|
+
return value != null && Number.isFinite((value = +value)) ? value : defaultValue;
|
|
930
|
+
};
|
|
931
|
+
|
|
932
|
+
/**
|
|
933
|
+
* If the thing is a FormData object, return true, otherwise return false.
|
|
934
|
+
*
|
|
935
|
+
* @param {unknown} thing - The thing to check.
|
|
936
|
+
*
|
|
937
|
+
* @returns {boolean}
|
|
938
|
+
*/
|
|
939
|
+
function isSpecCompliantForm(thing) {
|
|
940
|
+
return !!(
|
|
941
|
+
thing &&
|
|
942
|
+
isFunction(thing.append) &&
|
|
943
|
+
thing[toStringTag] === 'FormData' &&
|
|
944
|
+
thing[iterator]
|
|
945
|
+
);
|
|
946
|
+
}
|
|
947
|
+
|
|
948
|
+
/**
|
|
949
|
+
* Recursively converts an object to a JSON-compatible object, handling circular references and Buffers.
|
|
950
|
+
*
|
|
951
|
+
* @param {Object} obj - The object to convert.
|
|
952
|
+
* @returns {Object} The JSON-compatible object.
|
|
953
|
+
*/
|
|
954
|
+
const toJSONObject = (obj) => {
|
|
955
|
+
const visited = new WeakSet();
|
|
956
|
+
|
|
957
|
+
const visit = (source) => {
|
|
958
|
+
if (isObject(source)) {
|
|
959
|
+
if (visited.has(source)) {
|
|
960
|
+
return;
|
|
961
|
+
}
|
|
962
|
+
|
|
963
|
+
//Buffer check
|
|
964
|
+
if (isBuffer(source)) {
|
|
965
|
+
return source;
|
|
966
|
+
}
|
|
967
|
+
|
|
968
|
+
if (!('toJSON' in source)) {
|
|
969
|
+
// add-on descent / delete-on-ascent: preserves path semantics, so DAG nodes serialise at every occurrence (see #7230).
|
|
970
|
+
visited.add(source);
|
|
971
|
+
|
|
972
|
+
let target;
|
|
973
|
+
|
|
974
|
+
if (isSet(source)) {
|
|
975
|
+
target = [];
|
|
976
|
+
for (const value of source) {
|
|
977
|
+
const reducedValue = visit(value);
|
|
978
|
+
!isUndefined(reducedValue) && target.push(reducedValue);
|
|
979
|
+
}
|
|
980
|
+
} else {
|
|
981
|
+
target = isArray(source) ? [] : {};
|
|
982
|
+
|
|
983
|
+
forEach(source, (value, key) => {
|
|
984
|
+
const reducedValue = visit(value);
|
|
985
|
+
!isUndefined(reducedValue) && (target[key] = reducedValue);
|
|
986
|
+
});
|
|
987
|
+
}
|
|
988
|
+
|
|
989
|
+
visited.delete(source);
|
|
990
|
+
|
|
991
|
+
return target;
|
|
992
|
+
}
|
|
993
|
+
}
|
|
994
|
+
|
|
995
|
+
return source;
|
|
996
|
+
};
|
|
997
|
+
|
|
998
|
+
return visit(obj);
|
|
999
|
+
};
|
|
1000
|
+
|
|
1001
|
+
/**
|
|
1002
|
+
* Determines if a value is an async function.
|
|
1003
|
+
*
|
|
1004
|
+
* @param {*} thing - The value to test.
|
|
1005
|
+
* @returns {boolean} True if value is an async function, otherwise false.
|
|
1006
|
+
*/
|
|
1007
|
+
const isAsyncFn = kindOfTest('AsyncFunction');
|
|
1008
|
+
|
|
1009
|
+
/**
|
|
1010
|
+
* Determines if a value is thenable (has then and catch methods).
|
|
1011
|
+
*
|
|
1012
|
+
* @param {*} thing - The value to test.
|
|
1013
|
+
* @returns {boolean} True if value is thenable, otherwise false.
|
|
1014
|
+
*/
|
|
1015
|
+
const isThenable = (thing) =>
|
|
1016
|
+
thing &&
|
|
1017
|
+
(isObject(thing) || isFunction(thing)) &&
|
|
1018
|
+
isFunction(thing.then) &&
|
|
1019
|
+
isFunction(thing.catch);
|
|
1020
|
+
|
|
1021
|
+
// original code
|
|
1022
|
+
// https://github.com/DigitalBrainJS/AxiosPromise/blob/16deab13710ec09779922131f3fa5954320f83ab/lib/utils.js#L11-L34
|
|
1023
|
+
|
|
1024
|
+
/**
|
|
1025
|
+
* Provides a cross-platform setImmediate implementation.
|
|
1026
|
+
* Uses native setImmediate if available, otherwise falls back to postMessage or setTimeout.
|
|
1027
|
+
*
|
|
1028
|
+
* @param {boolean} setImmediateSupported - Whether setImmediate is supported.
|
|
1029
|
+
* @param {boolean} postMessageSupported - Whether postMessage is supported.
|
|
1030
|
+
* @returns {Function} A function to schedule a callback asynchronously.
|
|
1031
|
+
*/
|
|
1032
|
+
const _setImmediate = ((setImmediateSupported, postMessageSupported) => {
|
|
1033
|
+
if (setImmediateSupported) {
|
|
1034
|
+
return setImmediate;
|
|
1035
|
+
}
|
|
1036
|
+
|
|
1037
|
+
return postMessageSupported
|
|
1038
|
+
? ((token, callbacks) => {
|
|
1039
|
+
_global.addEventListener(
|
|
1040
|
+
'message',
|
|
1041
|
+
({ source, data }) => {
|
|
1042
|
+
if (source === _global && data === token) {
|
|
1043
|
+
callbacks.length && callbacks.shift()();
|
|
1044
|
+
}
|
|
1045
|
+
},
|
|
1046
|
+
false
|
|
1047
|
+
);
|
|
1048
|
+
|
|
1049
|
+
return (cb) => {
|
|
1050
|
+
callbacks.push(cb);
|
|
1051
|
+
_global.postMessage(token, '*');
|
|
1052
|
+
};
|
|
1053
|
+
})(`axios@${Math.random()}`, [])
|
|
1054
|
+
: (cb) => setTimeout(cb);
|
|
1055
|
+
})(typeof setImmediate === 'function', isFunction(_global.postMessage));
|
|
1056
|
+
|
|
1057
|
+
/**
|
|
1058
|
+
* Schedules a microtask or asynchronous callback as soon as possible.
|
|
1059
|
+
* Uses queueMicrotask if available, otherwise falls back to process.nextTick or _setImmediate.
|
|
1060
|
+
*
|
|
1061
|
+
* @type {Function}
|
|
1062
|
+
*/
|
|
1063
|
+
const asap =
|
|
1064
|
+
typeof queueMicrotask !== 'undefined'
|
|
1065
|
+
? queueMicrotask.bind(_global)
|
|
1066
|
+
: (typeof process !== 'undefined' && process.nextTick) || _setImmediate;
|
|
1067
|
+
|
|
1068
|
+
// *********************
|
|
1069
|
+
|
|
1070
|
+
const isIterable = (thing) => thing != null && isFunction(thing[iterator]);
|
|
1071
|
+
|
|
1072
|
+
/**
|
|
1073
|
+
* Determine if a value is iterable via an iterator that is NOT sourced solely
|
|
1074
|
+
* from a polluted Object.prototype. Use this instead of `isIterable` whenever
|
|
1075
|
+
* the iterable comes from untrusted input (e.g. user-supplied header sources),
|
|
1076
|
+
* so `Object.prototype[Symbol.iterator] = ...` cannot turn an ordinary object
|
|
1077
|
+
* into an attacker-controlled entries iterator.
|
|
1078
|
+
*
|
|
1079
|
+
* @param {*} thing The value to test
|
|
1080
|
+
*
|
|
1081
|
+
* @returns {boolean} True if value has a non-polluted iterator
|
|
1082
|
+
*/
|
|
1083
|
+
const isSafeIterable = (thing) =>
|
|
1084
|
+
thing != null && hasOwnInPrototypeChain(thing, iterator) && isIterable(thing);
|
|
1085
|
+
|
|
1086
|
+
export default {
|
|
1087
|
+
isArray,
|
|
1088
|
+
isArrayBuffer,
|
|
1089
|
+
isBuffer,
|
|
1090
|
+
isFormData,
|
|
1091
|
+
isArrayBufferView,
|
|
1092
|
+
isString,
|
|
1093
|
+
isNumber,
|
|
1094
|
+
isBoolean,
|
|
1095
|
+
isObject,
|
|
1096
|
+
isPlainObject,
|
|
1097
|
+
isEmptyObject,
|
|
1098
|
+
isReadableStream,
|
|
1099
|
+
isRequest,
|
|
1100
|
+
isResponse,
|
|
1101
|
+
isHeaders,
|
|
1102
|
+
isUndefined,
|
|
1103
|
+
isDate,
|
|
1104
|
+
isFile,
|
|
1105
|
+
isReactNativeBlob,
|
|
1106
|
+
isReactNative,
|
|
1107
|
+
isBlob,
|
|
1108
|
+
isRegExp,
|
|
1109
|
+
isFunction,
|
|
1110
|
+
isStream,
|
|
1111
|
+
isURLSearchParams,
|
|
1112
|
+
isTypedArray,
|
|
1113
|
+
isFileList,
|
|
1114
|
+
forEach,
|
|
1115
|
+
merge,
|
|
1116
|
+
extend,
|
|
1117
|
+
trim,
|
|
1118
|
+
stripBOM,
|
|
1119
|
+
inherits,
|
|
1120
|
+
toFlatObject,
|
|
1121
|
+
kindOf,
|
|
1122
|
+
kindOfTest,
|
|
1123
|
+
endsWith,
|
|
1124
|
+
toArray,
|
|
1125
|
+
forEachEntry,
|
|
1126
|
+
matchAll,
|
|
1127
|
+
isHTMLForm,
|
|
1128
|
+
hasOwnProperty,
|
|
1129
|
+
hasOwnProp: hasOwnProperty, // an alias to avoid ESLint no-prototype-builtins detection
|
|
1130
|
+
hasOwnInPrototypeChain,
|
|
1131
|
+
getSafeProp,
|
|
1132
|
+
toSafeFlatObject,
|
|
1133
|
+
reduceDescriptors,
|
|
1134
|
+
freezeMethods,
|
|
1135
|
+
toObjectSet,
|
|
1136
|
+
toCamelCase,
|
|
1137
|
+
noop,
|
|
1138
|
+
toFiniteNumber,
|
|
1139
|
+
findKey,
|
|
1140
|
+
global: _global,
|
|
1141
|
+
isContextDefined,
|
|
1142
|
+
isSpecCompliantForm,
|
|
1143
|
+
toJSONObject,
|
|
1144
|
+
isAsyncFn,
|
|
1145
|
+
isThenable,
|
|
1146
|
+
setImmediate: _setImmediate,
|
|
1147
|
+
asap,
|
|
1148
|
+
isIterable,
|
|
1149
|
+
isSafeIterable,
|
|
1150
|
+
};
|