Update npm packages (73 packages including @jqhtml 2.3.36)
Update npm registry domain from privatenpm.hanson.xyz to npm.internal.hanson.xyz 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
34
node_modules/webpack/lib/util/fs.js
generated
vendored
34
node_modules/webpack/lib/util/fs.js
generated
vendored
@@ -8,7 +8,9 @@
|
||||
const path = require("path");
|
||||
|
||||
/** @typedef {import("../../declarations/WebpackOptions").WatchOptions} WatchOptions */
|
||||
/** @typedef {import("../FileSystemInfo").FileSystemInfoEntry} FileSystemInfoEntry */
|
||||
/** @typedef {import("watchpack").Entry} Entry */
|
||||
/** @typedef {import("watchpack").OnlySafeTimeEntry} OnlySafeTimeEntry */
|
||||
/** @typedef {import("watchpack").ExistenceOnlyTimeEntry} ExistenceOnlyTimeEntry */
|
||||
|
||||
/**
|
||||
* @template T
|
||||
@@ -83,7 +85,7 @@ const path = require("path");
|
||||
/** @typedef {(err: NodeJS.ErrnoException | null, result?: number) => void} NumberCallback */
|
||||
/** @typedef {(err: NodeJS.ErrnoException | Error | null, result?: JsonObject) => void} ReadJsonCallback */
|
||||
|
||||
/** @typedef {Map<string, FileSystemInfoEntry | "ignore">} TimeInfoEntries */
|
||||
/** @typedef {Map<string, Entry | OnlySafeTimeEntry | ExistenceOnlyTimeEntry | null | "ignore">} TimeInfoEntries */
|
||||
|
||||
/** @typedef {Set<string>} Changes */
|
||||
/** @typedef {Set<string>} Removals */
|
||||
@@ -201,7 +203,7 @@ const path = require("path");
|
||||
|
||||
/**
|
||||
* @typedef {{
|
||||
* (path: PathLike, options?: { encoding: BufferEncoding | null, withFileTypes?: false | undefined, recursive?: boolean | undefined; } | BufferEncoding | null): string[],
|
||||
* (path: PathLike, options?: { encoding: BufferEncoding | null, withFileTypes?: false | undefined, recursive?: boolean | undefined } | BufferEncoding | null): string[],
|
||||
* (path: PathLike, options: { encoding: "buffer", withFileTypes?: false | undefined, recursive?: boolean | undefined } | "buffer"): Buffer[],
|
||||
* (path: PathLike, options?: (ObjectEncodingOptions & { withFileTypes?: false | undefined, recursive?: boolean | undefined }) | BufferEncoding | null): string[] | Buffer[],
|
||||
* (path: PathLike, options: ObjectEncodingOptions & { withFileTypes: true, recursive?: boolean | undefined }): Dirent[],
|
||||
@@ -225,8 +227,8 @@ const path = require("path");
|
||||
* (path: PathLike, options: StatSyncOptions & { bigint: true, throwIfNoEntry: false }): IBigIntStats | undefined,
|
||||
* (path: PathLike, options?: StatSyncOptions & { bigint?: false | undefined }): IStats,
|
||||
* (path: PathLike, options: StatSyncOptions & { bigint: true }): IBigIntStats,
|
||||
* (path: PathLike, options: StatSyncOptions & { bigint: boolean, throwIfNoEntry?: false | undefined }): IStats | IBigIntStats,
|
||||
* (path: PathLike, options?: StatSyncOptions): IStats | IBigIntStats | undefined,
|
||||
* (path: PathLike, options: StatSyncOptions & { bigint: boolean, throwIfNoEntry?: false | undefined }): IStats | IBigIntStats,
|
||||
* (path: PathLike, options?: StatSyncOptions): IStats | IBigIntStats | undefined,
|
||||
* }} StatSync
|
||||
*/
|
||||
|
||||
@@ -246,8 +248,8 @@ const path = require("path");
|
||||
* (path: PathLike, options: StatSyncOptions & { bigint: true, throwIfNoEntry: false }): IBigIntStats | undefined,
|
||||
* (path: PathLike, options?: StatSyncOptions & { bigint?: false | undefined }): IStats,
|
||||
* (path: PathLike, options: StatSyncOptions & { bigint: true }): IBigIntStats,
|
||||
* (path: PathLike, options: StatSyncOptions & { bigint: boolean, throwIfNoEntry?: false | undefined }): IStats | IBigIntStats,
|
||||
* (path: PathLike, options?: StatSyncOptions): IStats | IBigIntStats | undefined,
|
||||
* (path: PathLike, options: StatSyncOptions & { bigint: boolean, throwIfNoEntry?: false | undefined }): IStats | IBigIntStats,
|
||||
* (path: PathLike, options?: StatSyncOptions): IStats | IBigIntStats | undefined,
|
||||
* }} LStatSync
|
||||
*/
|
||||
|
||||
@@ -256,7 +258,7 @@ const path = require("path");
|
||||
* (path: PathLike, options: EncodingOption, callback: StringCallback): void,
|
||||
* (path: PathLike, options: BufferEncodingOption, callback: BufferCallback): void,
|
||||
* (path: PathLike, options: EncodingOption, callback: StringOrBufferCallback): void,
|
||||
* (path: PathLike, callback: StringCallback): void;
|
||||
* (path: PathLike, callback: StringCallback): void,
|
||||
* }} RealPath
|
||||
*/
|
||||
|
||||
@@ -324,21 +326,14 @@ const path = require("path");
|
||||
/**
|
||||
* @typedef {{
|
||||
* (file: PathLike, options: MakeDirectoryOptions & { recursive: true }, callback: StringCallback): void,
|
||||
* (file: PathLike, options: Mode | (MakeDirectoryOptions & { recursive?: false | undefined; }) | null | undefined, callback: NoParamCallback): void,
|
||||
* (file: PathLike, options: Mode | (MakeDirectoryOptions & { recursive?: false | undefined }) | null | undefined, callback: NoParamCallback): void,
|
||||
* (file: PathLike, options: Mode | MakeDirectoryOptions | null | undefined, callback: StringCallback): void,
|
||||
* (file: PathLike, callback: NoParamCallback): void,
|
||||
* }} Mkdir
|
||||
*/
|
||||
|
||||
/**
|
||||
* @typedef {{ maxRetries?: number | undefined, recursive?: boolean | undefined, retryDelay?: number | undefined }} RmDirOptions
|
||||
*/
|
||||
|
||||
/**
|
||||
* @typedef {{
|
||||
* (file: PathLike, callback: NoParamCallback): void,
|
||||
* (file: PathLike, options: RmDirOptions, callback: NoParamCallback): void,
|
||||
* }} Rmdir
|
||||
* @typedef {{ (file: PathLike, callback: NoParamCallback): void }} Rmdir
|
||||
*/
|
||||
|
||||
/**
|
||||
@@ -405,7 +400,7 @@ const path = require("path");
|
||||
*/
|
||||
|
||||
/**
|
||||
* @typedef {FSImplementation & { write: (...args: EXPECTED_ANY[]) => EXPECTED_ANY; close?: (...args: EXPECTED_ANY[]) => EXPECTED_ANY }} CreateWriteStreamFSImplementation
|
||||
* @typedef {FSImplementation & { write: (...args: EXPECTED_ANY[]) => EXPECTED_ANY, close?: (...args: EXPECTED_ANY[]) => EXPECTED_ANY }} CreateWriteStreamFSImplementation
|
||||
*/
|
||||
|
||||
/**
|
||||
@@ -422,7 +417,7 @@ const path = require("path");
|
||||
|
||||
/**
|
||||
* @typedef {{
|
||||
* (file: PathLike, flags: OpenMode | undefined, mode: Mode | undefined | null, callback: NumberCallback): void,
|
||||
* (file: PathLike, flags: OpenMode | undefined, mode: Mode | undefined | null, callback: NumberCallback): void,
|
||||
* (file: PathLike, flags: OpenMode | undefined, callback: NumberCallback): void,
|
||||
* (file: PathLike, callback: NumberCallback): void,
|
||||
* }} Open
|
||||
@@ -613,6 +608,7 @@ const readJson = (fs, p, callback) => {
|
||||
}
|
||||
fs.readFile(p, (err, buf) => {
|
||||
if (err) return callback(err);
|
||||
/** @type {JsonObject} */
|
||||
let data;
|
||||
try {
|
||||
data = JSON.parse(/** @type {Buffer} */ (buf).toString("utf8"));
|
||||
|
||||
Reference in New Issue
Block a user