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

pitney-bowes

Package Overview
Dependencies
Maintainers
2
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

pitney-bowes - npm Package Compare versions

Comparing version 0.1.2 to 0.2.0

2

.eslintrc.js

@@ -24,2 +24,2 @@ module.exports = {

}
}
};

@@ -91,2 +91,32 @@ const cache = require('memory-cache');

this.rate = function(shipment, _options, callback) {
this.getOAuthToken(function(err, oAuthToken) {
if (err) {
return callback(err);
}
const req = {
auth: {
bearer: oAuthToken.access_token
},
headers: {},
json: shipment,
method: 'POST',
url: `${options.baseUrl}/v1/rates`
};
request(req, function(err, res, body) {
if (err) {
return callback(err);
}
if (res.statusCode !== 200) {
return callback(createError(res.statusCode, body && body.length && body[0].message ? body[0] : body));
}
callback(null, body);
});
});
};
this.tracking = function(args, callback) {

@@ -93,0 +123,0 @@ this.getOAuthToken(function(err, oAuthToken) {

@@ -30,3 +30,3 @@ {

},
"version": "0.1.2"
"version": "0.2.0"
}
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