Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

file-disk

Package Overview
Dependencies
Maintainers
3
Versions
47
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

file-disk - npm Package Compare versions

Comparing version 5.1.1 to 6.0.0-remove-blockmap-5e971e5606598394be85545508dcee4c9b4a3285

build/mapped-ranges.d.ts

5

build/index.d.ts

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

import { Interval } from './interval-intersection';
export { BufferDiskChunk, DiscardDiskChunk, DiskChunk, Interval };
import { Range } from './mapped-ranges';
export { BufferDiskChunk, DiscardDiskChunk, DiskChunk, Interval, Range };
export { ReadResult, WriteResult } from './fs';

@@ -40,3 +41,3 @@ export declare class DiskStream extends Readable {

getDiscardedChunks(): DiskChunk[];
getBlockMap(blockSize: number, calculateChecksums: boolean): Promise<any>;
getRanges(blockSize: number): Promise<Range[]>;
private insertDiskChunk;

@@ -43,0 +44,0 @@ private createReadPlan;

7

build/index.js

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

const stream_1 = require("stream");
const blockmap_1 = require("./blockmap");
const diskchunk_1 = require("./diskchunk");

@@ -21,2 +20,3 @@ exports.BufferDiskChunk = diskchunk_1.BufferDiskChunk;

const interval_intersection_1 = require("./interval-intersection");
const mapped_ranges_1 = require("./mapped-ranges");
const MIN_HIGH_WATER_MARK = 16;

@@ -214,6 +214,5 @@ const DEFAULT_HIGH_WATER_MARK = 16384;

}
getBlockMap(blockSize, calculateChecksums) {
getRanges(blockSize) {
return __awaiter(this, void 0, void 0, function* () {
const capacity = yield this.getCapacity();
return yield blockmap_1.getBlockMap(this, blockSize, capacity, calculateChecksums);
return Array.from(yield mapped_ranges_1.getRanges(this, blockSize));
});

@@ -220,0 +219,0 @@ }

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

## 6.0.0 - 2019-04-04
* Update ts-node and mocha [Alexis Svinartchouk]
* Remove blockmap dependency [Alexis Svinartchouk]
## 5.1.1 - 2019-03-21

@@ -9,0 +14,0 @@

{
"name": "file-disk",
"version": "5.1.1",
"version": "6.0.0-remove-blockmap-5e971e5606598394be85545508dcee4c9b4a3285",
"description": "Handles reads / writes on disk image files.",

@@ -38,11 +38,10 @@ "author": "Petros Angelatos <petrosagg@balena.io>",

"@types/node": "^6.0.118",
"mocha": "^5.2.0",
"mocha": "^6.0.2",
"resin-lint": "^3.0.1",
"ts-node": "7.0.1",
"ts-node": "^8.0.3",
"typescript": "^3.1.6"
},
"dependencies": {
"blockmap": "^3.4.3",
"bluebird": "^3.5.3"
}
}

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