There’s an angular specific one (link above) and this one is just for node (server side)
The angular package above is implemented as an angular service and has the service life cycle and singleton pattern so that one may be more useful if you are doing angular specifically
the description issue is a copy and paste blunder ill fix it
We weren’t planning on it since the NPM packages allow everyone to use it and frankly… its JS the code is there in the NPM package anyways. Any particular reason why you want it in github?
Got it I can give you access to this repo if you want to do pull requests I’m all for that. Ping me with your github username and I’ll invite you to this repo.
npm audit
# npm audit report
axios
Severity: moderate
Axios Cross-Site Request Forgery Vulnerability - https://github.com/advisories/GHSA-wf5p-g6vw-rhxx
No fix available
node_modules/axios
epicor-rest-node
Depends on vulnerable versions of axios
node_modules/epicor-rest-node
2 moderate severity vulnerabilities
Some issues need review, and may require choosing
a different dependency.
I assume this is because Epicor is on TLS 1.2 and the up to date stuff is TLS 1.3. Is this repo still being maintained?
I’m still working on this issue Epicor REST nodejs error EPROTO
This release has added support for CallContext. Our documentation has also been updated to demonstrate the use of CallContext. Call context can be passed as a param in our standard functions. The param is an object of type CallContext. The model has been added to our module for your use. You can also convert a partial context to the full object for consumption by passing it as a generic object.
Rough Example
// Build our partial generic
var cc = {
"Context": {
"BpmData": [
{
"Character01": "FOO",
"Character02": "BAR",
"Checkbox01": true,
"Date01": "2024-12-27"
}
]
}
}
// Setup call params
var library = "SomeLibrary";
var function = "SomeFunction";
var useStaging = false;
var params = {
"iValueOne": "FooBar"
};
var requestCC = new CallContext(cc.Context); // Get our partial generic to the type of CallContext
// Make our call to Epicor using the module
const { data, context } = await EpicorRest.EfxPost(library , function , params, useStaging , requestCC ).then((res) => {
var responseData = res.Data;
var responseCC = new CallContext(JSON.parse(res.headers['contextheader']).Context); // Capture the callcontext from response headers
// Do something with response call context or pass it back up the chain for use elsewhere
return { data: responseData, context: responseCC };
});