bat-client
Advanced tools
Comparing version 4.0.2 to 5.0.0
@@ -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", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
92232
4