Security News
The Risks of Misguided Research in Supply Chain Security
Snyk's use of malicious npm packages for research raises ethical concerns, highlighting risks in public deployment, data exfiltration, and unauthorized testing.
rest-g5-senior
Advanced tools
Em desenvolvimento...
Registra as credenciais que serão utilizadas nas requisições.
Opcionalmente, as credenciais podem ser enviadas diretamente na requisição.
import { G5Credential, RestG5Senior } from "rest-g5-senior";
/**
* Credential
*/
const credential: G5Credential = {
user: "userName",
password: "my-pass",
encryption: "0"
}
RestG5Senior.registry(credential);
URL base para as requisições (sem o nome do serviço).
Ex.: http://servidor:1234/g5-senior-services/modulo_Sync
Opcionalmente o wsdl completo pode ser enviado em cada requisição no atributo wsdl, omitindo o service.
import { G5Config, RestG5Senior } from "rest-g5-senior";
/**
* Base URL
*/
const config: G5Config = {
baseUrl: "http://servidor:1234/g5-senior-services/modulo_Sync"
}
RestG5Senior.g5config(config);
O atributo service pode receber o nome do serviço com "." ou "_". Ex.: com.senior.cad...
e com_senior_cad...
são equivalentes.
Opcionalmente pode-se enviar o wsdl completo (exatamente como indicado na documentação Senior), nesse caso o atributo service é desconsiderado. Exemplo no item Requisição sem registro prévio
import { G5Request } from "rest-g5-senior";
/**
* Request Params
*/
const request: G5Request = {
service: "com.senior...",
port: "Gravar...",
parameters: {
codEmp: "1",
codFil: "1",
others: "...."
},
};
import { RestG5Senior } from "rest-g5-senior";
/**
* Request
*/
RestG5Senior.request(request).subscribe({
next: (res: any) => {
const fixedRes = RestG5Senior.fixTableIndex(res);
console.log(fixedRes);
},
error: (err: any) => console.log(err),
});
/**
* Async Request
*/
import { RestG5Senior } from "rest-g5-senior";
RestG5Senior.asyncRequest(request).then((res: any) => {
const fixedRes = RestG5Senior.fixTableIndex(res);
console.log(fixedRes);
}).catch((err: any) =>
console.log(err)
)
import { G5Request, RestG5Senior } from "rest-g5-senior";
/**
* Request Params
*/
const request: G5Request = {
wsdl: "http://servidor:1234/g5-senior-services/modulo_Synccom.senior...",
port: "Gravar...",
parameters: {
codEmp: "1",
codFil: "1",
others: "...."
},
};
/**
* Request
*/
RestG5Senior.request(request, credential).subscribe({
next: (res: any) => {
const fixedRes = RestG5Senior.fixTableIndex(res);
console.log(fixedRes);
},
error: (err: any) => console.log(err),
});
FAQs
Em desenvolvimento...
The npm package rest-g5-senior receives a total of 0 weekly downloads. As such, rest-g5-senior popularity was classified as not popular.
We found that rest-g5-senior 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
Snyk's use of malicious npm packages for research raises ethical concerns, highlighting risks in public deployment, data exfiltration, and unauthorized testing.
Research
Security News
Socket researchers found several malicious npm packages typosquatting Chalk and Chokidar, targeting Node.js developers with kill switches and data theft.
Security News
pnpm 10 blocks lifecycle scripts by default to improve security, addressing supply chain attack risks but sparking debate over compatibility and workflow changes.