@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
package/Cargo.lock
CHANGED
package/Cargo.toml
CHANGED
package/THIRD_PARTY_NOTICES.md
CHANGED
|
@@ -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: `
|
|
7
|
+
Cargo.lock SHA-256: `186eb2f8a3673931322fe1b5ff3fd71159eeae8095dd7d38a47fb2c214bb1d2d`.
|
|
8
8
|
|
|
9
9
|
## Source availability
|
|
10
10
|
|
|
Binary file
|
package/cheerox.darwin-x64.node
CHANGED
|
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-
|
|
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-
|
|
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.
|
|
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-
|
|
1721
|
+
//# sourceMappingURL=cheerio-compat-BRbgK33C.cjs.map
|