Comparing version 2.0.1 to 2.0.2
@@ -239,3 +239,3 @@ "use strict"; | ||
decodeString(offset, size) { | ||
return this.db.toString('utf8', offset, offset + size); | ||
return this.db.slice(offset, offset + size).toString(); | ||
} | ||
@@ -242,0 +242,0 @@ decodeBigUint(offset, size) { |
{ | ||
"name": "mmdb-lib", | ||
"version": "2.0.1", | ||
"version": "2.0.2", | ||
"homepage": "https://github.com/runk/mmdb-lib", | ||
@@ -15,3 +15,4 @@ "description": "Maxmind DB (MMDB) Library", | ||
"contributors": [ | ||
"William Storey @horgh" | ||
"William Storey @horgh", | ||
"Uman Shahzad @UmanShahzad" | ||
], | ||
@@ -32,2 +33,3 @@ "devDependencies": { | ||
"ts-jest": "^27.1.2", | ||
"ts-node": "^10.4.0", | ||
"typescript": "4.5.4" | ||
@@ -58,3 +60,3 @@ }, | ||
"test": "jest", | ||
"test-imports": "node test/imports/commonjs.js && node test/imports/esm.mjs", | ||
"test-imports": "node test/imports/commonjs.js && node test/imports/esm.mjs && ts-node test/imports/typescript.ts", | ||
"format": "prettier --write src", | ||
@@ -61,0 +63,0 @@ "prepublish": "npm run build", |
33991
15