Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Unverified Commit aca7df46 authored by Simon Chan's avatar Simon Chan
Browse files

chore: update dependencies

parent 93383c62
Loading
Loading
Loading
Loading
+10 −7
Original line number Diff line number Diff line
@@ -30,22 +30,25 @@
        "build:watch": "tsc -b tsconfig.build.json",
        "lint": "eslint src/**/*.ts --fix"
    },
    "bin": {
        "tango-cli": "esm/index.js"
    },
    "dependencies": {
        "@yume-chan/adb": "workspace:^0.0.21",
        "@yume-chan/adb-server-node-tcp": "workspace:^0.0.21",
        "@yume-chan/android-bin": "workspace:^0.0.21",
        "@yume-chan/stream-extra": "workspace:^0.0.21",
        "commander": "^10.0.1",
        "commander": "^11.0.0",
        "source-map-support": "^0.5.21",
        "tslib": "^2.6.0"
        "tslib": "^2.6.2"
    },
    "devDependencies": {
        "@types/node": "^20.4.0",
        "@types/node": "^20.6.3",
        "@yume-chan/eslint-config": "workspace:^1.0.0",
        "@yume-chan/tsconfig": "workspace:^1.0.0",
        "eslint": "^8.44.0",
        "jest": "^29.5.0",
        "prettier": "^3.0.0",
        "typescript": "^5.1.6"
        "eslint": "^8.49.0",
        "jest": "^29.7.0",
        "prettier": "^3.0.3",
        "typescript": "^5.2.2"
    }
}
+13 −11
Original line number Diff line number Diff line
#! /usr/bin/env node

/// <reference types="node" />

import "source-map-support/register.js";
@@ -17,7 +19,7 @@ program
        "-P <port>",
        "port of adb server",
        (value) => Number.parseInt(value, 10),
        5037
        5037,
    )
    .configureHelp({
        subcommandTerm(cmd) {
@@ -68,7 +70,7 @@ program
                        appendTransportInfo("device", device.device)
                    }${
                        appendTransportInfo("transport_id", device.transportId.toString())
                    }`
                    }`,
                );
            } else {
                console.log(`${device.serial}\tdevice`);
@@ -89,15 +91,15 @@ function createDeviceCommand(nameAndArgs: string) {
        .option("-d", "use USB device (error if multiple devices connected)")
        .option(
            "-e",
            "use TCP/IP device (error if multiple TCP/IP devices available)"
            "use TCP/IP device (error if multiple TCP/IP devices available)",
        )
        .option(
            "-s <serial>",
            "use device with given serial (overrides $ANDROID_SERIAL)",
            process.env.ANDROID_SERIAL
            process.env.ANDROID_SERIAL,
        )
        .option("-t <id>", "use device with given transport id", (value) =>
            BigInt(value)
            BigInt(value),
        );
}

@@ -120,7 +122,7 @@ async function createAdb(options: DeviceCommandOptions) {
            ? {
                  transportId: options.t,
              }
            : undefined
            : undefined,
    );
    const adb = new Adb(transport);
    return adb;
@@ -129,7 +131,7 @@ async function createAdb(options: DeviceCommandOptions) {
createDeviceCommand("shell [args...]")
    .usage("[options] [-- <args...>]")
    .description(
        "run remote shell command (interactive shell if no command given). `--` is required before command name."
        "run remote shell command (interactive shell if no command given). `--` is required before command name.",
    )
    .configureHelp({ showGlobalOptions: true })
    .action(async (args: string[], options: DeviceCommandOptions) => {
@@ -152,7 +154,7 @@ createDeviceCommand("shell [args...]")
                    write(chunk) {
                        process.stdout.write(chunk);
                    },
                })
                }),
            )
            .catch((e) => {
                console.error(e);
@@ -168,7 +170,7 @@ createDeviceCommand("shell [args...]")
            (e) => {
                console.error(e);
                process.exit(1);
            }
            },
        );
    });

@@ -188,14 +190,14 @@ createDeviceCommand("logcat [args...]")
                write: (chunk) => {
                    process.stdout.write(chunk);
                },
            })
            }),
        );
    });

createDeviceCommand("reboot [mode]")
    .usage("[bootloader|recovery|sideload|sideload-auto-reboot]")
    .description(
        "reboot the device; defaults to booting system image but supports bootloader and recovery too. sideload reboots into recovery and automatically starts sideload mode, sideload-auto-reboot is the same but reboots after sideloading."
        "reboot the device; defaults to booting system image but supports bootloader and recovery too. sideload reboots into recovery and automatically starts sideload mode, sideload-auto-reboot is the same but reboots after sideloading.",
    )
    .configureHelp({ showGlobalOptions: true })
    .action(async (mode: string | undefined, options: DeviceCommandOptions) => {
+1 −1
Original line number Diff line number Diff line
@@ -4,7 +4,7 @@
        "lib": [
            "ESNext",
            "DOM"
        ]
        ],
    },
    "references": [
        {
+1218 −1328

File changed.

Preview size limit exceeded, changes collapsed.

+1 −1
Original line number Diff line number Diff line
// DO NOT MODIFY THIS FILE MANUALLY BUT DO COMMIT IT. It is generated and used by Rush.
{
  "pnpmShrinkwrapHash": "dc62ec1a4af471dffb7719bc09ca0069e3a4e6d3",
  "pnpmShrinkwrapHash": "ada7cb6a81c3e3ec20cf4ba53a5e68e68fe82e85",
  "preferredVersionsHash": "bf21a9e8fbc5a3846fb05b4fa0859e0917b2202f"
}
Loading