Security News
PyPI’s New Archival Feature Closes a Major Security Gap
PyPI now allows maintainers to archive projects, improving security and helping users make informed decisions about their dependencies.
Deploys files over FTP or SFTP
Paynal is an aztec god, who served as a representative of Huitzilopochtli.
Create the config file
Run npx paynal [<env>]
Enjoy :)
The config file need to be named "paynal.config.js"
You can setup it however you want (ES6-compliant) exporting a default object structured as Config
interface
interface DSTObject {
// the remote path
path: string
// any file to be added as source
add?: string | string[]
// any file to be skipped from source
skip?: string | string[]
// name or array of name of required destinations
// to be deployed before this one
requires?: string | string[]
}
interface FTPClient {
exec(cmd: string, mirrorOutput: boolean = false): Promise<{
code: number,
signal?: number,
stdout: string,
stderr: string
}>
mkdir(path: string): Promise<boolean>
put(local, remote): Promise<boolean>
stat(path): Promise<any>
}
interface Plugin {
name: string
// called before any deploy
pre?(dst: DSTObject, connection: FTPClient): any | Promise<any>
// called after any deploy
post?(dst: DSTObject, connection: FTPClient): any | Promise<any>
// called after all deploy
done?(): any | Promise<any>
// called after any error in plugins
error?(e): any | Promise<any>
}
// the default exported config object interface
interface Config {
// connection config
connection: {
host: string,
username: string,
password: string,
readyTimeout?: number
}
// source file(s)
src: string | string[]
// destination configs
dst: {
// a remote path or a config object
[key: string]: string || DSTObject
}
// list of plugin to run on deploy events
plugins?: Plugin[]
}
FAQs
Deploy files over FTP or SFTP
We found that paynal demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
PyPI now allows maintainers to archive projects, improving security and helping users make informed decisions about their dependencies.
Research
Security News
Malicious npm package postcss-optimizer delivers BeaverTail malware, targeting developer systems; similarities to past campaigns suggest a North Korean connection.
Security News
CISA's KEV data is now on GitHub, offering easier access, API integration, commit history tracking, and automated updates for security teams and researchers.