@farhnkrnapratma/markers 1.0.0-alpha2 → 1.0.0-alpha3
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/README.md +8 -2
- package/index.js +56 -56
- package/package.json +24 -14
package/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# markers
|
|
2
2
|
|
|
3
|
-
[](https://dl.circleci.com/status-badge/redirect/circleci/stZqvYiNAK17m5zy7ERCb/5KDDkHQnUroSHKP957pxaW/tree/main) [](https://www.npmjs.com/package/@farhnkrnapratma/markers) [](https://crates.io/crates/markers) [](https://docs.rs/markers) 
|
|
3
|
+
[](https://dl.circleci.com/status-badge/redirect/circleci/stZqvYiNAK17m5zy7ERCb/5KDDkHQnUroSHKP957pxaW/tree/main) [](https://codecov.io/gh/farhnkrnapratma/markers) [](https://www.npmjs.com/package/@farhnkrnapratma/markers) [](https://crates.io/crates/markers) [](https://docs.rs/markers) 
|
|
4
4
|
|
|
5
5
|
Converts HTML to clean GitHub Flavored Markdown. It is built for turning web pages into text for large language models: page chrome and non-text elements are dropped, unsafe links are removed, and CSS selectors let you keep only the content you want. The converter is written in Rust and is available as a Rust crate and as an npm package for Node.js and Bun.
|
|
6
6
|
|
|
@@ -21,7 +21,13 @@ npm install @farhnkrnapratma/markers@alpha # or: bun add @farhnkrnapratma/mark
|
|
|
21
21
|
cargo add markers # Rust
|
|
22
22
|
```
|
|
23
23
|
|
|
24
|
-
The npm package ships prebuilt native addons
|
|
24
|
+
The npm package ships prebuilt native addons as optional dependencies, so nothing is compiled on install:
|
|
25
|
+
|
|
26
|
+
| OS | Architectures |
|
|
27
|
+
| ------- | --------------------------------------------------------------- |
|
|
28
|
+
| Linux | x64 and arm64 (glibc and musl), armv7, ppc64le, s390x, riscv64 |
|
|
29
|
+
| macOS | arm64, x64 |
|
|
30
|
+
| Windows | x64, arm64, ia32 |
|
|
25
31
|
|
|
26
32
|
## Usage
|
|
27
33
|
|
package/index.js
CHANGED
|
@@ -99,12 +99,12 @@ function requireNative() {
|
|
|
99
99
|
const bindingPackageVersion =
|
|
100
100
|
require("@farhnkrnapratma/markers-android-arm64/package.json").version;
|
|
101
101
|
if (
|
|
102
|
-
bindingPackageVersion !== "1.0.0-
|
|
102
|
+
bindingPackageVersion !== "1.0.0-alpha3" &&
|
|
103
103
|
process.env.NAPI_RS_ENFORCE_VERSION_CHECK &&
|
|
104
104
|
process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0"
|
|
105
105
|
) {
|
|
106
106
|
throw new Error(
|
|
107
|
-
`Native binding package version mismatch, expected 1.0.0-
|
|
107
|
+
`Native binding package version mismatch, expected 1.0.0-alpha3 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
|
|
108
108
|
);
|
|
109
109
|
}
|
|
110
110
|
return binding;
|
|
@@ -122,12 +122,12 @@ function requireNative() {
|
|
|
122
122
|
const bindingPackageVersion =
|
|
123
123
|
require("@farhnkrnapratma/markers-android-arm-eabi/package.json").version;
|
|
124
124
|
if (
|
|
125
|
-
bindingPackageVersion !== "1.0.0-
|
|
125
|
+
bindingPackageVersion !== "1.0.0-alpha3" &&
|
|
126
126
|
process.env.NAPI_RS_ENFORCE_VERSION_CHECK &&
|
|
127
127
|
process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0"
|
|
128
128
|
) {
|
|
129
129
|
throw new Error(
|
|
130
|
-
`Native binding package version mismatch, expected 1.0.0-
|
|
130
|
+
`Native binding package version mismatch, expected 1.0.0-alpha3 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
|
|
131
131
|
);
|
|
132
132
|
}
|
|
133
133
|
return binding;
|
|
@@ -159,12 +159,12 @@ function requireNative() {
|
|
|
159
159
|
const bindingPackageVersion =
|
|
160
160
|
require("@farhnkrnapratma/markers-win32-x64-gnu/package.json").version;
|
|
161
161
|
if (
|
|
162
|
-
bindingPackageVersion !== "1.0.0-
|
|
162
|
+
bindingPackageVersion !== "1.0.0-alpha3" &&
|
|
163
163
|
process.env.NAPI_RS_ENFORCE_VERSION_CHECK &&
|
|
164
164
|
process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0"
|
|
165
165
|
) {
|
|
166
166
|
throw new Error(
|
|
167
|
-
`Native binding package version mismatch, expected 1.0.0-
|
|
167
|
+
`Native binding package version mismatch, expected 1.0.0-alpha3 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
|
|
168
168
|
);
|
|
169
169
|
}
|
|
170
170
|
return binding;
|
|
@@ -182,12 +182,12 @@ function requireNative() {
|
|
|
182
182
|
const bindingPackageVersion =
|
|
183
183
|
require("@farhnkrnapratma/markers-win32-x64-msvc/package.json").version;
|
|
184
184
|
if (
|
|
185
|
-
bindingPackageVersion !== "1.0.0-
|
|
185
|
+
bindingPackageVersion !== "1.0.0-alpha3" &&
|
|
186
186
|
process.env.NAPI_RS_ENFORCE_VERSION_CHECK &&
|
|
187
187
|
process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0"
|
|
188
188
|
) {
|
|
189
189
|
throw new Error(
|
|
190
|
-
`Native binding package version mismatch, expected 1.0.0-
|
|
190
|
+
`Native binding package version mismatch, expected 1.0.0-alpha3 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
|
|
191
191
|
);
|
|
192
192
|
}
|
|
193
193
|
return binding;
|
|
@@ -206,12 +206,12 @@ function requireNative() {
|
|
|
206
206
|
const bindingPackageVersion =
|
|
207
207
|
require("@farhnkrnapratma/markers-win32-ia32-msvc/package.json").version;
|
|
208
208
|
if (
|
|
209
|
-
bindingPackageVersion !== "1.0.0-
|
|
209
|
+
bindingPackageVersion !== "1.0.0-alpha3" &&
|
|
210
210
|
process.env.NAPI_RS_ENFORCE_VERSION_CHECK &&
|
|
211
211
|
process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0"
|
|
212
212
|
) {
|
|
213
213
|
throw new Error(
|
|
214
|
-
`Native binding package version mismatch, expected 1.0.0-
|
|
214
|
+
`Native binding package version mismatch, expected 1.0.0-alpha3 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
|
|
215
215
|
);
|
|
216
216
|
}
|
|
217
217
|
return binding;
|
|
@@ -229,12 +229,12 @@ function requireNative() {
|
|
|
229
229
|
const bindingPackageVersion =
|
|
230
230
|
require("@farhnkrnapratma/markers-win32-arm64-msvc/package.json").version;
|
|
231
231
|
if (
|
|
232
|
-
bindingPackageVersion !== "1.0.0-
|
|
232
|
+
bindingPackageVersion !== "1.0.0-alpha3" &&
|
|
233
233
|
process.env.NAPI_RS_ENFORCE_VERSION_CHECK &&
|
|
234
234
|
process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0"
|
|
235
235
|
) {
|
|
236
236
|
throw new Error(
|
|
237
|
-
`Native binding package version mismatch, expected 1.0.0-
|
|
237
|
+
`Native binding package version mismatch, expected 1.0.0-alpha3 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
|
|
238
238
|
);
|
|
239
239
|
}
|
|
240
240
|
return binding;
|
|
@@ -257,12 +257,12 @@ function requireNative() {
|
|
|
257
257
|
const bindingPackageVersion =
|
|
258
258
|
require("@farhnkrnapratma/markers-darwin-universal/package.json").version;
|
|
259
259
|
if (
|
|
260
|
-
bindingPackageVersion !== "1.0.0-
|
|
260
|
+
bindingPackageVersion !== "1.0.0-alpha3" &&
|
|
261
261
|
process.env.NAPI_RS_ENFORCE_VERSION_CHECK &&
|
|
262
262
|
process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0"
|
|
263
263
|
) {
|
|
264
264
|
throw new Error(
|
|
265
|
-
`Native binding package version mismatch, expected 1.0.0-
|
|
265
|
+
`Native binding package version mismatch, expected 1.0.0-alpha3 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
|
|
266
266
|
);
|
|
267
267
|
}
|
|
268
268
|
return binding;
|
|
@@ -280,12 +280,12 @@ function requireNative() {
|
|
|
280
280
|
const bindingPackageVersion =
|
|
281
281
|
require("@farhnkrnapratma/markers-darwin-x64/package.json").version;
|
|
282
282
|
if (
|
|
283
|
-
bindingPackageVersion !== "1.0.0-
|
|
283
|
+
bindingPackageVersion !== "1.0.0-alpha3" &&
|
|
284
284
|
process.env.NAPI_RS_ENFORCE_VERSION_CHECK &&
|
|
285
285
|
process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0"
|
|
286
286
|
) {
|
|
287
287
|
throw new Error(
|
|
288
|
-
`Native binding package version mismatch, expected 1.0.0-
|
|
288
|
+
`Native binding package version mismatch, expected 1.0.0-alpha3 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
|
|
289
289
|
);
|
|
290
290
|
}
|
|
291
291
|
return binding;
|
|
@@ -303,12 +303,12 @@ function requireNative() {
|
|
|
303
303
|
const bindingPackageVersion =
|
|
304
304
|
require("@farhnkrnapratma/markers-darwin-arm64/package.json").version;
|
|
305
305
|
if (
|
|
306
|
-
bindingPackageVersion !== "1.0.0-
|
|
306
|
+
bindingPackageVersion !== "1.0.0-alpha3" &&
|
|
307
307
|
process.env.NAPI_RS_ENFORCE_VERSION_CHECK &&
|
|
308
308
|
process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0"
|
|
309
309
|
) {
|
|
310
310
|
throw new Error(
|
|
311
|
-
`Native binding package version mismatch, expected 1.0.0-
|
|
311
|
+
`Native binding package version mismatch, expected 1.0.0-alpha3 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
|
|
312
312
|
);
|
|
313
313
|
}
|
|
314
314
|
return binding;
|
|
@@ -332,12 +332,12 @@ function requireNative() {
|
|
|
332
332
|
const bindingPackageVersion =
|
|
333
333
|
require("@farhnkrnapratma/markers-freebsd-x64/package.json").version;
|
|
334
334
|
if (
|
|
335
|
-
bindingPackageVersion !== "1.0.0-
|
|
335
|
+
bindingPackageVersion !== "1.0.0-alpha3" &&
|
|
336
336
|
process.env.NAPI_RS_ENFORCE_VERSION_CHECK &&
|
|
337
337
|
process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0"
|
|
338
338
|
) {
|
|
339
339
|
throw new Error(
|
|
340
|
-
`Native binding package version mismatch, expected 1.0.0-
|
|
340
|
+
`Native binding package version mismatch, expected 1.0.0-alpha3 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
|
|
341
341
|
);
|
|
342
342
|
}
|
|
343
343
|
return binding;
|
|
@@ -355,12 +355,12 @@ function requireNative() {
|
|
|
355
355
|
const bindingPackageVersion =
|
|
356
356
|
require("@farhnkrnapratma/markers-freebsd-arm64/package.json").version;
|
|
357
357
|
if (
|
|
358
|
-
bindingPackageVersion !== "1.0.0-
|
|
358
|
+
bindingPackageVersion !== "1.0.0-alpha3" &&
|
|
359
359
|
process.env.NAPI_RS_ENFORCE_VERSION_CHECK &&
|
|
360
360
|
process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0"
|
|
361
361
|
) {
|
|
362
362
|
throw new Error(
|
|
363
|
-
`Native binding package version mismatch, expected 1.0.0-
|
|
363
|
+
`Native binding package version mismatch, expected 1.0.0-alpha3 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
|
|
364
364
|
);
|
|
365
365
|
}
|
|
366
366
|
return binding;
|
|
@@ -378,12 +378,12 @@ function requireNative() {
|
|
|
378
378
|
const bindingPackageVersion =
|
|
379
379
|
require("@farhnkrnapratma/markers-freebsd-ppc64/package.json").version;
|
|
380
380
|
if (
|
|
381
|
-
bindingPackageVersion !== "1.0.0-
|
|
381
|
+
bindingPackageVersion !== "1.0.0-alpha3" &&
|
|
382
382
|
process.env.NAPI_RS_ENFORCE_VERSION_CHECK &&
|
|
383
383
|
process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0"
|
|
384
384
|
) {
|
|
385
385
|
throw new Error(
|
|
386
|
-
`Native binding package version mismatch, expected 1.0.0-
|
|
386
|
+
`Native binding package version mismatch, expected 1.0.0-alpha3 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
|
|
387
387
|
);
|
|
388
388
|
}
|
|
389
389
|
return binding;
|
|
@@ -408,12 +408,12 @@ function requireNative() {
|
|
|
408
408
|
const bindingPackageVersion =
|
|
409
409
|
require("@farhnkrnapratma/markers-linux-x64-musl/package.json").version;
|
|
410
410
|
if (
|
|
411
|
-
bindingPackageVersion !== "1.0.0-
|
|
411
|
+
bindingPackageVersion !== "1.0.0-alpha3" &&
|
|
412
412
|
process.env.NAPI_RS_ENFORCE_VERSION_CHECK &&
|
|
413
413
|
process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0"
|
|
414
414
|
) {
|
|
415
415
|
throw new Error(
|
|
416
|
-
`Native binding package version mismatch, expected 1.0.0-
|
|
416
|
+
`Native binding package version mismatch, expected 1.0.0-alpha3 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
|
|
417
417
|
);
|
|
418
418
|
}
|
|
419
419
|
return binding;
|
|
@@ -431,12 +431,12 @@ function requireNative() {
|
|
|
431
431
|
const bindingPackageVersion =
|
|
432
432
|
require("@farhnkrnapratma/markers-linux-x64-gnu/package.json").version;
|
|
433
433
|
if (
|
|
434
|
-
bindingPackageVersion !== "1.0.0-
|
|
434
|
+
bindingPackageVersion !== "1.0.0-alpha3" &&
|
|
435
435
|
process.env.NAPI_RS_ENFORCE_VERSION_CHECK &&
|
|
436
436
|
process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0"
|
|
437
437
|
) {
|
|
438
438
|
throw new Error(
|
|
439
|
-
`Native binding package version mismatch, expected 1.0.0-
|
|
439
|
+
`Native binding package version mismatch, expected 1.0.0-alpha3 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
|
|
440
440
|
);
|
|
441
441
|
}
|
|
442
442
|
return binding;
|
|
@@ -456,12 +456,12 @@ function requireNative() {
|
|
|
456
456
|
const bindingPackageVersion =
|
|
457
457
|
require("@farhnkrnapratma/markers-linux-arm64-musl/package.json").version;
|
|
458
458
|
if (
|
|
459
|
-
bindingPackageVersion !== "1.0.0-
|
|
459
|
+
bindingPackageVersion !== "1.0.0-alpha3" &&
|
|
460
460
|
process.env.NAPI_RS_ENFORCE_VERSION_CHECK &&
|
|
461
461
|
process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0"
|
|
462
462
|
) {
|
|
463
463
|
throw new Error(
|
|
464
|
-
`Native binding package version mismatch, expected 1.0.0-
|
|
464
|
+
`Native binding package version mismatch, expected 1.0.0-alpha3 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
|
|
465
465
|
);
|
|
466
466
|
}
|
|
467
467
|
return binding;
|
|
@@ -479,12 +479,12 @@ function requireNative() {
|
|
|
479
479
|
const bindingPackageVersion =
|
|
480
480
|
require("@farhnkrnapratma/markers-linux-arm64-gnu/package.json").version;
|
|
481
481
|
if (
|
|
482
|
-
bindingPackageVersion !== "1.0.0-
|
|
482
|
+
bindingPackageVersion !== "1.0.0-alpha3" &&
|
|
483
483
|
process.env.NAPI_RS_ENFORCE_VERSION_CHECK &&
|
|
484
484
|
process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0"
|
|
485
485
|
) {
|
|
486
486
|
throw new Error(
|
|
487
|
-
`Native binding package version mismatch, expected 1.0.0-
|
|
487
|
+
`Native binding package version mismatch, expected 1.0.0-alpha3 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
|
|
488
488
|
);
|
|
489
489
|
}
|
|
490
490
|
return binding;
|
|
@@ -504,12 +504,12 @@ function requireNative() {
|
|
|
504
504
|
const bindingPackageVersion =
|
|
505
505
|
require("@farhnkrnapratma/markers-linux-arm-musleabihf/package.json").version;
|
|
506
506
|
if (
|
|
507
|
-
bindingPackageVersion !== "1.0.0-
|
|
507
|
+
bindingPackageVersion !== "1.0.0-alpha3" &&
|
|
508
508
|
process.env.NAPI_RS_ENFORCE_VERSION_CHECK &&
|
|
509
509
|
process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0"
|
|
510
510
|
) {
|
|
511
511
|
throw new Error(
|
|
512
|
-
`Native binding package version mismatch, expected 1.0.0-
|
|
512
|
+
`Native binding package version mismatch, expected 1.0.0-alpha3 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
|
|
513
513
|
);
|
|
514
514
|
}
|
|
515
515
|
return binding;
|
|
@@ -527,12 +527,12 @@ function requireNative() {
|
|
|
527
527
|
const bindingPackageVersion =
|
|
528
528
|
require("@farhnkrnapratma/markers-linux-arm-gnueabihf/package.json").version;
|
|
529
529
|
if (
|
|
530
|
-
bindingPackageVersion !== "1.0.0-
|
|
530
|
+
bindingPackageVersion !== "1.0.0-alpha3" &&
|
|
531
531
|
process.env.NAPI_RS_ENFORCE_VERSION_CHECK &&
|
|
532
532
|
process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0"
|
|
533
533
|
) {
|
|
534
534
|
throw new Error(
|
|
535
|
-
`Native binding package version mismatch, expected 1.0.0-
|
|
535
|
+
`Native binding package version mismatch, expected 1.0.0-alpha3 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
|
|
536
536
|
);
|
|
537
537
|
}
|
|
538
538
|
return binding;
|
|
@@ -552,12 +552,12 @@ function requireNative() {
|
|
|
552
552
|
const bindingPackageVersion =
|
|
553
553
|
require("@farhnkrnapratma/markers-linux-loong64-musl/package.json").version;
|
|
554
554
|
if (
|
|
555
|
-
bindingPackageVersion !== "1.0.0-
|
|
555
|
+
bindingPackageVersion !== "1.0.0-alpha3" &&
|
|
556
556
|
process.env.NAPI_RS_ENFORCE_VERSION_CHECK &&
|
|
557
557
|
process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0"
|
|
558
558
|
) {
|
|
559
559
|
throw new Error(
|
|
560
|
-
`Native binding package version mismatch, expected 1.0.0-
|
|
560
|
+
`Native binding package version mismatch, expected 1.0.0-alpha3 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
|
|
561
561
|
);
|
|
562
562
|
}
|
|
563
563
|
return binding;
|
|
@@ -575,12 +575,12 @@ function requireNative() {
|
|
|
575
575
|
const bindingPackageVersion =
|
|
576
576
|
require("@farhnkrnapratma/markers-linux-loong64-gnu/package.json").version;
|
|
577
577
|
if (
|
|
578
|
-
bindingPackageVersion !== "1.0.0-
|
|
578
|
+
bindingPackageVersion !== "1.0.0-alpha3" &&
|
|
579
579
|
process.env.NAPI_RS_ENFORCE_VERSION_CHECK &&
|
|
580
580
|
process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0"
|
|
581
581
|
) {
|
|
582
582
|
throw new Error(
|
|
583
|
-
`Native binding package version mismatch, expected 1.0.0-
|
|
583
|
+
`Native binding package version mismatch, expected 1.0.0-alpha3 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
|
|
584
584
|
);
|
|
585
585
|
}
|
|
586
586
|
return binding;
|
|
@@ -600,12 +600,12 @@ function requireNative() {
|
|
|
600
600
|
const bindingPackageVersion =
|
|
601
601
|
require("@farhnkrnapratma/markers-linux-riscv64-musl/package.json").version;
|
|
602
602
|
if (
|
|
603
|
-
bindingPackageVersion !== "1.0.0-
|
|
603
|
+
bindingPackageVersion !== "1.0.0-alpha3" &&
|
|
604
604
|
process.env.NAPI_RS_ENFORCE_VERSION_CHECK &&
|
|
605
605
|
process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0"
|
|
606
606
|
) {
|
|
607
607
|
throw new Error(
|
|
608
|
-
`Native binding package version mismatch, expected 1.0.0-
|
|
608
|
+
`Native binding package version mismatch, expected 1.0.0-alpha3 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
|
|
609
609
|
);
|
|
610
610
|
}
|
|
611
611
|
return binding;
|
|
@@ -623,12 +623,12 @@ function requireNative() {
|
|
|
623
623
|
const bindingPackageVersion =
|
|
624
624
|
require("@farhnkrnapratma/markers-linux-riscv64-gnu/package.json").version;
|
|
625
625
|
if (
|
|
626
|
-
bindingPackageVersion !== "1.0.0-
|
|
626
|
+
bindingPackageVersion !== "1.0.0-alpha3" &&
|
|
627
627
|
process.env.NAPI_RS_ENFORCE_VERSION_CHECK &&
|
|
628
628
|
process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0"
|
|
629
629
|
) {
|
|
630
630
|
throw new Error(
|
|
631
|
-
`Native binding package version mismatch, expected 1.0.0-
|
|
631
|
+
`Native binding package version mismatch, expected 1.0.0-alpha3 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
|
|
632
632
|
);
|
|
633
633
|
}
|
|
634
634
|
return binding;
|
|
@@ -647,12 +647,12 @@ function requireNative() {
|
|
|
647
647
|
const bindingPackageVersion =
|
|
648
648
|
require("@farhnkrnapratma/markers-linux-ppc64-gnu/package.json").version;
|
|
649
649
|
if (
|
|
650
|
-
bindingPackageVersion !== "1.0.0-
|
|
650
|
+
bindingPackageVersion !== "1.0.0-alpha3" &&
|
|
651
651
|
process.env.NAPI_RS_ENFORCE_VERSION_CHECK &&
|
|
652
652
|
process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0"
|
|
653
653
|
) {
|
|
654
654
|
throw new Error(
|
|
655
|
-
`Native binding package version mismatch, expected 1.0.0-
|
|
655
|
+
`Native binding package version mismatch, expected 1.0.0-alpha3 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
|
|
656
656
|
);
|
|
657
657
|
}
|
|
658
658
|
return binding;
|
|
@@ -670,12 +670,12 @@ function requireNative() {
|
|
|
670
670
|
const bindingPackageVersion =
|
|
671
671
|
require("@farhnkrnapratma/markers-linux-s390x-gnu/package.json").version;
|
|
672
672
|
if (
|
|
673
|
-
bindingPackageVersion !== "1.0.0-
|
|
673
|
+
bindingPackageVersion !== "1.0.0-alpha3" &&
|
|
674
674
|
process.env.NAPI_RS_ENFORCE_VERSION_CHECK &&
|
|
675
675
|
process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0"
|
|
676
676
|
) {
|
|
677
677
|
throw new Error(
|
|
678
|
-
`Native binding package version mismatch, expected 1.0.0-
|
|
678
|
+
`Native binding package version mismatch, expected 1.0.0-alpha3 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
|
|
679
679
|
);
|
|
680
680
|
}
|
|
681
681
|
return binding;
|
|
@@ -699,12 +699,12 @@ function requireNative() {
|
|
|
699
699
|
const bindingPackageVersion =
|
|
700
700
|
require("@farhnkrnapratma/markers-openharmony-arm64/package.json").version;
|
|
701
701
|
if (
|
|
702
|
-
bindingPackageVersion !== "1.0.0-
|
|
702
|
+
bindingPackageVersion !== "1.0.0-alpha3" &&
|
|
703
703
|
process.env.NAPI_RS_ENFORCE_VERSION_CHECK &&
|
|
704
704
|
process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0"
|
|
705
705
|
) {
|
|
706
706
|
throw new Error(
|
|
707
|
-
`Native binding package version mismatch, expected 1.0.0-
|
|
707
|
+
`Native binding package version mismatch, expected 1.0.0-alpha3 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
|
|
708
708
|
);
|
|
709
709
|
}
|
|
710
710
|
return binding;
|
|
@@ -722,12 +722,12 @@ function requireNative() {
|
|
|
722
722
|
const bindingPackageVersion =
|
|
723
723
|
require("@farhnkrnapratma/markers-openharmony-x64/package.json").version;
|
|
724
724
|
if (
|
|
725
|
-
bindingPackageVersion !== "1.0.0-
|
|
725
|
+
bindingPackageVersion !== "1.0.0-alpha3" &&
|
|
726
726
|
process.env.NAPI_RS_ENFORCE_VERSION_CHECK &&
|
|
727
727
|
process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0"
|
|
728
728
|
) {
|
|
729
729
|
throw new Error(
|
|
730
|
-
`Native binding package version mismatch, expected 1.0.0-
|
|
730
|
+
`Native binding package version mismatch, expected 1.0.0-alpha3 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
|
|
731
731
|
);
|
|
732
732
|
}
|
|
733
733
|
return binding;
|
|
@@ -745,12 +745,12 @@ function requireNative() {
|
|
|
745
745
|
const bindingPackageVersion =
|
|
746
746
|
require("@farhnkrnapratma/markers-openharmony-arm/package.json").version;
|
|
747
747
|
if (
|
|
748
|
-
bindingPackageVersion !== "1.0.0-
|
|
748
|
+
bindingPackageVersion !== "1.0.0-alpha3" &&
|
|
749
749
|
process.env.NAPI_RS_ENFORCE_VERSION_CHECK &&
|
|
750
750
|
process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0"
|
|
751
751
|
) {
|
|
752
752
|
throw new Error(
|
|
753
|
-
`Native binding package version mismatch, expected 1.0.0-
|
|
753
|
+
`Native binding package version mismatch, expected 1.0.0-alpha3 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
|
|
754
754
|
);
|
|
755
755
|
}
|
|
756
756
|
return binding;
|
|
@@ -915,9 +915,9 @@ if (!nativeBinding || forceWasi) {
|
|
|
915
915
|
) {
|
|
916
916
|
const bindingPackageVersion =
|
|
917
917
|
require("@farhnkrnapratma/markers-wasm32-wasi/package.json").version;
|
|
918
|
-
if (bindingPackageVersion !== "1.0.0-
|
|
918
|
+
if (bindingPackageVersion !== "1.0.0-alpha3") {
|
|
919
919
|
throw new Error(
|
|
920
|
-
`WASI binding package version mismatch, expected 1.0.0-
|
|
920
|
+
`WASI binding package version mismatch, expected 1.0.0-alpha3 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
|
|
921
921
|
);
|
|
922
922
|
}
|
|
923
923
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@farhnkrnapratma/markers",
|
|
3
|
-
"version": "1.0.0-
|
|
3
|
+
"version": "1.0.0-alpha3",
|
|
4
4
|
"description": "Convert HTML to clean GitHub Flavored Markdown for LLMs. Native addon for Node.js and Bun, written in Rust.",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"types": "index.d.ts",
|
|
@@ -33,13 +33,18 @@
|
|
|
33
33
|
"binaryName": "markers",
|
|
34
34
|
"targets": [
|
|
35
35
|
"x86_64-unknown-linux-gnu",
|
|
36
|
-
"x86_64-pc-windows-msvc",
|
|
37
|
-
"x86_64-apple-darwin",
|
|
38
|
-
"x86_64-unknown-linux-musl",
|
|
39
36
|
"aarch64-unknown-linux-gnu",
|
|
37
|
+
"x86_64-unknown-linux-musl",
|
|
40
38
|
"aarch64-unknown-linux-musl",
|
|
39
|
+
"armv7-unknown-linux-gnueabihf",
|
|
40
|
+
"powerpc64le-unknown-linux-gnu",
|
|
41
|
+
"s390x-unknown-linux-gnu",
|
|
42
|
+
"riscv64gc-unknown-linux-gnu",
|
|
43
|
+
"x86_64-apple-darwin",
|
|
41
44
|
"aarch64-apple-darwin",
|
|
42
|
-
"
|
|
45
|
+
"x86_64-pc-windows-msvc",
|
|
46
|
+
"aarch64-pc-windows-msvc",
|
|
47
|
+
"i686-pc-windows-msvc"
|
|
43
48
|
]
|
|
44
49
|
},
|
|
45
50
|
"engines": {
|
|
@@ -60,20 +65,25 @@
|
|
|
60
65
|
"@commitlint/config-conventional": "^21.2.4",
|
|
61
66
|
"@napi-rs/cli": "^3.10.12",
|
|
62
67
|
"ava": "8.4.0",
|
|
63
|
-
"fallow": "^3.
|
|
68
|
+
"fallow": "^3.46.0"
|
|
64
69
|
},
|
|
65
70
|
"ava": {
|
|
66
71
|
"timeout": "3m"
|
|
67
72
|
},
|
|
68
73
|
"optionalDependencies": {
|
|
69
|
-
"@farhnkrnapratma/markers-linux-x64-gnu": "1.0.0-
|
|
70
|
-
"@farhnkrnapratma/markers-
|
|
71
|
-
"@farhnkrnapratma/markers-
|
|
72
|
-
"@farhnkrnapratma/markers-linux-
|
|
73
|
-
"@farhnkrnapratma/markers-linux-
|
|
74
|
-
"@farhnkrnapratma/markers-linux-
|
|
75
|
-
"@farhnkrnapratma/markers-
|
|
76
|
-
"@farhnkrnapratma/markers-
|
|
74
|
+
"@farhnkrnapratma/markers-linux-x64-gnu": "1.0.0-alpha3",
|
|
75
|
+
"@farhnkrnapratma/markers-linux-arm64-gnu": "1.0.0-alpha3",
|
|
76
|
+
"@farhnkrnapratma/markers-linux-x64-musl": "1.0.0-alpha3",
|
|
77
|
+
"@farhnkrnapratma/markers-linux-arm64-musl": "1.0.0-alpha3",
|
|
78
|
+
"@farhnkrnapratma/markers-linux-arm-gnueabihf": "1.0.0-alpha3",
|
|
79
|
+
"@farhnkrnapratma/markers-linux-ppc64-gnu": "1.0.0-alpha3",
|
|
80
|
+
"@farhnkrnapratma/markers-linux-s390x-gnu": "1.0.0-alpha3",
|
|
81
|
+
"@farhnkrnapratma/markers-linux-riscv64-gnu": "1.0.0-alpha3",
|
|
82
|
+
"@farhnkrnapratma/markers-darwin-x64": "1.0.0-alpha3",
|
|
83
|
+
"@farhnkrnapratma/markers-darwin-arm64": "1.0.0-alpha3",
|
|
84
|
+
"@farhnkrnapratma/markers-win32-x64-msvc": "1.0.0-alpha3",
|
|
85
|
+
"@farhnkrnapratma/markers-win32-arm64-msvc": "1.0.0-alpha3",
|
|
86
|
+
"@farhnkrnapratma/markers-win32-ia32-msvc": "1.0.0-alpha3"
|
|
77
87
|
},
|
|
78
88
|
"packageManager": "bun@1.4.5",
|
|
79
89
|
"publishConfig": {
|