appium-mac2-driver 4.5.0 → 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 +16 -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/session-claim-handler.d.ts.map +1 -1
- package/build/lib/session-claim-handler.js +1 -2
- package/build/lib/session-claim-handler.js.map +1 -1
- package/build/lib/types.d.ts +19 -0
- package/build/lib/types.d.ts.map +1 -1
- package/build/lib/wda-mac.d.ts +0 -1
- package/build/lib/wda-mac.d.ts.map +1 -1
- package/build/lib/wda-mac.js +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/session-claim-handler.ts +1 -2
- package/lib/types.ts +22 -0
- package/lib/wda-mac.ts +1 -2
- 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/@appium/support/build/lib/npm.d.ts.map +1 -1
- package/node_modules/@appium/support/build/lib/npm.js +2 -1
- package/node_modules/@appium/support/build/lib/npm.js.map +1 -1
- package/node_modules/@appium/support/build/lib/util.d.ts.map +1 -1
- package/node_modules/@appium/support/build/lib/util.js +13 -1
- package/node_modules/@appium/support/build/lib/util.js.map +1 -1
- package/node_modules/@appium/support/build/lib/zip.d.ts +2 -1
- package/node_modules/@appium/support/build/lib/zip.d.ts.map +1 -1
- package/node_modules/@appium/support/build/lib/zip.js +193 -64
- package/node_modules/@appium/support/build/lib/zip.js.map +1 -1
- package/node_modules/@appium/support/lib/npm.ts +2 -1
- package/node_modules/@appium/support/lib/util.ts +13 -1
- package/node_modules/@appium/support/lib/zip.ts +231 -71
- package/node_modules/@appium/support/node_modules/axios/CHANGELOG.md +1934 -0
- package/node_modules/@appium/support/node_modules/axios/LICENSE +7 -0
- package/node_modules/@appium/support/node_modules/axios/MIGRATION_GUIDE.md +877 -0
- package/node_modules/@appium/support/node_modules/axios/README.md +2851 -0
- package/node_modules/@appium/support/node_modules/axios/dist/axios.js +5807 -0
- package/node_modules/@appium/support/node_modules/axios/dist/axios.min.js +5 -0
- package/node_modules/@appium/support/node_modules/axios/dist/axios.min.js.map +1 -0
- package/node_modules/@appium/support/node_modules/axios/dist/browser/axios.cjs +5829 -0
- package/node_modules/@appium/support/node_modules/axios/dist/esm/axios.js +5850 -0
- package/node_modules/@appium/support/node_modules/axios/dist/esm/axios.min.js +3 -0
- package/node_modules/@appium/support/node_modules/axios/dist/esm/axios.min.js.map +1 -0
- package/node_modules/@appium/support/node_modules/axios/dist/node/axios.cjs +6808 -0
- package/node_modules/@appium/support/node_modules/axios/index.d.cts +766 -0
- package/node_modules/@appium/support/node_modules/axios/index.d.ts +787 -0
- package/node_modules/@appium/support/node_modules/axios/index.js +45 -0
- package/node_modules/@appium/support/node_modules/axios/lib/adapters/README.md +36 -0
- package/node_modules/@appium/support/node_modules/axios/lib/adapters/adapters.js +132 -0
- package/node_modules/@appium/support/node_modules/axios/lib/adapters/fetch.js +696 -0
- package/node_modules/@appium/support/node_modules/axios/lib/adapters/http.js +1490 -0
- package/node_modules/@appium/support/node_modules/axios/lib/adapters/xhr.js +277 -0
- package/node_modules/@appium/support/node_modules/axios/lib/axios.js +89 -0
- package/node_modules/@appium/support/node_modules/axios/lib/cancel/CancelToken.js +135 -0
- package/node_modules/@appium/support/node_modules/axios/lib/cancel/CanceledError.js +22 -0
- package/node_modules/@appium/support/node_modules/axios/lib/cancel/isCancel.js +5 -0
- package/node_modules/@appium/support/node_modules/axios/lib/core/Axios.js +306 -0
- package/node_modules/@appium/support/node_modules/axios/lib/core/AxiosError.js +219 -0
- package/node_modules/@appium/support/node_modules/axios/lib/core/AxiosHeaders.js +474 -0
- package/node_modules/@appium/support/node_modules/axios/lib/core/InterceptorManager.js +171 -0
- package/node_modules/@appium/support/node_modules/axios/lib/core/README.md +8 -0
- package/node_modules/@appium/support/node_modules/axios/lib/core/buildFullPath.js +76 -0
- package/node_modules/@appium/support/node_modules/axios/lib/core/dispatchRequest.js +95 -0
- package/node_modules/@appium/support/node_modules/axios/lib/core/mergeConfig.js +174 -0
- package/node_modules/@appium/support/node_modules/axios/lib/core/methodList.js +17 -0
- package/node_modules/@appium/support/node_modules/axios/lib/core/setFormDataHeaders.js +27 -0
- package/node_modules/@appium/support/node_modules/axios/lib/core/settle.js +27 -0
- package/node_modules/@appium/support/node_modules/axios/lib/core/transformData.js +28 -0
- package/node_modules/@appium/support/node_modules/axios/lib/defaults/index.js +178 -0
- package/node_modules/@appium/support/node_modules/axios/lib/defaults/transitional.js +10 -0
- package/node_modules/@appium/support/node_modules/axios/lib/env/README.md +3 -0
- package/node_modules/@appium/support/node_modules/axios/lib/env/classes/FormData.js +2 -0
- package/node_modules/@appium/support/node_modules/axios/lib/env/data.js +1 -0
- package/node_modules/@appium/support/node_modules/axios/lib/helpers/AxiosTransformStream.js +156 -0
- package/node_modules/@appium/support/node_modules/axios/lib/helpers/AxiosURLSearchParams.js +59 -0
- package/node_modules/@appium/support/node_modules/axios/lib/helpers/Http2Sessions.js +121 -0
- package/node_modules/@appium/support/node_modules/axios/lib/helpers/HttpStatusCode.js +88 -0
- package/node_modules/@appium/support/node_modules/axios/lib/helpers/README.md +7 -0
- package/node_modules/@appium/support/node_modules/axios/lib/helpers/ZlibHeaderTransformStream.js +29 -0
- package/node_modules/@appium/support/node_modules/axios/lib/helpers/bind.js +14 -0
- package/node_modules/@appium/support/node_modules/axios/lib/helpers/buildURL.js +69 -0
- package/node_modules/@appium/support/node_modules/axios/lib/helpers/callbackify.js +18 -0
- package/node_modules/@appium/support/node_modules/axios/lib/helpers/combineURLs.js +23 -0
- package/node_modules/@appium/support/node_modules/axios/lib/helpers/composeSignals.js +68 -0
- package/node_modules/@appium/support/node_modules/axios/lib/helpers/cookies.js +64 -0
- package/node_modules/@appium/support/node_modules/axios/lib/helpers/deprecatedMethod.js +31 -0
- package/node_modules/@appium/support/node_modules/axios/lib/helpers/estimateDataURLDecodedBytes.js +166 -0
- package/node_modules/@appium/support/node_modules/axios/lib/helpers/formDataToJSON.js +125 -0
- package/node_modules/@appium/support/node_modules/axios/lib/helpers/formDataToStream.js +119 -0
- package/node_modules/@appium/support/node_modules/axios/lib/helpers/fromDataURI.js +69 -0
- package/node_modules/@appium/support/node_modules/axios/lib/helpers/isAbsoluteURL.js +19 -0
- package/node_modules/@appium/support/node_modules/axios/lib/helpers/isAxiosError.js +14 -0
- package/node_modules/@appium/support/node_modules/axios/lib/helpers/isURLSameOrigin.js +16 -0
- package/node_modules/@appium/support/node_modules/axios/lib/helpers/normalizeURLForProtocolCheck.js +24 -0
- package/node_modules/@appium/support/node_modules/axios/lib/helpers/null.js +2 -0
- package/node_modules/@appium/support/node_modules/axios/lib/helpers/parseHeaders.js +71 -0
- package/node_modules/@appium/support/node_modules/axios/lib/helpers/parseProtocol.js +6 -0
- package/node_modules/@appium/support/node_modules/axios/lib/helpers/progressEventReducer.js +54 -0
- package/node_modules/@appium/support/node_modules/axios/lib/helpers/readBlob.js +15 -0
- package/node_modules/@appium/support/node_modules/axios/lib/helpers/resolveConfig.js +107 -0
- package/node_modules/@appium/support/node_modules/axios/lib/helpers/sanitizeHeaderValue.js +60 -0
- package/node_modules/@appium/support/node_modules/axios/lib/helpers/shouldBypassProxy.js +505 -0
- package/node_modules/@appium/support/node_modules/axios/lib/helpers/speedometer.js +55 -0
- package/node_modules/@appium/support/node_modules/axios/lib/helpers/spread.js +28 -0
- package/node_modules/@appium/support/node_modules/axios/lib/helpers/throttle.js +45 -0
- package/node_modules/@appium/support/node_modules/axios/lib/helpers/toFormData.js +279 -0
- package/node_modules/@appium/support/node_modules/axios/lib/helpers/toURLEncodedForm.js +19 -0
- package/node_modules/@appium/support/node_modules/axios/lib/helpers/trackStream.js +89 -0
- package/node_modules/@appium/support/node_modules/axios/lib/helpers/validator.js +112 -0
- package/node_modules/@appium/support/node_modules/axios/lib/platform/browser/classes/Blob.js +3 -0
- package/node_modules/@appium/support/node_modules/axios/lib/platform/browser/classes/FormData.js +3 -0
- package/node_modules/@appium/support/node_modules/axios/lib/platform/browser/classes/URLSearchParams.js +4 -0
- package/node_modules/@appium/support/node_modules/axios/lib/platform/browser/index.js +13 -0
- package/node_modules/@appium/support/node_modules/axios/lib/platform/common/utils.js +52 -0
- package/node_modules/@appium/support/node_modules/axios/lib/platform/index.js +7 -0
- package/node_modules/@appium/support/node_modules/axios/lib/platform/node/classes/Buffer.js +11 -0
- package/node_modules/@appium/support/node_modules/axios/lib/platform/node/classes/FormData.js +3 -0
- package/node_modules/@appium/support/node_modules/axios/lib/platform/node/classes/URLSearchParams.js +4 -0
- package/node_modules/@appium/support/node_modules/axios/lib/platform/node/index.js +37 -0
- package/node_modules/@appium/support/node_modules/axios/lib/utils.js +1150 -0
- package/node_modules/@appium/support/node_modules/axios/package.json +203 -0
- package/node_modules/@appium/support/package.json +6 -6
- package/node_modules/@appium/types/build/lib/commands/basedriver.d.ts +6 -4
- package/node_modules/@appium/types/build/lib/commands/basedriver.d.ts.map +1 -1
- package/node_modules/@appium/types/lib/commands/basedriver.ts +4 -4
- package/node_modules/@appium/types/package.json +2 -2
- 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/appium-xcode/CHANGELOG.md +7 -0
- package/node_modules/appium-xcode/package.json +4 -4
- package/node_modules/asyncbox/README.md +43 -0
- package/node_modules/asyncbox/build/cjs/lib/asyncfilter.d.ts +9 -0
- package/node_modules/asyncbox/build/cjs/lib/asyncfilter.d.ts.map +1 -0
- package/node_modules/asyncbox/build/cjs/lib/asyncfilter.js +35 -0
- package/node_modules/asyncbox/build/cjs/lib/asyncfilter.js.map +1 -0
- package/node_modules/asyncbox/build/cjs/lib/asyncmap.d.ts +9 -0
- package/node_modules/asyncbox/build/cjs/lib/asyncmap.d.ts.map +1 -0
- package/node_modules/asyncbox/build/cjs/lib/asyncmap.js +23 -0
- package/node_modules/asyncbox/build/cjs/lib/asyncmap.js.map +1 -0
- package/node_modules/asyncbox/build/cjs/lib/errors.d.ts +9 -0
- package/node_modules/asyncbox/build/cjs/lib/errors.d.ts.map +1 -0
- package/node_modules/asyncbox/build/cjs/lib/errors.js +20 -0
- package/node_modules/asyncbox/build/cjs/lib/errors.js.map +1 -0
- package/node_modules/asyncbox/build/cjs/lib/index.d.ts +12 -0
- package/node_modules/asyncbox/build/cjs/lib/index.d.ts.map +1 -0
- package/node_modules/asyncbox/build/cjs/lib/index.js +24 -0
- package/node_modules/asyncbox/build/cjs/lib/index.js.map +1 -0
- package/node_modules/asyncbox/build/cjs/lib/limit-function.d.ts +3 -0
- package/node_modules/asyncbox/build/cjs/lib/limit-function.d.ts.map +1 -0
- package/node_modules/asyncbox/build/cjs/lib/limit-function.js +15 -0
- package/node_modules/asyncbox/build/cjs/lib/limit-function.js.map +1 -0
- package/node_modules/asyncbox/build/cjs/lib/lock.d.ts +74 -0
- package/node_modules/asyncbox/build/cjs/lib/lock.d.ts.map +1 -0
- package/node_modules/asyncbox/build/cjs/lib/lock.js +295 -0
- package/node_modules/asyncbox/build/cjs/lib/lock.js.map +1 -0
- package/node_modules/asyncbox/build/cjs/lib/long-sleep.d.ts +15 -0
- package/node_modules/asyncbox/build/cjs/lib/long-sleep.d.ts.map +1 -0
- package/node_modules/asyncbox/build/cjs/lib/long-sleep.js +36 -0
- package/node_modules/asyncbox/build/cjs/lib/long-sleep.js.map +1 -0
- package/node_modules/asyncbox/build/cjs/lib/retry.d.ts +17 -0
- package/node_modules/asyncbox/build/cjs/lib/retry.d.ts.map +1 -0
- package/node_modules/asyncbox/build/cjs/lib/retry.js +57 -0
- package/node_modules/asyncbox/build/cjs/lib/retry.js.map +1 -0
- package/node_modules/asyncbox/build/cjs/lib/sleep.d.ts +20 -0
- package/node_modules/asyncbox/build/cjs/lib/sleep.d.ts.map +1 -0
- package/node_modules/asyncbox/build/cjs/lib/sleep.js +61 -0
- package/node_modules/asyncbox/build/cjs/lib/sleep.js.map +1 -0
- package/node_modules/asyncbox/build/cjs/lib/wait-for-condition.d.ts +18 -0
- package/node_modules/asyncbox/build/cjs/lib/wait-for-condition.d.ts.map +1 -0
- package/node_modules/asyncbox/build/cjs/lib/wait-for-condition.js +51 -0
- package/node_modules/asyncbox/build/cjs/lib/wait-for-condition.js.map +1 -0
- package/node_modules/asyncbox/build/cjs/lib/with-timeout.d.ts +16 -0
- package/node_modules/asyncbox/build/cjs/lib/with-timeout.d.ts.map +1 -0
- package/node_modules/asyncbox/build/cjs/lib/with-timeout.js +45 -0
- package/node_modules/asyncbox/build/cjs/lib/with-timeout.js.map +1 -0
- package/node_modules/asyncbox/build/esm/lib/asyncfilter.d.ts +9 -0
- package/node_modules/asyncbox/build/esm/lib/asyncfilter.d.ts.map +1 -0
- package/node_modules/asyncbox/build/esm/lib/asyncfilter.js +32 -0
- package/node_modules/asyncbox/build/esm/lib/asyncfilter.js.map +1 -0
- package/node_modules/asyncbox/build/esm/lib/asyncmap.d.ts +9 -0
- package/node_modules/asyncbox/build/esm/lib/asyncmap.d.ts.map +1 -0
- package/node_modules/asyncbox/build/esm/lib/asyncmap.js +20 -0
- package/node_modules/asyncbox/build/esm/lib/asyncmap.js.map +1 -0
- package/node_modules/asyncbox/build/esm/lib/errors.d.ts +9 -0
- package/node_modules/asyncbox/build/esm/lib/errors.d.ts.map +1 -0
- package/node_modules/asyncbox/build/esm/lib/errors.js +15 -0
- package/node_modules/asyncbox/build/esm/lib/errors.js.map +1 -0
- package/node_modules/asyncbox/build/esm/lib/index.d.ts +12 -0
- package/node_modules/asyncbox/build/esm/lib/index.d.ts.map +1 -0
- package/node_modules/asyncbox/build/esm/lib/index.js +10 -0
- package/node_modules/asyncbox/build/esm/lib/index.js.map +1 -0
- package/node_modules/asyncbox/build/esm/lib/limit-function.d.ts +3 -0
- package/node_modules/asyncbox/build/esm/lib/limit-function.d.ts.map +1 -0
- package/node_modules/asyncbox/build/esm/lib/limit-function.js +12 -0
- package/node_modules/asyncbox/build/esm/lib/limit-function.js.map +1 -0
- package/node_modules/asyncbox/build/esm/lib/lock.d.ts +74 -0
- package/node_modules/asyncbox/build/esm/lib/lock.d.ts.map +1 -0
- package/node_modules/asyncbox/build/esm/lib/lock.js +291 -0
- package/node_modules/asyncbox/build/esm/lib/lock.js.map +1 -0
- package/node_modules/asyncbox/build/esm/lib/long-sleep.d.ts +15 -0
- package/node_modules/asyncbox/build/esm/lib/long-sleep.d.ts.map +1 -0
- package/node_modules/asyncbox/build/esm/lib/long-sleep.js +33 -0
- package/node_modules/asyncbox/build/esm/lib/long-sleep.js.map +1 -0
- package/node_modules/asyncbox/build/esm/lib/retry.d.ts +17 -0
- package/node_modules/asyncbox/build/esm/lib/retry.d.ts.map +1 -0
- package/node_modules/asyncbox/build/esm/lib/retry.js +53 -0
- package/node_modules/asyncbox/build/esm/lib/retry.js.map +1 -0
- package/node_modules/asyncbox/build/esm/lib/sleep.d.ts +20 -0
- package/node_modules/asyncbox/build/esm/lib/sleep.d.ts.map +1 -0
- package/node_modules/asyncbox/build/esm/lib/sleep.js +58 -0
- package/node_modules/asyncbox/build/esm/lib/sleep.js.map +1 -0
- package/node_modules/asyncbox/build/esm/lib/wait-for-condition.d.ts +18 -0
- package/node_modules/asyncbox/build/esm/lib/wait-for-condition.d.ts.map +1 -0
- package/node_modules/asyncbox/build/esm/lib/wait-for-condition.js +48 -0
- package/node_modules/asyncbox/build/esm/lib/wait-for-condition.js.map +1 -0
- package/node_modules/asyncbox/build/esm/lib/with-timeout.d.ts +16 -0
- package/node_modules/asyncbox/build/esm/lib/with-timeout.d.ts.map +1 -0
- package/node_modules/asyncbox/build/esm/lib/with-timeout.js +42 -0
- package/node_modules/asyncbox/build/esm/lib/with-timeout.js.map +1 -0
- package/node_modules/asyncbox/lib/asyncfilter.ts +38 -0
- package/node_modules/asyncbox/lib/asyncmap.ts +29 -0
- package/node_modules/asyncbox/lib/errors.ts +15 -0
- package/node_modules/asyncbox/lib/index.ts +21 -0
- package/node_modules/asyncbox/lib/limit-function.ts +18 -0
- package/node_modules/asyncbox/lib/lock.ts +360 -0
- package/node_modules/asyncbox/lib/long-sleep.ts +38 -0
- package/node_modules/asyncbox/lib/retry.ts +61 -0
- package/node_modules/asyncbox/lib/sleep.ts +79 -0
- package/node_modules/asyncbox/lib/wait-for-condition.ts +52 -0
- package/node_modules/asyncbox/lib/with-timeout.ts +43 -0
- package/node_modules/asyncbox/package.json +8 -8
- package/node_modules/axios/README.md +41 -106
- package/node_modules/axios/dist/axios.js +931 -278
- package/node_modules/axios/dist/axios.min.js +2 -2
- package/node_modules/axios/dist/axios.min.js.map +1 -1
- package/node_modules/axios/dist/browser/axios.cjs +948 -268
- package/node_modules/axios/dist/esm/axios.js +948 -268
- package/node_modules/axios/dist/esm/axios.min.js +2 -2
- package/node_modules/axios/dist/esm/axios.min.js.map +1 -1
- package/node_modules/axios/dist/node/axios.cjs +925 -242
- package/node_modules/axios/index.d.cts +20 -1
- package/node_modules/axios/index.d.ts +18 -1
- package/node_modules/axios/lib/adapters/fetch.js +73 -20
- package/node_modules/axios/lib/adapters/http.js +145 -26
- package/node_modules/axios/lib/adapters/xhr.js +120 -13
- package/node_modules/axios/lib/core/Axios.js +67 -12
- package/node_modules/axios/lib/core/AxiosError.js +59 -0
- package/node_modules/axios/lib/core/AxiosHeaders.js +17 -4
- package/node_modules/axios/lib/core/InterceptorManager.js +13 -2
- package/node_modules/axios/lib/core/assertParamsAcyclic.js +49 -0
- package/node_modules/axios/lib/core/createMultipartBody.js +37 -0
- package/node_modules/axios/lib/core/dispatchRequest.js +20 -0
- package/node_modules/axios/lib/core/mergeConfig.js +183 -120
- package/node_modules/axios/lib/defaults/transitional.js +1 -0
- package/node_modules/axios/lib/env/data.js +1 -1
- package/node_modules/axios/lib/helpers/AxiosTransformStream.js +11 -2
- package/node_modules/axios/lib/helpers/Http2Sessions.js +2 -1
- package/node_modules/axios/lib/helpers/composeSignals.js +6 -3
- package/node_modules/axios/lib/helpers/cookies.js +30 -6
- package/node_modules/axios/lib/helpers/estimateDataURLDecodedBytes.js +34 -7
- package/node_modules/axios/lib/helpers/formDataToBlob.js +113 -0
- package/node_modules/axios/lib/helpers/formDataToJSON.js +25 -1
- package/node_modules/axios/lib/helpers/fromDataURI.js +8 -2
- package/node_modules/axios/lib/helpers/isURLSameOrigin.js +4 -9
- package/node_modules/axios/lib/helpers/parseHeaders.js +2 -1
- package/node_modules/axios/lib/helpers/parseProtocol.js +1 -1
- package/node_modules/axios/lib/helpers/resolveConfig.js +16 -3
- package/node_modules/axios/lib/helpers/shouldBypassProxy.js +16 -1
- package/node_modules/axios/lib/utils.js +61 -10
- package/node_modules/axios/package.json +1 -2
- 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/follow-redirects/README.md +27 -1
- package/node_modules/follow-redirects/index.js +1 -5
- package/node_modules/follow-redirects/package.json +1 -1
- 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/shell-quote/README.md +37 -4
- package/node_modules/shell-quote/package.json +10 -6
- package/node_modules/shell-quote/parse.d.ts +1 -1
- package/node_modules/shell-quote/parse.js +63 -11
- package/node_modules/shell-quote/quote.d.ts +2 -1
- package/node_modules/shell-quote/quote.js +23 -3
- 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/{shell-quote → side-channel-list}/.nycrc +0 -1
- 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/uuid/package.json +17 -17
- 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 +6 -6
- package/node_modules/asyncbox/build/cjs/lib/asyncbox.d.ts +0 -103
- package/node_modules/asyncbox/build/cjs/lib/asyncbox.d.ts.map +0 -1
- package/node_modules/asyncbox/build/cjs/lib/asyncbox.js +0 -311
- package/node_modules/asyncbox/build/cjs/lib/asyncbox.js.map +0 -1
- package/node_modules/asyncbox/build/esm/lib/asyncbox.d.ts +0 -103
- package/node_modules/asyncbox/build/esm/lib/asyncbox.d.ts.map +0 -1
- package/node_modules/asyncbox/build/esm/lib/asyncbox.js +0 -298
- package/node_modules/asyncbox/build/esm/lib/asyncbox.js.map +0 -1
- package/node_modules/asyncbox/lib/asyncbox.ts +0 -382
- package/node_modules/shell-quote/eslint.config.mjs +0 -29
- package/node_modules/shell-quote/security.md +0 -11
- package/node_modules/shell-quote/test/comment.js +0 -16
- package/node_modules/shell-quote/test/env.js +0 -52
- package/node_modules/shell-quote/test/env_fn.js +0 -21
- package/node_modules/shell-quote/test/op.js +0 -102
- package/node_modules/shell-quote/test/parse.js +0 -149
- package/node_modules/shell-quote/test/quote.js +0 -145
- package/node_modules/shell-quote/test/set.js +0 -31
|
@@ -0,0 +1,880 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var test = require('tape');
|
|
4
|
+
var inspect = require('object-inspect');
|
|
5
|
+
var SaferBuffer = require('safer-buffer').Buffer;
|
|
6
|
+
var forEach = require('for-each');
|
|
7
|
+
var v = require('es-value-fixtures');
|
|
8
|
+
|
|
9
|
+
var utils = require('../lib/utils');
|
|
10
|
+
|
|
11
|
+
test('merge()', function (t) {
|
|
12
|
+
t.deepEqual(utils.merge(null, true), [null, true], 'merges true into null');
|
|
13
|
+
|
|
14
|
+
t.deepEqual(utils.merge(null, [42]), [null, 42], 'merges null into an array');
|
|
15
|
+
|
|
16
|
+
t.deepEqual(utils.merge({ a: 'b' }, { a: 'c' }), { a: ['b', 'c'] }, 'merges two objects with the same key');
|
|
17
|
+
|
|
18
|
+
var oneMerged = utils.merge({ foo: 'bar' }, { foo: { first: '123' } });
|
|
19
|
+
t.deepEqual(oneMerged, { foo: ['bar', { first: '123' }] }, 'merges a standalone and an object into an array');
|
|
20
|
+
|
|
21
|
+
var twoMerged = utils.merge({ foo: ['bar', { first: '123' }] }, { foo: { second: '456' } });
|
|
22
|
+
t.deepEqual(twoMerged, { foo: { 0: 'bar', 1: { first: '123' }, second: '456' } }, 'merges a standalone and two objects into an array');
|
|
23
|
+
|
|
24
|
+
var sandwiched = utils.merge({ foo: ['bar', { first: '123', second: '456' }] }, { foo: 'baz' });
|
|
25
|
+
t.deepEqual(sandwiched, { foo: ['bar', { first: '123', second: '456' }, 'baz'] }, 'merges an object sandwiched by two standalones into an array');
|
|
26
|
+
|
|
27
|
+
var nestedArrays = utils.merge({ foo: ['baz'] }, { foo: ['bar', 'xyzzy'] });
|
|
28
|
+
t.deepEqual(nestedArrays, { foo: ['baz', 'bar', 'xyzzy'] });
|
|
29
|
+
|
|
30
|
+
var noOptionsNonObjectSource = utils.merge({ foo: 'baz' }, 'bar');
|
|
31
|
+
t.deepEqual(noOptionsNonObjectSource, { foo: 'baz', bar: true });
|
|
32
|
+
|
|
33
|
+
var func = function f() {};
|
|
34
|
+
func();
|
|
35
|
+
t.deepEqual(
|
|
36
|
+
utils.merge(func, { foo: 'bar' }),
|
|
37
|
+
[func, { foo: 'bar' }],
|
|
38
|
+
'functions can not be merged into'
|
|
39
|
+
);
|
|
40
|
+
|
|
41
|
+
func.bar = 'baz';
|
|
42
|
+
t.deepEqual(
|
|
43
|
+
utils.merge({ foo: 'bar' }, func),
|
|
44
|
+
{ foo: 'bar', bar: 'baz' },
|
|
45
|
+
'functions can be merge sources'
|
|
46
|
+
);
|
|
47
|
+
|
|
48
|
+
t.test(
|
|
49
|
+
'avoids invoking array setters unnecessarily',
|
|
50
|
+
{ skip: typeof Object.defineProperty !== 'function' },
|
|
51
|
+
function (st) {
|
|
52
|
+
var setCount = 0;
|
|
53
|
+
var getCount = 0;
|
|
54
|
+
var observed = [];
|
|
55
|
+
Object.defineProperty(observed, 0, {
|
|
56
|
+
get: function () {
|
|
57
|
+
getCount += 1;
|
|
58
|
+
return { bar: 'baz' };
|
|
59
|
+
},
|
|
60
|
+
set: function () { setCount += 1; }
|
|
61
|
+
});
|
|
62
|
+
utils.merge(observed, [null]);
|
|
63
|
+
st.equal(setCount, 0);
|
|
64
|
+
st.equal(getCount, 1);
|
|
65
|
+
observed[0] = observed[0]; // eslint-disable-line no-self-assign
|
|
66
|
+
st.equal(setCount, 1);
|
|
67
|
+
st.equal(getCount, 2);
|
|
68
|
+
|
|
69
|
+
st.end();
|
|
70
|
+
}
|
|
71
|
+
);
|
|
72
|
+
|
|
73
|
+
t.test('with overflow objects (from arrayLimit)', function (st) {
|
|
74
|
+
// arrayLimit is max index, so with limit 0, max index 0 is allowed (1 element)
|
|
75
|
+
// To create overflow, need 2+ elements with limit 0, or 3+ with limit 1, etc.
|
|
76
|
+
st.test('merges primitive into overflow object at next index', function (s2t) {
|
|
77
|
+
// Create an overflow object via combine: 3 elements (indices 0-2) with limit 0
|
|
78
|
+
var overflow = utils.combine(['a', 'b'], 'c', 0, false);
|
|
79
|
+
s2t.ok(utils.isOverflow(overflow), 'overflow object is marked');
|
|
80
|
+
var merged = utils.merge(overflow, 'd');
|
|
81
|
+
s2t.deepEqual(merged, { 0: 'a', 1: 'b', 2: 'c', 3: 'd' }, 'adds primitive at next numeric index');
|
|
82
|
+
|
|
83
|
+
s2t.end();
|
|
84
|
+
});
|
|
85
|
+
|
|
86
|
+
st.test('merges primitive into regular object with numeric keys normally', function (s2t) {
|
|
87
|
+
var obj = { 0: 'a', 1: 'b' };
|
|
88
|
+
s2t.notOk(utils.isOverflow(obj), 'plain object is not marked as overflow');
|
|
89
|
+
var merged = utils.merge(obj, 'c');
|
|
90
|
+
s2t.deepEqual(merged, { 0: 'a', 1: 'b', c: true }, 'adds primitive as key (not at next index)');
|
|
91
|
+
s2t.end();
|
|
92
|
+
});
|
|
93
|
+
|
|
94
|
+
st.test('merges primitive into object with non-numeric keys normally', function (s2t) {
|
|
95
|
+
var obj = { foo: 'bar' };
|
|
96
|
+
var merged = utils.merge(obj, 'baz');
|
|
97
|
+
s2t.deepEqual(merged, { foo: 'bar', baz: true }, 'adds primitive as key with value true');
|
|
98
|
+
|
|
99
|
+
s2t.end();
|
|
100
|
+
});
|
|
101
|
+
|
|
102
|
+
st.test('with strictMerge, wraps object and primitive in array', function (s2t) {
|
|
103
|
+
var obj = { foo: 'bar' };
|
|
104
|
+
var merged = utils.merge(obj, 'baz', { strictMerge: true });
|
|
105
|
+
s2t.deepEqual(merged, [{ foo: 'bar' }, 'baz'], 'wraps in array with strictMerge');
|
|
106
|
+
s2t.end();
|
|
107
|
+
});
|
|
108
|
+
|
|
109
|
+
st.test('with strictMerge, repeated conflicts append instead of nesting a new wrapper', function (s2t) {
|
|
110
|
+
var opts = { strictMerge: true };
|
|
111
|
+
var wrapped = utils.merge({ foo: 'bar' }, 'baz', opts);
|
|
112
|
+
s2t.deepEqual(wrapped, [{ foo: 'bar' }, 'baz'], 'first conflict wraps in an array');
|
|
113
|
+
|
|
114
|
+
var withObject = utils.merge(wrapped, { qux: 'quux' }, opts);
|
|
115
|
+
s2t.deepEqual(
|
|
116
|
+
withObject,
|
|
117
|
+
{ 0: { foo: 'bar' }, 1: 'baz', qux: 'quux' },
|
|
118
|
+
'merging an object converts the wrapper to an object'
|
|
119
|
+
);
|
|
120
|
+
|
|
121
|
+
var second = utils.merge(withObject, 'corge', opts);
|
|
122
|
+
s2t.deepEqual(
|
|
123
|
+
second,
|
|
124
|
+
{ 0: { foo: 'bar' }, 1: 'baz', 2: 'corge', qux: 'quux' },
|
|
125
|
+
'a second conflict appends at the next index'
|
|
126
|
+
);
|
|
127
|
+
|
|
128
|
+
var third = utils.merge(second, 'grault', opts);
|
|
129
|
+
s2t.deepEqual(
|
|
130
|
+
third,
|
|
131
|
+
{ 0: { foo: 'bar' }, 1: 'baz', 2: 'corge', 3: 'grault', qux: 'quux' },
|
|
132
|
+
'a third conflict appends again, so nesting depth stays constant'
|
|
133
|
+
);
|
|
134
|
+
|
|
135
|
+
s2t.end();
|
|
136
|
+
});
|
|
137
|
+
|
|
138
|
+
st.test('with strictMerge, a caller-supplied array is still wrapped, not appended to', function (s2t) {
|
|
139
|
+
var merged = utils.merge({ 0: 'a', 1: 'b' }, 'c', { strictMerge: true });
|
|
140
|
+
s2t.deepEqual(merged, [{ 0: 'a', 1: 'b' }, 'c'], 'an unmarked object with numeric keys is wrapped');
|
|
141
|
+
s2t.end();
|
|
142
|
+
});
|
|
143
|
+
|
|
144
|
+
st.test('with strictMerge, throws instead of appending a conflict past arrayLimit with throwOnLimitExceeded', function (s2t) {
|
|
145
|
+
var appendConflict = function (options) {
|
|
146
|
+
var wrapped = utils.merge({ foo: 'bar' }, 'baz', { strictMerge: true });
|
|
147
|
+
var container = utils.merge(wrapped, { qux: 'quux' }, { strictMerge: true });
|
|
148
|
+
return utils.merge(container, 'corge', options);
|
|
149
|
+
};
|
|
150
|
+
|
|
151
|
+
s2t['throws'](
|
|
152
|
+
function () { appendConflict({ strictMerge: true, arrayLimit: 1, throwOnLimitExceeded: true }); },
|
|
153
|
+
new RangeError('Array limit exceeded. Only 1 element allowed in an array.'),
|
|
154
|
+
'appending to a two-element container past arrayLimit throws'
|
|
155
|
+
);
|
|
156
|
+
s2t['throws'](
|
|
157
|
+
function () { appendConflict({ strictMerge: true, arrayLimit: 2, throwOnLimitExceeded: true }); },
|
|
158
|
+
new RangeError('Array limit exceeded. Only 2 elements allowed in an array.'),
|
|
159
|
+
'uses the plural message when arrayLimit is not 1'
|
|
160
|
+
);
|
|
161
|
+
s2t.deepEqual(
|
|
162
|
+
appendConflict({ strictMerge: true, arrayLimit: 3, throwOnLimitExceeded: true }),
|
|
163
|
+
{ 0: { foo: 'bar' }, 1: 'baz', 2: 'corge', qux: 'quux' },
|
|
164
|
+
'appends while the container stays within arrayLimit'
|
|
165
|
+
);
|
|
166
|
+
s2t.deepEqual(
|
|
167
|
+
appendConflict({ strictMerge: true, arrayLimit: 1 }),
|
|
168
|
+
{ 0: { foo: 'bar' }, 1: 'baz', 2: 'corge', qux: 'quux' },
|
|
169
|
+
'still appends past arrayLimit without throwOnLimitExceeded, since the container is already an object'
|
|
170
|
+
);
|
|
171
|
+
|
|
172
|
+
s2t.end();
|
|
173
|
+
});
|
|
174
|
+
|
|
175
|
+
st.test('with strictMerge, a conflict appends after numeric keys already in its container', function (s2t) {
|
|
176
|
+
var opts = { strictMerge: true };
|
|
177
|
+
|
|
178
|
+
var container = utils.merge(utils.merge({ foo: 'bar' }, 'baz', opts), { qux: 'quux' }, opts);
|
|
179
|
+
var withIndex = utils.merge(container, { 2: 'keep' }, opts);
|
|
180
|
+
s2t.deepEqual(
|
|
181
|
+
utils.merge(withIndex, 'corge', opts),
|
|
182
|
+
{ 0: { foo: 'bar' }, 1: 'baz', 2: 'keep', 3: 'corge', qux: 'quux' },
|
|
183
|
+
'a numeric key merged into the container is not overwritten'
|
|
184
|
+
);
|
|
185
|
+
|
|
186
|
+
var sparse = [];
|
|
187
|
+
sparse[2] = 'keep';
|
|
188
|
+
var extended = utils.merge(utils.merge({ foo: 'bar' }, 'baz', opts), sparse, opts);
|
|
189
|
+
s2t.deepEqual(extended, [{ foo: 'bar' }, 'baz', 'keep'], 'an indexed value extends the container while it is an array');
|
|
190
|
+
var converted = utils.merge(extended, { qux: 'quux' }, opts);
|
|
191
|
+
s2t.deepEqual(
|
|
192
|
+
utils.merge(converted, 'corge', opts),
|
|
193
|
+
{ 0: { foo: 'bar' }, 1: 'baz', 2: 'keep', 3: 'corge', qux: 'quux' },
|
|
194
|
+
'converting the container to an object keeps its last index'
|
|
195
|
+
);
|
|
196
|
+
|
|
197
|
+
s2t.end();
|
|
198
|
+
});
|
|
199
|
+
|
|
200
|
+
st.test('enforces arrayLimit on the two-element array built for colliding values', function (s2t) {
|
|
201
|
+
s2t['throws'](
|
|
202
|
+
function () { utils.merge({ foo: 'bar' }, 'baz', { strictMerge: true, arrayLimit: 1, throwOnLimitExceeded: true }); },
|
|
203
|
+
new RangeError('Array limit exceeded. Only 1 element allowed in an array.'),
|
|
204
|
+
'a strictMerge conflict throws at arrayLimit 1'
|
|
205
|
+
);
|
|
206
|
+
s2t['throws'](
|
|
207
|
+
function () { utils.merge('a', 'b', { arrayLimit: 0, throwOnLimitExceeded: true }); },
|
|
208
|
+
new RangeError('Array limit exceeded. Only 0 elements allowed in an array.'),
|
|
209
|
+
'two colliding primitives throw at arrayLimit 0'
|
|
210
|
+
);
|
|
211
|
+
|
|
212
|
+
var conflict = utils.merge({ foo: 'bar' }, 'baz', { strictMerge: true, arrayLimit: 1 });
|
|
213
|
+
s2t.ok(utils.isOverflow(conflict), 'without throwOnLimitExceeded, a strictMerge conflict converts to an overflow object');
|
|
214
|
+
s2t.deepEqual(conflict, { 0: { foo: 'bar' }, 1: 'baz' }, 'holding both values');
|
|
215
|
+
|
|
216
|
+
var pair = utils.merge('a', 'b', { arrayLimit: 1 });
|
|
217
|
+
s2t.ok(utils.isOverflow(pair), 'without throwOnLimitExceeded, two colliding primitives convert to an overflow object');
|
|
218
|
+
s2t.deepEqual(pair, { 0: 'a', 1: 'b' }, 'holding both values');
|
|
219
|
+
|
|
220
|
+
s2t.deepEqual(
|
|
221
|
+
utils.merge({ foo: 'bar' }, 'baz', { strictMerge: true, arrayLimit: 2, throwOnLimitExceeded: true }),
|
|
222
|
+
[{ foo: 'bar' }, 'baz'],
|
|
223
|
+
'a strictMerge conflict within arrayLimit is still an array'
|
|
224
|
+
);
|
|
225
|
+
s2t.deepEqual(
|
|
226
|
+
utils.merge('a', 'b', { arrayLimit: 2, throwOnLimitExceeded: true }),
|
|
227
|
+
['a', 'b'],
|
|
228
|
+
'two colliding primitives within arrayLimit are still an array'
|
|
229
|
+
);
|
|
230
|
+
|
|
231
|
+
s2t.end();
|
|
232
|
+
});
|
|
233
|
+
|
|
234
|
+
st.test('seeds an overflow container index from the keys it already holds', function (s2t) {
|
|
235
|
+
var overflow = utils.combine(['a'], 'b', 0, false);
|
|
236
|
+
s2t.ok(utils.isOverflow(overflow), 'the source is an overflow object');
|
|
237
|
+
|
|
238
|
+
var merged = utils.merge({ 2: 'keep', z: 'zz' }, overflow);
|
|
239
|
+
s2t.ok(utils.isOverflow(merged), 'the result is marked as overflow');
|
|
240
|
+
s2t.deepEqual(
|
|
241
|
+
utils.merge(merged, 'c'),
|
|
242
|
+
{ 0: 'a', 1: 'b', 2: 'keep', 3: 'c', z: 'zz' },
|
|
243
|
+
'the next value lands after the highest numeric key the container already held'
|
|
244
|
+
);
|
|
245
|
+
|
|
246
|
+
s2t.end();
|
|
247
|
+
});
|
|
248
|
+
|
|
249
|
+
st.test('merges overflow object into primitive', function (s2t) {
|
|
250
|
+
// Create an overflow object via combine: 2 elements (indices 0-1) with limit 0
|
|
251
|
+
var overflow = utils.combine(['a'], 'b', 0, false);
|
|
252
|
+
s2t.ok(utils.isOverflow(overflow), 'overflow object is marked');
|
|
253
|
+
var merged = utils.merge('c', overflow);
|
|
254
|
+
s2t.ok(utils.isOverflow(merged), 'result is also marked as overflow');
|
|
255
|
+
s2t.deepEqual(merged, { 0: 'c', 1: 'a', 2: 'b' }, 'creates object with primitive at 0, source values shifted');
|
|
256
|
+
|
|
257
|
+
s2t.end();
|
|
258
|
+
});
|
|
259
|
+
|
|
260
|
+
st.test('merges overflow object into primitive with plainObjects', function (s2t) {
|
|
261
|
+
var overflow = utils.combine(['a'], 'b', 0, false);
|
|
262
|
+
s2t.ok(utils.isOverflow(overflow), 'overflow object is marked');
|
|
263
|
+
var merged = utils.merge('c', overflow, { plainObjects: true });
|
|
264
|
+
s2t.ok(utils.isOverflow(merged), 'result is also marked as overflow');
|
|
265
|
+
s2t.deepEqual(merged, { __proto__: null, 0: 'c', 1: 'a', 2: 'b' }, 'creates null-proto object with primitive at 0');
|
|
266
|
+
|
|
267
|
+
s2t.end();
|
|
268
|
+
});
|
|
269
|
+
|
|
270
|
+
st.test('merges overflow object with multiple values into primitive', function (s2t) {
|
|
271
|
+
// Create an overflow object via combine: 3 elements (indices 0-2) with limit 0
|
|
272
|
+
var overflow = utils.combine(['b', 'c'], 'd', 0, false);
|
|
273
|
+
s2t.ok(utils.isOverflow(overflow), 'overflow object is marked');
|
|
274
|
+
var merged = utils.merge('a', overflow);
|
|
275
|
+
s2t.deepEqual(merged, { 0: 'a', 1: 'b', 2: 'c', 3: 'd' }, 'shifts all source indices by 1');
|
|
276
|
+
|
|
277
|
+
s2t.end();
|
|
278
|
+
});
|
|
279
|
+
|
|
280
|
+
st.test('merges regular object into primitive as array', function (s2t) {
|
|
281
|
+
var obj = { foo: 'bar' };
|
|
282
|
+
var merged = utils.merge('a', obj);
|
|
283
|
+
s2t.deepEqual(merged, ['a', { foo: 'bar' }], 'creates array with primitive and object');
|
|
284
|
+
|
|
285
|
+
s2t.end();
|
|
286
|
+
});
|
|
287
|
+
|
|
288
|
+
st.test('merges primitive into array that exceeds arrayLimit', function (s2t) {
|
|
289
|
+
var arr = ['a', 'b', 'c'];
|
|
290
|
+
var merged = utils.merge(arr, 'd', { arrayLimit: 1 });
|
|
291
|
+
s2t.ok(utils.isOverflow(merged), 'result is marked as overflow');
|
|
292
|
+
s2t.deepEqual(merged, { 0: 'a', 1: 'b', 2: 'c', 3: 'd' }, 'converts to overflow object with primitive appended');
|
|
293
|
+
|
|
294
|
+
s2t.end();
|
|
295
|
+
});
|
|
296
|
+
|
|
297
|
+
st.test('merges array into primitive that exceeds arrayLimit', function (s2t) {
|
|
298
|
+
var merged = utils.merge('a', ['b', 'c'], { arrayLimit: 1 });
|
|
299
|
+
s2t.ok(utils.isOverflow(merged), 'result is marked as overflow');
|
|
300
|
+
s2t.deepEqual(merged, { 0: 'a', 1: 'b', 2: 'c' }, 'converts to overflow object');
|
|
301
|
+
|
|
302
|
+
s2t.end();
|
|
303
|
+
});
|
|
304
|
+
|
|
305
|
+
st.test('merges primitive into array at the arrayLimit boundary, consistently with combine', function (s2t) {
|
|
306
|
+
var merged = utils.merge(['a'], 'b', { arrayLimit: 1 });
|
|
307
|
+
s2t.ok(utils.isOverflow(merged), 'result is marked as overflow at the boundary');
|
|
308
|
+
s2t.deepEqual(merged, { 0: 'a', 1: 'b' }, 'converts to overflow object instead of a length-2 array');
|
|
309
|
+
|
|
310
|
+
s2t.end();
|
|
311
|
+
});
|
|
312
|
+
|
|
313
|
+
st.test('merges two arrays that exceed arrayLimit into an overflow object', function (s2t) {
|
|
314
|
+
var merged = utils.merge(['a'], ['b'], { arrayLimit: 1 });
|
|
315
|
+
s2t.ok(utils.isOverflow(merged), 'result is marked as overflow');
|
|
316
|
+
s2t.deepEqual(merged, { 0: 'a', 1: 'b' }, 'array-into-array merge enforces arrayLimit like combine');
|
|
317
|
+
|
|
318
|
+
s2t.end();
|
|
319
|
+
});
|
|
320
|
+
|
|
321
|
+
st.test('throws at the arrayLimit boundary when merging a primitive into an array with throwOnLimitExceeded', function (s2t) {
|
|
322
|
+
s2t['throws'](
|
|
323
|
+
function () { utils.merge(['a'], 'b', { arrayLimit: 1, throwOnLimitExceeded: true }); },
|
|
324
|
+
new RangeError('Array limit exceeded. Only 1 element allowed in an array.'),
|
|
325
|
+
'throws when the resulting length would exceed arrayLimit'
|
|
326
|
+
);
|
|
327
|
+
|
|
328
|
+
s2t.end();
|
|
329
|
+
});
|
|
330
|
+
|
|
331
|
+
st.test('throws when merging two arrays past arrayLimit with throwOnLimitExceeded', function (s2t) {
|
|
332
|
+
s2t['throws'](
|
|
333
|
+
function () { utils.merge(['a'], ['b'], { arrayLimit: 1, throwOnLimitExceeded: true }); },
|
|
334
|
+
new RangeError('Array limit exceeded. Only 1 element allowed in an array.'),
|
|
335
|
+
'array-into-array merge throws rather than silently exceeding arrayLimit'
|
|
336
|
+
);
|
|
337
|
+
s2t['throws'](
|
|
338
|
+
function () { utils.merge(['a', 'b', 'c'], ['d', 'e', 'f'], { arrayLimit: 2, throwOnLimitExceeded: true }); },
|
|
339
|
+
new RangeError('Array limit exceeded. Only 2 elements allowed in an array.'),
|
|
340
|
+
'uses the plural message when arrayLimit is not 1'
|
|
341
|
+
);
|
|
342
|
+
|
|
343
|
+
s2t.end();
|
|
344
|
+
});
|
|
345
|
+
|
|
346
|
+
st.test('throws instead of merging primitive into over-limit array when throwOnLimitExceeded is set', function (s2t) {
|
|
347
|
+
s2t['throws'](
|
|
348
|
+
function () { utils.merge(['a', 'b', 'c'], 'd', { arrayLimit: 1, throwOnLimitExceeded: true }); },
|
|
349
|
+
new RangeError('Array limit exceeded. Only 1 element allowed in an array.'),
|
|
350
|
+
'throws rather than converting to an overflow object'
|
|
351
|
+
);
|
|
352
|
+
s2t['throws'](
|
|
353
|
+
function () { utils.merge(['a', 'b', 'c'], 'd', { arrayLimit: 2, throwOnLimitExceeded: true }); },
|
|
354
|
+
new RangeError('Array limit exceeded. Only 2 elements allowed in an array.'),
|
|
355
|
+
'uses the plural message when arrayLimit is not 1'
|
|
356
|
+
);
|
|
357
|
+
|
|
358
|
+
s2t.end();
|
|
359
|
+
});
|
|
360
|
+
|
|
361
|
+
st.test('throws instead of merging array into primitive when throwOnLimitExceeded is set', function (s2t) {
|
|
362
|
+
s2t['throws'](
|
|
363
|
+
function () { utils.merge('a', ['b', 'c'], { arrayLimit: 1, throwOnLimitExceeded: true }); },
|
|
364
|
+
new RangeError('Array limit exceeded. Only 1 element allowed in an array.'),
|
|
365
|
+
'throws rather than converting to an overflow object'
|
|
366
|
+
);
|
|
367
|
+
s2t['throws'](
|
|
368
|
+
function () { utils.merge('a', ['b', 'c', 'd'], { arrayLimit: 2, throwOnLimitExceeded: true }); },
|
|
369
|
+
new RangeError('Array limit exceeded. Only 2 elements allowed in an array.'),
|
|
370
|
+
'uses the plural message when arrayLimit is not 1'
|
|
371
|
+
);
|
|
372
|
+
|
|
373
|
+
s2t.end();
|
|
374
|
+
});
|
|
375
|
+
|
|
376
|
+
st.end();
|
|
377
|
+
});
|
|
378
|
+
|
|
379
|
+
t.end();
|
|
380
|
+
});
|
|
381
|
+
|
|
382
|
+
test('assign()', function (t) {
|
|
383
|
+
var target = { a: 1, b: 2 };
|
|
384
|
+
var source = { b: 3, c: 4 };
|
|
385
|
+
var result = utils.assign(target, source);
|
|
386
|
+
|
|
387
|
+
t.equal(result, target, 'returns the target');
|
|
388
|
+
t.deepEqual(target, { a: 1, b: 3, c: 4 }, 'target and source are merged');
|
|
389
|
+
t.deepEqual(source, { b: 3, c: 4 }, 'source is untouched');
|
|
390
|
+
|
|
391
|
+
t.end();
|
|
392
|
+
});
|
|
393
|
+
|
|
394
|
+
test('combine()', function (t) {
|
|
395
|
+
t.test('both arrays', function (st) {
|
|
396
|
+
var a = [1];
|
|
397
|
+
var b = [2];
|
|
398
|
+
var combined = utils.combine(a, b);
|
|
399
|
+
|
|
400
|
+
st.deepEqual(a, [1], 'a is not mutated');
|
|
401
|
+
st.deepEqual(b, [2], 'b is not mutated');
|
|
402
|
+
st.notEqual(a, combined, 'a !== combined');
|
|
403
|
+
st.notEqual(b, combined, 'b !== combined');
|
|
404
|
+
st.deepEqual(combined, [1, 2], 'combined is a + b');
|
|
405
|
+
|
|
406
|
+
st.end();
|
|
407
|
+
});
|
|
408
|
+
|
|
409
|
+
t.test('one array, one non-array', function (st) {
|
|
410
|
+
var aN = 1;
|
|
411
|
+
var a = [aN];
|
|
412
|
+
var bN = 2;
|
|
413
|
+
var b = [bN];
|
|
414
|
+
|
|
415
|
+
var combinedAnB = utils.combine(aN, b);
|
|
416
|
+
st.deepEqual(b, [bN], 'b is not mutated');
|
|
417
|
+
st.notEqual(aN, combinedAnB, 'aN + b !== aN');
|
|
418
|
+
st.notEqual(a, combinedAnB, 'aN + b !== a');
|
|
419
|
+
st.notEqual(bN, combinedAnB, 'aN + b !== bN');
|
|
420
|
+
st.notEqual(b, combinedAnB, 'aN + b !== b');
|
|
421
|
+
st.deepEqual([1, 2], combinedAnB, 'first argument is array-wrapped when not an array');
|
|
422
|
+
|
|
423
|
+
var combinedABn = utils.combine(a, bN);
|
|
424
|
+
st.deepEqual(a, [aN], 'a is not mutated');
|
|
425
|
+
st.notEqual(aN, combinedABn, 'a + bN !== aN');
|
|
426
|
+
st.notEqual(a, combinedABn, 'a + bN !== a');
|
|
427
|
+
st.notEqual(bN, combinedABn, 'a + bN !== bN');
|
|
428
|
+
st.notEqual(b, combinedABn, 'a + bN !== b');
|
|
429
|
+
st.deepEqual([1, 2], combinedABn, 'second argument is array-wrapped when not an array');
|
|
430
|
+
|
|
431
|
+
st.end();
|
|
432
|
+
});
|
|
433
|
+
|
|
434
|
+
t.test('neither is an array', function (st) {
|
|
435
|
+
var combined = utils.combine(1, 2);
|
|
436
|
+
st.notEqual(1, combined, '1 + 2 !== 1');
|
|
437
|
+
st.notEqual(2, combined, '1 + 2 !== 2');
|
|
438
|
+
st.deepEqual([1, 2], combined, 'both arguments are array-wrapped when not an array');
|
|
439
|
+
|
|
440
|
+
st.end();
|
|
441
|
+
});
|
|
442
|
+
|
|
443
|
+
t.test('with arrayLimit', function (st) {
|
|
444
|
+
st.test('under the limit', function (s2t) {
|
|
445
|
+
var combined = utils.combine(['a', 'b'], 'c', 10, false);
|
|
446
|
+
s2t.deepEqual(combined, ['a', 'b', 'c'], 'returns array when under limit');
|
|
447
|
+
s2t.ok(Array.isArray(combined), 'result is an array');
|
|
448
|
+
s2t.end();
|
|
449
|
+
});
|
|
450
|
+
|
|
451
|
+
st.test('exactly at the limit stays as array', function (s2t) {
|
|
452
|
+
var combined = utils.combine(['a', 'b'], 'c', 3, false);
|
|
453
|
+
s2t.deepEqual(combined, ['a', 'b', 'c'], 'stays as array when count equals limit');
|
|
454
|
+
s2t.ok(Array.isArray(combined), 'result is an array');
|
|
455
|
+
s2t.end();
|
|
456
|
+
});
|
|
457
|
+
|
|
458
|
+
st.test('over the limit', function (s2t) {
|
|
459
|
+
var combined = utils.combine(['a', 'b', 'c'], 'd', 3, false);
|
|
460
|
+
s2t.deepEqual(combined, { 0: 'a', 1: 'b', 2: 'c', 3: 'd' }, 'converts to object when over limit');
|
|
461
|
+
s2t.notOk(Array.isArray(combined), 'result is not an array');
|
|
462
|
+
s2t.end();
|
|
463
|
+
});
|
|
464
|
+
|
|
465
|
+
st.test('with arrayLimit 1', function (s2t) {
|
|
466
|
+
var combined = utils.combine([], 'a', 1, false);
|
|
467
|
+
s2t.deepEqual(combined, ['a'], 'stays as array when count equals limit');
|
|
468
|
+
s2t.ok(Array.isArray(combined), 'result is an array');
|
|
469
|
+
s2t.end();
|
|
470
|
+
});
|
|
471
|
+
|
|
472
|
+
st.test('with arrayLimit 0 converts single element to object', function (s2t) {
|
|
473
|
+
var combined = utils.combine([], 'a', 0, false);
|
|
474
|
+
s2t.deepEqual(combined, { 0: 'a' }, 'converts to object when count exceeds limit');
|
|
475
|
+
s2t.notOk(Array.isArray(combined), 'result is not an array');
|
|
476
|
+
s2t.end();
|
|
477
|
+
});
|
|
478
|
+
|
|
479
|
+
st.test('with arrayLimit 0 and two elements converts to object', function (s2t) {
|
|
480
|
+
var combined = utils.combine(['a'], 'b', 0, false);
|
|
481
|
+
s2t.deepEqual(combined, { 0: 'a', 1: 'b' }, 'converts to object when count exceeds limit');
|
|
482
|
+
s2t.notOk(Array.isArray(combined), 'result is not an array');
|
|
483
|
+
s2t.end();
|
|
484
|
+
});
|
|
485
|
+
|
|
486
|
+
st.test('with plainObjects option', function (s2t) {
|
|
487
|
+
var combined = utils.combine(['a', 'b'], 'c', 1, true);
|
|
488
|
+
var expected = { __proto__: null, 0: 'a', 1: 'b', 2: 'c' };
|
|
489
|
+
s2t.deepEqual(combined, expected, 'converts to object with null prototype');
|
|
490
|
+
s2t.equal(Object.getPrototypeOf(combined), null, 'result has null prototype when plainObjects is true');
|
|
491
|
+
s2t.end();
|
|
492
|
+
});
|
|
493
|
+
|
|
494
|
+
st.end();
|
|
495
|
+
});
|
|
496
|
+
|
|
497
|
+
t.test('with throwOnLimitExceeded', function (st) {
|
|
498
|
+
st.test('throws when concatenation exceeds the limit', function (s2t) {
|
|
499
|
+
s2t['throws'](
|
|
500
|
+
function () { utils.combine(['a', 'b', 'c'], 'd', 3, false, true); },
|
|
501
|
+
new RangeError('Array limit exceeded. Only 3 elements allowed in an array.'),
|
|
502
|
+
'throws instead of converting to an overflow object'
|
|
503
|
+
);
|
|
504
|
+
s2t['throws'](
|
|
505
|
+
function () { utils.combine([], 'a', 0, false, true); },
|
|
506
|
+
new RangeError('Array limit exceeded. Only 0 elements allowed in an array.'),
|
|
507
|
+
'throws with the correct count at arrayLimit 0'
|
|
508
|
+
);
|
|
509
|
+
s2t.end();
|
|
510
|
+
});
|
|
511
|
+
|
|
512
|
+
st.test('throws when adding to an existing overflow object', function (s2t) {
|
|
513
|
+
var overflow = utils.combine(['a', 'b'], 'c', 0, false);
|
|
514
|
+
s2t.ok(utils.isOverflow(overflow), 'initial object is marked as overflow');
|
|
515
|
+
|
|
516
|
+
s2t['throws'](
|
|
517
|
+
function () { utils.combine(overflow, 'd', 0, false, true); },
|
|
518
|
+
new RangeError('Array limit exceeded. Only 0 elements allowed in an array.'),
|
|
519
|
+
'throws rather than appending to the overflow object'
|
|
520
|
+
);
|
|
521
|
+
s2t['throws'](
|
|
522
|
+
function () { utils.combine(overflow, 'd', 1, false, true); },
|
|
523
|
+
new RangeError('Array limit exceeded. Only 1 element allowed in an array.'),
|
|
524
|
+
'uses the singular message at arrayLimit 1'
|
|
525
|
+
);
|
|
526
|
+
s2t.end();
|
|
527
|
+
});
|
|
528
|
+
|
|
529
|
+
st.test('does not throw when within the limit', function (s2t) {
|
|
530
|
+
var combined = utils.combine(['a'], 'b', 5, false, true);
|
|
531
|
+
s2t.deepEqual(combined, ['a', 'b'], 'returns the array unchanged when under the limit');
|
|
532
|
+
s2t.end();
|
|
533
|
+
});
|
|
534
|
+
|
|
535
|
+
st.end();
|
|
536
|
+
});
|
|
537
|
+
|
|
538
|
+
t.test('with existing overflow object', function (st) {
|
|
539
|
+
st.test('adds to existing overflow object at next index', function (s2t) {
|
|
540
|
+
// Create overflow object first via combine: 3 elements (indices 0-2) with limit 0
|
|
541
|
+
var overflow = utils.combine(['a', 'b'], 'c', 0, false);
|
|
542
|
+
s2t.ok(utils.isOverflow(overflow), 'initial object is marked as overflow');
|
|
543
|
+
|
|
544
|
+
var combined = utils.combine(overflow, 'd', 10, false);
|
|
545
|
+
s2t.equal(combined, overflow, 'returns the same object (mutated)');
|
|
546
|
+
s2t.deepEqual(combined, { 0: 'a', 1: 'b', 2: 'c', 3: 'd' }, 'adds value at next numeric index');
|
|
547
|
+
s2t.end();
|
|
548
|
+
});
|
|
549
|
+
|
|
550
|
+
st.test('does not treat plain object with numeric keys as overflow', function (s2t) {
|
|
551
|
+
var plainObj = { 0: 'a', 1: 'b' };
|
|
552
|
+
s2t.notOk(utils.isOverflow(plainObj), 'plain object is not marked as overflow');
|
|
553
|
+
|
|
554
|
+
// combine treats this as a regular value, not an overflow object to append to
|
|
555
|
+
var combined = utils.combine(plainObj, 'c', 10, false);
|
|
556
|
+
s2t.deepEqual(combined, [{ 0: 'a', 1: 'b' }, 'c'], 'concatenates as regular values');
|
|
557
|
+
s2t.end();
|
|
558
|
+
});
|
|
559
|
+
|
|
560
|
+
st.end();
|
|
561
|
+
});
|
|
562
|
+
|
|
563
|
+
t.end();
|
|
564
|
+
});
|
|
565
|
+
|
|
566
|
+
test('decode', function (t) {
|
|
567
|
+
t.equal(
|
|
568
|
+
utils.decode('a+b'),
|
|
569
|
+
'a b',
|
|
570
|
+
'decodes + to space'
|
|
571
|
+
);
|
|
572
|
+
|
|
573
|
+
t.equal(
|
|
574
|
+
utils.decode('name%2Eobj'),
|
|
575
|
+
'name.obj',
|
|
576
|
+
'decodes a string'
|
|
577
|
+
);
|
|
578
|
+
t.equal(
|
|
579
|
+
utils.decode('name%2Eobj%2Efoo', null, 'iso-8859-1'),
|
|
580
|
+
'name.obj.foo',
|
|
581
|
+
'decodes a string in iso-8859-1'
|
|
582
|
+
);
|
|
583
|
+
|
|
584
|
+
t.test('strings with no percent sign', function (st) {
|
|
585
|
+
st.equal(utils.decode(''), '', 'empty string');
|
|
586
|
+
st.equal(utils.decode('abc'), 'abc', 'returns a plain string unchanged');
|
|
587
|
+
st.equal(utils.decode('abc', null, 'iso-8859-1'), 'abc', 'returns a plain string unchanged in iso-8859-1');
|
|
588
|
+
st.equal(utils.decode('a++b+'), 'a b ', 'decodes every + to a space');
|
|
589
|
+
st.equal(utils.decode('a++b+', null, 'iso-8859-1'), 'a b ', 'decodes every + to a space in iso-8859-1');
|
|
590
|
+
st.equal(utils.decode('\uD800x\uDC00'), '\uD800x\uDC00', 'leaves lone surrogates unchanged');
|
|
591
|
+
st.equal(utils.decode('😀+'), '😀 ', 'leaves surrogate pairs unchanged');
|
|
592
|
+
st.equal(utils.decode('a=b&c'), 'a=b&c', 'leaves delimiters unchanged');
|
|
593
|
+
|
|
594
|
+
st.end();
|
|
595
|
+
});
|
|
596
|
+
|
|
597
|
+
t.test('strings with a percent sign', function (st) {
|
|
598
|
+
st.equal(utils.decode('a+%20b'), 'a b', 'decodes both + and an escape');
|
|
599
|
+
st.equal(utils.decode('%E9+x', null, 'iso-8859-1'), 'é x', 'decodes both + and an escape in iso-8859-1');
|
|
600
|
+
st.equal(utils.decode('a+%'), 'a %', 'decodes + even when the escape is malformed');
|
|
601
|
+
st.equal(utils.decode('a+%E0%A4%A'), 'a %E0%A4%A', 'decodes + even when the escape is truncated');
|
|
602
|
+
|
|
603
|
+
st.end();
|
|
604
|
+
});
|
|
605
|
+
|
|
606
|
+
t.test('non-strings', function (st) {
|
|
607
|
+
forEach(v.nullPrimitives, function (nullish) {
|
|
608
|
+
st['throws'](
|
|
609
|
+
function () { utils.decode(nullish); },
|
|
610
|
+
TypeError,
|
|
611
|
+
inspect(nullish) + ' is not a string'
|
|
612
|
+
);
|
|
613
|
+
});
|
|
614
|
+
st['throws'](
|
|
615
|
+
function () { utils.decode(['a']); },
|
|
616
|
+
TypeError,
|
|
617
|
+
'an array is not a string'
|
|
618
|
+
);
|
|
619
|
+
|
|
620
|
+
/* eslint no-new-wrappers: 0 */
|
|
621
|
+
st.equal(utils.decode(new String('ab')), 'ab', 'a boxed string decodes to a primitive');
|
|
622
|
+
st.equal(utils.decode(new String('a+b')), 'a b', 'a boxed string with + decodes to a primitive');
|
|
623
|
+
st.equal(utils.decode(new String('a%20b')), 'a b', 'a boxed string with an escape decodes to a primitive');
|
|
624
|
+
|
|
625
|
+
st.end();
|
|
626
|
+
});
|
|
627
|
+
|
|
628
|
+
t.end();
|
|
629
|
+
});
|
|
630
|
+
|
|
631
|
+
test('encode', function (t) {
|
|
632
|
+
forEach(v.nullPrimitives, function (nullish) {
|
|
633
|
+
t['throws'](
|
|
634
|
+
function () { utils.encode(nullish); },
|
|
635
|
+
TypeError,
|
|
636
|
+
inspect(nullish) + ' is not a string'
|
|
637
|
+
);
|
|
638
|
+
});
|
|
639
|
+
|
|
640
|
+
t.equal(utils.encode(''), '', 'empty string returns itself');
|
|
641
|
+
t.deepEqual(utils.encode([]), [], 'empty array returns itself');
|
|
642
|
+
t.deepEqual(utils.encode({ length: 0 }), { length: 0 }, 'empty arraylike returns itself');
|
|
643
|
+
|
|
644
|
+
t.test('symbols', { skip: !v.hasSymbols }, function (st) {
|
|
645
|
+
st.equal(utils.encode(Symbol('x')), 'Symbol%28x%29', 'symbol is encoded');
|
|
646
|
+
|
|
647
|
+
st.end();
|
|
648
|
+
});
|
|
649
|
+
|
|
650
|
+
t.equal(
|
|
651
|
+
utils.encode('(abc)'),
|
|
652
|
+
'%28abc%29',
|
|
653
|
+
'encodes parentheses'
|
|
654
|
+
);
|
|
655
|
+
t.equal(
|
|
656
|
+
utils.encode({ toString: function () { return '(abc)'; } }),
|
|
657
|
+
'%28abc%29',
|
|
658
|
+
'toStrings and encodes parentheses'
|
|
659
|
+
);
|
|
660
|
+
|
|
661
|
+
t.equal(
|
|
662
|
+
utils.encode('abc 123 💩', null, 'iso-8859-1'),
|
|
663
|
+
'abc%20123%20%26%2355357%3B%26%2356489%3B',
|
|
664
|
+
'encodes in iso-8859-1'
|
|
665
|
+
);
|
|
666
|
+
|
|
667
|
+
var longString = '';
|
|
668
|
+
var expectedString = '';
|
|
669
|
+
for (var i = 0; i < 1500; i++) {
|
|
670
|
+
longString += ' ';
|
|
671
|
+
expectedString += '%20';
|
|
672
|
+
}
|
|
673
|
+
|
|
674
|
+
t.equal(
|
|
675
|
+
utils.encode(longString),
|
|
676
|
+
expectedString,
|
|
677
|
+
'encodes a long string'
|
|
678
|
+
);
|
|
679
|
+
|
|
680
|
+
var boundary = '';
|
|
681
|
+
var expected = '';
|
|
682
|
+
for (var j = 0; j < 1023; j++) {
|
|
683
|
+
boundary += 'a';
|
|
684
|
+
expected += 'a';
|
|
685
|
+
}
|
|
686
|
+
boundary += '😀';
|
|
687
|
+
expected += '%F0%9F%98%80';
|
|
688
|
+
|
|
689
|
+
t.equal(
|
|
690
|
+
utils.encode(boundary),
|
|
691
|
+
expected,
|
|
692
|
+
'encodes a surrogate pair split across long-string chunks'
|
|
693
|
+
);
|
|
694
|
+
|
|
695
|
+
var laterBoundary = '';
|
|
696
|
+
var laterExpected = '';
|
|
697
|
+
for (var k = 0; k < 2047; k++) {
|
|
698
|
+
laterBoundary += 'a';
|
|
699
|
+
laterExpected += 'a';
|
|
700
|
+
}
|
|
701
|
+
laterBoundary += '😀';
|
|
702
|
+
laterExpected += '%F0%9F%98%80';
|
|
703
|
+
|
|
704
|
+
t.equal(
|
|
705
|
+
utils.encode(laterBoundary),
|
|
706
|
+
laterExpected,
|
|
707
|
+
'encodes a surrogate pair split across a later chunk boundary'
|
|
708
|
+
);
|
|
709
|
+
|
|
710
|
+
var twoPairs = '';
|
|
711
|
+
for (k = 0; k < 1023; k++) {
|
|
712
|
+
twoPairs += 'a';
|
|
713
|
+
}
|
|
714
|
+
twoPairs += '😀';
|
|
715
|
+
for (k = 0; k < 1022; k++) {
|
|
716
|
+
twoPairs += 'b';
|
|
717
|
+
}
|
|
718
|
+
twoPairs += '😀';
|
|
719
|
+
|
|
720
|
+
t.equal(
|
|
721
|
+
(utils.encode(twoPairs).match(/%F0%9F%98%80/g) || []).length,
|
|
722
|
+
2,
|
|
723
|
+
'encodes two surrogate pairs each split across a chunk boundary'
|
|
724
|
+
);
|
|
725
|
+
|
|
726
|
+
var roundTrip = '';
|
|
727
|
+
for (k = 0; k < 1023; k++) {
|
|
728
|
+
roundTrip += 'a';
|
|
729
|
+
}
|
|
730
|
+
roundTrip += '😀';
|
|
731
|
+
|
|
732
|
+
t.equal(
|
|
733
|
+
decodeURIComponent(utils.encode(roundTrip)),
|
|
734
|
+
roundTrip,
|
|
735
|
+
'a boundary-split surrogate pair round-trips through decodeURIComponent'
|
|
736
|
+
);
|
|
737
|
+
|
|
738
|
+
var loneBoundary = '';
|
|
739
|
+
var loneExpected = '';
|
|
740
|
+
for (k = 0; k < 1023; k++) {
|
|
741
|
+
loneBoundary += 'a';
|
|
742
|
+
loneExpected += 'a';
|
|
743
|
+
}
|
|
744
|
+
loneBoundary += '\uD83DX';
|
|
745
|
+
loneExpected += '%EF%BF%BDX';
|
|
746
|
+
|
|
747
|
+
t.equal(
|
|
748
|
+
utils.encode(loneBoundary),
|
|
749
|
+
loneExpected,
|
|
750
|
+
'a lone high surrogate at a chunk boundary encodes the same as mid-chunk'
|
|
751
|
+
);
|
|
752
|
+
|
|
753
|
+
t.equal(
|
|
754
|
+
utils.encode(loneBoundary.slice(0, 1023) + '\uDC00X'),
|
|
755
|
+
loneExpected.slice(0, 1023) + '%EF%BF%BDX',
|
|
756
|
+
'a lone low surrogate at a chunk boundary does not consume the next character'
|
|
757
|
+
);
|
|
758
|
+
t.equal(
|
|
759
|
+
utils.encode(loneBoundary.slice(0, 1024)),
|
|
760
|
+
loneExpected.slice(0, 1023) + '%EF%BF%BD',
|
|
761
|
+
'a lone high surrogate ending a string of exactly one chunk encodes as U+FFFD'
|
|
762
|
+
);
|
|
763
|
+
|
|
764
|
+
t.equal(
|
|
765
|
+
utils.encode('\x28\x29'),
|
|
766
|
+
'%28%29',
|
|
767
|
+
'encodes parens normally'
|
|
768
|
+
);
|
|
769
|
+
t.equal(
|
|
770
|
+
utils.encode('\x28\x29', null, null, null, 'RFC1738'),
|
|
771
|
+
'()',
|
|
772
|
+
'does not encode parens in RFC1738'
|
|
773
|
+
);
|
|
774
|
+
|
|
775
|
+
t.equal(
|
|
776
|
+
utils.encode('~*()'),
|
|
777
|
+
'~%2A%28%29',
|
|
778
|
+
'leaves `~` unencoded, and encodes `*` and parens, by default'
|
|
779
|
+
);
|
|
780
|
+
t.equal(
|
|
781
|
+
utils.encode('~*()', null, null, null, 'RFC3986'),
|
|
782
|
+
'~%2A%28%29',
|
|
783
|
+
'leaves `~` unencoded, and encodes `*` and parens, in RFC3986'
|
|
784
|
+
);
|
|
785
|
+
t.equal(
|
|
786
|
+
utils.encode('~*() ', null, null, null, 'RFC1738'),
|
|
787
|
+
'~%2A()%20',
|
|
788
|
+
'leaves `~` and parens unencoded, and encodes `*` and spaces, in RFC1738'
|
|
789
|
+
);
|
|
790
|
+
|
|
791
|
+
// todo RFC1738 format
|
|
792
|
+
|
|
793
|
+
t.equal(
|
|
794
|
+
utils.encode('~*()', null, null, null, 'WHATWG'),
|
|
795
|
+
'%7E*%28%29',
|
|
796
|
+
'encodes `~` and parens, but not `*`, in WHATWG'
|
|
797
|
+
);
|
|
798
|
+
|
|
799
|
+
t.equal(
|
|
800
|
+
utils.encode('Āက豈'),
|
|
801
|
+
'%C4%80%E1%80%80%EF%A4%80',
|
|
802
|
+
'encodes multibyte chars'
|
|
803
|
+
);
|
|
804
|
+
|
|
805
|
+
t.equal(
|
|
806
|
+
utils.encode('\uD83D \uDCA9'),
|
|
807
|
+
'%EF%BF%BD%20%EF%BF%BD',
|
|
808
|
+
'encodes lone surrogates as U+FFFD, without consuming the next character'
|
|
809
|
+
);
|
|
810
|
+
t.equal(
|
|
811
|
+
utils.encode('\uDCA9\uD83D'),
|
|
812
|
+
'%EF%BF%BD%EF%BF%BD',
|
|
813
|
+
'encodes a reversed surrogate pair as two U+FFFD'
|
|
814
|
+
);
|
|
815
|
+
t.equal(
|
|
816
|
+
utils.encode('x\uD83D'),
|
|
817
|
+
'x%EF%BF%BD',
|
|
818
|
+
'encodes a trailing lone high surrogate as U+FFFD'
|
|
819
|
+
);
|
|
820
|
+
t.equal(
|
|
821
|
+
utils.encode('\uD83D\uD83D\uDCA9'),
|
|
822
|
+
'%EF%BF%BD%F0%9F%92%A9',
|
|
823
|
+
'a lone high surrogate does not prevent the following pair from encoding'
|
|
824
|
+
);
|
|
825
|
+
t.equal(
|
|
826
|
+
utils.encode('\uD83D\uE000'),
|
|
827
|
+
'%EF%BF%BD%EE%80%80',
|
|
828
|
+
'a high surrogate followed by a code unit above the low surrogate range is not combined'
|
|
829
|
+
);
|
|
830
|
+
t.equal(
|
|
831
|
+
utils.encode('\uDC00\uDC00'),
|
|
832
|
+
'%EF%BF%BD%EF%BF%BD',
|
|
833
|
+
'a low surrogate followed by a low surrogate is not combined'
|
|
834
|
+
);
|
|
835
|
+
|
|
836
|
+
t.end();
|
|
837
|
+
});
|
|
838
|
+
|
|
839
|
+
test('isBuffer()', function (t) {
|
|
840
|
+
var fn = function () {};
|
|
841
|
+
fn();
|
|
842
|
+
forEach([null, undefined, true, false, '', 'abc', 42, 0, NaN, {}, [], fn, /a/g], function (x) {
|
|
843
|
+
t.equal(utils.isBuffer(x), false, inspect(x) + ' is not a buffer');
|
|
844
|
+
});
|
|
845
|
+
|
|
846
|
+
var fakeBuffer = { constructor: Buffer };
|
|
847
|
+
t.equal(utils.isBuffer(fakeBuffer), false, 'fake buffer is not a buffer');
|
|
848
|
+
|
|
849
|
+
forEach(['x', 1, true, {}, [], { isBuffer: true }], function (notCallable) {
|
|
850
|
+
var obj = { constructor: { isBuffer: notCallable } };
|
|
851
|
+
t.doesNotThrow(function () { utils.isBuffer(obj); }, 'non-callable `constructor.isBuffer` (' + inspect(notCallable) + ') does not throw');
|
|
852
|
+
t.equal(utils.isBuffer(obj), false, 'non-callable `constructor.isBuffer` (' + inspect(notCallable) + ') is not a buffer');
|
|
853
|
+
});
|
|
854
|
+
|
|
855
|
+
var nullObject = { __proto__: null, constructor: { __proto__: null, isBuffer: 'y' } };
|
|
856
|
+
t.equal(utils.isBuffer(nullObject), false, 'null object with non-callable `constructor.isBuffer` is not a buffer');
|
|
857
|
+
|
|
858
|
+
var duckBuffer = { constructor: { isBuffer: function () { return true; } } };
|
|
859
|
+
t.equal(utils.isBuffer(duckBuffer), true, 'callable `constructor.isBuffer` is still honored');
|
|
860
|
+
|
|
861
|
+
var saferBuffer = SaferBuffer.from('abc');
|
|
862
|
+
t.equal(utils.isBuffer(saferBuffer), true, 'SaferBuffer instance is a buffer');
|
|
863
|
+
|
|
864
|
+
var buffer = SaferBuffer.from('abc');
|
|
865
|
+
t.notEqual(saferBuffer, buffer, 'different buffer instances');
|
|
866
|
+
t.equal(utils.isBuffer(buffer), true, 'another Buffer instance is a buffer');
|
|
867
|
+
t.end();
|
|
868
|
+
});
|
|
869
|
+
|
|
870
|
+
test('isRegExp()', function (t) {
|
|
871
|
+
t.equal(utils.isRegExp(/a/g), true, 'RegExp is a RegExp');
|
|
872
|
+
t.equal(utils.isRegExp(new RegExp('a', 'g')), true, 'new RegExp is a RegExp');
|
|
873
|
+
t.equal(utils.isRegExp(new Date()), false, 'Date is not a RegExp');
|
|
874
|
+
|
|
875
|
+
forEach(v.primitives, function (primitive) {
|
|
876
|
+
t.equal(utils.isRegExp(primitive), false, inspect(primitive) + ' is not a RegExp');
|
|
877
|
+
});
|
|
878
|
+
|
|
879
|
+
t.end();
|
|
880
|
+
});
|