html-to-markdown-node 2.14.1 → 2.14.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.
Files changed (2) hide show
  1. package/index.js +52 -54
  2. package/package.json +10 -10
package/index.js CHANGED
@@ -1,7 +1,6 @@
1
1
  // prettier-ignore
2
2
  /* eslint-disable */
3
3
  // @ts-nocheck
4
- /* auto-generated by NAPI-RS */
5
4
 
6
5
  const { readFileSync } = require('node:fs')
7
6
  let nativeBinding = null
@@ -55,7 +54,6 @@ const isMuslFromChildProcess = () => {
55
54
  try {
56
55
  return require('child_process').execSync('ldd --version', { encoding: 'utf8' }).includes('musl')
57
56
  } catch (e) {
58
- // If we reach this case, we don't know if the system is musl or not, so is better to just fallback to false
59
57
  return false
60
58
  }
61
59
  }
@@ -77,8 +75,8 @@ function requireNative() {
77
75
  try {
78
76
  const binding = require('html-to-markdown-node-android-arm64')
79
77
  const bindingPackageVersion = require('html-to-markdown-node-android-arm64/package.json').version
80
- if (bindingPackageVersion !== '2.14.1' && 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 2.14.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
78
+ if (bindingPackageVersion !== '2.14.2' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
79
+ throw new Error(`Native binding package version mismatch, expected 2.14.2 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
82
80
  }
83
81
  return binding
84
82
  } catch (e) {
@@ -93,8 +91,8 @@ function requireNative() {
93
91
  try {
94
92
  const binding = require('html-to-markdown-node-android-arm-eabi')
95
93
  const bindingPackageVersion = require('html-to-markdown-node-android-arm-eabi/package.json').version
96
- if (bindingPackageVersion !== '2.14.1' && 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 2.14.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
94
+ if (bindingPackageVersion !== '2.14.2' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
95
+ throw new Error(`Native binding package version mismatch, expected 2.14.2 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
98
96
  }
99
97
  return binding
100
98
  } catch (e) {
@@ -114,8 +112,8 @@ function requireNative() {
114
112
  try {
115
113
  const binding = require('html-to-markdown-node-win32-x64-gnu')
116
114
  const bindingPackageVersion = require('html-to-markdown-node-win32-x64-gnu/package.json').version
117
- if (bindingPackageVersion !== '2.14.1' && 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 2.14.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
115
+ if (bindingPackageVersion !== '2.14.2' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
116
+ throw new Error(`Native binding package version mismatch, expected 2.14.2 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
119
117
  }
120
118
  return binding
121
119
  } catch (e) {
@@ -130,8 +128,8 @@ function requireNative() {
130
128
  try {
131
129
  const binding = require('html-to-markdown-node-win32-x64-msvc')
132
130
  const bindingPackageVersion = require('html-to-markdown-node-win32-x64-msvc/package.json').version
133
- if (bindingPackageVersion !== '2.14.1' && 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 2.14.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
131
+ if (bindingPackageVersion !== '2.14.2' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
132
+ throw new Error(`Native binding package version mismatch, expected 2.14.2 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
135
133
  }
136
134
  return binding
137
135
  } catch (e) {
@@ -147,8 +145,8 @@ function requireNative() {
147
145
  try {
148
146
  const binding = require('html-to-markdown-node-win32-ia32-msvc')
149
147
  const bindingPackageVersion = require('html-to-markdown-node-win32-ia32-msvc/package.json').version
150
- if (bindingPackageVersion !== '2.14.1' && 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 2.14.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
148
+ if (bindingPackageVersion !== '2.14.2' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
149
+ throw new Error(`Native binding package version mismatch, expected 2.14.2 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
152
150
  }
153
151
  return binding
154
152
  } catch (e) {
@@ -163,8 +161,8 @@ function requireNative() {
163
161
  try {
164
162
  const binding = require('html-to-markdown-node-win32-arm64-msvc')
165
163
  const bindingPackageVersion = require('html-to-markdown-node-win32-arm64-msvc/package.json').version
166
- if (bindingPackageVersion !== '2.14.1' && 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 2.14.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
164
+ if (bindingPackageVersion !== '2.14.2' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
165
+ throw new Error(`Native binding package version mismatch, expected 2.14.2 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
168
166
  }
169
167
  return binding
170
168
  } catch (e) {
@@ -182,8 +180,8 @@ function requireNative() {
182
180
  try {
183
181
  const binding = require('html-to-markdown-node-darwin-universal')
184
182
  const bindingPackageVersion = require('html-to-markdown-node-darwin-universal/package.json').version
185
- if (bindingPackageVersion !== '2.14.1' && 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 2.14.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
183
+ if (bindingPackageVersion !== '2.14.2' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
184
+ throw new Error(`Native binding package version mismatch, expected 2.14.2 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
187
185
  }
188
186
  return binding
189
187
  } catch (e) {
@@ -198,8 +196,8 @@ function requireNative() {
198
196
  try {
199
197
  const binding = require('html-to-markdown-node-darwin-x64')
200
198
  const bindingPackageVersion = require('html-to-markdown-node-darwin-x64/package.json').version
201
- if (bindingPackageVersion !== '2.14.1' && 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 2.14.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
199
+ if (bindingPackageVersion !== '2.14.2' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
200
+ throw new Error(`Native binding package version mismatch, expected 2.14.2 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
203
201
  }
204
202
  return binding
205
203
  } catch (e) {
@@ -214,8 +212,8 @@ function requireNative() {
214
212
  try {
215
213
  const binding = require('html-to-markdown-node-darwin-arm64')
216
214
  const bindingPackageVersion = require('html-to-markdown-node-darwin-arm64/package.json').version
217
- if (bindingPackageVersion !== '2.14.1' && 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 2.14.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
215
+ if (bindingPackageVersion !== '2.14.2' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
216
+ throw new Error(`Native binding package version mismatch, expected 2.14.2 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
219
217
  }
220
218
  return binding
221
219
  } catch (e) {
@@ -234,8 +232,8 @@ function requireNative() {
234
232
  try {
235
233
  const binding = require('html-to-markdown-node-freebsd-x64')
236
234
  const bindingPackageVersion = require('html-to-markdown-node-freebsd-x64/package.json').version
237
- if (bindingPackageVersion !== '2.14.1' && 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 2.14.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
235
+ if (bindingPackageVersion !== '2.14.2' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
236
+ throw new Error(`Native binding package version mismatch, expected 2.14.2 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
239
237
  }
240
238
  return binding
241
239
  } catch (e) {
@@ -250,8 +248,8 @@ function requireNative() {
250
248
  try {
251
249
  const binding = require('html-to-markdown-node-freebsd-arm64')
252
250
  const bindingPackageVersion = require('html-to-markdown-node-freebsd-arm64/package.json').version
253
- if (bindingPackageVersion !== '2.14.1' && 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 2.14.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
251
+ if (bindingPackageVersion !== '2.14.2' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
252
+ throw new Error(`Native binding package version mismatch, expected 2.14.2 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
255
253
  }
256
254
  return binding
257
255
  } catch (e) {
@@ -271,8 +269,8 @@ function requireNative() {
271
269
  try {
272
270
  const binding = require('html-to-markdown-node-linux-x64-musl')
273
271
  const bindingPackageVersion = require('html-to-markdown-node-linux-x64-musl/package.json').version
274
- if (bindingPackageVersion !== '2.14.1' && 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 2.14.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
272
+ if (bindingPackageVersion !== '2.14.2' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
273
+ throw new Error(`Native binding package version mismatch, expected 2.14.2 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
276
274
  }
277
275
  return binding
278
276
  } catch (e) {
@@ -287,8 +285,8 @@ function requireNative() {
287
285
  try {
288
286
  const binding = require('html-to-markdown-node-linux-x64-gnu')
289
287
  const bindingPackageVersion = require('html-to-markdown-node-linux-x64-gnu/package.json').version
290
- if (bindingPackageVersion !== '2.14.1' && 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 2.14.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
288
+ if (bindingPackageVersion !== '2.14.2' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
289
+ throw new Error(`Native binding package version mismatch, expected 2.14.2 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
292
290
  }
293
291
  return binding
294
292
  } catch (e) {
@@ -305,8 +303,8 @@ function requireNative() {
305
303
  try {
306
304
  const binding = require('html-to-markdown-node-linux-arm64-musl')
307
305
  const bindingPackageVersion = require('html-to-markdown-node-linux-arm64-musl/package.json').version
308
- if (bindingPackageVersion !== '2.14.1' && 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 2.14.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
306
+ if (bindingPackageVersion !== '2.14.2' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
307
+ throw new Error(`Native binding package version mismatch, expected 2.14.2 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
310
308
  }
311
309
  return binding
312
310
  } catch (e) {
@@ -321,8 +319,8 @@ function requireNative() {
321
319
  try {
322
320
  const binding = require('html-to-markdown-node-linux-arm64-gnu')
323
321
  const bindingPackageVersion = require('html-to-markdown-node-linux-arm64-gnu/package.json').version
324
- if (bindingPackageVersion !== '2.14.1' && 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 2.14.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
322
+ if (bindingPackageVersion !== '2.14.2' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
323
+ throw new Error(`Native binding package version mismatch, expected 2.14.2 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
326
324
  }
327
325
  return binding
328
326
  } catch (e) {
@@ -339,8 +337,8 @@ function requireNative() {
339
337
  try {
340
338
  const binding = require('html-to-markdown-node-linux-arm-musleabihf')
341
339
  const bindingPackageVersion = require('html-to-markdown-node-linux-arm-musleabihf/package.json').version
342
- if (bindingPackageVersion !== '2.14.1' && 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 2.14.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
340
+ if (bindingPackageVersion !== '2.14.2' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
341
+ throw new Error(`Native binding package version mismatch, expected 2.14.2 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
344
342
  }
345
343
  return binding
346
344
  } catch (e) {
@@ -355,8 +353,8 @@ function requireNative() {
355
353
  try {
356
354
  const binding = require('html-to-markdown-node-linux-arm-gnueabihf')
357
355
  const bindingPackageVersion = require('html-to-markdown-node-linux-arm-gnueabihf/package.json').version
358
- if (bindingPackageVersion !== '2.14.1' && 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 2.14.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
356
+ if (bindingPackageVersion !== '2.14.2' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
357
+ throw new Error(`Native binding package version mismatch, expected 2.14.2 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
360
358
  }
361
359
  return binding
362
360
  } catch (e) {
@@ -373,8 +371,8 @@ function requireNative() {
373
371
  try {
374
372
  const binding = require('html-to-markdown-node-linux-loong64-musl')
375
373
  const bindingPackageVersion = require('html-to-markdown-node-linux-loong64-musl/package.json').version
376
- if (bindingPackageVersion !== '2.14.1' && 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 2.14.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
374
+ if (bindingPackageVersion !== '2.14.2' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
375
+ throw new Error(`Native binding package version mismatch, expected 2.14.2 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
378
376
  }
379
377
  return binding
380
378
  } catch (e) {
@@ -389,8 +387,8 @@ function requireNative() {
389
387
  try {
390
388
  const binding = require('html-to-markdown-node-linux-loong64-gnu')
391
389
  const bindingPackageVersion = require('html-to-markdown-node-linux-loong64-gnu/package.json').version
392
- if (bindingPackageVersion !== '2.14.1' && 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 2.14.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
390
+ if (bindingPackageVersion !== '2.14.2' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
391
+ throw new Error(`Native binding package version mismatch, expected 2.14.2 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
394
392
  }
395
393
  return binding
396
394
  } catch (e) {
@@ -407,8 +405,8 @@ function requireNative() {
407
405
  try {
408
406
  const binding = require('html-to-markdown-node-linux-riscv64-musl')
409
407
  const bindingPackageVersion = require('html-to-markdown-node-linux-riscv64-musl/package.json').version
410
- if (bindingPackageVersion !== '2.14.1' && 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 2.14.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
408
+ if (bindingPackageVersion !== '2.14.2' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
409
+ throw new Error(`Native binding package version mismatch, expected 2.14.2 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
412
410
  }
413
411
  return binding
414
412
  } catch (e) {
@@ -423,8 +421,8 @@ function requireNative() {
423
421
  try {
424
422
  const binding = require('html-to-markdown-node-linux-riscv64-gnu')
425
423
  const bindingPackageVersion = require('html-to-markdown-node-linux-riscv64-gnu/package.json').version
426
- if (bindingPackageVersion !== '2.14.1' && 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 2.14.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
424
+ if (bindingPackageVersion !== '2.14.2' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
425
+ throw new Error(`Native binding package version mismatch, expected 2.14.2 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
428
426
  }
429
427
  return binding
430
428
  } catch (e) {
@@ -440,8 +438,8 @@ function requireNative() {
440
438
  try {
441
439
  const binding = require('html-to-markdown-node-linux-ppc64-gnu')
442
440
  const bindingPackageVersion = require('html-to-markdown-node-linux-ppc64-gnu/package.json').version
443
- if (bindingPackageVersion !== '2.14.1' && 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 2.14.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
441
+ if (bindingPackageVersion !== '2.14.2' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
442
+ throw new Error(`Native binding package version mismatch, expected 2.14.2 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
445
443
  }
446
444
  return binding
447
445
  } catch (e) {
@@ -456,8 +454,8 @@ function requireNative() {
456
454
  try {
457
455
  const binding = require('html-to-markdown-node-linux-s390x-gnu')
458
456
  const bindingPackageVersion = require('html-to-markdown-node-linux-s390x-gnu/package.json').version
459
- if (bindingPackageVersion !== '2.14.1' && 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 2.14.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
457
+ if (bindingPackageVersion !== '2.14.2' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
458
+ throw new Error(`Native binding package version mismatch, expected 2.14.2 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
461
459
  }
462
460
  return binding
463
461
  } catch (e) {
@@ -476,8 +474,8 @@ function requireNative() {
476
474
  try {
477
475
  const binding = require('html-to-markdown-node-openharmony-arm64')
478
476
  const bindingPackageVersion = require('html-to-markdown-node-openharmony-arm64/package.json').version
479
- if (bindingPackageVersion !== '2.14.1' && 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 2.14.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
477
+ if (bindingPackageVersion !== '2.14.2' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
478
+ throw new Error(`Native binding package version mismatch, expected 2.14.2 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
481
479
  }
482
480
  return binding
483
481
  } catch (e) {
@@ -492,8 +490,8 @@ function requireNative() {
492
490
  try {
493
491
  const binding = require('html-to-markdown-node-openharmony-x64')
494
492
  const bindingPackageVersion = require('html-to-markdown-node-openharmony-x64/package.json').version
495
- if (bindingPackageVersion !== '2.14.1' && 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 2.14.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
493
+ if (bindingPackageVersion !== '2.14.2' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
494
+ throw new Error(`Native binding package version mismatch, expected 2.14.2 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
497
495
  }
498
496
  return binding
499
497
  } catch (e) {
@@ -508,8 +506,8 @@ function requireNative() {
508
506
  try {
509
507
  const binding = require('html-to-markdown-node-openharmony-arm')
510
508
  const bindingPackageVersion = require('html-to-markdown-node-openharmony-arm/package.json').version
511
- if (bindingPackageVersion !== '2.14.1' && 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 2.14.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
509
+ if (bindingPackageVersion !== '2.14.2' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
510
+ throw new Error(`Native binding package version mismatch, expected 2.14.2 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
513
511
  }
514
512
  return binding
515
513
  } catch (e) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "html-to-markdown-node",
3
- "version": "2.14.1",
3
+ "version": "2.14.2",
4
4
  "description": "High-performance HTML to Markdown converter - Node.js native bindings",
5
5
  "main": "index.js",
6
6
  "types": "index.d.ts",
@@ -70,14 +70,14 @@
70
70
  "up": "^1.0.2"
71
71
  },
72
72
  "optionalDependencies": {
73
- "html-to-markdown-node-darwin-x64": "2.14.1",
74
- "html-to-markdown-node-darwin-arm64": "2.14.1",
75
- "html-to-markdown-node-win32-x64-msvc": "2.14.1",
76
- "html-to-markdown-node-win32-arm64-msvc": "2.14.1",
77
- "html-to-markdown-node-linux-x64-gnu": "2.14.1",
78
- "html-to-markdown-node-linux-x64-musl": "2.14.1",
79
- "html-to-markdown-node-linux-arm64-gnu": "2.14.1",
80
- "html-to-markdown-node-linux-arm64-musl": "2.14.1",
81
- "html-to-markdown-node-linux-arm-gnueabihf": "2.14.1"
73
+ "html-to-markdown-node-darwin-x64": "2.14.2",
74
+ "html-to-markdown-node-darwin-arm64": "2.14.2",
75
+ "html-to-markdown-node-win32-x64-msvc": "2.14.2",
76
+ "html-to-markdown-node-win32-arm64-msvc": "2.14.2",
77
+ "html-to-markdown-node-linux-x64-gnu": "2.14.2",
78
+ "html-to-markdown-node-linux-x64-musl": "2.14.2",
79
+ "html-to-markdown-node-linux-arm64-gnu": "2.14.2",
80
+ "html-to-markdown-node-linux-arm64-musl": "2.14.2",
81
+ "html-to-markdown-node-linux-arm-gnueabihf": "2.14.2"
82
82
  }
83
83
  }