Security News
Research
Data Theft Repackaged: A Case Study in Malicious Wrapper Packages on npm
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
chargehound
Advanced tools
npm install chargehound
Every resource is accessed via the chargehound
instance:
var chargehound = require('chargehound')('{ YOUR_API_KEY }');
Every resource method accepts an optional callback as the last argument:
chargehound.Disputes.submit('dp_123', {fields: {customer_name: 'Susie'}},
function (err, dispute) {
err; // null if no error occurred
dispute; // the submitted dispute object
}
);
Additionally, every resource method returns a promise, so you don't have to use the regular callback. E.g.
chargehound.Disputes.submit('dp_123', {fields: {customer_name: 'Susie'}})
.then(function (dispute) {
// Success
.catch(function (err) {
// Deal with an error
});
Responses from the API are automatically parsed from JSON and returned as JavaScript objects.
Responses also include the HTTP status code on the response
object as the status
field.
chargehound.Disputes.retrieve('dp_123').then(dispute => {
console.log(dispute.state)
// 'needs_response'
console.log(dispute.response.status)
// 200
});
To build and install from the latest source:
$ git clone git@github.com:chargehound/chargehound-node.git
$ npm install
The source code is written in ES6. For development you will need Node.js >= v8.
Run the tests using npm
:
$ npm test
To deploy a new version of the SDK, perform the following steps:
package.json
npm publish
FAQs
Automatically fight disputes
The npm package chargehound receives a total of 168 weekly downloads. As such, chargehound popularity was classified as not popular.
We found that chargehound 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.
Security News
Research
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
Research
Security News
Attackers used a malicious npm package typosquatting a popular ESLint plugin to steal sensitive data, execute commands, and exploit developer systems.
Security News
The Ultralytics' PyPI Package was compromised four times in one weekend through GitHub Actions cache poisoning and failure to rotate previously compromised API tokens.