xscrape 3.0.0 → 3.0.1
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/dist/index.d.cts +1 -1
- package/dist/index.d.ts +1 -1
- package/package.json +7 -6
package/dist/index.d.cts
CHANGED
|
@@ -11,7 +11,7 @@ interface ExtractMap {
|
|
|
11
11
|
[key: string]: ExtractValue;
|
|
12
12
|
}
|
|
13
13
|
|
|
14
|
-
type ScraperConfig<S extends StandardSchemaV1
|
|
14
|
+
type ScraperConfig<S extends StandardSchemaV1, R extends StandardSchemaV1.InferOutput<S> = StandardSchemaV1.InferOutput<S>> = {
|
|
15
15
|
schema: S;
|
|
16
16
|
extract: ExtractMap;
|
|
17
17
|
transform?: (data: StandardSchemaV1.InferOutput<S>) => Promise<R> | R;
|
package/dist/index.d.ts
CHANGED
|
@@ -11,7 +11,7 @@ interface ExtractMap {
|
|
|
11
11
|
[key: string]: ExtractValue;
|
|
12
12
|
}
|
|
13
13
|
|
|
14
|
-
type ScraperConfig<S extends StandardSchemaV1
|
|
14
|
+
type ScraperConfig<S extends StandardSchemaV1, R extends StandardSchemaV1.InferOutput<S> = StandardSchemaV1.InferOutput<S>> = {
|
|
15
15
|
schema: S;
|
|
16
16
|
extract: ExtractMap;
|
|
17
17
|
transform?: (data: StandardSchemaV1.InferOutput<S>) => Promise<R> | R;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "xscrape",
|
|
3
|
-
"version": "3.0.
|
|
3
|
+
"version": "3.0.1",
|
|
4
4
|
"description": "A flexible and powerful library designed to extract and transform data from HTML documents using user-defined schemas",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"exports": {
|
|
@@ -24,8 +24,8 @@
|
|
|
24
24
|
"crawler",
|
|
25
25
|
"scraper",
|
|
26
26
|
"zod",
|
|
27
|
-
"
|
|
28
|
-
"
|
|
27
|
+
"valibot",
|
|
28
|
+
"arktype",
|
|
29
29
|
"effect-schema"
|
|
30
30
|
],
|
|
31
31
|
"author": "Johnie Hjelm <johnie@hjelm.im>",
|
|
@@ -40,12 +40,13 @@
|
|
|
40
40
|
"homepage": "https://github.com/johnie/xscrape#readme",
|
|
41
41
|
"devDependencies": {
|
|
42
42
|
"@arethetypeswrong/cli": "^0.18.2",
|
|
43
|
+
"@biomejs/biome": "2.1.1",
|
|
43
44
|
"@changesets/changelog-github": "^0.5.1",
|
|
44
45
|
"@changesets/cli": "^2.29.5",
|
|
45
46
|
"arktype": "^2.1.20",
|
|
46
47
|
"effect": "^3.16.12",
|
|
47
48
|
"jsdom": "^26.1.0",
|
|
48
|
-
"
|
|
49
|
+
"lefthook": "^1.12.2",
|
|
49
50
|
"tsup": "^8.5.0",
|
|
50
51
|
"typescript": "^5.8.3",
|
|
51
52
|
"valibot": "^1.1.0",
|
|
@@ -64,8 +65,8 @@
|
|
|
64
65
|
"lint": "tsc",
|
|
65
66
|
"test": "vitest run",
|
|
66
67
|
"test:watch": "vitest",
|
|
67
|
-
"format": "
|
|
68
|
-
"check-format": "
|
|
68
|
+
"format": "biome format --write ./src",
|
|
69
|
+
"check-format": "biome check ./src",
|
|
69
70
|
"check-exports": "attw --pack .",
|
|
70
71
|
"local-release": "npm run ci && changeset version && changeset publish",
|
|
71
72
|
"release": "npm run ci && changeset publish"
|