update python.ts
This commit is contained in:
@@ -12,7 +12,7 @@ import {
|
||||
term,
|
||||
writeStringToFile,
|
||||
} from "https://global.hatter.ink/script/get/@16/deno-commons-mod.ts";
|
||||
import {parseArgs} from "jsr:@std/cli/parse-args";
|
||||
import { parseArgs } from "jsr:@std/cli/parse-args";
|
||||
|
||||
const PYTHON_CONFIG_FILE = "~/.config/python-config.json";
|
||||
const PYTHON_VENV_DEFAULT_BASE_DIR = "~/.venv/";
|
||||
@@ -217,8 +217,8 @@ async function handlePython(args: string[]) {
|
||||
const versionBParts = b.split(".");
|
||||
const minLen = Math.min(versionAParts.length, versionBParts.length);
|
||||
for (let i = 0; i < minLen; i++) {
|
||||
const ai = parseInt(versionAParts[i]);
|
||||
const bi = parseInt(versionBParts[i]);
|
||||
const ai = parseInt(versionAParts[i], 10);
|
||||
const bi = parseInt(versionBParts[i], 10);
|
||||
if (ai !== bi) {
|
||||
return (ai < bi) ? -1 : 1;
|
||||
}
|
||||
@@ -518,5 +518,5 @@ async function main() {
|
||||
|
||||
main().catch((e) => log.error(e));
|
||||
|
||||
// @SCRIPT-SIGNATURE-V1: yk-r1.ES256.20260126T223933+08:00.MEQCIBEiaSlHYdEfYuxM0YQY
|
||||
// TMERvlNGjaCn30i4zn1h4neWAiBj21PQhqP/z+55V/x9aZ6/uaLO17dg70bRzNn8BKN9+Q==
|
||||
// @SCRIPT-SIGNATURE-V1: yk-r1.ES256.20260126T224250+08:00.MEYCIQD3p/JpY5/Rfccm3IP+
|
||||
// VP/2Xu3I5xyfeqfPl0J9OH+03AIhALWqXErjYfQqeH3m8GhEK0cll2mJBiPIkC/BfRjgCqpr
|
||||
|
||||
@@ -168,11 +168,11 @@
|
||||
},
|
||||
"python.ts": {
|
||||
"script_name": "python.ts",
|
||||
"script_length": 15896,
|
||||
"script_sha256": "2fe76403dc04cd4a7d777628334eb5bf4de022ce095562aa9600698746276a75",
|
||||
"script_length": 15906,
|
||||
"script_sha256": "97a2f6a2d21c23af3a171a39cdfce8cc3ed0e7c68269e44524445fd5f9a7267d",
|
||||
"script_full_url": "https://git.hatter.ink/hatter/ts-scripts/raw/branch/main/python-ts/main.ts",
|
||||
"publish_time": 1768236234264,
|
||||
"update_time": 1769438411827
|
||||
"update_time": 1769438575674
|
||||
},
|
||||
"random.ts": {
|
||||
"script_name": "random.ts",
|
||||
|
||||
@@ -21,8 +21,8 @@
|
||||
},
|
||||
"python-ts": {
|
||||
"script_name": "python-ts",
|
||||
"script_length": 15896,
|
||||
"script_sha256": "2fe76403dc04cd4a7d777628334eb5bf4de022ce095562aa9600698746276a75"
|
||||
"script_length": 15906,
|
||||
"script_sha256": "97a2f6a2d21c23af3a171a39cdfce8cc3ed0e7c68269e44524445fd5f9a7267d"
|
||||
},
|
||||
"sigstore-verify-ts": {
|
||||
"script_name": "sigstore-verify-ts",
|
||||
|
||||
Reference in New Issue
Block a user