Comparing version 3.2.2 to 3.2.3
@@ -77,2 +77,3 @@ var crypto = require('crypto'); | ||
PARAMETER_INVALID_ENCRYPTION_KEY: 171, | ||
PARAMETER_INVALID_NO_ADS: 172, | ||
NETWORK_SERVER_OFFLINE: 200, | ||
@@ -381,3 +382,5 @@ NETWORK_GENERAL_ERROR: 201, | ||
'exportUrl': '', | ||
'encryptionKey': '' | ||
'encryptionKey': '', | ||
'noAds':false, | ||
'postData':'' | ||
}; | ||
@@ -425,3 +428,5 @@ | ||
'export': context['exportUrl'], | ||
'encryption': context['encryptionKey'] | ||
'encryption': context['encryptionKey'], | ||
'noads': _toInt(context['noAds']), | ||
'post': context['postData'] | ||
}; | ||
@@ -435,3 +440,4 @@ | ||
+ '|' + parseInt(context['requestAs']) + '|' + context['country'] + '|' + parseInt(context['quality']) + '|' + context['hideElement'] | ||
+ '|' + context['exportUrl'] + '|' + context['waitForElement'] + '|' + context['encryptionKey']; | ||
+ '|' + context['exportUrl'] + '|' + context['waitForElement'] + '|' + context['encryptionKey'] + '|' + _toInt(context['noAds']) | ||
+ '|' + context['postData']; | ||
@@ -465,3 +471,5 @@ return new Request(url, requestParams, _createFirstSignature(applicationSecret, target, isPost), signaturePartTwo, isPost, startDelay, target); | ||
'exportUrl': '', | ||
'encryptionKey': '' | ||
'encryptionKey': '', | ||
'noAds':false, | ||
'postData':'' | ||
}; | ||
@@ -513,3 +521,5 @@ | ||
'export': context['exportUrl'], | ||
'encryption': context['encryptionKey'] | ||
'encryption': context['encryptionKey'], | ||
'noads': _toInt(context['noAds']), | ||
'post': context['postData'] | ||
}; | ||
@@ -519,6 +529,9 @@ | ||
var signaturePartTwo = '|' + context['customId'] + '|' + _toInt(context['includeBackground']) + '|' + pagesize + '|' + orientation + '|' + context['customWaterMarkId'] | ||
+ '|' + _toInt(context['includeLinks']) + '|' + _toInt(context['includeOutline']) + '|' + context['title'] + '|' + context['coverUrl'] + '|' + parseInt(context['marginTop']) | ||
+ '|' + parseInt(context['marginLeft']) + '|' + parseInt(context['marginBottom']) + '|' + parseInt(context['marginRight']) + '|' + context['delay'] | ||
+ '|' + parseInt(context['requestAs']) + '|' + context['country'] + '|' + parseInt(context['quality']) + '|' + context['templateId'] + '|' + context['hideElement'] + '|' + context['targetElement'] + '|' + context['exportUrl'] + '|' + context['waitForElement'] + '|' + context['encryptionKey']; | ||
var signaturePartTwo = '|' + context['customId'] + '|' + _toInt(context['includeBackground']) + '|' + pagesize + '|' + orientation | ||
+ '|' + context['customWaterMarkId'] + '|' + _toInt(context['includeLinks']) + '|' + _toInt(context['includeOutline']) + '|' + context['title'] | ||
+ '|' + context['coverUrl'] + '|' + parseInt(context['marginTop']) + '|' + parseInt(context['marginLeft']) + '|' + parseInt(context['marginBottom']) | ||
+ '|' + parseInt(context['marginRight']) + '|' + context['delay'] + '|' + parseInt(context['requestAs']) + '|' + context['country'] | ||
+ '|' + parseInt(context['quality']) + '|' + context['templateId'] + '|' + context['hideElement'] + '|' + context['targetElement'] | ||
+ '|' + context['exportUrl'] + '|' + context['waitForElement'] + '|' + context['encryptionKey'] + '|' + _toInt(context['noAds']) | ||
+ '|' + context['postData']; | ||
@@ -539,3 +552,4 @@ return new Request(url, requestParams, _createFirstSignature(applicationSecret, target, isPost), signaturePartTwo, isPost, startDelay, target); | ||
'exportUrl': '', | ||
'encryptionKey': '' | ||
'encryptionKey': '', | ||
'postData':'' | ||
}; | ||
@@ -558,3 +572,4 @@ | ||
'export': context['exportUrl'], | ||
'encryption': context['encryptionKey'] | ||
'encryption': context['encryptionKey'], | ||
'post': context['postData'] | ||
}; | ||
@@ -565,4 +580,5 @@ | ||
this.signaturePartOne = applicationSecret + '|' + url + '|'; | ||
this.signaturePartTwo = '|' + context['customId'] + '|' + parseInt(context['tableNumberToInclude']) + '|' + _toInt(context['includeAllTables']) + '|' + _toInt(context['includeHeaderNames']) + '|' + context['targetElement'] | ||
+ '|' + context['format'] + '|' + parseInt(context['requestAs']) + '|' + context['country'] + '|' + context['exportUrl'] + '|' + context['encryptionKey']; | ||
this.signaturePartTwo = '|' + context['customId'] + '|' + parseInt(context['tableNumberToInclude']) + '|' + _toInt(context['includeAllTables']) | ||
+ '|' + _toInt(context['includeHeaderNames']) + '|' + context['targetElement'] + '|' + context['format'] + '|' + parseInt(context['requestAs']) | ||
+ '|' + context['country'] + '|' + context['exportUrl'] + '|' + context['encryptionKey'] + '|' + context['postData']; | ||
@@ -638,3 +654,5 @@ return new Request(url, requestParams, _createFirstSignature(applicationSecret, target, isPost), signaturePartTwo, isPost, startDelay, target); | ||
'transparent': 0, | ||
'encryptionKey': '' | ||
'encryptionKey': '', | ||
'noAds':false, | ||
'postData':'' | ||
}; | ||
@@ -668,3 +686,5 @@ | ||
'transparent': context['transparent'], | ||
'encryption': context['encryptionKey'] | ||
'encryption': context['encryptionKey'], | ||
'noads': _toInt(context['noAds']), | ||
'post': context['postData'] | ||
}; | ||
@@ -674,6 +694,7 @@ | ||
var signaturePartTwo = '|' + context['format'] + '|' + context['height'] + '|' + context['width'] + '|' + context['browserHeight'] + '|' + context['browserWidth'] | ||
+ '|' + context['customId'] + '|' + context['delay'] + '|' + context['targetElement'] + '|' + context['customWaterMarkId'] + '|' + _toInt(context['requestAs']) | ||
+ '|' + context['country'] + '|' + context['quality'] + '|' + context['hideElement'] + '|' + context['exportUrl'] + '|' + context['waitForElement'] | ||
+ '|' + _toInt(context['transparent']) + '|' + context['encryptionKey']; | ||
var signaturePartTwo = '|' + context['format'] + '|' + context['height'] + '|' + context['width'] + '|' + context['browserHeight'] | ||
+ '|' + context['browserWidth'] + '|' + context['customId'] + '|' + context['delay'] + '|' + context['targetElement'] | ||
+ '|' + context['customWaterMarkId'] + '|' + _toInt(context['requestAs']) + '|' + context['country'] + '|' + context['quality'] | ||
+ '|' + context['hideElement'] + '|' + context['exportUrl'] + '|' + context['waitForElement'] + '|' + _toInt(context['transparent']) | ||
+ '|' + context['encryptionKey'] + '|' + _toInt(context['noAds']) + '|' + context['postData']; | ||
@@ -680,0 +701,0 @@ return new Request(url, requestParams, _createFirstSignature(applicationSecret, target, isPost), signaturePartTwo, isPost, startDelay, target); |
{ | ||
"name": "grabzit", | ||
"description": "Automatically convert HTML or URL's into images, DOCX or PDF documents. Additionally convert online videos into animated GIF's or convert HTML tables to CSV.", | ||
"version": "3.2.2", | ||
"version": "3.2.3", | ||
"main": "./lib/grabzit", | ||
@@ -6,0 +6,0 @@ "keywords": [ |
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
46867
1071