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.0.0 to 1.0.1

.eslintrc.js

24

dist/android.d.ts

@@ -5,6 +5,6 @@ import XmlElement from "./xml";

constructor(xml: XmlElement);
readonly raw: XmlElement;
readonly name: string;
readonly permission: string;
readonly exported: boolean;
get raw(): XmlElement;
get name(): string;
get permission(): string;
get exported(): boolean;
}

@@ -14,10 +14,10 @@ export declare class Manifest {

constructor(xml: XmlElement);
readonly raw: XmlElement;
readonly versionCode: number;
readonly versionName: string;
readonly package: string;
readonly applicationLabel: string | number;
readonly applicationIcon: number;
readonly permissions: Iterable<string>;
readonly receivers: Iterable<Receiver>;
get raw(): XmlElement;
get versionCode(): number;
get versionName(): string;
get package(): string;
get applicationLabel(): string | number;
get applicationIcon(): number;
get permissions(): Iterable<string>;
get receivers(): Iterable<Receiver>;
}

@@ -36,2 +36,3 @@ "use strict";

Object.defineProperty(exports, "__esModule", { value: true });
exports.Manifest = exports.Receiver = void 0;
var Receiver = /** @class */ (function () {

@@ -45,3 +46,3 @@ function Receiver(xml) {

},
enumerable: true,
enumerable: false,
configurable: true

@@ -53,3 +54,3 @@ });

},
enumerable: true,
enumerable: false,
configurable: true

@@ -61,3 +62,3 @@ });

},
enumerable: true,
enumerable: false,
configurable: true

@@ -69,3 +70,3 @@ });

},
enumerable: true,
enumerable: false,
configurable: true

@@ -84,3 +85,3 @@ });

},
enumerable: true,
enumerable: false,
configurable: true

@@ -92,3 +93,3 @@ });

},
enumerable: true,
enumerable: false,
configurable: true

@@ -100,3 +101,3 @@ });

},
enumerable: true,
enumerable: false,
configurable: true

@@ -108,3 +109,3 @@ });

},
enumerable: true,
enumerable: false,
configurable: true

@@ -116,3 +117,3 @@ });

},
enumerable: true,
enumerable: false,
configurable: true

@@ -124,3 +125,3 @@ });

},
enumerable: true,
enumerable: false,
configurable: true

@@ -153,3 +154,3 @@ });

},
enumerable: true,
enumerable: false,
configurable: true

@@ -182,3 +183,3 @@ });

},
enumerable: true,
enumerable: false,
configurable: true

@@ -185,0 +186,0 @@ });

@@ -18,4 +18,4 @@ /// <reference types="node" />

constructor(input: Buffer | ForgeCertificate, parent?: Certificate);
readonly chain: Certificate[];
get chain(): Certificate[];
}
export {};

@@ -59,3 +59,3 @@ "use strict";

},
enumerable: true,
enumerable: false,
configurable: true

@@ -62,0 +62,0 @@ });

@@ -7,2 +7,3 @@ "use strict";

Object.defineProperty(exports, "__esModule", { value: true });
exports.parseResourceValue = exports.StringPool = exports.Chunk = exports.ChunkType = void 0;
var ChunkType;

@@ -59,3 +60,2 @@ (function (ChunkType) {

chunk.chunkSource.moveAt(this.stringsStart - chunk.headerSize + index);
// tslint:disable no-bitwise
if (this.flags & 256) {

@@ -93,5 +93,6 @@ this.values.push(StringPool.readUtf8String(chunk.chunkSource));

return source.readInt();
case ResourceType.STRING:
case ResourceType.STRING: {
var index = source.readInt();
return index >= 0 ? stringPool.values[index] : null;
}
case ResourceType.INT_DEC:

@@ -98,0 +99,0 @@ return source.readInt();

@@ -8,15 +8,19 @@ "use strict";

*/
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.XmlElement = exports.Resources = exports.Resource = exports.Locale = exports.Receiver = exports.Manifest = exports.Certificate = exports.Apk = void 0;
var apk_1 = require("./apk");
exports.Apk = apk_1.default;
Object.defineProperty(exports, "Apk", { enumerable: true, get: function () { return __importDefault(apk_1).default; } });
var certificate_1 = require("./certificate");
exports.Certificate = certificate_1.default;
Object.defineProperty(exports, "Certificate", { enumerable: true, get: function () { return __importDefault(certificate_1).default; } });
var android_1 = require("./android");
exports.Manifest = android_1.Manifest;
exports.Receiver = android_1.Receiver;
Object.defineProperty(exports, "Manifest", { enumerable: true, get: function () { return android_1.Manifest; } });
Object.defineProperty(exports, "Receiver", { enumerable: true, get: function () { return android_1.Receiver; } });
var resources_1 = require("./resources");
exports.Locale = resources_1.Locale;
exports.Resource = resources_1.Resource;
exports.Resources = resources_1.Resources;
Object.defineProperty(exports, "Locale", { enumerable: true, get: function () { return resources_1.Locale; } });
Object.defineProperty(exports, "Resource", { enumerable: true, get: function () { return resources_1.Resource; } });
Object.defineProperty(exports, "Resources", { enumerable: true, get: function () { return resources_1.Resources; } });
var xml_1 = require("./xml");
exports.XmlElement = xml_1.default;
Object.defineProperty(exports, "XmlElement", { enumerable: true, get: function () { return __importDefault(xml_1).default; } });

@@ -48,4 +48,4 @@ import { Chunk, StringPool } from "./common";

private convertCode;
readonly language: string | undefined;
readonly country: string | undefined;
get language(): string | undefined;
get country(): string | undefined;
}

@@ -52,0 +52,0 @@ declare class TableEntry {

@@ -7,6 +7,6 @@ "use strict";

Object.defineProperty(exports, "__esModule", { value: true });
exports.Resources = exports.Resource = exports.Locale = void 0;
/*Reference implementation found at:
frameworks/base/libs/androidfw/include/androidfw/ResourceTypes.h
frameworks/base/libs/androidfw/include/androidfw/ResourceTypes.cpp*/
// tslint:disable max-classes-per-file
var common_1 = require("./common");

@@ -46,3 +46,3 @@ var Table = /** @class */ (function () {

TablePackageChunk.getOrCreate = function (map, key) {
return (map.has(key) ? map : map.set(key, new Array())).get(key);
return (map.has(key) ? map : map.set(key, [])).get(key);
};

@@ -101,3 +101,3 @@ return TablePackageChunk;

},
enumerable: true,
enumerable: false,
configurable: true

@@ -109,3 +109,3 @@ });

},
enumerable: true,
enumerable: false,
configurable: true

@@ -112,0 +112,0 @@ });

@@ -9,3 +9,2 @@ "use strict";

Object.defineProperty(exports, "__esModule", { value: true });
// tslint:disable max-classes-per-file
var common_1 = require("./common");

@@ -12,0 +11,0 @@ var XmlAttribute = /** @class */ (function () {

@@ -10,2 +10,3 @@ "use strict";

Object.defineProperty(exports, "__esModule", { value: true });
exports.ZipEntry = void 0;
var zlib_1 = __importDefault(require("zlib"));

@@ -12,0 +13,0 @@ var source_1 = __importDefault(require("./source"));

@@ -8,3 +8,2 @@ /*

// tslint:disable max-classes-per-file
import XmlElement from "./xml";

@@ -11,0 +10,0 @@

@@ -6,3 +6,2 @@ /*Copyright (c) 2019 XdevL. All rights reserved.

// tslint:disable max-classes-per-file
import Source from "./source";

@@ -83,3 +82,2 @@

chunk.chunkSource.moveAt(this.stringsStart - chunk.headerSize + index);
// tslint:disable no-bitwise
if (this.flags & 256) {

@@ -108,5 +106,6 @@ this.values.push(StringPool.readUtf8String(chunk.chunkSource));

return source.readInt();
case ResourceType.STRING:
case ResourceType.STRING: {
const index = source.readInt();
return index >= 0 ? stringPool.values[index] : null;
}
case ResourceType.INT_DEC:

@@ -113,0 +112,0 @@ return source.readInt();

@@ -10,3 +10,2 @@ /*Copyright (c) 2019 XdevL. All rights reserved.

// tslint:disable max-classes-per-file
import { Chunk, ChunkType, parseResourceValue, StringPool } from "./common";

@@ -38,3 +37,3 @@ import Source from "./source";

private static getOrCreate<K, V>(map: Map<K, V[]>, key: K): V[] {
return (map.has(key) ? map : map.set(key, new Array())).get(key)!;
return (map.has(key) ? map : map.set(key, [])).get(key)!;
}

@@ -41,0 +40,0 @@

@@ -13,3 +13,3 @@ /*

public buffer: Buffer;
public cursor: number = 0;
public cursor = 0;

@@ -16,0 +16,0 @@ constructor(buffer: Buffer) {

@@ -8,3 +8,2 @@ /*

// tslint:disable max-classes-per-file
import { Chunk, ChunkType, parseResourceValue, StringPool } from "./common";

@@ -11,0 +10,0 @@ import Source from "./source";

{
"name": "node-apk",
"version": "1.0.0",
"version": "1.0.1",
"description": "A library to parse Android application manifest and signature",
"main": "dist/index.js",
"scripts": {
"prebuild": "tslint -c tslint.json -p tsconfig.json --fix",
"prebuild": "eslint 'lib/**/*.{js,ts,tsx}'",
"build": "tsc --declaration",

@@ -27,11 +27,12 @@ "prestart": "npm run build",

"devDependencies": {
"@types/jszip": "^3.1.6",
"@types/node": "^11.13.15",
"@types/node-forge": "^0.8.4",
"tslint": "^5.18.0",
"typescript": "^3.5.2"
"@types/node": "^14.14.35",
"@types/node-forge": "^0.9.7",
"@typescript-eslint/eslint-plugin": "^4.18.0",
"@typescript-eslint/parser": "^4.18.0",
"eslint": "^7.22.0",
"typescript": "^4.2.3"
},
"dependencies": {
"node-forge": "^0.8.4"
"node-forge": "^0.10.0"
}
}
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