Comparing version 1.0.0 to 1.1.0
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 @@ }); |
{ | ||
"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" | ||
} | ||
} |
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
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
No README
QualityPackage does not have a README. This may indicate a failed publish or a low quality package.
Found 1 instance in 1 package
13495
4
95
0
246
1
+ Addedrequest@^2.88.0
+ Addedajv@6.12.6(transitive)
+ Addedasn1@0.2.6(transitive)
+ Addedassert-plus@1.0.0(transitive)
+ Addedasynckit@0.4.0(transitive)
+ Addedaws-sign2@0.7.0(transitive)
+ Addedaws4@1.13.2(transitive)
+ Addedbcrypt-pbkdf@1.0.2(transitive)
+ Addedcaseless@0.12.0(transitive)
+ Addedcombined-stream@1.0.8(transitive)
+ Addedcore-util-is@1.0.2(transitive)
+ Addeddashdash@1.14.1(transitive)
+ Addeddelayed-stream@1.0.0(transitive)
+ Addedecc-jsbn@0.1.2(transitive)
+ Addedextend@3.0.2(transitive)
+ Addedextsprintf@1.3.0(transitive)
+ Addedfast-deep-equal@3.1.3(transitive)
+ Addedfast-json-stable-stringify@2.1.0(transitive)
+ Addedforever-agent@0.6.1(transitive)
+ Addedform-data@2.3.3(transitive)
+ Addedgetpass@0.1.7(transitive)
+ Addedhar-schema@2.0.0(transitive)
+ Addedhar-validator@5.1.5(transitive)
+ Addedhttp-signature@1.2.0(transitive)
+ Addedis-typedarray@1.0.0(transitive)
+ Addedisstream@0.1.2(transitive)
+ Addedjsbn@0.1.1(transitive)
+ Addedjson-schema@0.4.0(transitive)
+ Addedjson-schema-traverse@0.4.1(transitive)
+ Addedjson-stringify-safe@5.0.1(transitive)
+ Addedjsprim@1.4.2(transitive)
+ Addedmime-db@1.52.0(transitive)
+ Addedmime-types@2.1.35(transitive)
+ Addedoauth-sign@0.9.0(transitive)
+ Addedperformance-now@2.1.0(transitive)
+ Addedpsl@1.9.0(transitive)
+ Addedpunycode@2.3.1(transitive)
+ Addedqs@6.5.3(transitive)
+ Addedrequest@2.88.2(transitive)
+ Addedsafe-buffer@5.2.1(transitive)
+ Addedsafer-buffer@2.1.2(transitive)
+ Addedsshpk@1.18.0(transitive)
+ Addedtough-cookie@2.5.0(transitive)
+ Addedtunnel-agent@0.6.0(transitive)
+ Addedtweetnacl@0.14.5(transitive)
+ Addeduri-js@4.4.1(transitive)
+ Addeduuid@3.4.0(transitive)
+ Addedverror@1.10.0(transitive)