@wargas/crawler 0.0.2 → 0.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/dist/index.js +2 -2
  2. package/package.json +3 -2
package/dist/index.js CHANGED
@@ -23285,7 +23285,7 @@ class Crawler {
23285
23285
  client;
23286
23286
  cookieJar;
23287
23287
  html = ``;
23288
- document = parseHTML(``);
23288
+ document = parseHTML(``).document;
23289
23289
  static factory() {
23290
23290
  const instance = new Crawler;
23291
23291
  instance.cookieJar = new CookieJar(new cookie_file_store_default(`cookies.json`));
@@ -23295,7 +23295,7 @@ class Crawler {
23295
23295
  (res) => {
23296
23296
  if (typeof res.body == `string`) {
23297
23297
  instance.html = res.body;
23298
- instance.document = parseHTML(res.body);
23298
+ instance.document = parseHTML(res.body).document;
23299
23299
  }
23300
23300
  return res;
23301
23301
  }
package/package.json CHANGED
@@ -1,12 +1,13 @@
1
1
  {
2
2
  "name": "@wargas/crawler",
3
- "version": "0.0.2",
3
+ "version": "0.0.3",
4
4
  "module": "index.ts",
5
5
  "main": "dist/index.js",
6
6
  "type": "module",
7
7
  "private": false,
8
8
  "scripts": {
9
- "build": "bun build index.ts --target node --outdir dist"
9
+ "build": "bun build index.ts --target node --outdir dist",
10
+ "publish": "npm publish --tag latest --access public"
10
11
  },
11
12
  "devDependencies": {
12
13
  "@types/bun": "latest"