@jongleberry/vurst-html 0.2.1 → 0.2.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/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Jonathan Ong
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/index.d.ts CHANGED
@@ -1,8 +1,6 @@
1
- /// <reference types="node" />
2
1
  /* auto-generated by NAPI-RS */
3
- /// <reference types="node" />
4
2
  /* eslint-disable */
5
-
3
+ /// <reference types="node" />
6
4
  export declare function applyDomRemovalsToHtml(html: Buffer, removals: ExtractDomRemovalsResult): Promise<Buffer>
7
5
 
8
6
  export interface CrawlerHtmlToMarkdownOptions {
package/index.js CHANGED
@@ -82,8 +82,8 @@ function requireNative() {
82
82
  try {
83
83
  const binding = require('@jongleberry/vurst-html-android-arm64')
84
84
  const bindingPackageVersion = require('@jongleberry/vurst-html-android-arm64/package.json').version
85
- if (bindingPackageVersion !== '0.1.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
86
- throw new Error(`Native binding package version mismatch, expected 0.1.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
85
+ if (bindingPackageVersion !== '0.2.1' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
86
+ throw new Error(`Native binding package version mismatch, expected 0.2.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
87
87
  }
88
88
  return binding
89
89
  } catch (e) {
@@ -98,8 +98,8 @@ function requireNative() {
98
98
  try {
99
99
  const binding = require('@jongleberry/vurst-html-android-arm-eabi')
100
100
  const bindingPackageVersion = require('@jongleberry/vurst-html-android-arm-eabi/package.json').version
101
- if (bindingPackageVersion !== '0.1.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
102
- throw new Error(`Native binding package version mismatch, expected 0.1.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
101
+ if (bindingPackageVersion !== '0.2.1' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
102
+ throw new Error(`Native binding package version mismatch, expected 0.2.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
103
103
  }
104
104
  return binding
105
105
  } catch (e) {
@@ -119,8 +119,8 @@ function requireNative() {
119
119
  try {
120
120
  const binding = require('@jongleberry/vurst-html-win32-x64-gnu')
121
121
  const bindingPackageVersion = require('@jongleberry/vurst-html-win32-x64-gnu/package.json').version
122
- if (bindingPackageVersion !== '0.1.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
123
- throw new Error(`Native binding package version mismatch, expected 0.1.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
122
+ if (bindingPackageVersion !== '0.2.1' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
123
+ throw new Error(`Native binding package version mismatch, expected 0.2.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
124
124
  }
125
125
  return binding
126
126
  } catch (e) {
@@ -135,8 +135,8 @@ function requireNative() {
135
135
  try {
136
136
  const binding = require('@jongleberry/vurst-html-win32-x64-msvc')
137
137
  const bindingPackageVersion = require('@jongleberry/vurst-html-win32-x64-msvc/package.json').version
138
- if (bindingPackageVersion !== '0.1.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
139
- throw new Error(`Native binding package version mismatch, expected 0.1.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
138
+ if (bindingPackageVersion !== '0.2.1' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
139
+ throw new Error(`Native binding package version mismatch, expected 0.2.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
140
140
  }
141
141
  return binding
142
142
  } catch (e) {
@@ -152,8 +152,8 @@ function requireNative() {
152
152
  try {
153
153
  const binding = require('@jongleberry/vurst-html-win32-ia32-msvc')
154
154
  const bindingPackageVersion = require('@jongleberry/vurst-html-win32-ia32-msvc/package.json').version
155
- if (bindingPackageVersion !== '0.1.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
156
- throw new Error(`Native binding package version mismatch, expected 0.1.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
155
+ if (bindingPackageVersion !== '0.2.1' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
156
+ throw new Error(`Native binding package version mismatch, expected 0.2.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
157
157
  }
158
158
  return binding
159
159
  } catch (e) {
@@ -168,8 +168,8 @@ function requireNative() {
168
168
  try {
169
169
  const binding = require('@jongleberry/vurst-html-win32-arm64-msvc')
170
170
  const bindingPackageVersion = require('@jongleberry/vurst-html-win32-arm64-msvc/package.json').version
171
- if (bindingPackageVersion !== '0.1.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
172
- throw new Error(`Native binding package version mismatch, expected 0.1.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
171
+ if (bindingPackageVersion !== '0.2.1' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
172
+ throw new Error(`Native binding package version mismatch, expected 0.2.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
173
173
  }
174
174
  return binding
175
175
  } catch (e) {
@@ -187,8 +187,8 @@ function requireNative() {
187
187
  try {
188
188
  const binding = require('@jongleberry/vurst-html-darwin-universal')
189
189
  const bindingPackageVersion = require('@jongleberry/vurst-html-darwin-universal/package.json').version
190
- if (bindingPackageVersion !== '0.1.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
191
- throw new Error(`Native binding package version mismatch, expected 0.1.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
190
+ if (bindingPackageVersion !== '0.2.1' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
191
+ throw new Error(`Native binding package version mismatch, expected 0.2.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
192
192
  }
193
193
  return binding
194
194
  } catch (e) {
@@ -203,8 +203,8 @@ function requireNative() {
203
203
  try {
204
204
  const binding = require('@jongleberry/vurst-html-darwin-x64')
205
205
  const bindingPackageVersion = require('@jongleberry/vurst-html-darwin-x64/package.json').version
206
- if (bindingPackageVersion !== '0.1.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
207
- throw new Error(`Native binding package version mismatch, expected 0.1.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
206
+ if (bindingPackageVersion !== '0.2.1' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
207
+ throw new Error(`Native binding package version mismatch, expected 0.2.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
208
208
  }
209
209
  return binding
210
210
  } catch (e) {
@@ -219,8 +219,8 @@ function requireNative() {
219
219
  try {
220
220
  const binding = require('@jongleberry/vurst-html-darwin-arm64')
221
221
  const bindingPackageVersion = require('@jongleberry/vurst-html-darwin-arm64/package.json').version
222
- if (bindingPackageVersion !== '0.1.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
223
- throw new Error(`Native binding package version mismatch, expected 0.1.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
222
+ if (bindingPackageVersion !== '0.2.1' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
223
+ throw new Error(`Native binding package version mismatch, expected 0.2.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
224
224
  }
225
225
  return binding
226
226
  } catch (e) {
@@ -239,8 +239,8 @@ function requireNative() {
239
239
  try {
240
240
  const binding = require('@jongleberry/vurst-html-freebsd-x64')
241
241
  const bindingPackageVersion = require('@jongleberry/vurst-html-freebsd-x64/package.json').version
242
- if (bindingPackageVersion !== '0.1.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
243
- throw new Error(`Native binding package version mismatch, expected 0.1.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
242
+ if (bindingPackageVersion !== '0.2.1' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
243
+ throw new Error(`Native binding package version mismatch, expected 0.2.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
244
244
  }
245
245
  return binding
246
246
  } catch (e) {
@@ -255,8 +255,8 @@ function requireNative() {
255
255
  try {
256
256
  const binding = require('@jongleberry/vurst-html-freebsd-arm64')
257
257
  const bindingPackageVersion = require('@jongleberry/vurst-html-freebsd-arm64/package.json').version
258
- if (bindingPackageVersion !== '0.1.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
259
- throw new Error(`Native binding package version mismatch, expected 0.1.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
258
+ if (bindingPackageVersion !== '0.2.1' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
259
+ throw new Error(`Native binding package version mismatch, expected 0.2.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
260
260
  }
261
261
  return binding
262
262
  } catch (e) {
@@ -276,8 +276,8 @@ function requireNative() {
276
276
  try {
277
277
  const binding = require('@jongleberry/vurst-html-linux-x64-musl')
278
278
  const bindingPackageVersion = require('@jongleberry/vurst-html-linux-x64-musl/package.json').version
279
- if (bindingPackageVersion !== '0.1.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
280
- throw new Error(`Native binding package version mismatch, expected 0.1.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
279
+ if (bindingPackageVersion !== '0.2.1' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
280
+ throw new Error(`Native binding package version mismatch, expected 0.2.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
281
281
  }
282
282
  return binding
283
283
  } catch (e) {
@@ -292,8 +292,8 @@ function requireNative() {
292
292
  try {
293
293
  const binding = require('@jongleberry/vurst-html-linux-x64-gnu')
294
294
  const bindingPackageVersion = require('@jongleberry/vurst-html-linux-x64-gnu/package.json').version
295
- if (bindingPackageVersion !== '0.1.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
296
- throw new Error(`Native binding package version mismatch, expected 0.1.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
295
+ if (bindingPackageVersion !== '0.2.1' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
296
+ throw new Error(`Native binding package version mismatch, expected 0.2.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
297
297
  }
298
298
  return binding
299
299
  } catch (e) {
@@ -310,8 +310,8 @@ function requireNative() {
310
310
  try {
311
311
  const binding = require('@jongleberry/vurst-html-linux-arm64-musl')
312
312
  const bindingPackageVersion = require('@jongleberry/vurst-html-linux-arm64-musl/package.json').version
313
- if (bindingPackageVersion !== '0.1.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
314
- throw new Error(`Native binding package version mismatch, expected 0.1.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
313
+ if (bindingPackageVersion !== '0.2.1' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
314
+ throw new Error(`Native binding package version mismatch, expected 0.2.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
315
315
  }
316
316
  return binding
317
317
  } catch (e) {
@@ -326,8 +326,8 @@ function requireNative() {
326
326
  try {
327
327
  const binding = require('@jongleberry/vurst-html-linux-arm64-gnu')
328
328
  const bindingPackageVersion = require('@jongleberry/vurst-html-linux-arm64-gnu/package.json').version
329
- if (bindingPackageVersion !== '0.1.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
330
- throw new Error(`Native binding package version mismatch, expected 0.1.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
329
+ if (bindingPackageVersion !== '0.2.1' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
330
+ throw new Error(`Native binding package version mismatch, expected 0.2.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
331
331
  }
332
332
  return binding
333
333
  } catch (e) {
@@ -344,8 +344,8 @@ function requireNative() {
344
344
  try {
345
345
  const binding = require('@jongleberry/vurst-html-linux-arm-musleabihf')
346
346
  const bindingPackageVersion = require('@jongleberry/vurst-html-linux-arm-musleabihf/package.json').version
347
- if (bindingPackageVersion !== '0.1.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
348
- throw new Error(`Native binding package version mismatch, expected 0.1.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
347
+ if (bindingPackageVersion !== '0.2.1' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
348
+ throw new Error(`Native binding package version mismatch, expected 0.2.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
349
349
  }
350
350
  return binding
351
351
  } catch (e) {
@@ -360,8 +360,8 @@ function requireNative() {
360
360
  try {
361
361
  const binding = require('@jongleberry/vurst-html-linux-arm-gnueabihf')
362
362
  const bindingPackageVersion = require('@jongleberry/vurst-html-linux-arm-gnueabihf/package.json').version
363
- if (bindingPackageVersion !== '0.1.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
364
- throw new Error(`Native binding package version mismatch, expected 0.1.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
363
+ if (bindingPackageVersion !== '0.2.1' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
364
+ throw new Error(`Native binding package version mismatch, expected 0.2.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
365
365
  }
366
366
  return binding
367
367
  } catch (e) {
@@ -378,8 +378,8 @@ function requireNative() {
378
378
  try {
379
379
  const binding = require('@jongleberry/vurst-html-linux-loong64-musl')
380
380
  const bindingPackageVersion = require('@jongleberry/vurst-html-linux-loong64-musl/package.json').version
381
- if (bindingPackageVersion !== '0.1.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
382
- throw new Error(`Native binding package version mismatch, expected 0.1.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
381
+ if (bindingPackageVersion !== '0.2.1' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
382
+ throw new Error(`Native binding package version mismatch, expected 0.2.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
383
383
  }
384
384
  return binding
385
385
  } catch (e) {
@@ -394,8 +394,8 @@ function requireNative() {
394
394
  try {
395
395
  const binding = require('@jongleberry/vurst-html-linux-loong64-gnu')
396
396
  const bindingPackageVersion = require('@jongleberry/vurst-html-linux-loong64-gnu/package.json').version
397
- if (bindingPackageVersion !== '0.1.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
398
- throw new Error(`Native binding package version mismatch, expected 0.1.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
397
+ if (bindingPackageVersion !== '0.2.1' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
398
+ throw new Error(`Native binding package version mismatch, expected 0.2.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
399
399
  }
400
400
  return binding
401
401
  } catch (e) {
@@ -412,8 +412,8 @@ function requireNative() {
412
412
  try {
413
413
  const binding = require('@jongleberry/vurst-html-linux-riscv64-musl')
414
414
  const bindingPackageVersion = require('@jongleberry/vurst-html-linux-riscv64-musl/package.json').version
415
- if (bindingPackageVersion !== '0.1.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
416
- throw new Error(`Native binding package version mismatch, expected 0.1.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
415
+ if (bindingPackageVersion !== '0.2.1' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
416
+ throw new Error(`Native binding package version mismatch, expected 0.2.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
417
417
  }
418
418
  return binding
419
419
  } catch (e) {
@@ -428,8 +428,8 @@ function requireNative() {
428
428
  try {
429
429
  const binding = require('@jongleberry/vurst-html-linux-riscv64-gnu')
430
430
  const bindingPackageVersion = require('@jongleberry/vurst-html-linux-riscv64-gnu/package.json').version
431
- if (bindingPackageVersion !== '0.1.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
432
- throw new Error(`Native binding package version mismatch, expected 0.1.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
431
+ if (bindingPackageVersion !== '0.2.1' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
432
+ throw new Error(`Native binding package version mismatch, expected 0.2.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
433
433
  }
434
434
  return binding
435
435
  } catch (e) {
@@ -445,8 +445,8 @@ function requireNative() {
445
445
  try {
446
446
  const binding = require('@jongleberry/vurst-html-linux-ppc64-gnu')
447
447
  const bindingPackageVersion = require('@jongleberry/vurst-html-linux-ppc64-gnu/package.json').version
448
- if (bindingPackageVersion !== '0.1.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
449
- throw new Error(`Native binding package version mismatch, expected 0.1.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
448
+ if (bindingPackageVersion !== '0.2.1' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
449
+ throw new Error(`Native binding package version mismatch, expected 0.2.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
450
450
  }
451
451
  return binding
452
452
  } catch (e) {
@@ -461,8 +461,8 @@ function requireNative() {
461
461
  try {
462
462
  const binding = require('@jongleberry/vurst-html-linux-s390x-gnu')
463
463
  const bindingPackageVersion = require('@jongleberry/vurst-html-linux-s390x-gnu/package.json').version
464
- if (bindingPackageVersion !== '0.1.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
465
- throw new Error(`Native binding package version mismatch, expected 0.1.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
464
+ if (bindingPackageVersion !== '0.2.1' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
465
+ throw new Error(`Native binding package version mismatch, expected 0.2.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
466
466
  }
467
467
  return binding
468
468
  } catch (e) {
@@ -481,8 +481,8 @@ function requireNative() {
481
481
  try {
482
482
  const binding = require('@jongleberry/vurst-html-openharmony-arm64')
483
483
  const bindingPackageVersion = require('@jongleberry/vurst-html-openharmony-arm64/package.json').version
484
- if (bindingPackageVersion !== '0.1.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
485
- throw new Error(`Native binding package version mismatch, expected 0.1.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
484
+ if (bindingPackageVersion !== '0.2.1' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
485
+ throw new Error(`Native binding package version mismatch, expected 0.2.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
486
486
  }
487
487
  return binding
488
488
  } catch (e) {
@@ -497,8 +497,8 @@ function requireNative() {
497
497
  try {
498
498
  const binding = require('@jongleberry/vurst-html-openharmony-x64')
499
499
  const bindingPackageVersion = require('@jongleberry/vurst-html-openharmony-x64/package.json').version
500
- if (bindingPackageVersion !== '0.1.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
501
- throw new Error(`Native binding package version mismatch, expected 0.1.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
500
+ if (bindingPackageVersion !== '0.2.1' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
501
+ throw new Error(`Native binding package version mismatch, expected 0.2.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
502
502
  }
503
503
  return binding
504
504
  } catch (e) {
@@ -513,8 +513,8 @@ function requireNative() {
513
513
  try {
514
514
  const binding = require('@jongleberry/vurst-html-openharmony-arm')
515
515
  const bindingPackageVersion = require('@jongleberry/vurst-html-openharmony-arm/package.json').version
516
- if (bindingPackageVersion !== '0.1.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
517
- throw new Error(`Native binding package version mismatch, expected 0.1.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
516
+ if (bindingPackageVersion !== '0.2.1' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
517
+ throw new Error(`Native binding package version mismatch, expected 0.2.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
518
518
  }
519
519
  return binding
520
520
  } catch (e) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jongleberry/vurst-html",
3
- "version": "0.2.1",
3
+ "version": "0.2.2",
4
4
  "description": "Rust + N-API: HTML sanitization, extraction, and boilerstrip.",
5
5
  "main": "index.js",
6
6
  "types": "index.d.ts",
@@ -34,12 +34,6 @@
34
34
  "x86_64-unknown-linux-gnu"
35
35
  ]
36
36
  },
37
- "scripts": {
38
- "build": "napi build --platform --release",
39
- "build:debug": "napi build --platform",
40
- "test": "node --test __test__/*.test.mjs",
41
- "prepublishOnly": "napi prepublish -t npm"
42
- },
43
37
  "publishConfig": {
44
38
  "access": "public",
45
39
  "provenance": true
@@ -49,8 +43,13 @@
49
43
  "@types/node": "^24"
50
44
  },
51
45
  "optionalDependencies": {
52
- "@jongleberry/vurst-html-darwin-arm64": "0.2.1",
53
- "@jongleberry/vurst-html-linux-arm64-gnu": "0.2.1",
54
- "@jongleberry/vurst-html-linux-x64-gnu": "0.2.1"
46
+ "@jongleberry/vurst-html-darwin-arm64": "0.2.2",
47
+ "@jongleberry/vurst-html-linux-arm64-gnu": "0.2.2",
48
+ "@jongleberry/vurst-html-linux-x64-gnu": "0.2.2"
49
+ },
50
+ "scripts": {
51
+ "build": "napi build --platform --release",
52
+ "build:debug": "napi build --platform",
53
+ "test": "node --test __test__/*.test.mjs"
55
54
  }
56
55
  }
Binary file
Binary file
Binary file