Socket
Socket
Sign inDemoInstall

api2pdf

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

api2pdf - npm Package Compare versions

Comparing version 1.0.0 to 1.1.0

LICENSE

23

index.js

@@ -78,2 +78,17 @@ "use strict";

delete(responseId) {
var endpoint = API2PDF_BASE_ENDPOINT + `/pdf/${responseId}`;
return new Promise((resolve, reject) => {
request.delete(endpoint, { headers: { Authorization: this.apiKey } }, function(e, r, body) {
var result = JSON.parse(body);
if (r.statusCode == 200 && result.success == true) {
return resolve(result);
}
else {
return reject(result);
}
});
});
}
_makeRequest(endpoint, payload) {

@@ -83,8 +98,8 @@ return new Promise((resolve, reject) => {

var result = JSON.parse(body);
if (r.statusCode == 200 && result.success == true) {
if (r.statusCode == 200 && result.success == true) {
return resolve(result);
}
else {
}
else {
return reject(result);
}
}
});

@@ -91,0 +106,0 @@ });

7

package.json
{
"name": "api2pdf",
"version": "1.0.0",
"version": "1.1.0",
"description": "Api2Pdf is a powerful PDF generation API with no rate limits or file size constraints. Api2Pdf runs on AWS Lambda, a serverless architecture powered by Amazon to scale to millions of requests while being up to 90% cheaper than alternatives. Supports wkhtmltopdf, Headless Chrome, LibreOffice, and PDF Merge. You can also generate barcodes with ZXING (Zebra Crossing)",

@@ -31,3 +31,6 @@ "main": "index.js",

},
"homepage": "https://github.com/Api2Pdf/api2pdf.node#readme"
"homepage": "https://github.com/Api2Pdf/api2pdf.node#readme",
"dependencies": {
"request": "^2.88.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