Skip to content

Commit

Permalink
Merge pull request #6 from vojtatom/dev
Browse files Browse the repository at this point in the history
Removing Node.js Buffer
  • Loading branch information
vojtatom authored May 7, 2023
2 parents da3e7d8 + 8a4f805 commit f11d62d
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "shpts",
"private": false,
"version": "1.0.3",
"version": "1.0.4",
"type": "module",
"repository": {
"type": "git",
Expand Down
2 changes: 1 addition & 1 deletion shpts/table/decoder.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ export class DbfDecoder {
this.decoder = new TextDecoder(encoding);
}

decode(str: Buffer) {
decode(str: Uint8Array) {
return this.decoder.decode(str);
}
}
Expand Down
2 changes: 1 addition & 1 deletion shpts/table/record.ts
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ export class DbfRecord {
}
chars[i] = charCode;
}
const value = decoder.decode(Buffer.from(chars));
const value = decoder.decode(chars);
return value.trim();
}

Expand Down

0 comments on commit f11d62d

Please sign in to comment.