Comparing version 5.1.1 to 6.0.0-remove-blockmap-5e971e5606598394be85545508dcee4c9b4a3285
@@ -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; |
@@ -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
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
1
63021
682
1
- Removedblockmap@^3.4.3
- Removedblockmap@3.4.3(transitive)
- Removedbloodline@1.0.1(transitive)
- Removeddebug@3.2.7(transitive)
- Removeddom-serializer@0.2.2(transitive)
- Removeddomelementtype@1.3.12.3.0(transitive)
- Removeddomhandler@2.4.2(transitive)
- Removeddomutils@1.7.0(transitive)
- Removedentities@1.1.22.2.0(transitive)
- Removedhtmlparser2@3.10.1(transitive)
- Removedinherits@2.0.4(transitive)
- Removedms@2.1.3(transitive)
- Removedreadable-stream@3.6.2(transitive)
- Removedsafe-buffer@5.2.1(transitive)
- Removedstring_decoder@1.3.0(transitive)
- Removedutil-deprecate@1.0.2(transitive)
- Removedxml@1.0.1(transitive)