Research
Security News
Malicious npm Package Targets Solana Developers and Hijacks Funds
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
vtex-node-sdk
Advanced tools
LicenseManagerClient([lmEnvironment])
Client for the License Manager service.
If no lmEnvironment
paramenter is passed, the stable service will be used.
var LicenseManagerClient = require('vtex-node-sdk').LicenseManagerClient
var lmClient = new LicenseManagerClient()
GET /api/license-manager/pvt/accounts/hosts/:host
getAccountDetails(host, vtexIdclientAutCookie)
Returns a promise fulfilling an array with the response
and the body
object of the request.
var vtexIdclientAutCookie = "authtokenvalue=="
lmClient.getAccountDetails("www.basedevmkp.com.br", vtexIdclientAutCookie)
.spread(function(response, body){
console.log(body.MainAccountName)
})
.catch(function(err){
console.error(err)
})
GET /api/license-manager/site/pvt/newtopbar?an=:account
getTopbarInfo(account, vtexIdclientAutCookie)
Returns a promise fulfilling an array with the response
and the body
object of the request
var vtexIdclientAutCookie = "authtokenvalue=="
lmClient.getAccountDetails("basedevmkp", vtexIdclientAutCookie)
.spread(function(response, body){
console.log(body.config)
})
.catch(function(err){
console.error(err)
})
IAMClient()
Client for the IAM service.
var IAMClient = require('vtex-node-sdk').IAM
var iam = new IAMClient()
POST /sts/tokens/assumerole/vtexid
Payload example:
{
"account": "basedevmkp",
"token": "vtexIdclientAutCookieToken=="
}
getVtexAuthToken(account, vtexIdclientAutCookie)
Returns a promise that fullfils an array with the response
and a token
string
var vtexIdClientAutCookie = "1234vtexidtoken=="
iam.getVtexAuthToken("basedevmkp", vtexid)
.spread(function(response, token){
console.log(token)
})
.catch(function(err){
console.error(err)
})
FAQs
VTEX SDK for Node.js
The npm package vtex-node-sdk receives a total of 24 weekly downloads. As such, vtex-node-sdk popularity was classified as not popular.
We found that vtex-node-sdk demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 4 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.
Research
Security News
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
Security News
Research
Socket researchers have discovered malicious npm packages targeting crypto developers, stealing credentials and wallet data using spyware delivered through typosquats of popular cryptographic libraries.
Security News
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.