Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

bat-client

Package Overview
Dependencies
Maintainers
4
Versions
90
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

bat-client - npm Package Compare versions

Comparing version 4.0.2 to 5.0.0

8

index.js

@@ -663,3 +663,3 @@ const crypto = require('crypto')

path = '/v1/grants'
path = '/v2/grants'
if (lang) params.lang = lang

@@ -688,3 +688,3 @@ if (forPaymentId) {

path = '/v1/grants/' + self.state.properties.wallet.paymentId
path = '/v2/grants/' + self.state.properties.wallet.paymentId
self._retryTrip(self, { path: path, method: 'PUT', payload: { promotionId, captchaResponse } }, function (err, response, body) {

@@ -701,3 +701,3 @@ self._log('setPromotion', { method: 'PUT', path: path, errP: !!err })

const path = '/v1/captchas/' + self.state.properties.wallet.paymentId
const path = '/v2/captchas/' + self.state.properties.wallet.paymentId
self._retryTrip(self, { path: path, method: 'GET', binaryP: true }, function (err, response, body) {

@@ -707,3 +707,3 @@ self._log('getPromotionCaptcha', { method: 'GET', path: path, errP: !!err })

callback(null, body)
callback(null, body, response)
})

@@ -710,0 +710,0 @@ }

{
"name": "bat-client",
"version": "4.0.2",
"version": "5.0.0",
"description": "An example of client code for the BAT.",

@@ -5,0 +5,0 @@ "main": "index.js",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc