Big News: Socket Selected for OpenAI's Cybersecurity Grant Program.Details
Socket
Book a DemoSign in
Socket

app-info-parser

Package Overview
Dependencies
Maintainers
1
Versions
42
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

app-info-parser - npm Package Compare versions

Comparing version
1.1.1-alpha.1
to
1.1.1
+5
-2
CHANGELOG.md

@@ -5,6 +5,9 @@ # Changelog

### [1.1.1-alpha.1](https://github.com/chenquincy/app-info-parser/compare/v1.1.1-alpha.0...v1.1.1-alpha.1) (2021-05-13)
### [1.1.1](https://github.com/chenquincy/app-info-parser/compare/v1.1.0...v1.1.1) (2021-06-11)
### [1.1.1-alpha.0](https://github.com/chenquincy/app-info-parser/compare/v1.1.0...v1.1.1-alpha.0) (2021-05-13)
### Bug Fixes
* **$npx:** dependency error ([347a677](https://github.com/chenquincy/app-info-parser/commit/347a677e5b083ba505a9599054f4ab7927e3aeeb)), closes [#62](https://github.com/chenquincy/app-info-parser/issues/62)
## [1.1.0](https://github.com/chenquincy/app-info-parser/compare/v1.0.1-alpha.1...v1.1.0) (2021-05-08)

@@ -11,0 +14,0 @@

{
"name": "app-info-parser",
"version": "1.1.1-alpha.1",
"version": "1.1.1",
"description": "Exact info from apk or ipa file.",

@@ -34,2 +34,3 @@ "main": "./src/index.js",

"bytebuffer": "^5.0.1",
"commander": "^7.2.0",
"cgbi-to-png": "^1.0.7",

@@ -45,3 +46,2 @@ "isomorphic-unzip": "^1.1.5",

"browserify": "^16.2.3",
"commander": "^7.2.0",
"derequire": "^2.0.6",

@@ -48,0 +48,0 @@ "eslint": "^5.8.0",

@@ -229,38 +229,2 @@ "use strict";

};
ResourceFinder.prototype.processConfig = function (bb) {
// mcc
bb.readShort(); // mnc
bb.readShort();
var config_language = [bb.readByte(), bb.readByte()],
config_region = [bb.readByte(), bb.readByte()];
var config = {
language: '',
region: '',
locate: 'default'
};
if (config_language.every(Boolean)) {
config.language = config_language.map(function (_byte) {
return String.fromCharCode(_byte);
}).join('');
}
if (config_region.every(Boolean)) {
config.region = config_region.map(function (_byte2) {
return String.fromCharCode(_byte2);
}).join('');
}
if (config.language) {
config.locate = config.language;
}
if (config.region) {
config.locate += "-r".concat(config.region);
}
return config;
};
/**

@@ -282,5 +246,3 @@ *

var refKeys = {};
var config_size = bb.readInt();
var configBuffer = ResourceFinder.readBytes(bb, config_size);
var res_config = this.processConfig(configBuffer); // Skip the config data
var config_size = bb.readInt(); // Skip the config data

@@ -365,3 +327,3 @@ bb.offset = headerSize;

this.putIntoMap("@" + idStr, data, res_config);
this.putIntoMap("@" + idStr, data);
} else {

@@ -391,3 +353,3 @@ // Complex case

for (var value in values) {
this.putIntoMap("@" + refK, value, res_config);
this.putIntoMap("@" + refK, value);
}

@@ -514,3 +476,3 @@ }

ResourceFinder.prototype.putIntoMap = function (resId, value, config) {
ResourceFinder.prototype.putIntoMap = function (resId, value) {
if (this.responseMap[resId.toUpperCase()] == null) {

@@ -520,8 +482,5 @@ this.responseMap[resId.toUpperCase()] = [];

this.responseMap[resId.toUpperCase()].push({
value: value,
locate: config.locate
});
this.responseMap[resId.toUpperCase()].push(value);
};
module.exports = ResourceFinder;
"use strict";
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
function _iterableToArrayLimit(arr, i) { if (typeof Symbol === "undefined" || !(Symbol.iterator in Object(arr))) return; var _arr = []; var _n = true; var _d = false; var _e = undefined; try { for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; }
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
function objectType(o) {

@@ -114,5 +102,3 @@ return Object.prototype.toString.call(o).slice(8, -1).toLowerCase();

var _loop = function _loop(i) {
info.application.icon.some(function (_ref3) {
var icon = _ref3.value;
info.application.icon.some(function (icon) {
if (icon && icon.indexOf(i) !== -1) {

@@ -136,9 +122,3 @@ resultMap['application-icon-' + rulesMap[i]] = icon;

maxDpiIcon.dpi = 120;
var _ref = info.application.icon || [{}],
_ref2 = _slicedToArray(_ref, 1),
_ref2$0$value = _ref2[0].value,
value = _ref2$0$value === void 0 ? '' : _ref2$0$value;
maxDpiIcon.icon = value;
maxDpiIcon.icon = info.application.icon[0] || '';
resultMap['applicataion-icon-120'] = maxDpiIcon.icon;

@@ -145,0 +125,0 @@ }

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display