@d0paminedriven/xlsxdown 0.1.0 → 0.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (4) hide show
  1. package/README.md +14 -0
  2. package/index.d.ts +414 -0
  3. package/index.js +62 -57
  4. package/package.json +15 -15
package/README.md CHANGED
@@ -1 +1,15 @@
1
1
  # @d0paminedriven/xlsxdown
2
+
3
+ [![CI](https://github.com/DopamineDriven/assetdown/actions/workflows/xlsxdown-node.yml/badge.svg?branch=main)](https://github.com/DopamineDriven/assetdown/actions/workflows/xlsxdown-node.yml)
4
+
5
+ ## Supported platforms
6
+
7
+ | Platform | Architecture(s) |
8
+ | ------------- | ----------------- |
9
+ | macOS | x64, ARM64 |
10
+ | Windows | x64, ia32, ARM64 |
11
+ | Linux (glibc) | x64, ARM64, ARMv7 |
12
+ | Linux (musl) | x64, ARM64 |
13
+ | FreeBSD | x64 |
14
+ | Android | ARM64, ARMv7 |
15
+ | WASI | wasm32 |
package/index.d.ts CHANGED
@@ -27,6 +27,63 @@ export declare class XlsxDown {
27
27
  spreadsheetCells(opts?: SpreadsheetOptions | undefined | null): Array<SheetCells>
28
28
  /** `spreadsheetCells` on a worker thread. */
29
29
  spreadsheetCellsAsync(opts?: SpreadsheetOptions | undefined | null): Promise<Array<SheetCells>>
30
+ /**
31
+ * The cells of the selected sheets keyed by row and then column, so a cell, or a whole row,
32
+ * is one lookup: `rows["12"]["C"]`.
33
+ */
34
+ spreadsheetGrid(opts?: SpreadsheetOptions | undefined | null): Array<SheetGrid>
35
+ /** `spreadsheetGrid` on a worker thread. */
36
+ spreadsheetGridAsync(opts?: SpreadsheetOptions | undefined | null): Promise<Array<SheetGrid>>
37
+ /**
38
+ * The selected sheets laid out as pages: each cell's text placed in its rectangle, broken
39
+ * into words and grouped into lines, every word naming its cell. Cells in hidden rows and
40
+ * columns are left off the page unless `hiddenCells` is set.
41
+ */
42
+ layout(opts?: SpreadsheetOptions | undefined | null): Array<SheetPage>
43
+ /** `layout` on a worker thread. */
44
+ layoutAsync(opts?: SpreadsheetOptions | undefined | null): Promise<Array<SheetPage>>
45
+ /** Invoice fields read from the workbook's visible sheets, each laid out as a page. */
46
+ invoice(opts?: InvoiceOptions | undefined | null): InvoiceResult
47
+ /** `invoice` on a worker thread. */
48
+ invoiceAsync(opts?: InvoiceOptions | undefined | null): Promise<InvoiceResult>
49
+ /**
50
+ * What the workbook says about itself (title, author, dates) and counts of what it holds,
51
+ * sheet by sheet and in total: cells, formulas, merged ranges, tables, pictures, charts,
52
+ * pivot tables, links and comments. Hidden sheets are counted like any other.
53
+ */
54
+ metadata(): XlsxMeta
55
+ /** `metadata` on a worker thread. */
56
+ metadataAsync(): Promise<XlsxMeta>
57
+ }
58
+
59
+ /** `value` is `lines` joined with `
60
+ `. */
61
+ export interface AddressField {
62
+ value: string
63
+ text: string
64
+ confidence: number
65
+ span?: FieldSpan
66
+ lines: Array<string>
67
+ }
68
+
69
+ /**
70
+ * An aircraft or engine the invoice relates to. Maintenance, parts and
71
+ * program invoices identify the asset by airframe (model, manufacturer serial
72
+ * number, registration) and/or by engine (model, engine serial number); one
73
+ * invoice can cover several assets, so `InvoiceFields.aircraft` is a list.
74
+ */
75
+ export interface AircraftReference {
76
+ /** Airframe model, e.g. "Challenger 350", "Global 6000", "Phenom 300". */
77
+ model?: StringField
78
+ /** Manufacturer serial number (MSN). */
79
+ serialNumber?: StringField
80
+ /** Registration / tail number, e.g. "N123AB", "C-GXYZ". */
81
+ registration?: StringField
82
+ /** Engine model, e.g. "BR710", "AE 3007", "PW308C". */
83
+ engineModel?: StringField
84
+ /** Engine serial number (ESN). */
85
+ engineSerialNumber?: StringField
86
+ span?: FieldSpan
30
87
  }
31
88
 
32
89
  /** A rectangle in the sheet frame: points, y up, with A1's top-left corner at `(0, height)`. */
@@ -37,12 +94,184 @@ export interface CellBox {
37
94
  y1: number
38
95
  }
39
96
 
97
+ /**
98
+ * Which tier named the currency: evidence on the page (an ISO code or an unambiguous glyph),
99
+ * content priors such as the vendor's country, the caller's option, or nothing.
100
+ */
101
+ export type CurrencySource = 'Page' | 'Content' | 'Option' | 'Unknown'
102
+
103
+ /** `value` is an ISO 8601 calendar date, `YYYY-MM-DD`. */
104
+ export interface DateField {
105
+ value: string
106
+ text: string
107
+ confidence: number
108
+ span?: FieldSpan
109
+ }
110
+
111
+ export type DateOrder = 'Auto' | 'MDY' | 'DMY' | 'YMD'
112
+
113
+ export type EInvoiceStandard = 'FacturX' | 'ZUGFeRD' | 'XRechnung' | 'UBL' | 'Unknown'
114
+
115
+ export interface EmbeddedInvoiceXml {
116
+ filename: string
117
+ standard: EInvoiceStandard
118
+ /**
119
+ * The guideline / customization identifier, e.g.
120
+ * `urn:cen.eu:en16931:2017#compliant#urn:factur-x.eu:1p0:basic`.
121
+ */
122
+ profile?: string
123
+ xml: string
124
+ }
125
+
126
+ /** Where a field was read from, in PDF user space on a 1-based page. */
127
+ export interface FieldSpan {
128
+ page: number
129
+ x0: number
130
+ y0: number
131
+ x1: number
132
+ y1: number
133
+ }
134
+
135
+ export type InvoiceDocumentType = 'Invoice' | 'CreditNote' | 'Unknown'
136
+
137
+ /**
138
+ * Field names mirror the de-facto vocabulary of common invoice extractors so
139
+ * consumers can swap sources with a thin mapper. Naming only: nothing here
140
+ * talks to any service.
141
+ */
142
+ export interface InvoiceFields {
143
+ vendorName?: StringField
144
+ vendorAddress?: AddressField
145
+ vendorTaxId?: StringField
146
+ vendorEmail?: StringField
147
+ vendorPhone?: StringField
148
+ vendorWebsite?: StringField
149
+ customerName?: StringField
150
+ customerId?: StringField
151
+ customerAddress?: AddressField
152
+ customerTaxId?: StringField
153
+ billingAddress?: AddressField
154
+ shippingAddress?: AddressField
155
+ remittanceAddress?: AddressField
156
+ invoiceId?: StringField
157
+ invoiceDate?: DateField
158
+ dueDate?: DateField
159
+ purchaseOrder?: StringField
160
+ paymentTerm?: StringField
161
+ serviceStartDate?: DateField
162
+ serviceEndDate?: DateField
163
+ currencyCode?: string
164
+ subTotal?: MoneyField
165
+ totalDiscount?: MoneyField
166
+ totalTax?: MoneyField
167
+ shippingCost?: MoneyField
168
+ invoiceTotal?: MoneyField
169
+ amountDue?: MoneyField
170
+ previousUnpaidBalance?: MoneyField
171
+ /** MRO work order / shop order the invoice bills against. */
172
+ workOrder?: StringField
173
+ /** Aircraft and engines the invoice relates to; empty when none is identified. */
174
+ aircraft: Array<AircraftReference>
175
+ taxDetails: Array<TaxDetail>
176
+ paymentDetails: Array<PaymentDetail>
177
+ items: Array<InvoiceItem>
178
+ }
179
+
180
+ export interface InvoiceItem {
181
+ description?: StringField
182
+ productCode?: StringField
183
+ quantity?: NumberField
184
+ unit?: StringField
185
+ unitPrice?: MoneyField
186
+ taxRate?: NumberField
187
+ tax?: MoneyField
188
+ discount?: MoneyField
189
+ date?: DateField
190
+ amount?: MoneyField
191
+ /** Absent when the item came from embedded XML (no page geometry). */
192
+ span?: FieldSpan
193
+ }
194
+
195
+ /**
196
+ * Options accepted by every invoice entry point. `preferEmbeddedXml` picks the embedded
197
+ * XML over the pages when both exist; `languages`, `currency`, `dateOrder` and
198
+ * `decimalSeparator` steer the page reader where the page leaves a choice;
199
+ * `includeCandidates` lists, in `warnings`, the candidates each field was chosen from;
200
+ * `includeLayout` is reserved.
201
+ */
202
+ export interface InvoiceOptions {
203
+ /** Label lexicons to enable; default `["en"]`. */
204
+ languages?: Array<string>
205
+ /** ISO 4217 hint when the page shows only symbols. */
206
+ currency?: string
207
+ dateOrder?: DateOrder
208
+ decimalSeparator?: "Auto" | "." | ","
209
+ /** Default `true`. Embedded Factur-X / ZUGFeRD / XRechnung / UBL XML is used when present. */
210
+ preferEmbeddedXml?: boolean
211
+ /** Reserved; accepted and ignored. */
212
+ includeLayout?: boolean
213
+ /**
214
+ * Default `false`. Lists, in `warnings`, the candidates each field was chosen from, with
215
+ * their scores.
216
+ */
217
+ includeCandidates?: boolean
218
+ }
219
+
220
+ export interface InvoiceResult {
221
+ source: InvoiceSource
222
+ documentType: InvoiceDocumentType
223
+ /** Document-level confidence, 0..1. */
224
+ confidence: number
225
+ fields: InvoiceFields
226
+ warnings: Array<string>
227
+ embeddedXml?: EmbeddedInvoiceXml
228
+ /** Which tier named `fields.currencyCode`; absent when no layout pass ran. */
229
+ currencySource?: CurrencySource
230
+ /** The evidence behind `documentType: CreditNote`; empty otherwise. */
231
+ creditSignals: Array<string>
232
+ }
233
+
234
+ /**
235
+ * Which extraction path produced the result: embedded XML, the page text (native, OCR,
236
+ * rendered or mixed), or `None` when the document had no readable
237
+ * pages and no embedded XML.
238
+ */
239
+ export type InvoiceSource = 'EmbeddedXml' | 'Native' | 'Ocr' | 'Rendered' | 'Mixed' | 'None'
240
+
241
+ /**
242
+ * Money as a JS number plus the exact printed text; `text` is authoritative
243
+ * when cents matter.
244
+ */
245
+ export interface MoneyField {
246
+ value: number
247
+ text: string
248
+ confidence: number
249
+ span?: FieldSpan
250
+ currencyCode?: string
251
+ currencySymbol?: string
252
+ }
253
+
254
+ export interface NumberField {
255
+ value: number
256
+ text: string
257
+ confidence: number
258
+ span?: FieldSpan
259
+ }
260
+
40
261
  /**
41
262
  * Whether a Number cell's value is a whole number JavaScript can hold exactly, or a fraction.
42
263
  * A percentage is a fraction (50% is 0.5); the subtype is about the value, not the format.
43
264
  */
44
265
  export type NumberSubtype = 'Integer' | 'Float'
45
266
 
267
+ export interface PaymentDetail {
268
+ iban?: StringField
269
+ swift?: StringField
270
+ bankName?: StringField
271
+ accountNumber?: StringField
272
+ routingNumber?: StringField
273
+ }
274
+
46
275
  /**
47
276
  * One cell of a worksheet: a discriminated union on `type` whose typed value is `value`
48
277
  * (none for `Blank`). A Number carries the full double plus its `subtype` and the
@@ -105,6 +334,104 @@ export interface SheetColumn {
105
334
  hidden: boolean
106
335
  }
107
336
 
337
+ /**
338
+ * One selected worksheet's cells keyed for lookup: `rows["12"]["C"]` is cell C12, and
339
+ * `rows["12"]` is the whole of row 12. Only non-empty cells are present, so a row or a column
340
+ * with nothing in it has no key.
341
+ */
342
+ export interface SheetGrid {
343
+ sheet: string
344
+ /** Position in the workbook, 0-based. */
345
+ index: number
346
+ hidden: boolean
347
+ /** The declared `<dimension>`, which a producer may overstate. */
348
+ dimension?: string
349
+ /** Merged ranges in A1 form. */
350
+ merges: Array<string>
351
+ warnings: Array<string>
352
+ /**
353
+ * Keyed by row number as a reference writes it (`"12"`), then by column letters (`"C"`), each
354
+ * in sheet order.
355
+ */
356
+ rows: Record<string, Record<string, SheetCell>>
357
+ }
358
+
359
+ /**
360
+ * Words sharing a baseline band, left to right. `firstWord` / `wordCount` address a contiguous
361
+ * slice of `SheetPage.words`.
362
+ */
363
+ export interface SheetLine {
364
+ text: string
365
+ x0: number
366
+ y0: number
367
+ x1: number
368
+ y1: number
369
+ firstWord: number
370
+ wordCount: number
371
+ }
372
+
373
+ /** One sheet's counts. */
374
+ export interface SheetMeta {
375
+ name: string
376
+ /** Position in the workbook, 0-based. */
377
+ index: number
378
+ hidden: boolean
379
+ /** The declared `<dimension>`, which a producer may overstate. */
380
+ dimension?: string
381
+ /**
382
+ * From the first to the last row and column that hold a cell, in A1 form: `A1:F20`. Absent
383
+ * for a sheet with no cells. A merged range counts by its first cell only.
384
+ */
385
+ usedRange?: string
386
+ /** The rows and the columns the used range spans. */
387
+ rowCount: number
388
+ columnCount: number
389
+ /**
390
+ * Cells that hold a value or a formula: what `spreadsheetCells` returns for the sheet with
391
+ * `hiddenCells` on.
392
+ */
393
+ cellCount: number
394
+ /** Cells with a formula, the ones that follow a shared formula included. */
395
+ formulaCount: number
396
+ mergedRangeCount: number
397
+ tableCount: number
398
+ /** Pictures on the sheet. */
399
+ imageCount: number
400
+ chartCount: number
401
+ pivotTableCount: number
402
+ /** Links the sheet lists. One link may cover a range of cells. */
403
+ linkCount: number
404
+ /** Cells with a note or a comment thread. */
405
+ commentCount: number
406
+ }
407
+
408
+ /**
409
+ * One selected sheet laid out as a page: every cell's text placed inside the cell's rectangle,
410
+ * broken into words and grouped into lines, with the sheet facts a reader needs beside them.
411
+ */
412
+ export interface SheetPage {
413
+ /** 1-based, in selection order. */
414
+ page: number
415
+ sheet: string
416
+ /** Position in the workbook, 0-based. */
417
+ index: number
418
+ hidden: boolean
419
+ /** The declared `<dimension>`, which a producer may overstate. */
420
+ dimension?: string
421
+ printArea?: string
422
+ /** Merged ranges in A1 form. */
423
+ merges: Array<string>
424
+ /**
425
+ * The page's size in points: the print area when the sheet has one, else A1 to the last
426
+ * non-empty cell, with rows grown to fit their text.
427
+ */
428
+ width: number
429
+ height: number
430
+ words: Array<SheetWord>
431
+ lines: Array<SheetLine>
432
+ warnings: Array<string>
433
+ }
434
+
108
435
  /**
109
436
  * A row whose height differs from the sheet default (auto-fit growth included), or that is
110
437
  * hidden. 0-based.
@@ -116,6 +443,30 @@ export interface SheetRow {
116
443
  hidden: boolean
117
444
  }
118
445
 
446
+ /**
447
+ * One word of a sheet's logical page, with its box in the page frame: points, y up, the page's
448
+ * bottom-left corner at the origin.
449
+ */
450
+ export interface SheetWord {
451
+ text: string
452
+ x0: number
453
+ y0: number
454
+ x1: number
455
+ y1: number
456
+ /** Index into `SheetPage.lines`. */
457
+ line: number
458
+ /** The cell's font: its size in points, its name, and whether it is bold or italic. */
459
+ fontSize?: number
460
+ fontName?: string
461
+ bold?: boolean
462
+ italic?: boolean
463
+ /**
464
+ * The reference of the cell this word was laid out from (`"C3"`); the anchor for a merged
465
+ * range.
466
+ */
467
+ cell: string
468
+ }
469
+
119
470
  /**
120
471
  * The cells of a workbook buffer's selected sheets. Parses the buffer for this call; hold an
121
472
  * `XlsxDown` to read the same workbook more than once.
@@ -140,3 +491,66 @@ export interface SpreadsheetOptions {
140
491
  */
141
492
  hiddenCells?: boolean
142
493
  }
494
+
495
+ export interface StringField {
496
+ value: string
497
+ /** The exact source text the value was derived from. */
498
+ text: string
499
+ confidence: number
500
+ span?: FieldSpan
501
+ }
502
+
503
+ export interface TaxDetail {
504
+ rate?: NumberField
505
+ amount?: MoneyField
506
+ base?: MoneyField
507
+ category?: StringField
508
+ }
509
+
510
+ /**
511
+ * What a workbook says about itself, and counts of what it holds. Hidden sheets, rows and
512
+ * columns are counted like any other: this describes the file, not a selection from it.
513
+ */
514
+ export interface XlsxMeta {
515
+ title?: string
516
+ author?: string
517
+ subject?: string
518
+ /** As written: one string, usually separated by commas or semicolons. */
519
+ keywords?: string
520
+ description?: string
521
+ category?: string
522
+ language?: string
523
+ lastModifiedBy?: string
524
+ revision?: string
525
+ /** When the workbook was created and last saved, as the file writes them. */
526
+ created?: string
527
+ modified?: string
528
+ /** The application that last saved the file, and its version. */
529
+ application?: string
530
+ appVersion?: string
531
+ company?: string
532
+ /** Every sheet, the hidden ones included. */
533
+ sheetCount: number
534
+ hiddenSheetCount: number
535
+ /** Cells that hold a value or a formula, over every sheet. */
536
+ cellCount: number
537
+ formulaCount: number
538
+ mergedRangeCount: number
539
+ /** Words of the cells that hold text, counted from what those cells show. */
540
+ wordCount: number
541
+ /** Characters of those cells that are not white space. */
542
+ characterCount: number
543
+ tableCount: number
544
+ imageCount: number
545
+ chartCount: number
546
+ pivotTableCount: number
547
+ /** Names the workbook defines, the built-in ones (a print area, a filter) left out. */
548
+ definedNameCount: number
549
+ /** Links and comments. */
550
+ annotationCount: number
551
+ linkCount: number
552
+ commentCount: number
553
+ /** Whether dates count from 1904, as workbooks from old versions of Excel for Mac do. */
554
+ date1904: boolean
555
+ sheets: Array<SheetMeta>
556
+ }
package/index.js CHANGED
@@ -97,8 +97,8 @@ function requireNative() {
97
97
  try {
98
98
  const binding = require('@d0paminedriven/xlsxdown-android-arm64')
99
99
  const bindingPackageVersion = require('@d0paminedriven/xlsxdown-android-arm64/package.json').version
100
- if (bindingPackageVersion !== '0.1.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
101
- throw new Error(`Native binding package version mismatch, expected 0.1.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
100
+ if (bindingPackageVersion !== '0.4.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
101
+ throw new Error(`Native binding package version mismatch, expected 0.4.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
102
102
  }
103
103
  return binding
104
104
  } catch (e) {
@@ -113,8 +113,8 @@ function requireNative() {
113
113
  try {
114
114
  const binding = require('@d0paminedriven/xlsxdown-android-arm-eabi')
115
115
  const bindingPackageVersion = require('@d0paminedriven/xlsxdown-android-arm-eabi/package.json').version
116
- if (bindingPackageVersion !== '0.1.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
117
- throw new Error(`Native binding package version mismatch, expected 0.1.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
116
+ if (bindingPackageVersion !== '0.4.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
117
+ throw new Error(`Native binding package version mismatch, expected 0.4.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
118
118
  }
119
119
  return binding
120
120
  } catch (e) {
@@ -134,8 +134,8 @@ function requireNative() {
134
134
  try {
135
135
  const binding = require('@d0paminedriven/xlsxdown-win32-x64-gnu')
136
136
  const bindingPackageVersion = require('@d0paminedriven/xlsxdown-win32-x64-gnu/package.json').version
137
- if (bindingPackageVersion !== '0.1.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
138
- throw new Error(`Native binding package version mismatch, expected 0.1.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
137
+ if (bindingPackageVersion !== '0.4.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
138
+ throw new Error(`Native binding package version mismatch, expected 0.4.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
139
139
  }
140
140
  return binding
141
141
  } catch (e) {
@@ -150,8 +150,8 @@ function requireNative() {
150
150
  try {
151
151
  const binding = require('@d0paminedriven/xlsxdown-win32-x64-msvc')
152
152
  const bindingPackageVersion = require('@d0paminedriven/xlsxdown-win32-x64-msvc/package.json').version
153
- if (bindingPackageVersion !== '0.1.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
154
- throw new Error(`Native binding package version mismatch, expected 0.1.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
153
+ if (bindingPackageVersion !== '0.4.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
154
+ throw new Error(`Native binding package version mismatch, expected 0.4.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
155
155
  }
156
156
  return binding
157
157
  } catch (e) {
@@ -167,8 +167,8 @@ function requireNative() {
167
167
  try {
168
168
  const binding = require('@d0paminedriven/xlsxdown-win32-ia32-msvc')
169
169
  const bindingPackageVersion = require('@d0paminedriven/xlsxdown-win32-ia32-msvc/package.json').version
170
- if (bindingPackageVersion !== '0.1.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
171
- throw new Error(`Native binding package version mismatch, expected 0.1.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
170
+ if (bindingPackageVersion !== '0.4.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
171
+ throw new Error(`Native binding package version mismatch, expected 0.4.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
172
172
  }
173
173
  return binding
174
174
  } catch (e) {
@@ -183,8 +183,8 @@ function requireNative() {
183
183
  try {
184
184
  const binding = require('@d0paminedriven/xlsxdown-win32-arm64-msvc')
185
185
  const bindingPackageVersion = require('@d0paminedriven/xlsxdown-win32-arm64-msvc/package.json').version
186
- if (bindingPackageVersion !== '0.1.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
187
- throw new Error(`Native binding package version mismatch, expected 0.1.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
186
+ if (bindingPackageVersion !== '0.4.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
187
+ throw new Error(`Native binding package version mismatch, expected 0.4.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
188
188
  }
189
189
  return binding
190
190
  } catch (e) {
@@ -202,8 +202,8 @@ function requireNative() {
202
202
  try {
203
203
  const binding = require('@d0paminedriven/xlsxdown-darwin-universal')
204
204
  const bindingPackageVersion = require('@d0paminedriven/xlsxdown-darwin-universal/package.json').version
205
- if (bindingPackageVersion !== '0.1.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
206
- throw new Error(`Native binding package version mismatch, expected 0.1.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
205
+ if (bindingPackageVersion !== '0.4.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
206
+ throw new Error(`Native binding package version mismatch, expected 0.4.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
207
207
  }
208
208
  return binding
209
209
  } catch (e) {
@@ -218,8 +218,8 @@ function requireNative() {
218
218
  try {
219
219
  const binding = require('@d0paminedriven/xlsxdown-darwin-x64')
220
220
  const bindingPackageVersion = require('@d0paminedriven/xlsxdown-darwin-x64/package.json').version
221
- if (bindingPackageVersion !== '0.1.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
222
- throw new Error(`Native binding package version mismatch, expected 0.1.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
221
+ if (bindingPackageVersion !== '0.4.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
222
+ throw new Error(`Native binding package version mismatch, expected 0.4.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
223
223
  }
224
224
  return binding
225
225
  } catch (e) {
@@ -234,8 +234,8 @@ function requireNative() {
234
234
  try {
235
235
  const binding = require('@d0paminedriven/xlsxdown-darwin-arm64')
236
236
  const bindingPackageVersion = require('@d0paminedriven/xlsxdown-darwin-arm64/package.json').version
237
- if (bindingPackageVersion !== '0.1.0' && 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.1.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
237
+ if (bindingPackageVersion !== '0.4.0' && 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.4.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
239
239
  }
240
240
  return binding
241
241
  } catch (e) {
@@ -254,8 +254,8 @@ function requireNative() {
254
254
  try {
255
255
  const binding = require('@d0paminedriven/xlsxdown-freebsd-x64')
256
256
  const bindingPackageVersion = require('@d0paminedriven/xlsxdown-freebsd-x64/package.json').version
257
- if (bindingPackageVersion !== '0.1.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
258
- throw new Error(`Native binding package version mismatch, expected 0.1.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
257
+ if (bindingPackageVersion !== '0.4.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
258
+ throw new Error(`Native binding package version mismatch, expected 0.4.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
259
259
  }
260
260
  return binding
261
261
  } catch (e) {
@@ -270,8 +270,8 @@ function requireNative() {
270
270
  try {
271
271
  const binding = require('@d0paminedriven/xlsxdown-freebsd-arm64')
272
272
  const bindingPackageVersion = require('@d0paminedriven/xlsxdown-freebsd-arm64/package.json').version
273
- if (bindingPackageVersion !== '0.1.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
274
- throw new Error(`Native binding package version mismatch, expected 0.1.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
273
+ if (bindingPackageVersion !== '0.4.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
274
+ throw new Error(`Native binding package version mismatch, expected 0.4.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
275
275
  }
276
276
  return binding
277
277
  } catch (e) {
@@ -286,8 +286,8 @@ function requireNative() {
286
286
  try {
287
287
  const binding = require('@d0paminedriven/xlsxdown-freebsd-ppc64')
288
288
  const bindingPackageVersion = require('@d0paminedriven/xlsxdown-freebsd-ppc64/package.json').version
289
- if (bindingPackageVersion !== '0.1.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
290
- throw new Error(`Native binding package version mismatch, expected 0.1.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
289
+ if (bindingPackageVersion !== '0.4.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
290
+ throw new Error(`Native binding package version mismatch, expected 0.4.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
291
291
  }
292
292
  return binding
293
293
  } catch (e) {
@@ -307,8 +307,8 @@ function requireNative() {
307
307
  try {
308
308
  const binding = require('@d0paminedriven/xlsxdown-linux-x64-musl')
309
309
  const bindingPackageVersion = require('@d0paminedriven/xlsxdown-linux-x64-musl/package.json').version
310
- if (bindingPackageVersion !== '0.1.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
311
- throw new Error(`Native binding package version mismatch, expected 0.1.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
310
+ if (bindingPackageVersion !== '0.4.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
311
+ throw new Error(`Native binding package version mismatch, expected 0.4.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
312
312
  }
313
313
  return binding
314
314
  } catch (e) {
@@ -323,8 +323,8 @@ function requireNative() {
323
323
  try {
324
324
  const binding = require('@d0paminedriven/xlsxdown-linux-x64-gnu')
325
325
  const bindingPackageVersion = require('@d0paminedriven/xlsxdown-linux-x64-gnu/package.json').version
326
- if (bindingPackageVersion !== '0.1.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
327
- throw new Error(`Native binding package version mismatch, expected 0.1.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
326
+ if (bindingPackageVersion !== '0.4.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
327
+ throw new Error(`Native binding package version mismatch, expected 0.4.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
328
328
  }
329
329
  return binding
330
330
  } catch (e) {
@@ -341,8 +341,8 @@ function requireNative() {
341
341
  try {
342
342
  const binding = require('@d0paminedriven/xlsxdown-linux-arm64-musl')
343
343
  const bindingPackageVersion = require('@d0paminedriven/xlsxdown-linux-arm64-musl/package.json').version
344
- if (bindingPackageVersion !== '0.1.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
345
- throw new Error(`Native binding package version mismatch, expected 0.1.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
344
+ if (bindingPackageVersion !== '0.4.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
345
+ throw new Error(`Native binding package version mismatch, expected 0.4.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
346
346
  }
347
347
  return binding
348
348
  } catch (e) {
@@ -357,8 +357,8 @@ function requireNative() {
357
357
  try {
358
358
  const binding = require('@d0paminedriven/xlsxdown-linux-arm64-gnu')
359
359
  const bindingPackageVersion = require('@d0paminedriven/xlsxdown-linux-arm64-gnu/package.json').version
360
- if (bindingPackageVersion !== '0.1.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
361
- throw new Error(`Native binding package version mismatch, expected 0.1.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
360
+ if (bindingPackageVersion !== '0.4.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
361
+ throw new Error(`Native binding package version mismatch, expected 0.4.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
362
362
  }
363
363
  return binding
364
364
  } catch (e) {
@@ -375,8 +375,8 @@ function requireNative() {
375
375
  try {
376
376
  const binding = require('@d0paminedriven/xlsxdown-linux-arm-musleabihf')
377
377
  const bindingPackageVersion = require('@d0paminedriven/xlsxdown-linux-arm-musleabihf/package.json').version
378
- if (bindingPackageVersion !== '0.1.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
379
- throw new Error(`Native binding package version mismatch, expected 0.1.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
378
+ if (bindingPackageVersion !== '0.4.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
379
+ throw new Error(`Native binding package version mismatch, expected 0.4.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
380
380
  }
381
381
  return binding
382
382
  } catch (e) {
@@ -391,8 +391,8 @@ function requireNative() {
391
391
  try {
392
392
  const binding = require('@d0paminedriven/xlsxdown-linux-arm-gnueabihf')
393
393
  const bindingPackageVersion = require('@d0paminedriven/xlsxdown-linux-arm-gnueabihf/package.json').version
394
- if (bindingPackageVersion !== '0.1.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
395
- throw new Error(`Native binding package version mismatch, expected 0.1.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
394
+ if (bindingPackageVersion !== '0.4.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
395
+ throw new Error(`Native binding package version mismatch, expected 0.4.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
396
396
  }
397
397
  return binding
398
398
  } catch (e) {
@@ -409,8 +409,8 @@ function requireNative() {
409
409
  try {
410
410
  const binding = require('@d0paminedriven/xlsxdown-linux-loong64-musl')
411
411
  const bindingPackageVersion = require('@d0paminedriven/xlsxdown-linux-loong64-musl/package.json').version
412
- if (bindingPackageVersion !== '0.1.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
413
- throw new Error(`Native binding package version mismatch, expected 0.1.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
412
+ if (bindingPackageVersion !== '0.4.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
413
+ throw new Error(`Native binding package version mismatch, expected 0.4.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
414
414
  }
415
415
  return binding
416
416
  } catch (e) {
@@ -425,8 +425,8 @@ function requireNative() {
425
425
  try {
426
426
  const binding = require('@d0paminedriven/xlsxdown-linux-loong64-gnu')
427
427
  const bindingPackageVersion = require('@d0paminedriven/xlsxdown-linux-loong64-gnu/package.json').version
428
- if (bindingPackageVersion !== '0.1.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
429
- throw new Error(`Native binding package version mismatch, expected 0.1.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
428
+ if (bindingPackageVersion !== '0.4.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
429
+ throw new Error(`Native binding package version mismatch, expected 0.4.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
430
430
  }
431
431
  return binding
432
432
  } catch (e) {
@@ -443,8 +443,8 @@ function requireNative() {
443
443
  try {
444
444
  const binding = require('@d0paminedriven/xlsxdown-linux-riscv64-musl')
445
445
  const bindingPackageVersion = require('@d0paminedriven/xlsxdown-linux-riscv64-musl/package.json').version
446
- if (bindingPackageVersion !== '0.1.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
447
- throw new Error(`Native binding package version mismatch, expected 0.1.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
446
+ if (bindingPackageVersion !== '0.4.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
447
+ throw new Error(`Native binding package version mismatch, expected 0.4.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
448
448
  }
449
449
  return binding
450
450
  } catch (e) {
@@ -459,8 +459,8 @@ function requireNative() {
459
459
  try {
460
460
  const binding = require('@d0paminedriven/xlsxdown-linux-riscv64-gnu')
461
461
  const bindingPackageVersion = require('@d0paminedriven/xlsxdown-linux-riscv64-gnu/package.json').version
462
- if (bindingPackageVersion !== '0.1.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
463
- throw new Error(`Native binding package version mismatch, expected 0.1.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
462
+ if (bindingPackageVersion !== '0.4.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
463
+ throw new Error(`Native binding package version mismatch, expected 0.4.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
464
464
  }
465
465
  return binding
466
466
  } catch (e) {
@@ -476,8 +476,8 @@ function requireNative() {
476
476
  try {
477
477
  const binding = require('@d0paminedriven/xlsxdown-linux-ppc64-gnu')
478
478
  const bindingPackageVersion = require('@d0paminedriven/xlsxdown-linux-ppc64-gnu/package.json').version
479
- if (bindingPackageVersion !== '0.1.0' && 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.1.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
479
+ if (bindingPackageVersion !== '0.4.0' && 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.4.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
481
481
  }
482
482
  return binding
483
483
  } catch (e) {
@@ -492,8 +492,8 @@ function requireNative() {
492
492
  try {
493
493
  const binding = require('@d0paminedriven/xlsxdown-linux-s390x-gnu')
494
494
  const bindingPackageVersion = require('@d0paminedriven/xlsxdown-linux-s390x-gnu/package.json').version
495
- if (bindingPackageVersion !== '0.1.0' && 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.1.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
495
+ if (bindingPackageVersion !== '0.4.0' && 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.4.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
497
497
  }
498
498
  return binding
499
499
  } catch (e) {
@@ -512,8 +512,8 @@ function requireNative() {
512
512
  try {
513
513
  const binding = require('@d0paminedriven/xlsxdown-openharmony-arm64')
514
514
  const bindingPackageVersion = require('@d0paminedriven/xlsxdown-openharmony-arm64/package.json').version
515
- if (bindingPackageVersion !== '0.1.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
516
- throw new Error(`Native binding package version mismatch, expected 0.1.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
515
+ if (bindingPackageVersion !== '0.4.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
516
+ throw new Error(`Native binding package version mismatch, expected 0.4.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
517
517
  }
518
518
  return binding
519
519
  } catch (e) {
@@ -528,8 +528,8 @@ function requireNative() {
528
528
  try {
529
529
  const binding = require('@d0paminedriven/xlsxdown-openharmony-x64')
530
530
  const bindingPackageVersion = require('@d0paminedriven/xlsxdown-openharmony-x64/package.json').version
531
- if (bindingPackageVersion !== '0.1.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
532
- throw new Error(`Native binding package version mismatch, expected 0.1.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
531
+ if (bindingPackageVersion !== '0.4.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
532
+ throw new Error(`Native binding package version mismatch, expected 0.4.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
533
533
  }
534
534
  return binding
535
535
  } catch (e) {
@@ -544,8 +544,8 @@ function requireNative() {
544
544
  try {
545
545
  const binding = require('@d0paminedriven/xlsxdown-openharmony-arm')
546
546
  const bindingPackageVersion = require('@d0paminedriven/xlsxdown-openharmony-arm/package.json').version
547
- if (bindingPackageVersion !== '0.1.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
548
- throw new Error(`Native binding package version mismatch, expected 0.1.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
547
+ if (bindingPackageVersion !== '0.4.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
548
+ throw new Error(`Native binding package version mismatch, expected 0.4.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
549
549
  }
550
550
  return binding
551
551
  } catch (e) {
@@ -686,8 +686,8 @@ if (!nativeBinding || forceWasi) {
686
686
  if (!candidateFailed) {
687
687
  if (process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
688
688
  const bindingPackageVersion = require('@d0paminedriven/xlsxdown-wasm32-wasi/package.json').version
689
- if (bindingPackageVersion !== '0.1.0') {
690
- throw new Error(`WASI binding package version mismatch, expected 0.1.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
689
+ if (bindingPackageVersion !== '0.4.0') {
690
+ throw new Error(`WASI binding package version mismatch, expected 0.4.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
691
691
  }
692
692
  }
693
693
  wasiBinding = require('@d0paminedriven/xlsxdown-wasm32-wasi')
@@ -773,8 +773,13 @@ if (
773
773
  }
774
774
  }
775
775
 
776
- const { XlsxDown, NumberSubtype, spreadsheetCells, spreadsheetCellsAsync } = nativeBinding
776
+ const { XlsxDown, CurrencySource, DateOrder, EInvoiceStandard, InvoiceDocumentType, InvoiceSource, NumberSubtype, spreadsheetCells, spreadsheetCellsAsync } = nativeBinding
777
777
  export { XlsxDown }
778
+ export { CurrencySource }
779
+ export { DateOrder }
780
+ export { EInvoiceStandard }
781
+ export { InvoiceDocumentType }
782
+ export { InvoiceSource }
778
783
  export { NumberSubtype }
779
784
  export { spreadsheetCells }
780
785
  export { spreadsheetCellsAsync }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@d0paminedriven/xlsxdown",
3
- "version": "0.1.0",
3
+ "version": "0.4.0",
4
4
  "description": "Rust powered xlsx extraction for Node",
5
5
  "packageManager": "yarn@4.18.1+sha512.b2e1e7524f654f2749d32b4ebcb4622473cb5bcbc485df2007e12a154e50162a4d795526768bc5f5b8f81717bfd79deb2472813d86fb5ae2eb551fa9c872b08f",
6
6
  "keywords": [
@@ -100,19 +100,19 @@
100
100
  "node": ">=24"
101
101
  },
102
102
  "optionalDependencies": {
103
- "@d0paminedriven/xlsxdown-win32-x64-msvc": "0.1.0",
104
- "@d0paminedriven/xlsxdown-darwin-x64": "0.1.0",
105
- "@d0paminedriven/xlsxdown-linux-x64-gnu": "0.1.0",
106
- "@d0paminedriven/xlsxdown-linux-x64-musl": "0.1.0",
107
- "@d0paminedriven/xlsxdown-linux-arm64-gnu": "0.1.0",
108
- "@d0paminedriven/xlsxdown-win32-ia32-msvc": "0.1.0",
109
- "@d0paminedriven/xlsxdown-linux-arm-gnueabihf": "0.1.0",
110
- "@d0paminedriven/xlsxdown-darwin-arm64": "0.1.0",
111
- "@d0paminedriven/xlsxdown-android-arm64": "0.1.0",
112
- "@d0paminedriven/xlsxdown-freebsd-x64": "0.1.0",
113
- "@d0paminedriven/xlsxdown-linux-arm64-musl": "0.1.0",
114
- "@d0paminedriven/xlsxdown-win32-arm64-msvc": "0.1.0",
115
- "@d0paminedriven/xlsxdown-android-arm-eabi": "0.1.0",
116
- "@d0paminedriven/xlsxdown-wasm32-wasi": "0.1.0"
103
+ "@d0paminedriven/xlsxdown-win32-x64-msvc": "0.4.0",
104
+ "@d0paminedriven/xlsxdown-darwin-x64": "0.4.0",
105
+ "@d0paminedriven/xlsxdown-linux-x64-gnu": "0.4.0",
106
+ "@d0paminedriven/xlsxdown-linux-x64-musl": "0.4.0",
107
+ "@d0paminedriven/xlsxdown-linux-arm64-gnu": "0.4.0",
108
+ "@d0paminedriven/xlsxdown-win32-ia32-msvc": "0.4.0",
109
+ "@d0paminedriven/xlsxdown-linux-arm-gnueabihf": "0.4.0",
110
+ "@d0paminedriven/xlsxdown-darwin-arm64": "0.4.0",
111
+ "@d0paminedriven/xlsxdown-android-arm64": "0.4.0",
112
+ "@d0paminedriven/xlsxdown-freebsd-x64": "0.4.0",
113
+ "@d0paminedriven/xlsxdown-linux-arm64-musl": "0.4.0",
114
+ "@d0paminedriven/xlsxdown-win32-arm64-msvc": "0.4.0",
115
+ "@d0paminedriven/xlsxdown-android-arm-eabi": "0.4.0",
116
+ "@d0paminedriven/xlsxdown-wasm32-wasi": "0.4.0"
117
117
  }
118
118
  }