@dvaji/cheerox 0.1.4 → 0.1.5

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/Cargo.lock CHANGED
@@ -41,7 +41,7 @@ checksum = "4e7648175b45a9a48536d676f68d918270699102aa8dab5496df06904c914600"
41
41
 
42
42
  [[package]]
43
43
  name = "cheerox"
44
- version = "0.1.4"
44
+ version = "0.1.5"
45
45
  dependencies = [
46
46
  "ego-tree",
47
47
  "html5ever",
package/Cargo.toml CHANGED
@@ -1,6 +1,6 @@
1
1
  [package]
2
2
  name = "cheerox"
3
- version = "0.1.4"
3
+ version = "0.1.5"
4
4
  edition = "2021"
5
5
  description = "Rust HTML5 parser and CSS selector engine for the cheerox Node.js package"
6
6
  license = "MIT"
@@ -4,7 +4,7 @@ This file preserves third-party license and attribution notices for the Rust nat
4
4
 
5
5
  Generated by `node scripts/generate-notices.mjs` from `cargo metadata --locked`, crate license files, and the pinned supplemental sources recorded in `scripts/notices/sources.json`. It includes build dependencies and dependencies for all target platforms; a particular binary may use a subset. Identical notice texts are reproduced once and referenced below. The html5ever, markup5ever and html5gum crates contain local observer-hook and opt-in UTF-16 transport patches, and the scraper crate carries a vector-backed attribute store; their complete patched source and original notices are included in `native/vendor`. Other dependency source files are unmodified.
6
6
 
7
- Cargo.lock SHA-256: `ede430f273e952696056568699486e756cdd90b4f3d222657952e017f72732da`.
7
+ Cargo.lock SHA-256: `186eb2f8a3673931322fe1b5ff3fd71159eeae8095dd7d38a47fb2c214bb1d2d`.
8
8
 
9
9
  ## Source availability
10
10
 
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
@@ -23,6 +23,16 @@ interface CheerioInstance {
23
23
  prevObject?: CheerioInstance;
24
24
  [index: number]: LegacyNode;
25
25
  [Symbol.iterator](): Iterator<LegacyNode>;
26
+ /**
27
+ * Iteration callbacks are declared so consumers with noImplicitAny keep
28
+ * contextual parameter types, as with cheerio 1.x. The rest of the 0.22
29
+ * dynamic surface (plugins, ad-hoc fields) stays available through the
30
+ * index signature below.
31
+ */
32
+ each(callback: (index: number, element: LegacyNode) => void | boolean): CheerioInstance;
33
+ map(callback: (index: number, element: LegacyNode) => unknown): CheerioInstance;
34
+ filter(selector: string): CheerioInstance;
35
+ filter(callback: (index: number, element: LegacyNode) => boolean): CheerioInstance;
26
36
  [key: string]: any;
27
37
  }
28
38
  type CheerioConstructor = {
@@ -96,4 +106,4 @@ declare const staticExports: {
96
106
  };
97
107
  declare const moduleCheerio: CheerioStatic;
98
108
  export { LegacyOptions as C, LegacyNode as S, CheerioInstance as _, staticContains as a, Document as b, staticParseHTML as c, staticXml as d, update as f, CheerioConstructor as g, CheerioAPI as h, parse as i, staticRoot as l, Cheerio as m, load as n, staticExports as o, AnyNode as p, moduleCheerio as r, staticHtml as s, evaluate as t, staticText as u, CheerioPrototype as v, Element as x, CheerioStatic as y };
99
- //# sourceMappingURL=cheerio-compat-C6M5aNE9.d.cts.map
109
+ //# sourceMappingURL=cheerio-compat-6yCbWRc-.d.cts.map
@@ -23,6 +23,16 @@ interface CheerioInstance {
23
23
  prevObject?: CheerioInstance;
24
24
  [index: number]: LegacyNode;
25
25
  [Symbol.iterator](): Iterator<LegacyNode>;
26
+ /**
27
+ * Iteration callbacks are declared so consumers with noImplicitAny keep
28
+ * contextual parameter types, as with cheerio 1.x. The rest of the 0.22
29
+ * dynamic surface (plugins, ad-hoc fields) stays available through the
30
+ * index signature below.
31
+ */
32
+ each(callback: (index: number, element: LegacyNode) => void | boolean): CheerioInstance;
33
+ map(callback: (index: number, element: LegacyNode) => unknown): CheerioInstance;
34
+ filter(selector: string): CheerioInstance;
35
+ filter(callback: (index: number, element: LegacyNode) => boolean): CheerioInstance;
26
36
  [key: string]: any;
27
37
  }
28
38
  type CheerioConstructor = {
@@ -96,4 +106,4 @@ declare const staticExports: {
96
106
  };
97
107
  declare const moduleCheerio: CheerioStatic;
98
108
  export { LegacyOptions as C, LegacyNode as S, CheerioInstance as _, staticContains as a, Document as b, staticParseHTML as c, staticXml as d, update as f, CheerioConstructor as g, CheerioAPI as h, parse as i, staticRoot as l, Cheerio as m, load as n, staticExports as o, AnyNode as p, moduleCheerio as r, staticHtml as s, evaluate as t, staticText as u, CheerioPrototype as v, Element as x, CheerioStatic as y };
99
- //# sourceMappingURL=cheerio-compat-C6M5aNE9.d.cts.map
109
+ //# sourceMappingURL=cheerio-compat-6yCbWRc-.d.cts.map
@@ -251,7 +251,7 @@ function renderText(elem, opts, parentName) {
251
251
  return data;
252
252
  }
253
253
  // package.json
254
- var version = "0.1.4";
254
+ var version = "0.1.5";
255
255
  // src/cheerio-compat.ts
256
256
  /**
257
257
  * The Cheerio 0.22.0 facade, backed by the Rust engine.
@@ -1718,4 +1718,4 @@ Object.defineProperty(exports, "update", {
1718
1718
  }
1719
1719
  });
1720
1720
 
1721
- //# sourceMappingURL=cheerio-compat-BeDR8TQZ.cjs.map
1721
+ //# sourceMappingURL=cheerio-compat-BRbgK33C.cjs.map