![Namecheap Takes Down Polyfill.io Service Following Supply Chain Attack](https://cdn.sanity.io/images/cgdhsj6q/production/6af25114feaaac7179b18127c83327568ff592d1-1024x1024.webp?w=800&fit=max&auto=format)
Security News
Namecheap Takes Down Polyfill.io Service Following Supply Chain Attack
Polyfill.io has been serving malware for months via its CDN, after the project's open source maintainer sold the service to a company based in China.
ubivar
Advanced tools
Readme
Ubivar is an API that takes over the hassle of automatically screening e-payment for frauds on e-commerce websites.
Ubivar's purpose is to route e-commerce transactions given their estimated
risk. By default, the three possible routing outcomes are a suggested
rejection, a recommended manual verification, and a proposed acceptance of the
transaction. Ubivar does not need all the business events (aka resources
),
however the more it has contextual information about the transactions, the
better its accuracy. The two required resources are the transactions
and the
labels
that categorize the transactions
like fraud, not fraud. The API is
simple: you provide Ubivar your request token
and the bindings provide the
hooks to send and receive resources to the API.
npm install ubivar
Documentation is available at https://ubivar.com/docs/nodejs
Every resource is accessed via your ubivar
instance and accepts an optional
callback as the last argument. The sample code below retrieves your account
information (as json) and updates the primary phone with a random value.
var Ubivar = require("ubivar")
, ubivar = new Ubivar("YOUR_API_ACCESS_TOKEN", "latest")
, rval = Math.random()
ubivar.retrieve.me(function(err, res){
console.log(err, res)
ubivar.update.me({"primary_phone":rval}, function(err, res){
console.log(err, res)
})
})
ubivar.set("auth", "your-api-token")
ubivar.setTimeout(20000) // in ms
, node's default is 120000ms
To run the tests, you will need a Ubivar test API key (from your Ubivar dashboard)
export UBIVAR_TEST_TOKEN="your-test-api-key"
npm install -g mocha
npm test
Note: on Windows, use SET
instead of export
for setting the UBIVAR_TEST_TOKEN
environment variable.
Originally inspired from stripe-node. Developed by Fabrice Colas (fabrice.colas@gmail.com). Maintained by Ubivar.
FAQs
API wrapper to Ubivar
We found that ubivar 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
Polyfill.io has been serving malware for months via its CDN, after the project's open source maintainer sold the service to a company based in China.
Security News
OpenSSF is warning open source maintainers to stay vigilant against reputation farming on GitHub, where users artificially inflate their status by manipulating interactions on closed issues and PRs.
Security News
A JavaScript library maintainer is under fire after merging a controversial PR to support legacy versions of Node.js.