Comparing version 0.1.1 to 0.1.2
18
fat.js
@@ -14,12 +14,12 @@ 'use strict'; | ||
0x0000000a: 'ppc_32', | ||
0x8000000a: 'ppc_64', | ||
} | ||
0x8000000a: 'ppc_64' | ||
}; | ||
fat.parse = function(data, cb) { | ||
fat.parse = function (data, cb) { | ||
const u32 = function (x) { | ||
return data.readUInt32BE(x); | ||
} | ||
}; | ||
const magic = u32(0); | ||
if (magic !== CAFEBABE) { | ||
throw 'invalid file format' | ||
throw new Error('invalid file format'); | ||
} | ||
@@ -31,4 +31,4 @@ const eof = data.length; | ||
const cpu = u32(off); | ||
const from = u32(off+4); | ||
const size = u32(off+8); | ||
const from = u32(off + 4); | ||
const size = u32(off + 8); | ||
if (from === 0 || size === 0) { | ||
@@ -46,3 +46,3 @@ console.error('fat.parse: skip null entry', cmd); | ||
size: size, | ||
align: u32(off+12), | ||
align: u32(off + 12), | ||
data: data.slice(from, from + size) | ||
@@ -52,2 +52,2 @@ }); | ||
return slices; | ||
} | ||
}; |
{ | ||
"name": "fatmacho", | ||
"version": "0.1.1", | ||
"version": "0.1.2", | ||
"description": "fat-mach-o format parser", | ||
@@ -20,5 +20,8 @@ "main": "fat.js", | ||
"homepage": "https://github.com/nowsecure/node-fatmacho", | ||
"devDependencies": { | ||
"semistandard": "*" | ||
}, | ||
"dependencies": { | ||
"macho": "*" | ||
"macho": "^1.4.0" | ||
} | ||
} |
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
Wildcard dependency
QualityPackage has a dependency with a floating version range. This can cause issues if the dependency publishes a new major version.
Found 1 instance in 1 package
4204
1
1
Updatedmacho@^1.4.0