@mdrs/core 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.native.js +56 -56
- package/package.json +21 -11
package/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# MDRS
|
|
2
2
|
|
|
3
|
-
[](https://dl.circleci.com/status-badge/redirect/circleci/stZqvYiNAK17m5zy7ERCb/EGBRyRQ9CWeyLiSDGguM5Z/tree/main) [](https://www.npmjs.com/package/@mdrs/core) [](https://crates.io/crates/mdrs) [](https://docs.rs/mdrs) 
|
|
3
|
+
[](https://dl.circleci.com/status-badge/redirect/circleci/stZqvYiNAK17m5zy7ERCb/EGBRyRQ9CWeyLiSDGguM5Z/tree/main) [](https://codecov.io/gh/farhnkrnapratma/mdrs) [](https://www.npmjs.com/package/@mdrs/core) [](https://crates.io/crates/mdrs) [](https://docs.rs/mdrs) 
|
|
4
4
|
|
|
5
5
|
**MDRS (Markdown Rich Syntax)** is a superset of Markdown. A CommonMark or GitHub Flavored Markdown document renders as it would anywhere else, and MDRS adds callouts, collapsible sections, steps, tabs, math, diagrams, extended task lists and document variables on top. This repository is the MDRS renderer: it turns MDRS into sanitized HTML, is written in Rust and is available as a crate and as an npm package for Node.js and Bun.
|
|
6
6
|
|
|
@@ -37,7 +37,13 @@ npm install @mdrs/core@alpha # or: bun add @mdrs/core@alpha
|
|
|
37
37
|
cargo add mdrs # Rust
|
|
38
38
|
```
|
|
39
39
|
|
|
40
|
-
The npm package ships prebuilt native addons
|
|
40
|
+
The npm package ships prebuilt native addons as optional dependencies, so nothing is compiled on install:
|
|
41
|
+
|
|
42
|
+
| OS | Architectures |
|
|
43
|
+
| ------- | --------------------------------------------------------------- |
|
|
44
|
+
| Linux | x64 and arm64 (glibc and musl), armv7, ppc64le, s390x, riscv64 |
|
|
45
|
+
| macOS | arm64, x64 |
|
|
46
|
+
| Windows | x64, arm64, ia32 |
|
|
41
47
|
|
|
42
48
|
## Usage
|
|
43
49
|
|
package/index.native.js
CHANGED
|
@@ -102,12 +102,12 @@ function requireNative() {
|
|
|
102
102
|
const bindingPackageVersion =
|
|
103
103
|
require("@mdrs/core-android-arm64/package.json").version;
|
|
104
104
|
if (
|
|
105
|
-
bindingPackageVersion !== "1.0.0-
|
|
105
|
+
bindingPackageVersion !== "1.0.0-alpha3" &&
|
|
106
106
|
process.env.NAPI_RS_ENFORCE_VERSION_CHECK &&
|
|
107
107
|
process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0"
|
|
108
108
|
) {
|
|
109
109
|
throw new Error(
|
|
110
|
-
`Native binding package version mismatch, expected 1.0.0-
|
|
110
|
+
`Native binding package version mismatch, expected 1.0.0-alpha3 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
|
|
111
111
|
);
|
|
112
112
|
}
|
|
113
113
|
return binding;
|
|
@@ -125,12 +125,12 @@ function requireNative() {
|
|
|
125
125
|
const bindingPackageVersion =
|
|
126
126
|
require("@mdrs/core-android-arm-eabi/package.json").version;
|
|
127
127
|
if (
|
|
128
|
-
bindingPackageVersion !== "1.0.0-
|
|
128
|
+
bindingPackageVersion !== "1.0.0-alpha3" &&
|
|
129
129
|
process.env.NAPI_RS_ENFORCE_VERSION_CHECK &&
|
|
130
130
|
process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0"
|
|
131
131
|
) {
|
|
132
132
|
throw new Error(
|
|
133
|
-
`Native binding package version mismatch, expected 1.0.0-
|
|
133
|
+
`Native binding package version mismatch, expected 1.0.0-alpha3 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
|
|
134
134
|
);
|
|
135
135
|
}
|
|
136
136
|
return binding;
|
|
@@ -162,12 +162,12 @@ function requireNative() {
|
|
|
162
162
|
const bindingPackageVersion =
|
|
163
163
|
require("@mdrs/core-win32-x64-gnu/package.json").version;
|
|
164
164
|
if (
|
|
165
|
-
bindingPackageVersion !== "1.0.0-
|
|
165
|
+
bindingPackageVersion !== "1.0.0-alpha3" &&
|
|
166
166
|
process.env.NAPI_RS_ENFORCE_VERSION_CHECK &&
|
|
167
167
|
process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0"
|
|
168
168
|
) {
|
|
169
169
|
throw new Error(
|
|
170
|
-
`Native binding package version mismatch, expected 1.0.0-
|
|
170
|
+
`Native binding package version mismatch, expected 1.0.0-alpha3 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
|
|
171
171
|
);
|
|
172
172
|
}
|
|
173
173
|
return binding;
|
|
@@ -185,12 +185,12 @@ function requireNative() {
|
|
|
185
185
|
const bindingPackageVersion =
|
|
186
186
|
require("@mdrs/core-win32-x64-msvc/package.json").version;
|
|
187
187
|
if (
|
|
188
|
-
bindingPackageVersion !== "1.0.0-
|
|
188
|
+
bindingPackageVersion !== "1.0.0-alpha3" &&
|
|
189
189
|
process.env.NAPI_RS_ENFORCE_VERSION_CHECK &&
|
|
190
190
|
process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0"
|
|
191
191
|
) {
|
|
192
192
|
throw new Error(
|
|
193
|
-
`Native binding package version mismatch, expected 1.0.0-
|
|
193
|
+
`Native binding package version mismatch, expected 1.0.0-alpha3 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
|
|
194
194
|
);
|
|
195
195
|
}
|
|
196
196
|
return binding;
|
|
@@ -209,12 +209,12 @@ function requireNative() {
|
|
|
209
209
|
const bindingPackageVersion =
|
|
210
210
|
require("@mdrs/core-win32-ia32-msvc/package.json").version;
|
|
211
211
|
if (
|
|
212
|
-
bindingPackageVersion !== "1.0.0-
|
|
212
|
+
bindingPackageVersion !== "1.0.0-alpha3" &&
|
|
213
213
|
process.env.NAPI_RS_ENFORCE_VERSION_CHECK &&
|
|
214
214
|
process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0"
|
|
215
215
|
) {
|
|
216
216
|
throw new Error(
|
|
217
|
-
`Native binding package version mismatch, expected 1.0.0-
|
|
217
|
+
`Native binding package version mismatch, expected 1.0.0-alpha3 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
|
|
218
218
|
);
|
|
219
219
|
}
|
|
220
220
|
return binding;
|
|
@@ -232,12 +232,12 @@ function requireNative() {
|
|
|
232
232
|
const bindingPackageVersion =
|
|
233
233
|
require("@mdrs/core-win32-arm64-msvc/package.json").version;
|
|
234
234
|
if (
|
|
235
|
-
bindingPackageVersion !== "1.0.0-
|
|
235
|
+
bindingPackageVersion !== "1.0.0-alpha3" &&
|
|
236
236
|
process.env.NAPI_RS_ENFORCE_VERSION_CHECK &&
|
|
237
237
|
process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0"
|
|
238
238
|
) {
|
|
239
239
|
throw new Error(
|
|
240
|
-
`Native binding package version mismatch, expected 1.0.0-
|
|
240
|
+
`Native binding package version mismatch, expected 1.0.0-alpha3 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
|
|
241
241
|
);
|
|
242
242
|
}
|
|
243
243
|
return binding;
|
|
@@ -260,12 +260,12 @@ function requireNative() {
|
|
|
260
260
|
const bindingPackageVersion =
|
|
261
261
|
require("@mdrs/core-darwin-universal/package.json").version;
|
|
262
262
|
if (
|
|
263
|
-
bindingPackageVersion !== "1.0.0-
|
|
263
|
+
bindingPackageVersion !== "1.0.0-alpha3" &&
|
|
264
264
|
process.env.NAPI_RS_ENFORCE_VERSION_CHECK &&
|
|
265
265
|
process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0"
|
|
266
266
|
) {
|
|
267
267
|
throw new Error(
|
|
268
|
-
`Native binding package version mismatch, expected 1.0.0-
|
|
268
|
+
`Native binding package version mismatch, expected 1.0.0-alpha3 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
|
|
269
269
|
);
|
|
270
270
|
}
|
|
271
271
|
return binding;
|
|
@@ -283,12 +283,12 @@ function requireNative() {
|
|
|
283
283
|
const bindingPackageVersion =
|
|
284
284
|
require("@mdrs/core-darwin-x64/package.json").version;
|
|
285
285
|
if (
|
|
286
|
-
bindingPackageVersion !== "1.0.0-
|
|
286
|
+
bindingPackageVersion !== "1.0.0-alpha3" &&
|
|
287
287
|
process.env.NAPI_RS_ENFORCE_VERSION_CHECK &&
|
|
288
288
|
process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0"
|
|
289
289
|
) {
|
|
290
290
|
throw new Error(
|
|
291
|
-
`Native binding package version mismatch, expected 1.0.0-
|
|
291
|
+
`Native binding package version mismatch, expected 1.0.0-alpha3 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
|
|
292
292
|
);
|
|
293
293
|
}
|
|
294
294
|
return binding;
|
|
@@ -306,12 +306,12 @@ function requireNative() {
|
|
|
306
306
|
const bindingPackageVersion =
|
|
307
307
|
require("@mdrs/core-darwin-arm64/package.json").version;
|
|
308
308
|
if (
|
|
309
|
-
bindingPackageVersion !== "1.0.0-
|
|
309
|
+
bindingPackageVersion !== "1.0.0-alpha3" &&
|
|
310
310
|
process.env.NAPI_RS_ENFORCE_VERSION_CHECK &&
|
|
311
311
|
process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0"
|
|
312
312
|
) {
|
|
313
313
|
throw new Error(
|
|
314
|
-
`Native binding package version mismatch, expected 1.0.0-
|
|
314
|
+
`Native binding package version mismatch, expected 1.0.0-alpha3 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
|
|
315
315
|
);
|
|
316
316
|
}
|
|
317
317
|
return binding;
|
|
@@ -335,12 +335,12 @@ function requireNative() {
|
|
|
335
335
|
const bindingPackageVersion =
|
|
336
336
|
require("@mdrs/core-freebsd-x64/package.json").version;
|
|
337
337
|
if (
|
|
338
|
-
bindingPackageVersion !== "1.0.0-
|
|
338
|
+
bindingPackageVersion !== "1.0.0-alpha3" &&
|
|
339
339
|
process.env.NAPI_RS_ENFORCE_VERSION_CHECK &&
|
|
340
340
|
process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0"
|
|
341
341
|
) {
|
|
342
342
|
throw new Error(
|
|
343
|
-
`Native binding package version mismatch, expected 1.0.0-
|
|
343
|
+
`Native binding package version mismatch, expected 1.0.0-alpha3 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
|
|
344
344
|
);
|
|
345
345
|
}
|
|
346
346
|
return binding;
|
|
@@ -358,12 +358,12 @@ function requireNative() {
|
|
|
358
358
|
const bindingPackageVersion =
|
|
359
359
|
require("@mdrs/core-freebsd-arm64/package.json").version;
|
|
360
360
|
if (
|
|
361
|
-
bindingPackageVersion !== "1.0.0-
|
|
361
|
+
bindingPackageVersion !== "1.0.0-alpha3" &&
|
|
362
362
|
process.env.NAPI_RS_ENFORCE_VERSION_CHECK &&
|
|
363
363
|
process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0"
|
|
364
364
|
) {
|
|
365
365
|
throw new Error(
|
|
366
|
-
`Native binding package version mismatch, expected 1.0.0-
|
|
366
|
+
`Native binding package version mismatch, expected 1.0.0-alpha3 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
|
|
367
367
|
);
|
|
368
368
|
}
|
|
369
369
|
return binding;
|
|
@@ -381,12 +381,12 @@ function requireNative() {
|
|
|
381
381
|
const bindingPackageVersion =
|
|
382
382
|
require("@mdrs/core-freebsd-ppc64/package.json").version;
|
|
383
383
|
if (
|
|
384
|
-
bindingPackageVersion !== "1.0.0-
|
|
384
|
+
bindingPackageVersion !== "1.0.0-alpha3" &&
|
|
385
385
|
process.env.NAPI_RS_ENFORCE_VERSION_CHECK &&
|
|
386
386
|
process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0"
|
|
387
387
|
) {
|
|
388
388
|
throw new Error(
|
|
389
|
-
`Native binding package version mismatch, expected 1.0.0-
|
|
389
|
+
`Native binding package version mismatch, expected 1.0.0-alpha3 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
|
|
390
390
|
);
|
|
391
391
|
}
|
|
392
392
|
return binding;
|
|
@@ -411,12 +411,12 @@ function requireNative() {
|
|
|
411
411
|
const bindingPackageVersion =
|
|
412
412
|
require("@mdrs/core-linux-x64-musl/package.json").version;
|
|
413
413
|
if (
|
|
414
|
-
bindingPackageVersion !== "1.0.0-
|
|
414
|
+
bindingPackageVersion !== "1.0.0-alpha3" &&
|
|
415
415
|
process.env.NAPI_RS_ENFORCE_VERSION_CHECK &&
|
|
416
416
|
process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0"
|
|
417
417
|
) {
|
|
418
418
|
throw new Error(
|
|
419
|
-
`Native binding package version mismatch, expected 1.0.0-
|
|
419
|
+
`Native binding package version mismatch, expected 1.0.0-alpha3 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
|
|
420
420
|
);
|
|
421
421
|
}
|
|
422
422
|
return binding;
|
|
@@ -434,12 +434,12 @@ function requireNative() {
|
|
|
434
434
|
const bindingPackageVersion =
|
|
435
435
|
require("@mdrs/core-linux-x64-gnu/package.json").version;
|
|
436
436
|
if (
|
|
437
|
-
bindingPackageVersion !== "1.0.0-
|
|
437
|
+
bindingPackageVersion !== "1.0.0-alpha3" &&
|
|
438
438
|
process.env.NAPI_RS_ENFORCE_VERSION_CHECK &&
|
|
439
439
|
process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0"
|
|
440
440
|
) {
|
|
441
441
|
throw new Error(
|
|
442
|
-
`Native binding package version mismatch, expected 1.0.0-
|
|
442
|
+
`Native binding package version mismatch, expected 1.0.0-alpha3 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
|
|
443
443
|
);
|
|
444
444
|
}
|
|
445
445
|
return binding;
|
|
@@ -459,12 +459,12 @@ function requireNative() {
|
|
|
459
459
|
const bindingPackageVersion =
|
|
460
460
|
require("@mdrs/core-linux-arm64-musl/package.json").version;
|
|
461
461
|
if (
|
|
462
|
-
bindingPackageVersion !== "1.0.0-
|
|
462
|
+
bindingPackageVersion !== "1.0.0-alpha3" &&
|
|
463
463
|
process.env.NAPI_RS_ENFORCE_VERSION_CHECK &&
|
|
464
464
|
process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0"
|
|
465
465
|
) {
|
|
466
466
|
throw new Error(
|
|
467
|
-
`Native binding package version mismatch, expected 1.0.0-
|
|
467
|
+
`Native binding package version mismatch, expected 1.0.0-alpha3 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
|
|
468
468
|
);
|
|
469
469
|
}
|
|
470
470
|
return binding;
|
|
@@ -482,12 +482,12 @@ function requireNative() {
|
|
|
482
482
|
const bindingPackageVersion =
|
|
483
483
|
require("@mdrs/core-linux-arm64-gnu/package.json").version;
|
|
484
484
|
if (
|
|
485
|
-
bindingPackageVersion !== "1.0.0-
|
|
485
|
+
bindingPackageVersion !== "1.0.0-alpha3" &&
|
|
486
486
|
process.env.NAPI_RS_ENFORCE_VERSION_CHECK &&
|
|
487
487
|
process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0"
|
|
488
488
|
) {
|
|
489
489
|
throw new Error(
|
|
490
|
-
`Native binding package version mismatch, expected 1.0.0-
|
|
490
|
+
`Native binding package version mismatch, expected 1.0.0-alpha3 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
|
|
491
491
|
);
|
|
492
492
|
}
|
|
493
493
|
return binding;
|
|
@@ -507,12 +507,12 @@ function requireNative() {
|
|
|
507
507
|
const bindingPackageVersion =
|
|
508
508
|
require("@mdrs/core-linux-arm-musleabihf/package.json").version;
|
|
509
509
|
if (
|
|
510
|
-
bindingPackageVersion !== "1.0.0-
|
|
510
|
+
bindingPackageVersion !== "1.0.0-alpha3" &&
|
|
511
511
|
process.env.NAPI_RS_ENFORCE_VERSION_CHECK &&
|
|
512
512
|
process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0"
|
|
513
513
|
) {
|
|
514
514
|
throw new Error(
|
|
515
|
-
`Native binding package version mismatch, expected 1.0.0-
|
|
515
|
+
`Native binding package version mismatch, expected 1.0.0-alpha3 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
|
|
516
516
|
);
|
|
517
517
|
}
|
|
518
518
|
return binding;
|
|
@@ -530,12 +530,12 @@ function requireNative() {
|
|
|
530
530
|
const bindingPackageVersion =
|
|
531
531
|
require("@mdrs/core-linux-arm-gnueabihf/package.json").version;
|
|
532
532
|
if (
|
|
533
|
-
bindingPackageVersion !== "1.0.0-
|
|
533
|
+
bindingPackageVersion !== "1.0.0-alpha3" &&
|
|
534
534
|
process.env.NAPI_RS_ENFORCE_VERSION_CHECK &&
|
|
535
535
|
process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0"
|
|
536
536
|
) {
|
|
537
537
|
throw new Error(
|
|
538
|
-
`Native binding package version mismatch, expected 1.0.0-
|
|
538
|
+
`Native binding package version mismatch, expected 1.0.0-alpha3 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
|
|
539
539
|
);
|
|
540
540
|
}
|
|
541
541
|
return binding;
|
|
@@ -555,12 +555,12 @@ function requireNative() {
|
|
|
555
555
|
const bindingPackageVersion =
|
|
556
556
|
require("@mdrs/core-linux-loong64-musl/package.json").version;
|
|
557
557
|
if (
|
|
558
|
-
bindingPackageVersion !== "1.0.0-
|
|
558
|
+
bindingPackageVersion !== "1.0.0-alpha3" &&
|
|
559
559
|
process.env.NAPI_RS_ENFORCE_VERSION_CHECK &&
|
|
560
560
|
process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0"
|
|
561
561
|
) {
|
|
562
562
|
throw new Error(
|
|
563
|
-
`Native binding package version mismatch, expected 1.0.0-
|
|
563
|
+
`Native binding package version mismatch, expected 1.0.0-alpha3 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
|
|
564
564
|
);
|
|
565
565
|
}
|
|
566
566
|
return binding;
|
|
@@ -578,12 +578,12 @@ function requireNative() {
|
|
|
578
578
|
const bindingPackageVersion =
|
|
579
579
|
require("@mdrs/core-linux-loong64-gnu/package.json").version;
|
|
580
580
|
if (
|
|
581
|
-
bindingPackageVersion !== "1.0.0-
|
|
581
|
+
bindingPackageVersion !== "1.0.0-alpha3" &&
|
|
582
582
|
process.env.NAPI_RS_ENFORCE_VERSION_CHECK &&
|
|
583
583
|
process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0"
|
|
584
584
|
) {
|
|
585
585
|
throw new Error(
|
|
586
|
-
`Native binding package version mismatch, expected 1.0.0-
|
|
586
|
+
`Native binding package version mismatch, expected 1.0.0-alpha3 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
|
|
587
587
|
);
|
|
588
588
|
}
|
|
589
589
|
return binding;
|
|
@@ -603,12 +603,12 @@ function requireNative() {
|
|
|
603
603
|
const bindingPackageVersion =
|
|
604
604
|
require("@mdrs/core-linux-riscv64-musl/package.json").version;
|
|
605
605
|
if (
|
|
606
|
-
bindingPackageVersion !== "1.0.0-
|
|
606
|
+
bindingPackageVersion !== "1.0.0-alpha3" &&
|
|
607
607
|
process.env.NAPI_RS_ENFORCE_VERSION_CHECK &&
|
|
608
608
|
process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0"
|
|
609
609
|
) {
|
|
610
610
|
throw new Error(
|
|
611
|
-
`Native binding package version mismatch, expected 1.0.0-
|
|
611
|
+
`Native binding package version mismatch, expected 1.0.0-alpha3 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
|
|
612
612
|
);
|
|
613
613
|
}
|
|
614
614
|
return binding;
|
|
@@ -626,12 +626,12 @@ function requireNative() {
|
|
|
626
626
|
const bindingPackageVersion =
|
|
627
627
|
require("@mdrs/core-linux-riscv64-gnu/package.json").version;
|
|
628
628
|
if (
|
|
629
|
-
bindingPackageVersion !== "1.0.0-
|
|
629
|
+
bindingPackageVersion !== "1.0.0-alpha3" &&
|
|
630
630
|
process.env.NAPI_RS_ENFORCE_VERSION_CHECK &&
|
|
631
631
|
process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0"
|
|
632
632
|
) {
|
|
633
633
|
throw new Error(
|
|
634
|
-
`Native binding package version mismatch, expected 1.0.0-
|
|
634
|
+
`Native binding package version mismatch, expected 1.0.0-alpha3 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
|
|
635
635
|
);
|
|
636
636
|
}
|
|
637
637
|
return binding;
|
|
@@ -650,12 +650,12 @@ function requireNative() {
|
|
|
650
650
|
const bindingPackageVersion =
|
|
651
651
|
require("@mdrs/core-linux-ppc64-gnu/package.json").version;
|
|
652
652
|
if (
|
|
653
|
-
bindingPackageVersion !== "1.0.0-
|
|
653
|
+
bindingPackageVersion !== "1.0.0-alpha3" &&
|
|
654
654
|
process.env.NAPI_RS_ENFORCE_VERSION_CHECK &&
|
|
655
655
|
process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0"
|
|
656
656
|
) {
|
|
657
657
|
throw new Error(
|
|
658
|
-
`Native binding package version mismatch, expected 1.0.0-
|
|
658
|
+
`Native binding package version mismatch, expected 1.0.0-alpha3 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
|
|
659
659
|
);
|
|
660
660
|
}
|
|
661
661
|
return binding;
|
|
@@ -673,12 +673,12 @@ function requireNative() {
|
|
|
673
673
|
const bindingPackageVersion =
|
|
674
674
|
require("@mdrs/core-linux-s390x-gnu/package.json").version;
|
|
675
675
|
if (
|
|
676
|
-
bindingPackageVersion !== "1.0.0-
|
|
676
|
+
bindingPackageVersion !== "1.0.0-alpha3" &&
|
|
677
677
|
process.env.NAPI_RS_ENFORCE_VERSION_CHECK &&
|
|
678
678
|
process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0"
|
|
679
679
|
) {
|
|
680
680
|
throw new Error(
|
|
681
|
-
`Native binding package version mismatch, expected 1.0.0-
|
|
681
|
+
`Native binding package version mismatch, expected 1.0.0-alpha3 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
|
|
682
682
|
);
|
|
683
683
|
}
|
|
684
684
|
return binding;
|
|
@@ -702,12 +702,12 @@ function requireNative() {
|
|
|
702
702
|
const bindingPackageVersion =
|
|
703
703
|
require("@mdrs/core-openharmony-arm64/package.json").version;
|
|
704
704
|
if (
|
|
705
|
-
bindingPackageVersion !== "1.0.0-
|
|
705
|
+
bindingPackageVersion !== "1.0.0-alpha3" &&
|
|
706
706
|
process.env.NAPI_RS_ENFORCE_VERSION_CHECK &&
|
|
707
707
|
process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0"
|
|
708
708
|
) {
|
|
709
709
|
throw new Error(
|
|
710
|
-
`Native binding package version mismatch, expected 1.0.0-
|
|
710
|
+
`Native binding package version mismatch, expected 1.0.0-alpha3 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
|
|
711
711
|
);
|
|
712
712
|
}
|
|
713
713
|
return binding;
|
|
@@ -725,12 +725,12 @@ function requireNative() {
|
|
|
725
725
|
const bindingPackageVersion =
|
|
726
726
|
require("@mdrs/core-openharmony-x64/package.json").version;
|
|
727
727
|
if (
|
|
728
|
-
bindingPackageVersion !== "1.0.0-
|
|
728
|
+
bindingPackageVersion !== "1.0.0-alpha3" &&
|
|
729
729
|
process.env.NAPI_RS_ENFORCE_VERSION_CHECK &&
|
|
730
730
|
process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0"
|
|
731
731
|
) {
|
|
732
732
|
throw new Error(
|
|
733
|
-
`Native binding package version mismatch, expected 1.0.0-
|
|
733
|
+
`Native binding package version mismatch, expected 1.0.0-alpha3 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
|
|
734
734
|
);
|
|
735
735
|
}
|
|
736
736
|
return binding;
|
|
@@ -748,12 +748,12 @@ function requireNative() {
|
|
|
748
748
|
const bindingPackageVersion =
|
|
749
749
|
require("@mdrs/core-openharmony-arm/package.json").version;
|
|
750
750
|
if (
|
|
751
|
-
bindingPackageVersion !== "1.0.0-
|
|
751
|
+
bindingPackageVersion !== "1.0.0-alpha3" &&
|
|
752
752
|
process.env.NAPI_RS_ENFORCE_VERSION_CHECK &&
|
|
753
753
|
process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0"
|
|
754
754
|
) {
|
|
755
755
|
throw new Error(
|
|
756
|
-
`Native binding package version mismatch, expected 1.0.0-
|
|
756
|
+
`Native binding package version mismatch, expected 1.0.0-alpha3 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
|
|
757
757
|
);
|
|
758
758
|
}
|
|
759
759
|
return binding;
|
|
@@ -918,9 +918,9 @@ if (!nativeBinding || forceWasi) {
|
|
|
918
918
|
) {
|
|
919
919
|
const bindingPackageVersion =
|
|
920
920
|
require("@mdrs/core-wasm32-wasi/package.json").version;
|
|
921
|
-
if (bindingPackageVersion !== "1.0.0-
|
|
921
|
+
if (bindingPackageVersion !== "1.0.0-alpha3") {
|
|
922
922
|
throw new Error(
|
|
923
|
-
`WASI binding package version mismatch, expected 1.0.0-
|
|
923
|
+
`WASI binding package version mismatch, expected 1.0.0-alpha3 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
|
|
924
924
|
);
|
|
925
925
|
}
|
|
926
926
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mdrs/core",
|
|
3
|
-
"version": "1.0.0-
|
|
3
|
+
"version": "1.0.0-alpha3",
|
|
4
4
|
"description": "Renderer for MDRS (Markdown Rich Syntax), a superset of Markdown with callouts, tabs, math, diagrams and variables. Native addon for Node.js and Bun.",
|
|
5
5
|
"license": "MIT OR Apache-2.0",
|
|
6
6
|
"author": "Farhan Kurnia Pratama <farhnkrnapratma@gmail.com>",
|
|
@@ -53,10 +53,15 @@
|
|
|
53
53
|
"aarch64-unknown-linux-gnu",
|
|
54
54
|
"x86_64-unknown-linux-musl",
|
|
55
55
|
"aarch64-unknown-linux-musl",
|
|
56
|
+
"armv7-unknown-linux-gnueabihf",
|
|
57
|
+
"powerpc64le-unknown-linux-gnu",
|
|
58
|
+
"s390x-unknown-linux-gnu",
|
|
59
|
+
"riscv64gc-unknown-linux-gnu",
|
|
56
60
|
"x86_64-apple-darwin",
|
|
57
61
|
"aarch64-apple-darwin",
|
|
58
62
|
"x86_64-pc-windows-msvc",
|
|
59
|
-
"aarch64-pc-windows-msvc"
|
|
63
|
+
"aarch64-pc-windows-msvc",
|
|
64
|
+
"i686-pc-windows-msvc"
|
|
60
65
|
]
|
|
61
66
|
},
|
|
62
67
|
"publishConfig": {
|
|
@@ -66,16 +71,21 @@
|
|
|
66
71
|
"@commitlint/cli": "^21.2.4",
|
|
67
72
|
"@commitlint/config-conventional": "^21.2.4",
|
|
68
73
|
"@napi-rs/cli": "^3.10.12",
|
|
69
|
-
"fallow": "^3.
|
|
74
|
+
"fallow": "^3.46.0"
|
|
70
75
|
},
|
|
71
76
|
"optionalDependencies": {
|
|
72
|
-
"@mdrs/core-linux-x64-gnu": "1.0.0-
|
|
73
|
-
"@mdrs/core-linux-arm64-gnu": "1.0.0-
|
|
74
|
-
"@mdrs/core-linux-x64-musl": "1.0.0-
|
|
75
|
-
"@mdrs/core-linux-arm64-musl": "1.0.0-
|
|
76
|
-
"@mdrs/core-
|
|
77
|
-
"@mdrs/core-
|
|
78
|
-
"@mdrs/core-
|
|
79
|
-
"@mdrs/core-
|
|
77
|
+
"@mdrs/core-linux-x64-gnu": "1.0.0-alpha3",
|
|
78
|
+
"@mdrs/core-linux-arm64-gnu": "1.0.0-alpha3",
|
|
79
|
+
"@mdrs/core-linux-x64-musl": "1.0.0-alpha3",
|
|
80
|
+
"@mdrs/core-linux-arm64-musl": "1.0.0-alpha3",
|
|
81
|
+
"@mdrs/core-linux-arm-gnueabihf": "1.0.0-alpha3",
|
|
82
|
+
"@mdrs/core-linux-ppc64-gnu": "1.0.0-alpha3",
|
|
83
|
+
"@mdrs/core-linux-s390x-gnu": "1.0.0-alpha3",
|
|
84
|
+
"@mdrs/core-linux-riscv64-gnu": "1.0.0-alpha3",
|
|
85
|
+
"@mdrs/core-darwin-x64": "1.0.0-alpha3",
|
|
86
|
+
"@mdrs/core-darwin-arm64": "1.0.0-alpha3",
|
|
87
|
+
"@mdrs/core-win32-x64-msvc": "1.0.0-alpha3",
|
|
88
|
+
"@mdrs/core-win32-arm64-msvc": "1.0.0-alpha3",
|
|
89
|
+
"@mdrs/core-win32-ia32-msvc": "1.0.0-alpha3"
|
|
80
90
|
}
|
|
81
91
|
}
|