Remove deprecated scripts for adding head-matter to wt_config.xml, including Python and Bash implementations, to streamline configuration management.
This commit is contained in:
49
node_modules/bare-fs/lib/constants.d.ts
generated
vendored
Normal file
49
node_modules/bare-fs/lib/constants.d.ts
generated
vendored
Normal file
@@ -0,0 +1,49 @@
|
||||
declare const constants: {
|
||||
O_RDWR: number
|
||||
O_RDONLY: number
|
||||
O_WRONLY: number
|
||||
O_CREAT: number
|
||||
O_TRUNC: number
|
||||
O_APPEND: number
|
||||
|
||||
F_OK: number
|
||||
R_OK: number
|
||||
W_OK: number
|
||||
X_OK: number
|
||||
|
||||
S_IFMT: number
|
||||
S_IFREG: number
|
||||
S_IFDIR: number
|
||||
S_IFCHR: number
|
||||
S_IFLNK: number
|
||||
S_IFBLK: number
|
||||
S_IFIFO: number
|
||||
S_IFSOCK: number
|
||||
|
||||
S_IRUSR: number
|
||||
S_IWUSR: number
|
||||
S_IXUSR: number
|
||||
S_IRGRP: number
|
||||
S_IWGRP: number
|
||||
S_IXGRP: number
|
||||
S_IROTH: number
|
||||
S_IWOTH: number
|
||||
S_IXOTH: number
|
||||
|
||||
UV_DIRENT_UNKNOWN: number
|
||||
UV_DIRENT_FILE: number
|
||||
UV_DIRENT_DIR: number
|
||||
UV_DIRENT_LINK: number
|
||||
UV_DIRENT_FIFO: number
|
||||
UV_DIRENT_SOCKET: number
|
||||
UV_DIRENT_CHAR: number
|
||||
UV_DIRENT_BLOCK: number
|
||||
|
||||
COPYFILE_EXCL: number
|
||||
COPYFILE_FICLONE: number
|
||||
COPYFILE_FICLONE_FORCE: number
|
||||
UV_FS_SYMLINK_DIR: number
|
||||
UV_FS_SYMLINK_JUNCTION: number
|
||||
}
|
||||
|
||||
export = constants
|
||||
49
node_modules/bare-fs/lib/constants.js
generated
vendored
Normal file
49
node_modules/bare-fs/lib/constants.js
generated
vendored
Normal file
@@ -0,0 +1,49 @@
|
||||
const binding = require('../binding')
|
||||
|
||||
module.exports = {
|
||||
O_RDWR: binding.O_RDWR,
|
||||
O_RDONLY: binding.O_RDONLY,
|
||||
O_WRONLY: binding.O_WRONLY,
|
||||
O_CREAT: binding.O_CREAT,
|
||||
O_TRUNC: binding.O_TRUNC,
|
||||
O_APPEND: binding.O_APPEND,
|
||||
|
||||
F_OK: binding.F_OK || 0,
|
||||
R_OK: binding.R_OK || 0,
|
||||
W_OK: binding.W_OK || 0,
|
||||
X_OK: binding.X_OK || 0,
|
||||
|
||||
S_IFMT: binding.S_IFMT,
|
||||
S_IFREG: binding.S_IFREG,
|
||||
S_IFDIR: binding.S_IFDIR,
|
||||
S_IFCHR: binding.S_IFCHR,
|
||||
S_IFLNK: binding.S_IFLNK,
|
||||
S_IFBLK: binding.S_IFBLK || 0,
|
||||
S_IFIFO: binding.S_IFIFO || 0,
|
||||
S_IFSOCK: binding.S_IFSOCK || 0,
|
||||
|
||||
S_IRUSR: binding.S_IRUSR || 0,
|
||||
S_IWUSR: binding.S_IWUSR || 0,
|
||||
S_IXUSR: binding.S_IXUSR || 0,
|
||||
S_IRGRP: binding.S_IRGRP || 0,
|
||||
S_IWGRP: binding.S_IWGRP || 0,
|
||||
S_IXGRP: binding.S_IXGRP || 0,
|
||||
S_IROTH: binding.S_IROTH || 0,
|
||||
S_IWOTH: binding.S_IWOTH || 0,
|
||||
S_IXOTH: binding.S_IXOTH || 0,
|
||||
|
||||
UV_DIRENT_UNKNOWN: binding.UV_DIRENT_UNKNOWN,
|
||||
UV_DIRENT_FILE: binding.UV_DIRENT_FILE,
|
||||
UV_DIRENT_DIR: binding.UV_DIRENT_DIR,
|
||||
UV_DIRENT_LINK: binding.UV_DIRENT_LINK,
|
||||
UV_DIRENT_FIFO: binding.UV_DIRENT_FIFO,
|
||||
UV_DIRENT_SOCKET: binding.UV_DIRENT_SOCKET,
|
||||
UV_DIRENT_CHAR: binding.UV_DIRENT_CHAR,
|
||||
UV_DIRENT_BLOCK: binding.UV_DIRENT_BLOCK,
|
||||
|
||||
COPYFILE_EXCL: binding.UV_FS_COPYFILE_EXCL,
|
||||
COPYFILE_FICLONE: binding.UV_FS_COPYFILE_FICLONE,
|
||||
COPYFILE_FICLONE_FORCE: binding.UV_FS_COPYFILE_FICLONE_FORCE,
|
||||
UV_FS_SYMLINK_DIR: binding.UV_FS_SYMLINK_DIR,
|
||||
UV_FS_SYMLINK_JUNCTION: binding.UV_FS_SYMLINK_JUNCTION
|
||||
}
|
||||
11
node_modules/bare-fs/lib/errors.d.ts
generated
vendored
Normal file
11
node_modules/bare-fs/lib/errors.d.ts
generated
vendored
Normal file
@@ -0,0 +1,11 @@
|
||||
declare class FileError extends Error {
|
||||
private constructor(msg: string)
|
||||
|
||||
readonly code: string
|
||||
readonly operation?: string
|
||||
readonly path?: string
|
||||
readonly destination?: string
|
||||
readonly fd?: number
|
||||
}
|
||||
|
||||
export = FileError
|
||||
55
node_modules/bare-fs/lib/errors.js
generated
vendored
Normal file
55
node_modules/bare-fs/lib/errors.js
generated
vendored
Normal file
@@ -0,0 +1,55 @@
|
||||
const os = require('bare-os')
|
||||
|
||||
module.exports = class FileError extends Error {
|
||||
constructor(msg, opts = {}) {
|
||||
const { code, operation = null, path = null, destination = null, fd = -1 } = opts
|
||||
|
||||
if (operation !== null) msg += describe(operation, opts)
|
||||
|
||||
super(`${code}: ${msg}`)
|
||||
|
||||
this.code = code
|
||||
|
||||
if (operation !== null) this.operation = operation
|
||||
if (path !== null) this.path = path
|
||||
if (destination !== null) this.destination = destination
|
||||
if (fd !== -1) this.fd = fd
|
||||
}
|
||||
|
||||
get name() {
|
||||
return 'FileError'
|
||||
}
|
||||
|
||||
// For Node.js compatibility
|
||||
get errno() {
|
||||
return os.constants.errnos[this.code]
|
||||
}
|
||||
|
||||
// For Node.js compatibility
|
||||
get syscall() {
|
||||
return this.operation
|
||||
}
|
||||
|
||||
// For Node.js compatibility
|
||||
get dest() {
|
||||
return this.destination
|
||||
}
|
||||
}
|
||||
|
||||
function describe(operation, opts) {
|
||||
const { path = null, destination = null, fd = -1 } = opts
|
||||
|
||||
let result = `, ${operation}`
|
||||
|
||||
if (path !== null) {
|
||||
result += ` ${JSON.stringify(path)}`
|
||||
|
||||
if (destination !== null) {
|
||||
result += ` -> ${JSON.stringify(destination)}`
|
||||
}
|
||||
} else if (fd !== -1) {
|
||||
result += ` ${fd}`
|
||||
}
|
||||
|
||||
return result
|
||||
}
|
||||
Reference in New Issue
Block a user