node-apk
Advanced tools
Comparing version 1.1.0 to 1.1.1
@@ -29,3 +29,3 @@ "use strict"; | ||
if (this.signature !== signature) { | ||
throw Error("Invalid file header signature found: 0x" + signature.toString(16)); | ||
throw Error("Invalid file header signature found: 0x" + this.signature.toString(16)); | ||
} | ||
@@ -64,3 +64,3 @@ this.versionMadeBy = this.signature === Signature.CENTRAL_HEADER ? source.readUShort() : 0; | ||
return loader().then(function (buffer) { | ||
var index = buffer.indexOf("504B0506", 0, "hex"); | ||
var index = buffer.lastIndexOf("504B0506", undefined, "hex"); | ||
if (index < 0) { | ||
@@ -67,0 +67,0 @@ throw Error("End of central directory not found"); |
@@ -32,3 +32,3 @@ /*Copyright (c) 2019 XdevL. All rights reserved. | ||
return loader().then((buffer) => { | ||
const index = buffer.indexOf("504B0506", 0, "hex"); | ||
const index = buffer.lastIndexOf("504B0506", undefined, "hex"); | ||
if (index < 0) { | ||
@@ -75,3 +75,3 @@ throw Error("End of central directory not found"); | ||
if (this.signature !== signature) { | ||
throw Error(`Invalid file header signature found: 0x${signature.toString(16)}`); | ||
throw Error(`Invalid file header signature found: 0x${this.signature.toString(16)}`); | ||
} | ||
@@ -78,0 +78,0 @@ this.versionMadeBy = this.signature === Signature.CENTRAL_HEADER ? source.readUShort() : 0; |
{ | ||
"name": "node-apk", | ||
"version": "1.1.0", | ||
"version": "1.1.1", | ||
"description": "A library to parse Android application manifest and signature", | ||
@@ -5,0 +5,0 @@ "main": "build/lib/index.js", |
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
90175
0