Security News
Input Validation Vulnerabilities Dominate MITRE's 2024 CWE Top 25 List
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Promise wrapped classes easy to use for making operations on SVN without risking locks and conflicts
perform operations on remote copy of SVN or Read only operations on a Local copy
checkout to your computer and run: npm install, to run mocha use: npm run test-local / test-remote (edit credentials)
referance the module
create a svn object
const testSvn = new remoteSvn();
Create log output interface
implement info error and debug functions, accept string, do whatever you want with it
logger = { //looger interface
info:(str)=>{console.log("[INFO]",str)},
error:(str)=>{console.error("[ERROR]",str)},
debug:(str)=>{console.warn("[DEBUG]",str)}
}
Create credentials object
creds = {
username: "my.username",
password: "myPassword123"
}
initialize the object pass the name of the folder you want the local files to be saved at, pass the base URL of the svn remote pass the logger interface function pass the credentials object (match the names)
svnConfig = {baseFolder, baseURL, logger, creds}
const params = await testSvn.init(svnConfig)
all operations returns a Promise, and perform async operations
const returnFilePath = await testSvn.getFile({"filePath":testFiles[0], "revision":undefined})
all operations that require parameters expect an object with a key:value for every parameter
await testSvn.deleteFiles({filePaths:[testFiles[0],testFiles[1]],message:commitMessage})
all downloaded files / newly created files are stored localy, remember to delete them when finished
await testSvn.deleteFiles({filePaths:[testFiles[0],testFiles[1]],message:commitMessage})
must have svn v1.8 or later installed, one of the packages relay on svnmucc which is included in that version
svnmucc put _localPath_ _remotePath_
Edit the .env file , fill in missing details Use mocah ( installed globaly using npm i -g mocha) or use "npm run test-remote" or use "npm run test-local"
you can take example from the tests on how to get/add/remove a file and commit
FAQs
Promise wrapped classes easy to use for making operations on SVN without risking locks and conflicts
The npm package remote-svn receives a total of 1 weekly downloads. As such, remote-svn popularity was classified as not popular.
We found that remote-svn 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
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.
Research
Security News
A threat actor's playbook for exploiting the npm ecosystem was exposed on the dark web, detailing how to build a blockchain-powered botnet.