@crawlee/utils 4.0.0-beta.134 → 4.0.0-beta.135

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.
package/internal.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  export * from './internals/blocked.js';
2
- export type { CheerioRoot, CheerioAPI, Cheerio, Element } from './internals/cheerio.js';
2
+ export type { CheerioAPI, Cheerio, Element } from './internals/cheerio.js';
3
3
  export { extractUrlsFromCheerio } from './internals/cheerio.js';
4
4
  export { tryAbsoluteURL } from './internals/extract-urls.js';
5
5
  export { URL_NO_COMMAS_REGEX, URL_WITH_COMMAS_REGEX } from './internals/general.js';
@@ -1,5 +1,4 @@
1
1
  import type { CheerioAPI } from 'cheerio';
2
- export type CheerioRoot = CheerioAPI;
3
2
  export type { CheerioAPI, Cheerio } from 'cheerio';
4
3
  export type { Element } from 'domhandler';
5
4
  /**
@@ -29,7 +28,7 @@ export type { Element } from 'domhandler';
29
28
  * @param htmlOrCheerioElement HTML text or parsed HTML represented using a [cheerio](https://www.npmjs.com/package/cheerio) function.
30
29
  * @return Plain text
31
30
  */
32
- export declare function htmlToText(htmlOrCheerioElement: string | CheerioRoot): Promise<string>;
31
+ export declare function htmlToText(htmlOrCheerioElement: string | CheerioAPI): Promise<string>;
33
32
  /**
34
33
  * Extracts URLs from a given Cheerio object.
35
34
  *
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@crawlee/utils",
3
- "version": "4.0.0-beta.134",
3
+ "version": "4.0.0-beta.135",
4
4
  "description": "A set of shared utilities that can be used by crawlers",
5
5
  "engines": {
6
6
  "node": ">=22.0.0"
@@ -43,8 +43,8 @@
43
43
  },
44
44
  "dependencies": {
45
45
  "@apify/ps-tree": "^1.2.0",
46
- "@crawlee/http-client": "4.0.0-beta.134",
47
- "@crawlee/types": "4.0.0-beta.134",
46
+ "@crawlee/http-client": "4.0.0-beta.135",
47
+ "@crawlee/types": "4.0.0-beta.135",
48
48
  "@types/sax": "^1.2.7",
49
49
  "cheerio": "^1.0.0",
50
50
  "domhandler": "^5.0.3",
@@ -63,5 +63,5 @@
63
63
  }
64
64
  }
65
65
  },
66
- "gitHead": "0f269d5b24ec2829f3d44c19a35973fa20d95999"
66
+ "gitHead": "ca0325880bbcc753d97506796e9bda3b35bca201"
67
67
  }