html-to-markdown-node 2.14.4 → 2.14.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.js +52 -52
- package/package.json +10 -10
package/index.js
CHANGED
|
@@ -75,8 +75,8 @@ function requireNative() {
|
|
|
75
75
|
try {
|
|
76
76
|
const binding = require('html-to-markdown-node-android-arm64')
|
|
77
77
|
const bindingPackageVersion = require('html-to-markdown-node-android-arm64/package.json').version
|
|
78
|
-
if (bindingPackageVersion !== '2.14.
|
|
79
|
-
throw new Error(`Native binding package version mismatch, expected 2.14.
|
|
78
|
+
if (bindingPackageVersion !== '2.14.5' && 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.5 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
80
80
|
}
|
|
81
81
|
return binding
|
|
82
82
|
} catch (e) {
|
|
@@ -91,8 +91,8 @@ function requireNative() {
|
|
|
91
91
|
try {
|
|
92
92
|
const binding = require('html-to-markdown-node-android-arm-eabi')
|
|
93
93
|
const bindingPackageVersion = require('html-to-markdown-node-android-arm-eabi/package.json').version
|
|
94
|
-
if (bindingPackageVersion !== '2.14.
|
|
95
|
-
throw new Error(`Native binding package version mismatch, expected 2.14.
|
|
94
|
+
if (bindingPackageVersion !== '2.14.5' && 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.5 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
96
96
|
}
|
|
97
97
|
return binding
|
|
98
98
|
} catch (e) {
|
|
@@ -112,8 +112,8 @@ function requireNative() {
|
|
|
112
112
|
try {
|
|
113
113
|
const binding = require('html-to-markdown-node-win32-x64-gnu')
|
|
114
114
|
const bindingPackageVersion = require('html-to-markdown-node-win32-x64-gnu/package.json').version
|
|
115
|
-
if (bindingPackageVersion !== '2.14.
|
|
116
|
-
throw new Error(`Native binding package version mismatch, expected 2.14.
|
|
115
|
+
if (bindingPackageVersion !== '2.14.5' && 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.5 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
117
117
|
}
|
|
118
118
|
return binding
|
|
119
119
|
} catch (e) {
|
|
@@ -128,8 +128,8 @@ function requireNative() {
|
|
|
128
128
|
try {
|
|
129
129
|
const binding = require('html-to-markdown-node-win32-x64-msvc')
|
|
130
130
|
const bindingPackageVersion = require('html-to-markdown-node-win32-x64-msvc/package.json').version
|
|
131
|
-
if (bindingPackageVersion !== '2.14.
|
|
132
|
-
throw new Error(`Native binding package version mismatch, expected 2.14.
|
|
131
|
+
if (bindingPackageVersion !== '2.14.5' && 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.5 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
133
133
|
}
|
|
134
134
|
return binding
|
|
135
135
|
} catch (e) {
|
|
@@ -145,8 +145,8 @@ function requireNative() {
|
|
|
145
145
|
try {
|
|
146
146
|
const binding = require('html-to-markdown-node-win32-ia32-msvc')
|
|
147
147
|
const bindingPackageVersion = require('html-to-markdown-node-win32-ia32-msvc/package.json').version
|
|
148
|
-
if (bindingPackageVersion !== '2.14.
|
|
149
|
-
throw new Error(`Native binding package version mismatch, expected 2.14.
|
|
148
|
+
if (bindingPackageVersion !== '2.14.5' && 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.5 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
150
150
|
}
|
|
151
151
|
return binding
|
|
152
152
|
} catch (e) {
|
|
@@ -161,8 +161,8 @@ function requireNative() {
|
|
|
161
161
|
try {
|
|
162
162
|
const binding = require('html-to-markdown-node-win32-arm64-msvc')
|
|
163
163
|
const bindingPackageVersion = require('html-to-markdown-node-win32-arm64-msvc/package.json').version
|
|
164
|
-
if (bindingPackageVersion !== '2.14.
|
|
165
|
-
throw new Error(`Native binding package version mismatch, expected 2.14.
|
|
164
|
+
if (bindingPackageVersion !== '2.14.5' && 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.5 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
166
166
|
}
|
|
167
167
|
return binding
|
|
168
168
|
} catch (e) {
|
|
@@ -180,8 +180,8 @@ function requireNative() {
|
|
|
180
180
|
try {
|
|
181
181
|
const binding = require('html-to-markdown-node-darwin-universal')
|
|
182
182
|
const bindingPackageVersion = require('html-to-markdown-node-darwin-universal/package.json').version
|
|
183
|
-
if (bindingPackageVersion !== '2.14.
|
|
184
|
-
throw new Error(`Native binding package version mismatch, expected 2.14.
|
|
183
|
+
if (bindingPackageVersion !== '2.14.5' && 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.5 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
185
185
|
}
|
|
186
186
|
return binding
|
|
187
187
|
} catch (e) {
|
|
@@ -196,8 +196,8 @@ function requireNative() {
|
|
|
196
196
|
try {
|
|
197
197
|
const binding = require('html-to-markdown-node-darwin-x64')
|
|
198
198
|
const bindingPackageVersion = require('html-to-markdown-node-darwin-x64/package.json').version
|
|
199
|
-
if (bindingPackageVersion !== '2.14.
|
|
200
|
-
throw new Error(`Native binding package version mismatch, expected 2.14.
|
|
199
|
+
if (bindingPackageVersion !== '2.14.5' && 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.5 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
201
201
|
}
|
|
202
202
|
return binding
|
|
203
203
|
} catch (e) {
|
|
@@ -212,8 +212,8 @@ function requireNative() {
|
|
|
212
212
|
try {
|
|
213
213
|
const binding = require('html-to-markdown-node-darwin-arm64')
|
|
214
214
|
const bindingPackageVersion = require('html-to-markdown-node-darwin-arm64/package.json').version
|
|
215
|
-
if (bindingPackageVersion !== '2.14.
|
|
216
|
-
throw new Error(`Native binding package version mismatch, expected 2.14.
|
|
215
|
+
if (bindingPackageVersion !== '2.14.5' && 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.5 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
217
217
|
}
|
|
218
218
|
return binding
|
|
219
219
|
} catch (e) {
|
|
@@ -232,8 +232,8 @@ function requireNative() {
|
|
|
232
232
|
try {
|
|
233
233
|
const binding = require('html-to-markdown-node-freebsd-x64')
|
|
234
234
|
const bindingPackageVersion = require('html-to-markdown-node-freebsd-x64/package.json').version
|
|
235
|
-
if (bindingPackageVersion !== '2.14.
|
|
236
|
-
throw new Error(`Native binding package version mismatch, expected 2.14.
|
|
235
|
+
if (bindingPackageVersion !== '2.14.5' && 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.5 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
237
237
|
}
|
|
238
238
|
return binding
|
|
239
239
|
} catch (e) {
|
|
@@ -248,8 +248,8 @@ function requireNative() {
|
|
|
248
248
|
try {
|
|
249
249
|
const binding = require('html-to-markdown-node-freebsd-arm64')
|
|
250
250
|
const bindingPackageVersion = require('html-to-markdown-node-freebsd-arm64/package.json').version
|
|
251
|
-
if (bindingPackageVersion !== '2.14.
|
|
252
|
-
throw new Error(`Native binding package version mismatch, expected 2.14.
|
|
251
|
+
if (bindingPackageVersion !== '2.14.5' && 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.5 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
253
253
|
}
|
|
254
254
|
return binding
|
|
255
255
|
} catch (e) {
|
|
@@ -269,8 +269,8 @@ function requireNative() {
|
|
|
269
269
|
try {
|
|
270
270
|
const binding = require('html-to-markdown-node-linux-x64-musl')
|
|
271
271
|
const bindingPackageVersion = require('html-to-markdown-node-linux-x64-musl/package.json').version
|
|
272
|
-
if (bindingPackageVersion !== '2.14.
|
|
273
|
-
throw new Error(`Native binding package version mismatch, expected 2.14.
|
|
272
|
+
if (bindingPackageVersion !== '2.14.5' && 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.5 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
274
274
|
}
|
|
275
275
|
return binding
|
|
276
276
|
} catch (e) {
|
|
@@ -285,8 +285,8 @@ function requireNative() {
|
|
|
285
285
|
try {
|
|
286
286
|
const binding = require('html-to-markdown-node-linux-x64-gnu')
|
|
287
287
|
const bindingPackageVersion = require('html-to-markdown-node-linux-x64-gnu/package.json').version
|
|
288
|
-
if (bindingPackageVersion !== '2.14.
|
|
289
|
-
throw new Error(`Native binding package version mismatch, expected 2.14.
|
|
288
|
+
if (bindingPackageVersion !== '2.14.5' && 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.5 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
290
290
|
}
|
|
291
291
|
return binding
|
|
292
292
|
} catch (e) {
|
|
@@ -303,8 +303,8 @@ function requireNative() {
|
|
|
303
303
|
try {
|
|
304
304
|
const binding = require('html-to-markdown-node-linux-arm64-musl')
|
|
305
305
|
const bindingPackageVersion = require('html-to-markdown-node-linux-arm64-musl/package.json').version
|
|
306
|
-
if (bindingPackageVersion !== '2.14.
|
|
307
|
-
throw new Error(`Native binding package version mismatch, expected 2.14.
|
|
306
|
+
if (bindingPackageVersion !== '2.14.5' && 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.5 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
308
308
|
}
|
|
309
309
|
return binding
|
|
310
310
|
} catch (e) {
|
|
@@ -319,8 +319,8 @@ function requireNative() {
|
|
|
319
319
|
try {
|
|
320
320
|
const binding = require('html-to-markdown-node-linux-arm64-gnu')
|
|
321
321
|
const bindingPackageVersion = require('html-to-markdown-node-linux-arm64-gnu/package.json').version
|
|
322
|
-
if (bindingPackageVersion !== '2.14.
|
|
323
|
-
throw new Error(`Native binding package version mismatch, expected 2.14.
|
|
322
|
+
if (bindingPackageVersion !== '2.14.5' && 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.5 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
324
324
|
}
|
|
325
325
|
return binding
|
|
326
326
|
} catch (e) {
|
|
@@ -337,8 +337,8 @@ function requireNative() {
|
|
|
337
337
|
try {
|
|
338
338
|
const binding = require('html-to-markdown-node-linux-arm-musleabihf')
|
|
339
339
|
const bindingPackageVersion = require('html-to-markdown-node-linux-arm-musleabihf/package.json').version
|
|
340
|
-
if (bindingPackageVersion !== '2.14.
|
|
341
|
-
throw new Error(`Native binding package version mismatch, expected 2.14.
|
|
340
|
+
if (bindingPackageVersion !== '2.14.5' && 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.5 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
342
342
|
}
|
|
343
343
|
return binding
|
|
344
344
|
} catch (e) {
|
|
@@ -353,8 +353,8 @@ function requireNative() {
|
|
|
353
353
|
try {
|
|
354
354
|
const binding = require('html-to-markdown-node-linux-arm-gnueabihf')
|
|
355
355
|
const bindingPackageVersion = require('html-to-markdown-node-linux-arm-gnueabihf/package.json').version
|
|
356
|
-
if (bindingPackageVersion !== '2.14.
|
|
357
|
-
throw new Error(`Native binding package version mismatch, expected 2.14.
|
|
356
|
+
if (bindingPackageVersion !== '2.14.5' && 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.5 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
358
358
|
}
|
|
359
359
|
return binding
|
|
360
360
|
} catch (e) {
|
|
@@ -371,8 +371,8 @@ function requireNative() {
|
|
|
371
371
|
try {
|
|
372
372
|
const binding = require('html-to-markdown-node-linux-loong64-musl')
|
|
373
373
|
const bindingPackageVersion = require('html-to-markdown-node-linux-loong64-musl/package.json').version
|
|
374
|
-
if (bindingPackageVersion !== '2.14.
|
|
375
|
-
throw new Error(`Native binding package version mismatch, expected 2.14.
|
|
374
|
+
if (bindingPackageVersion !== '2.14.5' && 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.5 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
376
376
|
}
|
|
377
377
|
return binding
|
|
378
378
|
} catch (e) {
|
|
@@ -387,8 +387,8 @@ function requireNative() {
|
|
|
387
387
|
try {
|
|
388
388
|
const binding = require('html-to-markdown-node-linux-loong64-gnu')
|
|
389
389
|
const bindingPackageVersion = require('html-to-markdown-node-linux-loong64-gnu/package.json').version
|
|
390
|
-
if (bindingPackageVersion !== '2.14.
|
|
391
|
-
throw new Error(`Native binding package version mismatch, expected 2.14.
|
|
390
|
+
if (bindingPackageVersion !== '2.14.5' && 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.5 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
392
392
|
}
|
|
393
393
|
return binding
|
|
394
394
|
} catch (e) {
|
|
@@ -405,8 +405,8 @@ function requireNative() {
|
|
|
405
405
|
try {
|
|
406
406
|
const binding = require('html-to-markdown-node-linux-riscv64-musl')
|
|
407
407
|
const bindingPackageVersion = require('html-to-markdown-node-linux-riscv64-musl/package.json').version
|
|
408
|
-
if (bindingPackageVersion !== '2.14.
|
|
409
|
-
throw new Error(`Native binding package version mismatch, expected 2.14.
|
|
408
|
+
if (bindingPackageVersion !== '2.14.5' && 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.5 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
410
410
|
}
|
|
411
411
|
return binding
|
|
412
412
|
} catch (e) {
|
|
@@ -421,8 +421,8 @@ function requireNative() {
|
|
|
421
421
|
try {
|
|
422
422
|
const binding = require('html-to-markdown-node-linux-riscv64-gnu')
|
|
423
423
|
const bindingPackageVersion = require('html-to-markdown-node-linux-riscv64-gnu/package.json').version
|
|
424
|
-
if (bindingPackageVersion !== '2.14.
|
|
425
|
-
throw new Error(`Native binding package version mismatch, expected 2.14.
|
|
424
|
+
if (bindingPackageVersion !== '2.14.5' && 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.5 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
426
426
|
}
|
|
427
427
|
return binding
|
|
428
428
|
} catch (e) {
|
|
@@ -438,8 +438,8 @@ function requireNative() {
|
|
|
438
438
|
try {
|
|
439
439
|
const binding = require('html-to-markdown-node-linux-ppc64-gnu')
|
|
440
440
|
const bindingPackageVersion = require('html-to-markdown-node-linux-ppc64-gnu/package.json').version
|
|
441
|
-
if (bindingPackageVersion !== '2.14.
|
|
442
|
-
throw new Error(`Native binding package version mismatch, expected 2.14.
|
|
441
|
+
if (bindingPackageVersion !== '2.14.5' && 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.5 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
443
443
|
}
|
|
444
444
|
return binding
|
|
445
445
|
} catch (e) {
|
|
@@ -454,8 +454,8 @@ function requireNative() {
|
|
|
454
454
|
try {
|
|
455
455
|
const binding = require('html-to-markdown-node-linux-s390x-gnu')
|
|
456
456
|
const bindingPackageVersion = require('html-to-markdown-node-linux-s390x-gnu/package.json').version
|
|
457
|
-
if (bindingPackageVersion !== '2.14.
|
|
458
|
-
throw new Error(`Native binding package version mismatch, expected 2.14.
|
|
457
|
+
if (bindingPackageVersion !== '2.14.5' && 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.5 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
459
459
|
}
|
|
460
460
|
return binding
|
|
461
461
|
} catch (e) {
|
|
@@ -474,8 +474,8 @@ function requireNative() {
|
|
|
474
474
|
try {
|
|
475
475
|
const binding = require('html-to-markdown-node-openharmony-arm64')
|
|
476
476
|
const bindingPackageVersion = require('html-to-markdown-node-openharmony-arm64/package.json').version
|
|
477
|
-
if (bindingPackageVersion !== '2.14.
|
|
478
|
-
throw new Error(`Native binding package version mismatch, expected 2.14.
|
|
477
|
+
if (bindingPackageVersion !== '2.14.5' && 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.5 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
479
479
|
}
|
|
480
480
|
return binding
|
|
481
481
|
} catch (e) {
|
|
@@ -490,8 +490,8 @@ function requireNative() {
|
|
|
490
490
|
try {
|
|
491
491
|
const binding = require('html-to-markdown-node-openharmony-x64')
|
|
492
492
|
const bindingPackageVersion = require('html-to-markdown-node-openharmony-x64/package.json').version
|
|
493
|
-
if (bindingPackageVersion !== '2.14.
|
|
494
|
-
throw new Error(`Native binding package version mismatch, expected 2.14.
|
|
493
|
+
if (bindingPackageVersion !== '2.14.5' && 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.5 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
495
495
|
}
|
|
496
496
|
return binding
|
|
497
497
|
} catch (e) {
|
|
@@ -506,8 +506,8 @@ function requireNative() {
|
|
|
506
506
|
try {
|
|
507
507
|
const binding = require('html-to-markdown-node-openharmony-arm')
|
|
508
508
|
const bindingPackageVersion = require('html-to-markdown-node-openharmony-arm/package.json').version
|
|
509
|
-
if (bindingPackageVersion !== '2.14.
|
|
510
|
-
throw new Error(`Native binding package version mismatch, expected 2.14.
|
|
509
|
+
if (bindingPackageVersion !== '2.14.5' && 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.5 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
511
511
|
}
|
|
512
512
|
return binding
|
|
513
513
|
} catch (e) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "html-to-markdown-node",
|
|
3
|
-
"version": "2.14.
|
|
3
|
+
"version": "2.14.5",
|
|
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.
|
|
74
|
-
"html-to-markdown-node-darwin-arm64": "2.14.
|
|
75
|
-
"html-to-markdown-node-win32-x64-msvc": "2.14.
|
|
76
|
-
"html-to-markdown-node-win32-arm64-msvc": "2.14.
|
|
77
|
-
"html-to-markdown-node-linux-x64-gnu": "2.14.
|
|
78
|
-
"html-to-markdown-node-linux-x64-musl": "2.14.
|
|
79
|
-
"html-to-markdown-node-linux-arm64-gnu": "2.14.
|
|
80
|
-
"html-to-markdown-node-linux-arm64-musl": "2.14.
|
|
81
|
-
"html-to-markdown-node-linux-arm-gnueabihf": "2.14.
|
|
73
|
+
"html-to-markdown-node-darwin-x64": "2.14.5",
|
|
74
|
+
"html-to-markdown-node-darwin-arm64": "2.14.5",
|
|
75
|
+
"html-to-markdown-node-win32-x64-msvc": "2.14.5",
|
|
76
|
+
"html-to-markdown-node-win32-arm64-msvc": "2.14.5",
|
|
77
|
+
"html-to-markdown-node-linux-x64-gnu": "2.14.5",
|
|
78
|
+
"html-to-markdown-node-linux-x64-musl": "2.14.5",
|
|
79
|
+
"html-to-markdown-node-linux-arm64-gnu": "2.14.5",
|
|
80
|
+
"html-to-markdown-node-linux-arm64-musl": "2.14.5",
|
|
81
|
+
"html-to-markdown-node-linux-arm-gnueabihf": "2.14.5"
|
|
82
82
|
}
|
|
83
83
|
}
|