cartoon-catch
Advanced tools
Comparing version 2.1.2 to 2.1.3
@@ -51,3 +51,3 @@ "use strict"; | ||
exports.getHost = getHost; | ||
function getHtml(pageUrl, options) { | ||
function getHtml(pageUrl, options = {}) { | ||
return __awaiter(this, void 0, void 0, function* () { | ||
@@ -54,0 +54,0 @@ return yield node_fetch_1.default(pageUrl, { |
{ | ||
"name": "cartoon-catch", | ||
"version": "2.1.2", | ||
"version": "2.1.3", | ||
"description": "cartoon-catch", | ||
@@ -5,0 +5,0 @@ "main": "dist/main.js", |
@@ -21,3 +21,3 @@ import nodeFetch from 'node-fetch' | ||
async function getHtml(pageUrl: string, options: getHtmlInterface): Promise<string|null> { | ||
async function getHtml(pageUrl: string, options: getHtmlInterface = {}): Promise<string|null> { | ||
return await nodeFetch(pageUrl, { | ||
@@ -24,0 +24,0 @@ method: 'get', |
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
24368