New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

partitioninfo

Package Overview
Dependencies
Maintainers
1
Versions
54
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

partitioninfo - npm Package Compare versions

Comparing version 5.3.4 to 5.3.5-fix-gpt-detection-df29f65500b31161d115857783fdb4be89d9bd1f

6

build/partitioninfo.js
"use strict";
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
return new (P || (P = Promise))(function (resolve, reject) {
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
function step(result) { result.done ? resolve(result.value) : new P(function (resolve) { resolve(result.value); }).then(fulfilled, rejected); }
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
step((generator = generator.apply(thisArg, _arguments || [])).next());

@@ -11,2 +12,3 @@ });

Object.defineProperty(exports, "__esModule", { value: true });
exports.getPartitions = exports.get = exports.PartitionNotFound = void 0;
const bluebird_1 = require("bluebird");

@@ -103,3 +105,3 @@ const file_disk_1 = require("file-disk");

const partitions = getPartitionsFromMBRBuf(mbrBuf);
if (partitions.length === 1 && partitions[0].type === GPT_PROTECTIVE_MBR) {
if (partitions.length >= 1 && partitions[0].type === GPT_PROTECTIVE_MBR) {
const gptBuf = yield readFromDisk(disk, 0, GPT_SIZE);

@@ -106,0 +108,0 @@ const gpt = detectGPT(gptBuf);

@@ -7,2 +7,8 @@ # Change Log

# v5.3.5
## (2020-06-22)
* Fix GPT detection when the protective MBR has more than one partition [Alexis Svinartchouk]
* Add @types/bluebird to dev dependencies [Alexis Svinartchouk]
## 5.3.4 - 2019-04-17

@@ -9,0 +15,0 @@

{
"name": "partitioninfo",
"version": "5.3.4",
"version": "5.3.5-fix-gpt-detection-df29f65500b31161d115857783fdb4be89d9bd1f",
"description": "Get information about a partition from an image file",

@@ -43,2 +43,3 @@ "main": "build/partitioninfo.js",

"devDependencies": {
"@types/bluebird": "^3.5.32",
"@types/chai": "^4.1.7",

@@ -45,0 +46,0 @@ "@types/mocha": "^5.2.4",

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc