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.
@adempiere/grpc-api
Advanced tools
ADempiere Web Store Client write in Javascript for gRPC service, use it for connect with ADempiere-gRPC-Server.
# installing via NPM
npm install @adempiere/grpc-api --save
# installing via Yarn
yarn add @adempiere/grpc-api
const Access = require('@adempiere/grpc-api');
// URL, Version
let access = new Access(GRPC_HOST, 'Version Epale');
const Access = require('@adempiere/grpc-api');
let access = new Access(GRPC_HOST, 'Version Epale');
// Request User Roles
// UserName, UserPass
access.requestUserRoles('SuperUser', 'System')
.then(userRoles => {
console.log('Object with Role List' + userRoles);
})
.catch(err => console.log("Error: " + err.message));
Output
Hola
// Request Login for User
// UserName, UserPass, Language
access.requestUserLogin('SuperUser', 'System', 'es_VE')
.then(session => {
console.log('Object with Session values' + session);
})
.catch(err => console.log("Error: " + err.message));
Output
None
// Request Logout for User
// SessionUuid
access.requestUserLogout('8cc49692-fb40-11e8-a479-7a0060f0aa01')
.then(session => {
console.log('Object with Logout Session' + session);
})
.catch(err => console.log("Error: " + err.message));
Output
None
For recreate stub class you must have follow:
Note: You can also install protoc
and protoc-gen-grpc-web
by going to the repository directory and run the command:
sh install-protoc.sh
When installation is complete, check the version with
protoc --version
After installed it just go to source code folder an run it:
Run Access gRPC
cd ../../protos
yarn global add grpc-tools
grpc_tools_node_protoc --js_out=import_style=commonjs,binary:src/grpc --grpc_out=src/grpc --plugin=protoc-gen-grpc=`which grpc_tools_node_protoc_plugin` proto/access.proto proto/client.proto proto/base_data_type.proto proto/business.proto proto/core_functionality.proto
Or run:
sh generate-stub.sh
The result is generated on: src/grpc folder
access_grpc_web_pb.js
access_pb.js
FAQs
ADempiere Web write in Javascript for a node service
The npm package @adempiere/grpc-api receives a total of 212 weekly downloads. As such, @adempiere/grpc-api popularity was classified as not popular.
We found that @adempiere/grpc-api demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 5 open source maintainers 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.