@hot-updater/cli-tools 0.29.3 → 0.29.4

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/dist/index.cjs CHANGED
@@ -59,12 +59,12 @@ node_path = __toESM(node_path);
59
59
  let node_util = require("node:util");
60
60
  let node_os = require("node:os");
61
61
  node_os = __toESM(node_os);
62
+ let zlib = require("zlib");
63
+ zlib = __toESM(zlib);
62
64
  let node_events = require("node:events");
63
65
  let node_stream = require("node:stream");
64
66
  node_stream = __toESM(node_stream);
65
67
  let node_string_decoder = require("node:string_decoder");
66
- let zlib = require("zlib");
67
- zlib = __toESM(zlib);
68
68
  let node_assert = require("node:assert");
69
69
  node_assert = __toESM(node_assert);
70
70
  let node_crypto = require("node:crypto");
package/dist/index.mjs CHANGED
@@ -17,14 +17,14 @@ import fs$2, { appendFileSync, createReadStream, createWriteStream, existsSync,
17
17
  import path$1, { basename, dirname as dirname$1, join, posix, win32 } from "node:path";
18
18
  import { aborted, callbackify, debuglog, inspect, promisify, stripVTControlCharacters } from "node:util";
19
19
  import os, { constants } from "node:os";
20
+ import * as realZlib$1 from "zlib";
21
+ import realZlib, { brotliCompressSync, constants as constants$1 } from "zlib";
20
22
  import { EventEmitter as EventEmitter$1, addAbortListener, on, once, setMaxListeners } from "node:events";
21
23
  import Stream, { Duplex, PassThrough as PassThrough$1, Readable as Readable$1, Transform, Writable, getDefaultHighWaterMark } from "node:stream";
22
24
  import { StringDecoder } from "node:string_decoder";
23
- import * as realZlib$1 from "zlib";
24
- import realZlib, { brotliCompressSync, constants as constants$1 } from "zlib";
25
25
  import assert$1 from "node:assert";
26
26
  import { randomBytes } from "node:crypto";
27
- import fsPromises from "node:fs/promises";
27
+ import fsp from "node:fs/promises";
28
28
  import { fileURLToPath } from "node:url";
29
29
  import { ChildProcess, execFile, spawn, spawnSync } from "node:child_process";
30
30
  import { scheduler, setImmediate as setImmediate$1, setTimeout as setTimeout$1 } from "node:timers/promises";
@@ -25943,7 +25943,7 @@ const mkdir = (dir, opt, cb) => {
25943
25943
  else cb();
25944
25944
  };
25945
25945
  if (dir === cwd) return checkCwd(dir, done);
25946
- if (preserve) return fsPromises.mkdir(dir, {
25946
+ if (preserve) return fsp.mkdir(dir, {
25947
25947
  mode,
25948
25948
  recursive: true
25949
25949
  }).then((made) => done(null, made ?? void 0), done);
@@ -42010,7 +42010,7 @@ async function findUp(name, { cwd = process$1.cwd(), type = "file", stopAt } = {
42010
42010
  while (directory) {
42011
42011
  const filePath = isAbsoluteName ? name : path$1.join(directory, name);
42012
42012
  try {
42013
- const stats = await fsPromises.stat(filePath);
42013
+ const stats = await fsp.stat(filePath);
42014
42014
  if (type === "file" && stats.isFile() || type === "directory" && stats.isDirectory()) return filePath;
42015
42015
  } catch {}
42016
42016
  if (directory === stopAt || directory === root) break;
@@ -47079,7 +47079,7 @@ const _readPackage = (file, normalize) => {
47079
47079
  return json;
47080
47080
  };
47081
47081
  async function readPackage({ cwd, normalize = true } = {}) {
47082
- return _readPackage(await fsPromises.readFile(getPackagePath(cwd), "utf8"), normalize);
47082
+ return _readPackage(await fsp.readFile(getPackagePath(cwd), "utf8"), normalize);
47083
47083
  }
47084
47084
  //#endregion
47085
47085
  //#region ../../node_modules/.pnpm/read-package-up@11.0.0/node_modules/read-package-up/index.js
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hot-updater/cli-tools",
3
- "version": "0.29.3",
3
+ "version": "0.29.4",
4
4
  "type": "module",
5
5
  "description": "CLI utilities for Hot Updater",
6
6
  "sideEffects": false,
@@ -41,7 +41,7 @@
41
41
  "dependencies": {
42
42
  "oxc-transform": "0.121.0",
43
43
  "unconfig": "7.5.0",
44
- "@hot-updater/plugin-core": "0.29.3"
44
+ "@hot-updater/plugin-core": "0.29.4"
45
45
  },
46
46
  "devDependencies": {
47
47
  "@clack/prompts": "1.0.1",
@@ -56,9 +56,9 @@
56
56
  "read-package-up": "^11.0.0",
57
57
  "semver": "^7.6.3",
58
58
  "tar": "^7.5.1",
59
- "typescript": "5.8.2",
59
+ "typescript": "6.0.2",
60
60
  "workspace-tools": "^0.36.4",
61
- "@hot-updater/test-utils": "0.29.3"
61
+ "@hot-updater/test-utils": "0.29.4"
62
62
  },
63
63
  "inlinedDependencies": {
64
64
  "@babel/code-frame": "7.29.0",