@kreuzberg/kreuzcrawl 0.1.2 → 0.3.0-rc.2

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.toml CHANGED
@@ -1,6 +1,6 @@
1
1
  [package]
2
2
  name = "kreuzcrawl-node"
3
- version = "0.1.2"
3
+ version = "0.3.0-rc.2"
4
4
  edition = "2024"
5
5
  license = "Elastic-2.0"
6
6
 
package/index.d.ts CHANGED
@@ -86,6 +86,21 @@ export interface JsCitationResult {
86
86
  references?: Array<JsCitationReference>
87
87
  }
88
88
 
89
+ export interface JsContentConfig {
90
+ outputFormat?: string
91
+ preprocessingPreset?: string
92
+ removeNavigation?: boolean
93
+ removeForms?: boolean
94
+ stripTags?: Array<string>
95
+ preserveTags?: Array<string>
96
+ excludeSelectors?: Array<string>
97
+ skipImages?: boolean
98
+ maxDepth?: number
99
+ wrap?: boolean
100
+ wrapWidth?: number
101
+ includeDocumentStructure?: boolean
102
+ }
103
+
89
104
  export interface JsCookieInfo {
90
105
  name?: string
91
106
  value?: string
@@ -112,8 +127,8 @@ export interface JsCrawlConfig {
112
127
  cookiesEnabled?: boolean
113
128
  auth?: JsAuthConfig
114
129
  maxBodySize?: number
115
- mainContentOnly?: boolean
116
130
  removeTags?: Array<string>
131
+ content?: JsContentConfig
117
132
  mapLimit?: number
118
133
  mapSearch?: string
119
134
  downloadAssets?: boolean
@@ -349,7 +364,6 @@ export interface JsScrapeResult {
349
364
  isPdf?: boolean
350
365
  wasSkipped?: boolean
351
366
  detectedCharset?: string
352
- mainContentOnly?: boolean
353
367
  authHeaderSent?: boolean
354
368
  responseMeta?: JsResponseMeta
355
369
  assets?: Array<JsDownloadedAsset>
package/index.js CHANGED
@@ -77,8 +77,8 @@ function requireNative() {
77
77
  try {
78
78
  const binding = require('@kreuzberg/kreuzcrawl-android-arm64')
79
79
  const bindingPackageVersion = require('@kreuzberg/kreuzcrawl-android-arm64/package.json').version
80
- if (bindingPackageVersion !== '0.1.2' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
81
- throw new Error(`Native binding package version mismatch, expected 0.1.2 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
80
+ if (bindingPackageVersion !== '0.3.0-rc.2' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
81
+ throw new Error(`Native binding package version mismatch, expected 0.3.0-rc.2 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
82
82
  }
83
83
  return binding
84
84
  } catch (e) {
@@ -93,8 +93,8 @@ function requireNative() {
93
93
  try {
94
94
  const binding = require('@kreuzberg/kreuzcrawl-android-arm-eabi')
95
95
  const bindingPackageVersion = require('@kreuzberg/kreuzcrawl-android-arm-eabi/package.json').version
96
- if (bindingPackageVersion !== '0.1.2' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
97
- throw new Error(`Native binding package version mismatch, expected 0.1.2 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
96
+ if (bindingPackageVersion !== '0.3.0-rc.2' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
97
+ throw new Error(`Native binding package version mismatch, expected 0.3.0-rc.2 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
98
98
  }
99
99
  return binding
100
100
  } catch (e) {
@@ -114,8 +114,8 @@ function requireNative() {
114
114
  try {
115
115
  const binding = require('@kreuzberg/kreuzcrawl-win32-x64-gnu')
116
116
  const bindingPackageVersion = require('@kreuzberg/kreuzcrawl-win32-x64-gnu/package.json').version
117
- if (bindingPackageVersion !== '0.1.2' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
118
- throw new Error(`Native binding package version mismatch, expected 0.1.2 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
117
+ if (bindingPackageVersion !== '0.3.0-rc.2' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
118
+ throw new Error(`Native binding package version mismatch, expected 0.3.0-rc.2 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
119
119
  }
120
120
  return binding
121
121
  } catch (e) {
@@ -130,8 +130,8 @@ function requireNative() {
130
130
  try {
131
131
  const binding = require('@kreuzberg/kreuzcrawl-win32-x64-msvc')
132
132
  const bindingPackageVersion = require('@kreuzberg/kreuzcrawl-win32-x64-msvc/package.json').version
133
- if (bindingPackageVersion !== '0.1.2' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
134
- throw new Error(`Native binding package version mismatch, expected 0.1.2 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
133
+ if (bindingPackageVersion !== '0.3.0-rc.2' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
134
+ throw new Error(`Native binding package version mismatch, expected 0.3.0-rc.2 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
135
135
  }
136
136
  return binding
137
137
  } catch (e) {
@@ -147,8 +147,8 @@ function requireNative() {
147
147
  try {
148
148
  const binding = require('@kreuzberg/kreuzcrawl-win32-ia32-msvc')
149
149
  const bindingPackageVersion = require('@kreuzberg/kreuzcrawl-win32-ia32-msvc/package.json').version
150
- if (bindingPackageVersion !== '0.1.2' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
151
- throw new Error(`Native binding package version mismatch, expected 0.1.2 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
150
+ if (bindingPackageVersion !== '0.3.0-rc.2' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
151
+ throw new Error(`Native binding package version mismatch, expected 0.3.0-rc.2 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
152
152
  }
153
153
  return binding
154
154
  } catch (e) {
@@ -163,8 +163,8 @@ function requireNative() {
163
163
  try {
164
164
  const binding = require('@kreuzberg/kreuzcrawl-win32-arm64-msvc')
165
165
  const bindingPackageVersion = require('@kreuzberg/kreuzcrawl-win32-arm64-msvc/package.json').version
166
- if (bindingPackageVersion !== '0.1.2' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
167
- throw new Error(`Native binding package version mismatch, expected 0.1.2 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
166
+ if (bindingPackageVersion !== '0.3.0-rc.2' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
167
+ throw new Error(`Native binding package version mismatch, expected 0.3.0-rc.2 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
168
168
  }
169
169
  return binding
170
170
  } catch (e) {
@@ -182,8 +182,8 @@ function requireNative() {
182
182
  try {
183
183
  const binding = require('@kreuzberg/kreuzcrawl-darwin-universal')
184
184
  const bindingPackageVersion = require('@kreuzberg/kreuzcrawl-darwin-universal/package.json').version
185
- if (bindingPackageVersion !== '0.1.2' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
186
- throw new Error(`Native binding package version mismatch, expected 0.1.2 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
185
+ if (bindingPackageVersion !== '0.3.0-rc.2' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
186
+ throw new Error(`Native binding package version mismatch, expected 0.3.0-rc.2 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
187
187
  }
188
188
  return binding
189
189
  } catch (e) {
@@ -198,8 +198,8 @@ function requireNative() {
198
198
  try {
199
199
  const binding = require('@kreuzberg/kreuzcrawl-darwin-x64')
200
200
  const bindingPackageVersion = require('@kreuzberg/kreuzcrawl-darwin-x64/package.json').version
201
- if (bindingPackageVersion !== '0.1.2' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
202
- throw new Error(`Native binding package version mismatch, expected 0.1.2 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
201
+ if (bindingPackageVersion !== '0.3.0-rc.2' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
202
+ throw new Error(`Native binding package version mismatch, expected 0.3.0-rc.2 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
203
203
  }
204
204
  return binding
205
205
  } catch (e) {
@@ -214,8 +214,8 @@ function requireNative() {
214
214
  try {
215
215
  const binding = require('@kreuzberg/kreuzcrawl-darwin-arm64')
216
216
  const bindingPackageVersion = require('@kreuzberg/kreuzcrawl-darwin-arm64/package.json').version
217
- if (bindingPackageVersion !== '0.1.2' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
218
- throw new Error(`Native binding package version mismatch, expected 0.1.2 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
217
+ if (bindingPackageVersion !== '0.3.0-rc.2' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
218
+ throw new Error(`Native binding package version mismatch, expected 0.3.0-rc.2 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
219
219
  }
220
220
  return binding
221
221
  } catch (e) {
@@ -234,8 +234,8 @@ function requireNative() {
234
234
  try {
235
235
  const binding = require('@kreuzberg/kreuzcrawl-freebsd-x64')
236
236
  const bindingPackageVersion = require('@kreuzberg/kreuzcrawl-freebsd-x64/package.json').version
237
- if (bindingPackageVersion !== '0.1.2' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
238
- throw new Error(`Native binding package version mismatch, expected 0.1.2 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
237
+ if (bindingPackageVersion !== '0.3.0-rc.2' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
238
+ throw new Error(`Native binding package version mismatch, expected 0.3.0-rc.2 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
239
239
  }
240
240
  return binding
241
241
  } catch (e) {
@@ -250,8 +250,8 @@ function requireNative() {
250
250
  try {
251
251
  const binding = require('@kreuzberg/kreuzcrawl-freebsd-arm64')
252
252
  const bindingPackageVersion = require('@kreuzberg/kreuzcrawl-freebsd-arm64/package.json').version
253
- if (bindingPackageVersion !== '0.1.2' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
254
- throw new Error(`Native binding package version mismatch, expected 0.1.2 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
253
+ if (bindingPackageVersion !== '0.3.0-rc.2' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
254
+ throw new Error(`Native binding package version mismatch, expected 0.3.0-rc.2 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
255
255
  }
256
256
  return binding
257
257
  } catch (e) {
@@ -271,8 +271,8 @@ function requireNative() {
271
271
  try {
272
272
  const binding = require('@kreuzberg/kreuzcrawl-linux-x64-musl')
273
273
  const bindingPackageVersion = require('@kreuzberg/kreuzcrawl-linux-x64-musl/package.json').version
274
- if (bindingPackageVersion !== '0.1.2' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
275
- throw new Error(`Native binding package version mismatch, expected 0.1.2 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
274
+ if (bindingPackageVersion !== '0.3.0-rc.2' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
275
+ throw new Error(`Native binding package version mismatch, expected 0.3.0-rc.2 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
276
276
  }
277
277
  return binding
278
278
  } catch (e) {
@@ -287,8 +287,8 @@ function requireNative() {
287
287
  try {
288
288
  const binding = require('@kreuzberg/kreuzcrawl-linux-x64-gnu')
289
289
  const bindingPackageVersion = require('@kreuzberg/kreuzcrawl-linux-x64-gnu/package.json').version
290
- if (bindingPackageVersion !== '0.1.2' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
291
- throw new Error(`Native binding package version mismatch, expected 0.1.2 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
290
+ if (bindingPackageVersion !== '0.3.0-rc.2' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
291
+ throw new Error(`Native binding package version mismatch, expected 0.3.0-rc.2 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
292
292
  }
293
293
  return binding
294
294
  } catch (e) {
@@ -305,8 +305,8 @@ function requireNative() {
305
305
  try {
306
306
  const binding = require('@kreuzberg/kreuzcrawl-linux-arm64-musl')
307
307
  const bindingPackageVersion = require('@kreuzberg/kreuzcrawl-linux-arm64-musl/package.json').version
308
- if (bindingPackageVersion !== '0.1.2' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
309
- throw new Error(`Native binding package version mismatch, expected 0.1.2 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
308
+ if (bindingPackageVersion !== '0.3.0-rc.2' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
309
+ throw new Error(`Native binding package version mismatch, expected 0.3.0-rc.2 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
310
310
  }
311
311
  return binding
312
312
  } catch (e) {
@@ -321,8 +321,8 @@ function requireNative() {
321
321
  try {
322
322
  const binding = require('@kreuzberg/kreuzcrawl-linux-arm64-gnu')
323
323
  const bindingPackageVersion = require('@kreuzberg/kreuzcrawl-linux-arm64-gnu/package.json').version
324
- if (bindingPackageVersion !== '0.1.2' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
325
- throw new Error(`Native binding package version mismatch, expected 0.1.2 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
324
+ if (bindingPackageVersion !== '0.3.0-rc.2' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
325
+ throw new Error(`Native binding package version mismatch, expected 0.3.0-rc.2 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
326
326
  }
327
327
  return binding
328
328
  } catch (e) {
@@ -339,8 +339,8 @@ function requireNative() {
339
339
  try {
340
340
  const binding = require('@kreuzberg/kreuzcrawl-linux-arm-musleabihf')
341
341
  const bindingPackageVersion = require('@kreuzberg/kreuzcrawl-linux-arm-musleabihf/package.json').version
342
- if (bindingPackageVersion !== '0.1.2' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
343
- throw new Error(`Native binding package version mismatch, expected 0.1.2 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
342
+ if (bindingPackageVersion !== '0.3.0-rc.2' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
343
+ throw new Error(`Native binding package version mismatch, expected 0.3.0-rc.2 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
344
344
  }
345
345
  return binding
346
346
  } catch (e) {
@@ -355,8 +355,8 @@ function requireNative() {
355
355
  try {
356
356
  const binding = require('@kreuzberg/kreuzcrawl-linux-arm-gnueabihf')
357
357
  const bindingPackageVersion = require('@kreuzberg/kreuzcrawl-linux-arm-gnueabihf/package.json').version
358
- if (bindingPackageVersion !== '0.1.2' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
359
- throw new Error(`Native binding package version mismatch, expected 0.1.2 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
358
+ if (bindingPackageVersion !== '0.3.0-rc.2' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
359
+ throw new Error(`Native binding package version mismatch, expected 0.3.0-rc.2 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
360
360
  }
361
361
  return binding
362
362
  } catch (e) {
@@ -373,8 +373,8 @@ function requireNative() {
373
373
  try {
374
374
  const binding = require('@kreuzberg/kreuzcrawl-linux-loong64-musl')
375
375
  const bindingPackageVersion = require('@kreuzberg/kreuzcrawl-linux-loong64-musl/package.json').version
376
- if (bindingPackageVersion !== '0.1.2' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
377
- throw new Error(`Native binding package version mismatch, expected 0.1.2 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
376
+ if (bindingPackageVersion !== '0.3.0-rc.2' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
377
+ throw new Error(`Native binding package version mismatch, expected 0.3.0-rc.2 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
378
378
  }
379
379
  return binding
380
380
  } catch (e) {
@@ -389,8 +389,8 @@ function requireNative() {
389
389
  try {
390
390
  const binding = require('@kreuzberg/kreuzcrawl-linux-loong64-gnu')
391
391
  const bindingPackageVersion = require('@kreuzberg/kreuzcrawl-linux-loong64-gnu/package.json').version
392
- if (bindingPackageVersion !== '0.1.2' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
393
- throw new Error(`Native binding package version mismatch, expected 0.1.2 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
392
+ if (bindingPackageVersion !== '0.3.0-rc.2' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
393
+ throw new Error(`Native binding package version mismatch, expected 0.3.0-rc.2 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
394
394
  }
395
395
  return binding
396
396
  } catch (e) {
@@ -407,8 +407,8 @@ function requireNative() {
407
407
  try {
408
408
  const binding = require('@kreuzberg/kreuzcrawl-linux-riscv64-musl')
409
409
  const bindingPackageVersion = require('@kreuzberg/kreuzcrawl-linux-riscv64-musl/package.json').version
410
- if (bindingPackageVersion !== '0.1.2' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
411
- throw new Error(`Native binding package version mismatch, expected 0.1.2 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
410
+ if (bindingPackageVersion !== '0.3.0-rc.2' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
411
+ throw new Error(`Native binding package version mismatch, expected 0.3.0-rc.2 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
412
412
  }
413
413
  return binding
414
414
  } catch (e) {
@@ -423,8 +423,8 @@ function requireNative() {
423
423
  try {
424
424
  const binding = require('@kreuzberg/kreuzcrawl-linux-riscv64-gnu')
425
425
  const bindingPackageVersion = require('@kreuzberg/kreuzcrawl-linux-riscv64-gnu/package.json').version
426
- if (bindingPackageVersion !== '0.1.2' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
427
- throw new Error(`Native binding package version mismatch, expected 0.1.2 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
426
+ if (bindingPackageVersion !== '0.3.0-rc.2' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
427
+ throw new Error(`Native binding package version mismatch, expected 0.3.0-rc.2 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
428
428
  }
429
429
  return binding
430
430
  } catch (e) {
@@ -440,8 +440,8 @@ function requireNative() {
440
440
  try {
441
441
  const binding = require('@kreuzberg/kreuzcrawl-linux-ppc64-gnu')
442
442
  const bindingPackageVersion = require('@kreuzberg/kreuzcrawl-linux-ppc64-gnu/package.json').version
443
- if (bindingPackageVersion !== '0.1.2' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
444
- throw new Error(`Native binding package version mismatch, expected 0.1.2 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
443
+ if (bindingPackageVersion !== '0.3.0-rc.2' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
444
+ throw new Error(`Native binding package version mismatch, expected 0.3.0-rc.2 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
445
445
  }
446
446
  return binding
447
447
  } catch (e) {
@@ -456,8 +456,8 @@ function requireNative() {
456
456
  try {
457
457
  const binding = require('@kreuzberg/kreuzcrawl-linux-s390x-gnu')
458
458
  const bindingPackageVersion = require('@kreuzberg/kreuzcrawl-linux-s390x-gnu/package.json').version
459
- if (bindingPackageVersion !== '0.1.2' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
460
- throw new Error(`Native binding package version mismatch, expected 0.1.2 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
459
+ if (bindingPackageVersion !== '0.3.0-rc.2' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
460
+ throw new Error(`Native binding package version mismatch, expected 0.3.0-rc.2 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
461
461
  }
462
462
  return binding
463
463
  } catch (e) {
@@ -476,8 +476,8 @@ function requireNative() {
476
476
  try {
477
477
  const binding = require('@kreuzberg/kreuzcrawl-openharmony-arm64')
478
478
  const bindingPackageVersion = require('@kreuzberg/kreuzcrawl-openharmony-arm64/package.json').version
479
- if (bindingPackageVersion !== '0.1.2' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
480
- throw new Error(`Native binding package version mismatch, expected 0.1.2 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
479
+ if (bindingPackageVersion !== '0.3.0-rc.2' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
480
+ throw new Error(`Native binding package version mismatch, expected 0.3.0-rc.2 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
481
481
  }
482
482
  return binding
483
483
  } catch (e) {
@@ -492,8 +492,8 @@ function requireNative() {
492
492
  try {
493
493
  const binding = require('@kreuzberg/kreuzcrawl-openharmony-x64')
494
494
  const bindingPackageVersion = require('@kreuzberg/kreuzcrawl-openharmony-x64/package.json').version
495
- if (bindingPackageVersion !== '0.1.2' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
496
- throw new Error(`Native binding package version mismatch, expected 0.1.2 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
495
+ if (bindingPackageVersion !== '0.3.0-rc.2' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
496
+ throw new Error(`Native binding package version mismatch, expected 0.3.0-rc.2 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
497
497
  }
498
498
  return binding
499
499
  } catch (e) {
@@ -508,8 +508,8 @@ function requireNative() {
508
508
  try {
509
509
  const binding = require('@kreuzberg/kreuzcrawl-openharmony-arm')
510
510
  const bindingPackageVersion = require('@kreuzberg/kreuzcrawl-openharmony-arm/package.json').version
511
- if (bindingPackageVersion !== '0.1.2' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
512
- throw new Error(`Native binding package version mismatch, expected 0.1.2 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
511
+ if (bindingPackageVersion !== '0.3.0-rc.2' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
512
+ throw new Error(`Native binding package version mismatch, expected 0.3.0-rc.2 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
513
513
  }
514
514
  return binding
515
515
  } catch (e) {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kreuzberg/kreuzcrawl-darwin-arm64",
3
- "version": "0.1.2",
3
+ "version": "0.3.0-rc.2",
4
4
  "cpu": [
5
5
  "arm64"
6
6
  ],
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kreuzberg/kreuzcrawl-linux-arm64-gnu",
3
- "version": "0.1.2",
3
+ "version": "0.3.0-rc.2",
4
4
  "cpu": [
5
5
  "arm64"
6
6
  ],
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kreuzberg/kreuzcrawl-linux-x64-gnu",
3
- "version": "0.1.2",
3
+ "version": "0.3.0-rc.2",
4
4
  "cpu": [
5
5
  "x64"
6
6
  ],
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kreuzberg/kreuzcrawl-win32-x64-msvc",
3
- "version": "0.1.2",
3
+ "version": "0.3.0-rc.2",
4
4
  "cpu": [
5
5
  "x64"
6
6
  ],
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kreuzberg/kreuzcrawl",
3
- "version": "0.1.2",
3
+ "version": "0.3.0-rc.2",
4
4
  "main": "index.js",
5
5
  "types": "index.d.ts",
6
6
  "repository": {
@@ -35,9 +35,9 @@
35
35
  "@napi-rs/cli": "^3.6.2"
36
36
  },
37
37
  "optionalDependencies": {
38
- "@kreuzberg/kreuzcrawl-darwin-arm64": "0.1.2",
39
- "@kreuzberg/kreuzcrawl-linux-arm64-gnu": "0.1.2",
40
- "@kreuzberg/kreuzcrawl-linux-x64-gnu": "0.1.2",
41
- "@kreuzberg/kreuzcrawl-win32-x64-msvc": "0.1.2"
38
+ "@kreuzberg/kreuzcrawl-darwin-arm64": "0.3.0-rc.2",
39
+ "@kreuzberg/kreuzcrawl-linux-arm64-gnu": "0.3.0-rc.2",
40
+ "@kreuzberg/kreuzcrawl-linux-x64-gnu": "0.3.0-rc.2",
41
+ "@kreuzberg/kreuzcrawl-win32-x64-msvc": "0.3.0-rc.2"
42
42
  }
43
43
  }
package/src/lib.rs CHANGED
@@ -1,4 +1,5 @@
1
1
  // This file is auto-generated by alef. DO NOT EDIT.
2
+ // alef:hash:0da84e2b56079336fcd7ea13caec3d9f6a0380fee5deafad3d4bc680a78de242
2
3
  // Re-generate with: alef generate
3
4
  #![allow(dead_code, unused_imports, unused_variables)]
4
5
  #![allow(
@@ -48,6 +49,34 @@ pub struct JsProxyConfig {
48
49
  pub password: Option<String>,
49
50
  }
50
51
 
52
+ #[derive(Clone, Default, serde::Serialize, serde::Deserialize)]
53
+ #[napi(object)]
54
+ pub struct JsContentConfig {
55
+ #[napi(js_name = "outputFormat")]
56
+ pub output_format: Option<String>,
57
+ #[napi(js_name = "preprocessingPreset")]
58
+ pub preprocessing_preset: Option<String>,
59
+ #[napi(js_name = "removeNavigation")]
60
+ pub remove_navigation: Option<bool>,
61
+ #[napi(js_name = "removeForms")]
62
+ pub remove_forms: Option<bool>,
63
+ #[napi(js_name = "stripTags")]
64
+ pub strip_tags: Option<Vec<String>>,
65
+ #[napi(js_name = "preserveTags")]
66
+ pub preserve_tags: Option<Vec<String>>,
67
+ #[napi(js_name = "excludeSelectors")]
68
+ pub exclude_selectors: Option<Vec<String>>,
69
+ #[napi(js_name = "skipImages")]
70
+ pub skip_images: Option<bool>,
71
+ #[napi(js_name = "maxDepth")]
72
+ pub max_depth: Option<i64>,
73
+ pub wrap: Option<bool>,
74
+ #[napi(js_name = "wrapWidth")]
75
+ pub wrap_width: Option<i64>,
76
+ #[napi(js_name = "includeDocumentStructure")]
77
+ pub include_document_structure: Option<bool>,
78
+ }
79
+
51
80
  #[derive(Clone, Default, serde::Serialize, serde::Deserialize)]
52
81
  #[napi(object)]
53
82
  pub struct JsBrowserConfig {
@@ -99,10 +128,9 @@ pub struct JsCrawlConfig {
99
128
  pub auth: Option<JsAuthConfig>,
100
129
  #[napi(js_name = "maxBodySize")]
101
130
  pub max_body_size: Option<i64>,
102
- #[napi(js_name = "mainContentOnly")]
103
- pub main_content_only: Option<bool>,
104
131
  #[napi(js_name = "removeTags")]
105
132
  pub remove_tags: Option<Vec<String>>,
133
+ pub content: Option<JsContentConfig>,
106
134
  #[napi(js_name = "mapLimit")]
107
135
  pub map_limit: Option<i64>,
108
136
  #[napi(js_name = "mapSearch")]
@@ -179,8 +207,6 @@ pub struct JsScrapeResult {
179
207
  pub was_skipped: Option<bool>,
180
208
  #[napi(js_name = "detectedCharset")]
181
209
  pub detected_charset: Option<String>,
182
- #[napi(js_name = "mainContentOnly")]
183
- pub main_content_only: Option<bool>,
184
210
  #[napi(js_name = "authHeaderSent")]
185
211
  pub auth_header_sent: Option<bool>,
186
212
  #[napi(js_name = "responseMeta")]
@@ -690,6 +716,7 @@ pub async fn batch_crawl(engine: &JsCrawlEngineHandle, urls: Vec<String>) -> Vec
690
716
  result.into_iter().map(Into::into).collect()
691
717
  }
692
718
 
719
+ #[allow(clippy::redundant_closure, clippy::useless_conversion)]
693
720
  impl From<JsExtractionMeta> for kreuzcrawl::ExtractionMeta {
694
721
  fn from(val: JsExtractionMeta) -> Self {
695
722
  Self {
@@ -702,6 +729,7 @@ impl From<JsExtractionMeta> for kreuzcrawl::ExtractionMeta {
702
729
  }
703
730
  }
704
731
 
732
+ #[allow(clippy::redundant_closure, clippy::useless_conversion)]
705
733
  impl From<kreuzcrawl::ExtractionMeta> for JsExtractionMeta {
706
734
  fn from(val: kreuzcrawl::ExtractionMeta) -> Self {
707
735
  Self {
@@ -714,6 +742,7 @@ impl From<kreuzcrawl::ExtractionMeta> for JsExtractionMeta {
714
742
  }
715
743
  }
716
744
 
745
+ #[allow(clippy::redundant_closure, clippy::useless_conversion)]
717
746
  impl From<JsProxyConfig> for kreuzcrawl::ProxyConfig {
718
747
  fn from(val: JsProxyConfig) -> Self {
719
748
  Self {
@@ -724,6 +753,7 @@ impl From<JsProxyConfig> for kreuzcrawl::ProxyConfig {
724
753
  }
725
754
  }
726
755
 
756
+ #[allow(clippy::redundant_closure, clippy::useless_conversion)]
727
757
  impl From<kreuzcrawl::ProxyConfig> for JsProxyConfig {
728
758
  fn from(val: kreuzcrawl::ProxyConfig) -> Self {
729
759
  Self {
@@ -734,7 +764,48 @@ impl From<kreuzcrawl::ProxyConfig> for JsProxyConfig {
734
764
  }
735
765
  }
736
766
 
767
+ #[allow(clippy::redundant_closure, clippy::useless_conversion)]
768
+ impl From<JsContentConfig> for kreuzcrawl::ContentConfig {
769
+ fn from(val: JsContentConfig) -> Self {
770
+ Self {
771
+ output_format: val.output_format.unwrap_or_default(),
772
+ preprocessing_preset: val.preprocessing_preset.unwrap_or_default(),
773
+ remove_navigation: val.remove_navigation.unwrap_or_default(),
774
+ remove_forms: val.remove_forms.unwrap_or_default(),
775
+ strip_tags: val.strip_tags.unwrap_or_default(),
776
+ preserve_tags: val.preserve_tags.unwrap_or_default(),
777
+ exclude_selectors: val.exclude_selectors.unwrap_or_default(),
778
+ skip_images: val.skip_images.unwrap_or_default(),
779
+ max_depth: val.max_depth.map(|v| v as usize),
780
+ wrap: val.wrap.unwrap_or_default(),
781
+ wrap_width: val.wrap_width.map(|v| v as usize).unwrap_or_default(),
782
+ include_document_structure: val.include_document_structure.unwrap_or_default(),
783
+ }
784
+ }
785
+ }
786
+
787
+ #[allow(clippy::redundant_closure, clippy::useless_conversion)]
788
+ impl From<kreuzcrawl::ContentConfig> for JsContentConfig {
789
+ fn from(val: kreuzcrawl::ContentConfig) -> Self {
790
+ Self {
791
+ output_format: Some(val.output_format),
792
+ preprocessing_preset: Some(val.preprocessing_preset),
793
+ remove_navigation: Some(val.remove_navigation),
794
+ remove_forms: Some(val.remove_forms),
795
+ strip_tags: Some(val.strip_tags),
796
+ preserve_tags: Some(val.preserve_tags),
797
+ exclude_selectors: Some(val.exclude_selectors),
798
+ skip_images: Some(val.skip_images),
799
+ max_depth: val.max_depth.map(|v| v as i64),
800
+ wrap: Some(val.wrap),
801
+ wrap_width: Some(val.wrap_width as i64),
802
+ include_document_structure: Some(val.include_document_structure),
803
+ }
804
+ }
805
+ }
806
+
737
807
  #[allow(clippy::field_reassign_with_default)]
808
+ #[allow(clippy::redundant_closure, clippy::useless_conversion)]
738
809
  impl From<JsBrowserConfig> for kreuzcrawl::BrowserConfig {
739
810
  fn from(val: JsBrowserConfig) -> Self {
740
811
  let mut __result = kreuzcrawl::BrowserConfig::default();
@@ -750,6 +821,7 @@ impl From<JsBrowserConfig> for kreuzcrawl::BrowserConfig {
750
821
  }
751
822
  }
752
823
 
824
+ #[allow(clippy::redundant_closure, clippy::useless_conversion)]
753
825
  impl From<kreuzcrawl::BrowserConfig> for JsBrowserConfig {
754
826
  fn from(val: kreuzcrawl::BrowserConfig) -> Self {
755
827
  Self {
@@ -765,6 +837,7 @@ impl From<kreuzcrawl::BrowserConfig> for JsBrowserConfig {
765
837
 
766
838
  #[allow(clippy::needless_update)]
767
839
  #[allow(clippy::field_reassign_with_default)]
840
+ #[allow(clippy::redundant_closure, clippy::useless_conversion)]
768
841
  impl From<JsCrawlConfig> for kreuzcrawl::CrawlConfig {
769
842
  fn from(val: JsCrawlConfig) -> Self {
770
843
  let mut __result = kreuzcrawl::CrawlConfig::default();
@@ -788,8 +861,8 @@ impl From<JsCrawlConfig> for kreuzcrawl::CrawlConfig {
788
861
  __result.cookies_enabled = val.cookies_enabled.unwrap_or_default();
789
862
  __result.auth = val.auth.map(Into::into);
790
863
  __result.max_body_size = val.max_body_size.map(|v| v as usize);
791
- __result.main_content_only = val.main_content_only.unwrap_or_default();
792
864
  __result.remove_tags = val.remove_tags.unwrap_or_default();
865
+ __result.content = val.content.map(Into::into).unwrap_or_default();
793
866
  __result.map_limit = val.map_limit.map(|v| v as usize);
794
867
  __result.map_search = val.map_search;
795
868
  __result.download_assets = val.download_assets.unwrap_or_default();
@@ -812,6 +885,7 @@ impl From<JsCrawlConfig> for kreuzcrawl::CrawlConfig {
812
885
  }
813
886
  }
814
887
 
888
+ #[allow(clippy::redundant_closure, clippy::useless_conversion)]
815
889
  impl From<kreuzcrawl::CrawlConfig> for JsCrawlConfig {
816
890
  fn from(val: kreuzcrawl::CrawlConfig) -> Self {
817
891
  Self {
@@ -833,8 +907,8 @@ impl From<kreuzcrawl::CrawlConfig> for JsCrawlConfig {
833
907
  cookies_enabled: Some(val.cookies_enabled),
834
908
  auth: val.auth.map(Into::into),
835
909
  max_body_size: val.max_body_size.map(|v| v as i64),
836
- main_content_only: Some(val.main_content_only),
837
910
  remove_tags: Some(val.remove_tags),
911
+ content: Some(val.content.into()),
838
912
  map_limit: val.map_limit.map(|v| v as i64),
839
913
  map_search: val.map_search,
840
914
  download_assets: Some(val.download_assets),
@@ -854,6 +928,7 @@ impl From<kreuzcrawl::CrawlConfig> for JsCrawlConfig {
854
928
  }
855
929
  }
856
930
 
931
+ #[allow(clippy::redundant_closure, clippy::useless_conversion)]
857
932
  impl From<JsDownloadedDocument> for kreuzcrawl::DownloadedDocument {
858
933
  fn from(val: JsDownloadedDocument) -> Self {
859
934
  Self {
@@ -868,6 +943,7 @@ impl From<JsDownloadedDocument> for kreuzcrawl::DownloadedDocument {
868
943
  }
869
944
  }
870
945
 
946
+ #[allow(clippy::redundant_closure, clippy::useless_conversion)]
871
947
  impl From<kreuzcrawl::DownloadedDocument> for JsDownloadedDocument {
872
948
  fn from(val: kreuzcrawl::DownloadedDocument) -> Self {
873
949
  Self {
@@ -887,6 +963,7 @@ impl From<kreuzcrawl::DownloadedDocument> for JsDownloadedDocument {
887
963
  }
888
964
  }
889
965
 
966
+ #[allow(clippy::redundant_closure, clippy::useless_conversion)]
890
967
  impl From<JsScrapeResult> for kreuzcrawl::ScrapeResult {
891
968
  fn from(val: JsScrapeResult) -> Self {
892
969
  Self {
@@ -919,7 +996,6 @@ impl From<JsScrapeResult> for kreuzcrawl::ScrapeResult {
919
996
  is_pdf: val.is_pdf.unwrap_or_default(),
920
997
  was_skipped: val.was_skipped.unwrap_or_default(),
921
998
  detected_charset: val.detected_charset,
922
- main_content_only: val.main_content_only.unwrap_or_default(),
923
999
  auth_header_sent: val.auth_header_sent.unwrap_or_default(),
924
1000
  response_meta: val.response_meta.map(Into::into),
925
1001
  assets: val
@@ -931,12 +1007,13 @@ impl From<JsScrapeResult> for kreuzcrawl::ScrapeResult {
931
1007
  markdown: val.markdown.map(Into::into),
932
1008
  extracted_data: val.extracted_data.as_ref().and_then(|s| serde_json::from_str(s).ok()),
933
1009
  extraction_meta: val.extraction_meta.map(Into::into),
934
- screenshot: val.screenshot,
1010
+ screenshot: val.screenshot.map(Into::into),
935
1011
  downloaded_document: val.downloaded_document.map(Into::into),
936
1012
  }
937
1013
  }
938
1014
  }
939
1015
 
1016
+ #[allow(clippy::redundant_closure, clippy::useless_conversion)]
940
1017
  impl From<kreuzcrawl::ScrapeResult> for JsScrapeResult {
941
1018
  fn from(val: kreuzcrawl::ScrapeResult) -> Self {
942
1019
  Self {
@@ -957,7 +1034,6 @@ impl From<kreuzcrawl::ScrapeResult> for JsScrapeResult {
957
1034
  is_pdf: Some(val.is_pdf),
958
1035
  was_skipped: Some(val.was_skipped),
959
1036
  detected_charset: val.detected_charset,
960
- main_content_only: Some(val.main_content_only),
961
1037
  auth_header_sent: Some(val.auth_header_sent),
962
1038
  response_meta: val.response_meta.map(Into::into),
963
1039
  assets: Some(val.assets.into_iter().map(Into::into).collect()),
@@ -972,6 +1048,7 @@ impl From<kreuzcrawl::ScrapeResult> for JsScrapeResult {
972
1048
  }
973
1049
  }
974
1050
 
1051
+ #[allow(clippy::redundant_closure, clippy::useless_conversion)]
975
1052
  impl From<JsCrawlPageResult> for kreuzcrawl::CrawlPageResult {
976
1053
  fn from(val: JsCrawlPageResult) -> Self {
977
1054
  Self {
@@ -1011,6 +1088,7 @@ impl From<JsCrawlPageResult> for kreuzcrawl::CrawlPageResult {
1011
1088
  }
1012
1089
  }
1013
1090
 
1091
+ #[allow(clippy::redundant_closure, clippy::useless_conversion)]
1014
1092
  impl From<kreuzcrawl::CrawlPageResult> for JsCrawlPageResult {
1015
1093
  fn from(val: kreuzcrawl::CrawlPageResult) -> Self {
1016
1094
  Self {
@@ -1038,6 +1116,7 @@ impl From<kreuzcrawl::CrawlPageResult> for JsCrawlPageResult {
1038
1116
  }
1039
1117
  }
1040
1118
 
1119
+ #[allow(clippy::redundant_closure, clippy::useless_conversion)]
1041
1120
  impl From<JsCrawlResult> for kreuzcrawl::CrawlResult {
1042
1121
  fn from(val: JsCrawlResult) -> Self {
1043
1122
  Self {
@@ -1058,6 +1137,7 @@ impl From<JsCrawlResult> for kreuzcrawl::CrawlResult {
1058
1137
  }
1059
1138
  }
1060
1139
 
1140
+ #[allow(clippy::redundant_closure, clippy::useless_conversion)]
1061
1141
  impl From<kreuzcrawl::CrawlResult> for JsCrawlResult {
1062
1142
  fn from(val: kreuzcrawl::CrawlResult) -> Self {
1063
1143
  Self {
@@ -1072,6 +1152,7 @@ impl From<kreuzcrawl::CrawlResult> for JsCrawlResult {
1072
1152
  }
1073
1153
  }
1074
1154
 
1155
+ #[allow(clippy::redundant_closure, clippy::useless_conversion)]
1075
1156
  impl From<JsSitemapUrl> for kreuzcrawl::SitemapUrl {
1076
1157
  fn from(val: JsSitemapUrl) -> Self {
1077
1158
  Self {
@@ -1083,6 +1164,7 @@ impl From<JsSitemapUrl> for kreuzcrawl::SitemapUrl {
1083
1164
  }
1084
1165
  }
1085
1166
 
1167
+ #[allow(clippy::redundant_closure, clippy::useless_conversion)]
1086
1168
  impl From<kreuzcrawl::SitemapUrl> for JsSitemapUrl {
1087
1169
  fn from(val: kreuzcrawl::SitemapUrl) -> Self {
1088
1170
  Self {
@@ -1094,6 +1176,7 @@ impl From<kreuzcrawl::SitemapUrl> for JsSitemapUrl {
1094
1176
  }
1095
1177
  }
1096
1178
 
1179
+ #[allow(clippy::redundant_closure, clippy::useless_conversion)]
1097
1180
  impl From<JsMapResult> for kreuzcrawl::MapResult {
1098
1181
  fn from(val: JsMapResult) -> Self {
1099
1182
  Self {
@@ -1105,6 +1188,7 @@ impl From<JsMapResult> for kreuzcrawl::MapResult {
1105
1188
  }
1106
1189
  }
1107
1190
 
1191
+ #[allow(clippy::redundant_closure, clippy::useless_conversion)]
1108
1192
  impl From<kreuzcrawl::MapResult> for JsMapResult {
1109
1193
  fn from(val: kreuzcrawl::MapResult) -> Self {
1110
1194
  Self {
@@ -1113,6 +1197,7 @@ impl From<kreuzcrawl::MapResult> for JsMapResult {
1113
1197
  }
1114
1198
  }
1115
1199
 
1200
+ #[allow(clippy::redundant_closure, clippy::useless_conversion)]
1116
1201
  impl From<JsMarkdownResult> for kreuzcrawl::MarkdownResult {
1117
1202
  fn from(val: JsMarkdownResult) -> Self {
1118
1203
  Self {
@@ -1132,6 +1217,7 @@ impl From<JsMarkdownResult> for kreuzcrawl::MarkdownResult {
1132
1217
  }
1133
1218
  }
1134
1219
 
1220
+ #[allow(clippy::redundant_closure, clippy::useless_conversion)]
1135
1221
  impl From<kreuzcrawl::MarkdownResult> for JsMarkdownResult {
1136
1222
  fn from(val: kreuzcrawl::MarkdownResult) -> Self {
1137
1223
  Self {
@@ -1145,6 +1231,7 @@ impl From<kreuzcrawl::MarkdownResult> for JsMarkdownResult {
1145
1231
  }
1146
1232
  }
1147
1233
 
1234
+ #[allow(clippy::redundant_closure, clippy::useless_conversion)]
1148
1235
  impl From<JsLinkInfo> for kreuzcrawl::LinkInfo {
1149
1236
  fn from(val: JsLinkInfo) -> Self {
1150
1237
  Self {
@@ -1157,6 +1244,7 @@ impl From<JsLinkInfo> for kreuzcrawl::LinkInfo {
1157
1244
  }
1158
1245
  }
1159
1246
 
1247
+ #[allow(clippy::redundant_closure, clippy::useless_conversion)]
1160
1248
  impl From<kreuzcrawl::LinkInfo> for JsLinkInfo {
1161
1249
  fn from(val: kreuzcrawl::LinkInfo) -> Self {
1162
1250
  Self {
@@ -1169,6 +1257,7 @@ impl From<kreuzcrawl::LinkInfo> for JsLinkInfo {
1169
1257
  }
1170
1258
  }
1171
1259
 
1260
+ #[allow(clippy::redundant_closure, clippy::useless_conversion)]
1172
1261
  impl From<JsImageInfo> for kreuzcrawl::ImageInfo {
1173
1262
  fn from(val: JsImageInfo) -> Self {
1174
1263
  Self {
@@ -1181,6 +1270,7 @@ impl From<JsImageInfo> for kreuzcrawl::ImageInfo {
1181
1270
  }
1182
1271
  }
1183
1272
 
1273
+ #[allow(clippy::redundant_closure, clippy::useless_conversion)]
1184
1274
  impl From<kreuzcrawl::ImageInfo> for JsImageInfo {
1185
1275
  fn from(val: kreuzcrawl::ImageInfo) -> Self {
1186
1276
  Self {
@@ -1193,6 +1283,7 @@ impl From<kreuzcrawl::ImageInfo> for JsImageInfo {
1193
1283
  }
1194
1284
  }
1195
1285
 
1286
+ #[allow(clippy::redundant_closure, clippy::useless_conversion)]
1196
1287
  impl From<JsFeedInfo> for kreuzcrawl::FeedInfo {
1197
1288
  fn from(val: JsFeedInfo) -> Self {
1198
1289
  Self {
@@ -1203,6 +1294,7 @@ impl From<JsFeedInfo> for kreuzcrawl::FeedInfo {
1203
1294
  }
1204
1295
  }
1205
1296
 
1297
+ #[allow(clippy::redundant_closure, clippy::useless_conversion)]
1206
1298
  impl From<kreuzcrawl::FeedInfo> for JsFeedInfo {
1207
1299
  fn from(val: kreuzcrawl::FeedInfo) -> Self {
1208
1300
  Self {
@@ -1213,6 +1305,7 @@ impl From<kreuzcrawl::FeedInfo> for JsFeedInfo {
1213
1305
  }
1214
1306
  }
1215
1307
 
1308
+ #[allow(clippy::redundant_closure, clippy::useless_conversion)]
1216
1309
  impl From<JsJsonLdEntry> for kreuzcrawl::JsonLdEntry {
1217
1310
  fn from(val: JsJsonLdEntry) -> Self {
1218
1311
  Self {
@@ -1223,6 +1316,7 @@ impl From<JsJsonLdEntry> for kreuzcrawl::JsonLdEntry {
1223
1316
  }
1224
1317
  }
1225
1318
 
1319
+ #[allow(clippy::redundant_closure, clippy::useless_conversion)]
1226
1320
  impl From<kreuzcrawl::JsonLdEntry> for JsJsonLdEntry {
1227
1321
  fn from(val: kreuzcrawl::JsonLdEntry) -> Self {
1228
1322
  Self {
@@ -1233,6 +1327,7 @@ impl From<kreuzcrawl::JsonLdEntry> for JsJsonLdEntry {
1233
1327
  }
1234
1328
  }
1235
1329
 
1330
+ #[allow(clippy::redundant_closure, clippy::useless_conversion)]
1236
1331
  impl From<JsCookieInfo> for kreuzcrawl::CookieInfo {
1237
1332
  fn from(val: JsCookieInfo) -> Self {
1238
1333
  Self {
@@ -1244,6 +1339,7 @@ impl From<JsCookieInfo> for kreuzcrawl::CookieInfo {
1244
1339
  }
1245
1340
  }
1246
1341
 
1342
+ #[allow(clippy::redundant_closure, clippy::useless_conversion)]
1247
1343
  impl From<kreuzcrawl::CookieInfo> for JsCookieInfo {
1248
1344
  fn from(val: kreuzcrawl::CookieInfo) -> Self {
1249
1345
  Self {
@@ -1255,6 +1351,7 @@ impl From<kreuzcrawl::CookieInfo> for JsCookieInfo {
1255
1351
  }
1256
1352
  }
1257
1353
 
1354
+ #[allow(clippy::redundant_closure, clippy::useless_conversion)]
1258
1355
  impl From<JsDownloadedAsset> for kreuzcrawl::DownloadedAsset {
1259
1356
  fn from(val: JsDownloadedAsset) -> Self {
1260
1357
  Self {
@@ -1268,6 +1365,7 @@ impl From<JsDownloadedAsset> for kreuzcrawl::DownloadedAsset {
1268
1365
  }
1269
1366
  }
1270
1367
 
1368
+ #[allow(clippy::redundant_closure, clippy::useless_conversion)]
1271
1369
  impl From<kreuzcrawl::DownloadedAsset> for JsDownloadedAsset {
1272
1370
  fn from(val: kreuzcrawl::DownloadedAsset) -> Self {
1273
1371
  Self {
@@ -1281,6 +1379,7 @@ impl From<kreuzcrawl::DownloadedAsset> for JsDownloadedAsset {
1281
1379
  }
1282
1380
  }
1283
1381
 
1382
+ #[allow(clippy::redundant_closure, clippy::useless_conversion)]
1284
1383
  impl From<JsArticleMetadata> for kreuzcrawl::ArticleMetadata {
1285
1384
  fn from(val: JsArticleMetadata) -> Self {
1286
1385
  Self {
@@ -1293,6 +1392,7 @@ impl From<JsArticleMetadata> for kreuzcrawl::ArticleMetadata {
1293
1392
  }
1294
1393
  }
1295
1394
 
1395
+ #[allow(clippy::redundant_closure, clippy::useless_conversion)]
1296
1396
  impl From<kreuzcrawl::ArticleMetadata> for JsArticleMetadata {
1297
1397
  fn from(val: kreuzcrawl::ArticleMetadata) -> Self {
1298
1398
  Self {
@@ -1305,6 +1405,7 @@ impl From<kreuzcrawl::ArticleMetadata> for JsArticleMetadata {
1305
1405
  }
1306
1406
  }
1307
1407
 
1408
+ #[allow(clippy::redundant_closure, clippy::useless_conversion)]
1308
1409
  impl From<JsHreflangEntry> for kreuzcrawl::HreflangEntry {
1309
1410
  fn from(val: JsHreflangEntry) -> Self {
1310
1411
  Self {
@@ -1314,6 +1415,7 @@ impl From<JsHreflangEntry> for kreuzcrawl::HreflangEntry {
1314
1415
  }
1315
1416
  }
1316
1417
 
1418
+ #[allow(clippy::redundant_closure, clippy::useless_conversion)]
1317
1419
  impl From<kreuzcrawl::HreflangEntry> for JsHreflangEntry {
1318
1420
  fn from(val: kreuzcrawl::HreflangEntry) -> Self {
1319
1421
  Self {
@@ -1323,6 +1425,7 @@ impl From<kreuzcrawl::HreflangEntry> for JsHreflangEntry {
1323
1425
  }
1324
1426
  }
1325
1427
 
1428
+ #[allow(clippy::redundant_closure, clippy::useless_conversion)]
1326
1429
  impl From<JsFaviconInfo> for kreuzcrawl::FaviconInfo {
1327
1430
  fn from(val: JsFaviconInfo) -> Self {
1328
1431
  Self {
@@ -1334,6 +1437,7 @@ impl From<JsFaviconInfo> for kreuzcrawl::FaviconInfo {
1334
1437
  }
1335
1438
  }
1336
1439
 
1440
+ #[allow(clippy::redundant_closure, clippy::useless_conversion)]
1337
1441
  impl From<kreuzcrawl::FaviconInfo> for JsFaviconInfo {
1338
1442
  fn from(val: kreuzcrawl::FaviconInfo) -> Self {
1339
1443
  Self {
@@ -1345,6 +1449,7 @@ impl From<kreuzcrawl::FaviconInfo> for JsFaviconInfo {
1345
1449
  }
1346
1450
  }
1347
1451
 
1452
+ #[allow(clippy::redundant_closure, clippy::useless_conversion)]
1348
1453
  impl From<JsHeadingInfo> for kreuzcrawl::HeadingInfo {
1349
1454
  fn from(val: JsHeadingInfo) -> Self {
1350
1455
  Self {
@@ -1354,6 +1459,7 @@ impl From<JsHeadingInfo> for kreuzcrawl::HeadingInfo {
1354
1459
  }
1355
1460
  }
1356
1461
 
1462
+ #[allow(clippy::redundant_closure, clippy::useless_conversion)]
1357
1463
  impl From<kreuzcrawl::HeadingInfo> for JsHeadingInfo {
1358
1464
  fn from(val: kreuzcrawl::HeadingInfo) -> Self {
1359
1465
  Self {
@@ -1363,6 +1469,7 @@ impl From<kreuzcrawl::HeadingInfo> for JsHeadingInfo {
1363
1469
  }
1364
1470
  }
1365
1471
 
1472
+ #[allow(clippy::redundant_closure, clippy::useless_conversion)]
1366
1473
  impl From<JsResponseMeta> for kreuzcrawl::ResponseMeta {
1367
1474
  fn from(val: JsResponseMeta) -> Self {
1368
1475
  Self {
@@ -1377,6 +1484,7 @@ impl From<JsResponseMeta> for kreuzcrawl::ResponseMeta {
1377
1484
  }
1378
1485
  }
1379
1486
 
1487
+ #[allow(clippy::redundant_closure, clippy::useless_conversion)]
1380
1488
  impl From<kreuzcrawl::ResponseMeta> for JsResponseMeta {
1381
1489
  fn from(val: kreuzcrawl::ResponseMeta) -> Self {
1382
1490
  Self {
@@ -1391,6 +1499,7 @@ impl From<kreuzcrawl::ResponseMeta> for JsResponseMeta {
1391
1499
  }
1392
1500
  }
1393
1501
 
1502
+ #[allow(clippy::redundant_closure, clippy::useless_conversion)]
1394
1503
  impl From<JsPageMetadata> for kreuzcrawl::PageMetadata {
1395
1504
  fn from(val: JsPageMetadata) -> Self {
1396
1505
  Self {
@@ -1441,6 +1550,7 @@ impl From<JsPageMetadata> for kreuzcrawl::PageMetadata {
1441
1550
  }
1442
1551
  }
1443
1552
 
1553
+ #[allow(clippy::redundant_closure, clippy::useless_conversion)]
1444
1554
  impl From<kreuzcrawl::PageMetadata> for JsPageMetadata {
1445
1555
  fn from(val: kreuzcrawl::PageMetadata) -> Self {
1446
1556
  Self {
@@ -1491,6 +1601,7 @@ impl From<kreuzcrawl::PageMetadata> for JsPageMetadata {
1491
1601
  }
1492
1602
  }
1493
1603
 
1604
+ #[allow(clippy::redundant_closure, clippy::useless_conversion)]
1494
1605
  impl From<JsCitationResult> for kreuzcrawl::CitationResult {
1495
1606
  fn from(val: JsCitationResult) -> Self {
1496
1607
  Self {
@@ -1503,6 +1614,7 @@ impl From<JsCitationResult> for kreuzcrawl::CitationResult {
1503
1614
  }
1504
1615
  }
1505
1616
 
1617
+ #[allow(clippy::redundant_closure, clippy::useless_conversion)]
1506
1618
  impl From<kreuzcrawl::CitationResult> for JsCitationResult {
1507
1619
  fn from(val: kreuzcrawl::CitationResult) -> Self {
1508
1620
  Self {
@@ -1512,6 +1624,7 @@ impl From<kreuzcrawl::CitationResult> for JsCitationResult {
1512
1624
  }
1513
1625
  }
1514
1626
 
1627
+ #[allow(clippy::redundant_closure, clippy::useless_conversion)]
1515
1628
  impl From<JsCitationReference> for kreuzcrawl::CitationReference {
1516
1629
  fn from(val: JsCitationReference) -> Self {
1517
1630
  Self {
@@ -1522,6 +1635,7 @@ impl From<JsCitationReference> for kreuzcrawl::CitationReference {
1522
1635
  }
1523
1636
  }
1524
1637
 
1638
+ #[allow(clippy::redundant_closure, clippy::useless_conversion)]
1525
1639
  impl From<kreuzcrawl::CitationReference> for JsCitationReference {
1526
1640
  fn from(val: kreuzcrawl::CitationReference) -> Self {
1527
1641
  Self {
@@ -1532,6 +1646,7 @@ impl From<kreuzcrawl::CitationReference> for JsCitationReference {
1532
1646
  }
1533
1647
  }
1534
1648
 
1649
+ #[allow(clippy::redundant_closure, clippy::useless_conversion)]
1535
1650
  impl From<JsBatchScrapeResult> for kreuzcrawl::BatchScrapeResult {
1536
1651
  fn from(val: JsBatchScrapeResult) -> Self {
1537
1652
  Self {
@@ -1542,6 +1657,7 @@ impl From<JsBatchScrapeResult> for kreuzcrawl::BatchScrapeResult {
1542
1657
  }
1543
1658
  }
1544
1659
 
1660
+ #[allow(clippy::redundant_closure, clippy::useless_conversion)]
1545
1661
  impl From<kreuzcrawl::BatchScrapeResult> for JsBatchScrapeResult {
1546
1662
  fn from(val: kreuzcrawl::BatchScrapeResult) -> Self {
1547
1663
  Self {
@@ -1552,6 +1668,7 @@ impl From<kreuzcrawl::BatchScrapeResult> for JsBatchScrapeResult {
1552
1668
  }
1553
1669
  }
1554
1670
 
1671
+ #[allow(clippy::redundant_closure, clippy::useless_conversion)]
1555
1672
  impl From<JsBatchCrawlResult> for kreuzcrawl::BatchCrawlResult {
1556
1673
  fn from(val: JsBatchCrawlResult) -> Self {
1557
1674
  Self {
@@ -1562,6 +1679,7 @@ impl From<JsBatchCrawlResult> for kreuzcrawl::BatchCrawlResult {
1562
1679
  }
1563
1680
  }
1564
1681
 
1682
+ #[allow(clippy::redundant_closure, clippy::useless_conversion)]
1565
1683
  impl From<kreuzcrawl::BatchCrawlResult> for JsBatchCrawlResult {
1566
1684
  fn from(val: kreuzcrawl::BatchCrawlResult) -> Self {
1567
1685
  Self {