Comparing version 4.0.0 to 4.1.0
@@ -28,3 +28,3 @@ /// <reference types="node" /> | ||
export declare type ReadFileOptions = { | ||
encoding?: string | null; | ||
encoding?: BufferEncoding | null; | ||
flag?: string; | ||
@@ -46,5 +46,5 @@ escape?: string; | ||
export declare function ensurePathSync(path: string): string; | ||
export declare function ensureWriteStream(path: string, options?: string | { | ||
export declare function ensureWriteStream(path: string, options?: BufferEncoding | { | ||
flags?: string; | ||
encoding?: string; | ||
encoding?: BufferEncoding; | ||
fd?: number; | ||
@@ -57,5 +57,5 @@ mode?: number; | ||
}): BlueBirdPromise<any>; | ||
export declare function ensureWriteStreamSync(path: string, options?: string | { | ||
export declare function ensureWriteStreamSync(path: string, options?: BufferEncoding | { | ||
flags?: string; | ||
encoding?: string; | ||
encoding?: BufferEncoding; | ||
fd?: number; | ||
@@ -98,3 +98,3 @@ mode?: number; | ||
export declare const readSync: any; | ||
export declare const readdir: () => BlueBirdPromise<unknown>; | ||
export declare const readdir: (arg1: fs.PathLike) => BlueBirdPromise<string[]>; | ||
export declare const readdirSync: any; | ||
@@ -105,5 +105,5 @@ export declare const readlink: () => BlueBirdPromise<unknown>; | ||
export declare const realpathSync: any; | ||
export declare const rename: () => BlueBirdPromise<unknown>; | ||
export declare const rename: (arg1: fs.PathLike, arg2: fs.PathLike) => BlueBirdPromise<void>; | ||
export declare const renameSync: any; | ||
export declare const stat: () => BlueBirdPromise<unknown>; | ||
export declare const stat: (arg1: fs.PathLike) => BlueBirdPromise<fs.Stats>; | ||
export declare const statSync: any; | ||
@@ -118,3 +118,3 @@ export declare const fstat: () => BlueBirdPromise<unknown>; | ||
export declare const ftruncateSync: any; | ||
export declare const unlink: () => BlueBirdPromise<unknown>; | ||
export declare const unlink: (arg1: fs.PathLike) => BlueBirdPromise<void>; | ||
export declare const unlinkSync: any; | ||
@@ -132,3 +132,1 @@ export declare const utimes: () => BlueBirdPromise<unknown>; | ||
export declare const WriteStream: any; | ||
export declare const FileReadStream: any; | ||
export declare const FileWriteStream: any; |
@@ -16,3 +16,3 @@ "use strict"; | ||
exports.mkdirSync = exports.mkdir = exports.linkSync = exports.link = exports.fsyncSync = exports.fsync = exports.createWriteStream = exports.createReadStream = exports.closeSync = exports.close = exports.lchownSync = exports.lchown = exports.fchownSync = exports.fchown = exports.chownSync = exports.chown = exports.lchmodSync = exports.lchmod = exports.fchmodSync = exports.fchmod = exports.chmodSync = exports.chmod = exports.accessSync = exports.access = exports.ensureWriteStreamSync = exports.ensureWriteStream = exports.ensurePathSync = exports.ensurePath = exports.watch = exports.rmdirSync = exports.rmdir = exports.emptyDirSync = exports.emptyDir = exports.readFileSync = exports.readFile = exports.escapeFileContent = exports.escapeBOM = exports.escapeEOL = exports.listDirSync = exports.listDir = exports.copyDir = exports.copyFile = exports.appendFileSync = exports.appendFile = exports.writeFileSync = exports.writeFile = exports.mkdirsSync = exports.mkdirs = exports.existsSync = exports.exists = void 0; | ||
exports.FileWriteStream = exports.FileReadStream = exports.WriteStream = exports.ReadStream = exports.Stats = exports.writeSync = exports.write = exports.unwatchFile = exports.watchFile = exports.futimesSync = exports.futimes = exports.utimesSync = exports.utimes = exports.unlinkSync = exports.unlink = exports.ftruncateSync = exports.ftruncate = exports.truncateSync = exports.truncate = exports.lstatSync = exports.lstat = exports.fstatSync = exports.fstat = exports.statSync = exports.stat = exports.renameSync = exports.rename = exports.realpathSync = exports.realpath = exports.readlinkSync = exports.readlink = exports.readdirSync = exports.readdir = exports.readSync = exports.read = exports.symlinkSync = exports.symlink = exports.openSync = exports.open = void 0; | ||
exports.WriteStream = exports.ReadStream = exports.Stats = exports.writeSync = exports.write = exports.unwatchFile = exports.watchFile = exports.futimesSync = exports.futimes = exports.utimesSync = exports.utimes = exports.unlinkSync = exports.unlink = exports.ftruncateSync = exports.ftruncate = exports.truncateSync = exports.truncate = exports.lstatSync = exports.lstat = exports.fstatSync = exports.fstat = exports.statSync = exports.stat = exports.renameSync = exports.rename = exports.realpathSync = exports.realpath = exports.readlinkSync = exports.readlink = exports.readdirSync = exports.readdir = exports.readSync = exports.read = exports.symlinkSync = exports.symlink = exports.openSync = exports.open = void 0; | ||
const chokidar_1 = __importDefault(require("chokidar")); | ||
@@ -487,4 +487,2 @@ const bluebird_1 = __importDefault(require("bluebird")); | ||
exports.WriteStream = graceful_fs_1.default.WriteStream; | ||
exports.FileReadStream = graceful_fs_1.default.FileReadStream; | ||
exports.FileWriteStream = graceful_fs_1.default.FileWriteStream; | ||
//# sourceMappingURL=fs.js.map |
{ | ||
"name": "hexo-fs", | ||
"version": "4.0.0", | ||
"version": "4.1.0", | ||
"description": "File system module for Hexo.", | ||
@@ -11,2 +11,3 @@ "main": "./dist/fs.js", | ||
"eslint": "eslint .", | ||
"pretest": "npm run clean && npm run build", | ||
"test": "mocha test/index.js --require ts-node/register", | ||
@@ -40,2 +41,3 @@ "test-cov": "c8 --reporter=lcovonly npm run test" | ||
"@types/bluebird": "^3.5.36", | ||
"@types/graceful-fs": "^4.1.5", | ||
"@types/node": "^18.7.16", | ||
@@ -42,0 +44,0 @@ "@typescript-eslint/eslint-plugin": "^5.36.2", |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
0
51181
13
615