Security News
tea.xyz Spam Plagues npm and RubyGems Package Registries
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
service-cloud-client
Advanced tools
Readme
Allow to call Service Cloud services (instances of service-cloud-service
) actions.
Let's say there is a serivce called hello-world
in the service cloud (service-cloud-service
) and this service has an action called say
which produces a message with the sentence Hello World!
depending on the language given in the options of the action.
This action can be called 3 different ways :
const client = require('service-cloud-client');
const serviceName = 'hello-world'; // Name of the service
const actionName = 'say'; // Name of the action of the service
const data = { // Options of the action
language: 'fr'
};
const remote = 'http://localhost:1900'; // Entry point of the service cloud
// Direct call
client.ServiceCloudClient.call(serviceName, actionName, remote, data, (e, result) => {
if(e)
return console.error(e);
console.log(result.message);
});
// Call with instance
const helloWorld = new client.ServiceCloudClient(serviceName, remote);
helloWorld.call(actionName, data, (e, result) => {
if(e)
return console.error(e);
console.log(result.message);
});
// Call with expanded methods (methods dynamically added to the object from the information of the remote service)
const helloWorldExpanded = new client.ServiceCloudClient(serviceName, remote);
helloWorldExpanded.expandActions((e) => {
if(e)
return console.error(e);
helloWorldExpanded.say(data, (e, result) => {
if(e)
return console.error(e);
console.log(result.message);
});
});
FAQs
Allows to call actions of services in the service cloud (service-cloud-service)
The npm package service-cloud-client receives a total of 0 weekly downloads. As such, service-cloud-client popularity was classified as not popular.
We found that service-cloud-client 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
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
Security News
As cyber threats become more autonomous, AI-powered defenses are crucial for businesses to stay ahead of attackers who can exploit software vulnerabilities at scale.
Security News
UnitedHealth Group disclosed that the ransomware attack on Change Healthcare compromised protected health information for millions in the U.S., with estimated costs to the company expected to reach $1 billion.