Comparing version 1.3.0 to 1.3.1
@@ -193,3 +193,3 @@ "use strict"; | ||
decodeString(offset, size) { | ||
return this.db.utf8Slice(offset, offset + size); | ||
return this.db.toString('utf8', offset, offset + size); | ||
} | ||
@@ -196,0 +196,0 @@ decodeBigUint(offset, size) { |
@@ -27,2 +27,5 @@ "use strict"; | ||
load(db) { | ||
if (!Buffer.isBuffer(db)) { | ||
throw new Error(`mmdb-lib expects an instance of Buffer, got: ${typeof db}`); | ||
} | ||
this.db = db; | ||
@@ -29,0 +32,0 @@ this.metadata = metadata_1.parseMetadata(this.db); |
{ | ||
"name": "mmdb-lib", | ||
"version": "1.3.0", | ||
"version": "1.3.1", | ||
"homepage": "https://github.com/runk/mmdb-lib", | ||
@@ -5,0 +5,0 @@ "description": "Maxmind DB (MMDB) Library", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
47496
666