Socket
Socket
Sign inDemoInstall

node-apk

Package Overview
Dependencies
1
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.1.0 to 1.1.1

4

build/lib/zip.js

@@ -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",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc