Skip to content

Commit 73c6b7a

Browse files
committed
clarify debug instructions
update tsconfig to ESNext modules
1 parent b737bf9 commit 73c6b7a

File tree

3 files changed

+8
-4
lines changed

3 files changed

+8
-4
lines changed

README.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,16 +49,20 @@ For Python see [Scrapfly Python SDK](https://github.com/scrapfly/python-scrapfly
4949
To enable debug logs set Scrapfly's log level to `"DEBUG"`:
5050

5151
```javascript
52+
import { log } from 'scrapfly-sdk';
53+
5254
log.setLevel('DEBUG');
5355
```
5456

5557
Additionally, set `debug=true` in `ScrapeConfig` to access debug information in [Scrapfly web dashboard](https://scrapfly.io/dashboard):
5658

5759
```typescript
60+
import { ScrapflyClient } from 'scrapfly-sdk';
61+
5862
new ScrapeConfig({
5963
url: 'https://web-scraping.dev/product/1',
6064
debug: true,
61-
// ^ enable debug information
65+
// ^ enable debug information - this will show extra details on web dashboard
6266
});
6367
```
6468

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
"build/src"
2222
],
2323
"engines": {
24-
"node": ">= 18.12 <19"
24+
"node": ">= 18 <19"
2525
},
2626
"devDependencies": {
2727
"@types/node": "~18",

tsconfig.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@
44
"target": "es2022",
55
"types": ["node", "jest"],
66
"skipLibCheck": true,
7-
"module": "node16",
7+
"module": "ESNext",
88
"lib": ["ES2022"],
9-
"moduleResolution": "node16",
9+
"moduleResolution": "Node",
1010
"rootDir": ".",
1111
"outDir": "build",
1212
"allowSyntheticDefaultImports": true,

0 commit comments

Comments
 (0)