
Security News
Crates.io Implements Trusted Publishing Support
Crates.io adds Trusted Publishing support, enabling secure GitHub Actions-based crate releases without long-lived API tokens.
xray-client-js
Advanced tools
Xray Javascript Client is a javascript library, which wraps some of the REST APIs exposed by JFrog Xray.
Xray Javascript Client is a Javascript library, which wraps some of the REST APIs exposed by JFrog Xray.
Add xray-client-js as a dependency to your package.json file:
"dependencies": {
"xray-client-js": "^1.0.0"
}
let xrayClient = new XrayClient({
serverUrl: 'ArtifactoryUrl',
username: 'username',
password: 'password',
proxy: {host: '<organization>-xray.jfrog.io', port: 80, protocol: 'https'},
headers: { 'key1': 'value1', 'key2': 'value2' };
});
xrayClient.system().ping()
.then(result => {
console.log(result);
})
.catch(error => {
console.error(error);
});
xrayClient.system().version()
.then(result => {
console.log(result);
})
.catch(error => {
console.error(error);
});
let express = new ComponentDetails('npm://express:4.0.0');
let request = new ComponentDetails('npm://request:2.0.0');
xrayClient.summary().component({
component_details: [express, request]
})
.then(result => {
console.log(JSON.stringify(result));
})
.catch(error => {
console.error(error);
});
To build the plugin sources, please follow these steps:
Clone the code from git.
Install and pack the xray-client-js dependency locally, by running the following npm commands:
npm i && npm pack
If you'd like run the xray-client-js integration tests, follow these steps:
npm t
Important: The tests use port 9090 to set up an HTTP proxy server. If this port is already used on the machines which runs the tests, please replace it in the tests code with a different port.
We welcome pull requests from the community.
npm run format
for formatting the code before submitting the pull request.FAQs
Xray Javascript Client is a javascript library, which wraps some of the REST APIs exposed by JFrog Xray.
We found that xray-client-js 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
Crates.io adds Trusted Publishing support, enabling secure GitHub Actions-based crate releases without long-lived API tokens.
Research
/Security News
Undocumented protestware found in 28 npm packages disrupts UI for Russian-language users visiting Russian and Belarusian domains.
Research
/Security News
North Korean threat actors deploy 67 malicious npm packages using the newly discovered XORIndex malware loader.