@jongleberry/vurst-markdown 0.2.1 → 0.2.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Jonathan Ong
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/index.d.ts CHANGED
@@ -1,7 +1,6 @@
1
1
  /* auto-generated by NAPI-RS */
2
2
  /* eslint-disable */
3
3
  /// <reference types="node" />
4
-
5
4
  export declare function chunk(text: Buffer, options?: ChunkOptions | undefined | null): Promise<Array<Chunk>>
6
5
 
7
6
  export declare function extractMarkdownUrls(text: Buffer): Promise<MarkdownUrls>
package/index.js CHANGED
@@ -34,13 +34,8 @@ const isMuslFromFilesystem = () => {
34
34
  const isMuslFromReport = () => {
35
35
  let report = null
36
36
  if (typeof process.report?.getReport === 'function') {
37
- const originalExcludeNetwork = process.report.excludeNetwork
38
- try {
39
- process.report.excludeNetwork = true
40
- report = process.report.getReport()
41
- } finally {
42
- process.report.excludeNetwork = originalExcludeNetwork
43
- }
37
+ process.report.excludeNetwork = true
38
+ report = process.report.getReport()
44
39
  }
45
40
  if (!report) {
46
41
  return null
@@ -82,8 +77,8 @@ function requireNative() {
82
77
  try {
83
78
  const binding = require('@jongleberry/vurst-markdown-android-arm64')
84
79
  const bindingPackageVersion = require('@jongleberry/vurst-markdown-android-arm64/package.json').version
85
- if (bindingPackageVersion !== '0.1.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
86
- throw new Error(`Native binding package version mismatch, expected 0.1.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
80
+ if (bindingPackageVersion !== '0.2.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 0.2.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
87
82
  }
88
83
  return binding
89
84
  } catch (e) {
@@ -98,8 +93,8 @@ function requireNative() {
98
93
  try {
99
94
  const binding = require('@jongleberry/vurst-markdown-android-arm-eabi')
100
95
  const bindingPackageVersion = require('@jongleberry/vurst-markdown-android-arm-eabi/package.json').version
101
- if (bindingPackageVersion !== '0.1.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
102
- throw new Error(`Native binding package version mismatch, expected 0.1.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
96
+ if (bindingPackageVersion !== '0.2.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 0.2.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
103
98
  }
104
99
  return binding
105
100
  } catch (e) {
@@ -119,8 +114,8 @@ function requireNative() {
119
114
  try {
120
115
  const binding = require('@jongleberry/vurst-markdown-win32-x64-gnu')
121
116
  const bindingPackageVersion = require('@jongleberry/vurst-markdown-win32-x64-gnu/package.json').version
122
- if (bindingPackageVersion !== '0.1.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
123
- throw new Error(`Native binding package version mismatch, expected 0.1.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
117
+ if (bindingPackageVersion !== '0.2.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 0.2.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
124
119
  }
125
120
  return binding
126
121
  } catch (e) {
@@ -135,8 +130,8 @@ function requireNative() {
135
130
  try {
136
131
  const binding = require('@jongleberry/vurst-markdown-win32-x64-msvc')
137
132
  const bindingPackageVersion = require('@jongleberry/vurst-markdown-win32-x64-msvc/package.json').version
138
- if (bindingPackageVersion !== '0.1.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
139
- throw new Error(`Native binding package version mismatch, expected 0.1.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
133
+ if (bindingPackageVersion !== '0.2.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 0.2.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
140
135
  }
141
136
  return binding
142
137
  } catch (e) {
@@ -152,8 +147,8 @@ function requireNative() {
152
147
  try {
153
148
  const binding = require('@jongleberry/vurst-markdown-win32-ia32-msvc')
154
149
  const bindingPackageVersion = require('@jongleberry/vurst-markdown-win32-ia32-msvc/package.json').version
155
- if (bindingPackageVersion !== '0.1.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
156
- throw new Error(`Native binding package version mismatch, expected 0.1.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
150
+ if (bindingPackageVersion !== '0.2.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 0.2.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
157
152
  }
158
153
  return binding
159
154
  } catch (e) {
@@ -168,8 +163,8 @@ function requireNative() {
168
163
  try {
169
164
  const binding = require('@jongleberry/vurst-markdown-win32-arm64-msvc')
170
165
  const bindingPackageVersion = require('@jongleberry/vurst-markdown-win32-arm64-msvc/package.json').version
171
- if (bindingPackageVersion !== '0.1.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
172
- throw new Error(`Native binding package version mismatch, expected 0.1.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
166
+ if (bindingPackageVersion !== '0.2.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 0.2.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
173
168
  }
174
169
  return binding
175
170
  } catch (e) {
@@ -187,8 +182,8 @@ function requireNative() {
187
182
  try {
188
183
  const binding = require('@jongleberry/vurst-markdown-darwin-universal')
189
184
  const bindingPackageVersion = require('@jongleberry/vurst-markdown-darwin-universal/package.json').version
190
- if (bindingPackageVersion !== '0.1.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
191
- throw new Error(`Native binding package version mismatch, expected 0.1.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
185
+ if (bindingPackageVersion !== '0.2.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 0.2.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
192
187
  }
193
188
  return binding
194
189
  } catch (e) {
@@ -203,8 +198,8 @@ function requireNative() {
203
198
  try {
204
199
  const binding = require('@jongleberry/vurst-markdown-darwin-x64')
205
200
  const bindingPackageVersion = require('@jongleberry/vurst-markdown-darwin-x64/package.json').version
206
- if (bindingPackageVersion !== '0.1.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
207
- throw new Error(`Native binding package version mismatch, expected 0.1.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
201
+ if (bindingPackageVersion !== '0.2.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 0.2.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
208
203
  }
209
204
  return binding
210
205
  } catch (e) {
@@ -219,8 +214,8 @@ function requireNative() {
219
214
  try {
220
215
  const binding = require('@jongleberry/vurst-markdown-darwin-arm64')
221
216
  const bindingPackageVersion = require('@jongleberry/vurst-markdown-darwin-arm64/package.json').version
222
- if (bindingPackageVersion !== '0.1.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
223
- throw new Error(`Native binding package version mismatch, expected 0.1.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
217
+ if (bindingPackageVersion !== '0.2.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 0.2.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
224
219
  }
225
220
  return binding
226
221
  } catch (e) {
@@ -239,8 +234,8 @@ function requireNative() {
239
234
  try {
240
235
  const binding = require('@jongleberry/vurst-markdown-freebsd-x64')
241
236
  const bindingPackageVersion = require('@jongleberry/vurst-markdown-freebsd-x64/package.json').version
242
- if (bindingPackageVersion !== '0.1.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
243
- throw new Error(`Native binding package version mismatch, expected 0.1.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
237
+ if (bindingPackageVersion !== '0.2.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 0.2.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
244
239
  }
245
240
  return binding
246
241
  } catch (e) {
@@ -255,8 +250,8 @@ function requireNative() {
255
250
  try {
256
251
  const binding = require('@jongleberry/vurst-markdown-freebsd-arm64')
257
252
  const bindingPackageVersion = require('@jongleberry/vurst-markdown-freebsd-arm64/package.json').version
258
- if (bindingPackageVersion !== '0.1.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
259
- throw new Error(`Native binding package version mismatch, expected 0.1.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
253
+ if (bindingPackageVersion !== '0.2.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 0.2.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
260
255
  }
261
256
  return binding
262
257
  } catch (e) {
@@ -276,8 +271,8 @@ function requireNative() {
276
271
  try {
277
272
  const binding = require('@jongleberry/vurst-markdown-linux-x64-musl')
278
273
  const bindingPackageVersion = require('@jongleberry/vurst-markdown-linux-x64-musl/package.json').version
279
- if (bindingPackageVersion !== '0.1.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
280
- throw new Error(`Native binding package version mismatch, expected 0.1.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
274
+ if (bindingPackageVersion !== '0.2.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 0.2.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
281
276
  }
282
277
  return binding
283
278
  } catch (e) {
@@ -292,8 +287,8 @@ function requireNative() {
292
287
  try {
293
288
  const binding = require('@jongleberry/vurst-markdown-linux-x64-gnu')
294
289
  const bindingPackageVersion = require('@jongleberry/vurst-markdown-linux-x64-gnu/package.json').version
295
- if (bindingPackageVersion !== '0.1.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
296
- throw new Error(`Native binding package version mismatch, expected 0.1.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
290
+ if (bindingPackageVersion !== '0.2.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 0.2.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
297
292
  }
298
293
  return binding
299
294
  } catch (e) {
@@ -310,8 +305,8 @@ function requireNative() {
310
305
  try {
311
306
  const binding = require('@jongleberry/vurst-markdown-linux-arm64-musl')
312
307
  const bindingPackageVersion = require('@jongleberry/vurst-markdown-linux-arm64-musl/package.json').version
313
- if (bindingPackageVersion !== '0.1.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
314
- throw new Error(`Native binding package version mismatch, expected 0.1.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
308
+ if (bindingPackageVersion !== '0.2.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 0.2.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
315
310
  }
316
311
  return binding
317
312
  } catch (e) {
@@ -326,8 +321,8 @@ function requireNative() {
326
321
  try {
327
322
  const binding = require('@jongleberry/vurst-markdown-linux-arm64-gnu')
328
323
  const bindingPackageVersion = require('@jongleberry/vurst-markdown-linux-arm64-gnu/package.json').version
329
- if (bindingPackageVersion !== '0.1.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
330
- throw new Error(`Native binding package version mismatch, expected 0.1.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
324
+ if (bindingPackageVersion !== '0.2.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 0.2.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
331
326
  }
332
327
  return binding
333
328
  } catch (e) {
@@ -344,8 +339,8 @@ function requireNative() {
344
339
  try {
345
340
  const binding = require('@jongleberry/vurst-markdown-linux-arm-musleabihf')
346
341
  const bindingPackageVersion = require('@jongleberry/vurst-markdown-linux-arm-musleabihf/package.json').version
347
- if (bindingPackageVersion !== '0.1.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
348
- throw new Error(`Native binding package version mismatch, expected 0.1.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
342
+ if (bindingPackageVersion !== '0.2.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 0.2.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
349
344
  }
350
345
  return binding
351
346
  } catch (e) {
@@ -360,8 +355,8 @@ function requireNative() {
360
355
  try {
361
356
  const binding = require('@jongleberry/vurst-markdown-linux-arm-gnueabihf')
362
357
  const bindingPackageVersion = require('@jongleberry/vurst-markdown-linux-arm-gnueabihf/package.json').version
363
- if (bindingPackageVersion !== '0.1.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
364
- throw new Error(`Native binding package version mismatch, expected 0.1.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
358
+ if (bindingPackageVersion !== '0.2.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 0.2.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
365
360
  }
366
361
  return binding
367
362
  } catch (e) {
@@ -378,8 +373,8 @@ function requireNative() {
378
373
  try {
379
374
  const binding = require('@jongleberry/vurst-markdown-linux-loong64-musl')
380
375
  const bindingPackageVersion = require('@jongleberry/vurst-markdown-linux-loong64-musl/package.json').version
381
- if (bindingPackageVersion !== '0.1.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
382
- throw new Error(`Native binding package version mismatch, expected 0.1.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
376
+ if (bindingPackageVersion !== '0.2.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 0.2.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
383
378
  }
384
379
  return binding
385
380
  } catch (e) {
@@ -394,8 +389,8 @@ function requireNative() {
394
389
  try {
395
390
  const binding = require('@jongleberry/vurst-markdown-linux-loong64-gnu')
396
391
  const bindingPackageVersion = require('@jongleberry/vurst-markdown-linux-loong64-gnu/package.json').version
397
- if (bindingPackageVersion !== '0.1.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
398
- throw new Error(`Native binding package version mismatch, expected 0.1.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
392
+ if (bindingPackageVersion !== '0.2.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 0.2.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
399
394
  }
400
395
  return binding
401
396
  } catch (e) {
@@ -412,8 +407,8 @@ function requireNative() {
412
407
  try {
413
408
  const binding = require('@jongleberry/vurst-markdown-linux-riscv64-musl')
414
409
  const bindingPackageVersion = require('@jongleberry/vurst-markdown-linux-riscv64-musl/package.json').version
415
- if (bindingPackageVersion !== '0.1.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
416
- throw new Error(`Native binding package version mismatch, expected 0.1.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
410
+ if (bindingPackageVersion !== '0.2.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 0.2.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
417
412
  }
418
413
  return binding
419
414
  } catch (e) {
@@ -428,8 +423,8 @@ function requireNative() {
428
423
  try {
429
424
  const binding = require('@jongleberry/vurst-markdown-linux-riscv64-gnu')
430
425
  const bindingPackageVersion = require('@jongleberry/vurst-markdown-linux-riscv64-gnu/package.json').version
431
- if (bindingPackageVersion !== '0.1.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
432
- throw new Error(`Native binding package version mismatch, expected 0.1.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
426
+ if (bindingPackageVersion !== '0.2.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 0.2.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
433
428
  }
434
429
  return binding
435
430
  } catch (e) {
@@ -445,8 +440,8 @@ function requireNative() {
445
440
  try {
446
441
  const binding = require('@jongleberry/vurst-markdown-linux-ppc64-gnu')
447
442
  const bindingPackageVersion = require('@jongleberry/vurst-markdown-linux-ppc64-gnu/package.json').version
448
- if (bindingPackageVersion !== '0.1.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
449
- throw new Error(`Native binding package version mismatch, expected 0.1.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
443
+ if (bindingPackageVersion !== '0.2.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 0.2.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
450
445
  }
451
446
  return binding
452
447
  } catch (e) {
@@ -461,8 +456,8 @@ function requireNative() {
461
456
  try {
462
457
  const binding = require('@jongleberry/vurst-markdown-linux-s390x-gnu')
463
458
  const bindingPackageVersion = require('@jongleberry/vurst-markdown-linux-s390x-gnu/package.json').version
464
- if (bindingPackageVersion !== '0.1.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
465
- throw new Error(`Native binding package version mismatch, expected 0.1.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
459
+ if (bindingPackageVersion !== '0.2.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 0.2.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
466
461
  }
467
462
  return binding
468
463
  } catch (e) {
@@ -481,8 +476,8 @@ function requireNative() {
481
476
  try {
482
477
  const binding = require('@jongleberry/vurst-markdown-openharmony-arm64')
483
478
  const bindingPackageVersion = require('@jongleberry/vurst-markdown-openharmony-arm64/package.json').version
484
- if (bindingPackageVersion !== '0.1.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
485
- throw new Error(`Native binding package version mismatch, expected 0.1.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
479
+ if (bindingPackageVersion !== '0.2.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 0.2.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
486
481
  }
487
482
  return binding
488
483
  } catch (e) {
@@ -497,8 +492,8 @@ function requireNative() {
497
492
  try {
498
493
  const binding = require('@jongleberry/vurst-markdown-openharmony-x64')
499
494
  const bindingPackageVersion = require('@jongleberry/vurst-markdown-openharmony-x64/package.json').version
500
- if (bindingPackageVersion !== '0.1.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
501
- throw new Error(`Native binding package version mismatch, expected 0.1.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
495
+ if (bindingPackageVersion !== '0.2.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 0.2.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
502
497
  }
503
498
  return binding
504
499
  } catch (e) {
@@ -513,8 +508,8 @@ function requireNative() {
513
508
  try {
514
509
  const binding = require('@jongleberry/vurst-markdown-openharmony-arm')
515
510
  const bindingPackageVersion = require('@jongleberry/vurst-markdown-openharmony-arm/package.json').version
516
- if (bindingPackageVersion !== '0.1.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
517
- throw new Error(`Native binding package version mismatch, expected 0.1.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
511
+ if (bindingPackageVersion !== '0.2.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 0.2.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
518
513
  }
519
514
  return binding
520
515
  } catch (e) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jongleberry/vurst-markdown",
3
- "version": "0.2.1",
3
+ "version": "0.2.2",
4
4
  "description": "Rust + N-API: Markdown chunking and rendering.",
5
5
  "main": "index.js",
6
6
  "types": "index.d.ts",
@@ -34,12 +34,6 @@
34
34
  "x86_64-unknown-linux-gnu"
35
35
  ]
36
36
  },
37
- "scripts": {
38
- "build": "napi build --platform --release",
39
- "build:debug": "napi build --platform",
40
- "test": "node --test __test__/*.test.mjs",
41
- "prepublishOnly": "napi prepublish -t npm"
42
- },
43
37
  "publishConfig": {
44
38
  "access": "public",
45
39
  "provenance": true
@@ -49,8 +43,13 @@
49
43
  "@types/node": "^24"
50
44
  },
51
45
  "optionalDependencies": {
52
- "@jongleberry/vurst-markdown-darwin-arm64": "0.2.1",
53
- "@jongleberry/vurst-markdown-linux-arm64-gnu": "0.2.1",
54
- "@jongleberry/vurst-markdown-linux-x64-gnu": "0.2.1"
46
+ "@jongleberry/vurst-markdown-darwin-arm64": "0.2.2",
47
+ "@jongleberry/vurst-markdown-linux-arm64-gnu": "0.2.2",
48
+ "@jongleberry/vurst-markdown-linux-x64-gnu": "0.2.2"
49
+ },
50
+ "scripts": {
51
+ "build": "napi build --platform --release",
52
+ "build:debug": "napi build --platform",
53
+ "test": "node --test __test__/*.test.mjs"
55
54
  }
56
55
  }
Binary file
Binary file
Binary file