Skip to content

Commit

Permalink
add fetch import
Browse files Browse the repository at this point in the history
  • Loading branch information
damcou committed Jun 2, 2021
1 parent 5f49025 commit 5f3d9af
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion dist/crawler-api-client.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
"use strict";
/* const fetch = require('node-fetch'); */
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
return new (P || (P = Promise))(function (resolve, reject) {
Expand Down Expand Up @@ -38,6 +37,7 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.CrawlerApiClient = void 0;
var fetch = require('node-fetch');
/**
* Example of class that can be used to hit the Crawler API.
*
Expand Down
2 changes: 1 addition & 1 deletion src/crawler-api-client.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* const fetch = require('node-fetch'); */
const fetch = require('node-fetch');

type SearchParams = { [key: string]: string | number | null };

Expand Down

0 comments on commit 5f3d9af

Please sign in to comment.