@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 +1 -1
- package/Cargo.toml +1 -1
- package/THIRD_PARTY_NOTICES.md +1 -1
- package/cheerox.darwin-arm64.node +0 -0
- package/cheerox.darwin-x64.node +0 -0
- package/cheerox.linux-arm64-gnu.node +0 -0
- package/cheerox.linux-arm64-musl.node +0 -0
- package/cheerox.linux-x64-gnu.node +0 -0
- package/cheerox.linux-x64-musl.node +0 -0
- package/cheerox.win32-arm64-msvc.node +0 -0
- package/cheerox.win32-x64-msvc.node +0 -0
- package/dist/{cheerio-compat-C6M5aNE9.d.cts → cheerio-compat-6yCbWRc-.d.cts} +11 -1
- package/dist/{cheerio-compat-C6M5aNE9.d.ts → cheerio-compat-6yCbWRc-.d.ts} +11 -1
- package/dist/{cheerio-compat-BeDR8TQZ.cjs → cheerio-compat-BRbgK33C.cjs} +2 -2
- package/dist/{cheerio-compat-BeDR8TQZ.cjs.map → cheerio-compat-BRbgK33C.cjs.map} +1 -1
- package/dist/{cheerio-compat-WDud2pl9.d.mts → cheerio-compat-Ck7utR5z.d.mts} +11 -1
- package/dist/{cheerio-compat-CVs7vojA.mjs → cheerio-compat-Dz2XQ2aX.mjs} +2 -2
- package/dist/{cheerio-compat-CVs7vojA.mjs.map → cheerio-compat-Dz2XQ2aX.mjs.map} +1 -1
- package/dist/cheerio-compat.cjs +1 -1
- package/dist/cheerio-compat.d.cts +1 -1
- package/dist/cheerio-compat.d.mts +1 -1
- package/dist/cheerio-compat.d.ts +1 -1
- package/dist/cheerio-compat.mjs +1 -1
- package/dist/index.d.mts +1 -1
- package/package.json +1 -1
- package/src/cheerio-compat/types.ts +10 -0
|
@@ -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-
|
|
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.
|
|
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-
|
|
1650
|
+
//# sourceMappingURL=cheerio-compat-Dz2XQ2aX.mjs.map
|