@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.
@@ -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-WDud2pl9.d.mts.map
109
+ //# sourceMappingURL=cheerio-compat-Ck7utR5z.d.mts.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.
@@ -1647,4 +1647,4 @@ Object.assign(moduleCheerio, staticExports);
1647
1647
  moduleCheerio.version = version;
1648
1648
  export { staticContains as a, staticParseHTML as c, staticXml as d, update as f, parse as i, staticRoot as l, load as n, staticExports as o, moduleCheerio as r, staticHtml as s, evaluate as t, staticText as u };
1649
1649
 
1650
- //# sourceMappingURL=cheerio-compat-CVs7vojA.mjs.map
1650
+ //# sourceMappingURL=cheerio-compat-Dz2XQ2aX.mjs.map