dbf icon indicating copy to clipboard operation
dbf copied to clipboard

solve structure problem

Open HAPpleee opened this issue 2 years ago • 1 comments

Hi! 👋

Firstly, thanks for your work on this project! 🙂

Today I used patch-package to patch [email protected] for the project I'm working on.

Here is the diff that solved my problem:

diff --git a/node_modules/dbf/src/structure.js b/node_modules/dbf/src/structure.js
index 4b02783..f2b4c0b 100644
--- a/node_modules/dbf/src/structure.js
+++ b/node_modules/dbf/src/structure.js
@@ -55,7 +55,7 @@ module.exports = function structure(data, meta) {
         if (f.type == 'N') view.setInt8(32 + i * 32 + 17, 3);
     });
 
-    offset = fieldDescLength + 32;
+    var offset = fieldDescLength + 32;
 
     data.forEach(function(row, num) {
         // delete flag: this is not deleted

This issue body was partially generated by patch-package.

HAPpleee avatar Feb 28 '23 06:02 HAPpleee

Hello! Thanks for noting this! There was actually fixed in a version released last June, so I believe this issue should be resolved with [email protected]. Thanks!

sheindel avatar Jun 11 '24 00:06 sheindel