Comparing version 4.0.0 to 4.0.1-flush-is-public-183b63608f893a8281d750823a0a233fb8351647
@@ -7,2 +7,9 @@ # Change Log | ||
# v4.0.1 | ||
## (2020-03-31) | ||
* Update generated docs [Alexis Svinartchouk] | ||
* Update resin-lint [Alexis Svinartchouk] | ||
* Transform._flush is public [Alexis Svinartchouk] | ||
## 4.0.0 - 2019-04-04 | ||
@@ -9,0 +16,0 @@ |
@@ -89,5 +89,5 @@ "use strict"; | ||
} | ||
exports.BlockMap = BlockMap; | ||
/** Supported .bmap format versions */ | ||
BlockMap.versions = ['1.2', '1.3', '1.4', '2.0']; | ||
exports.BlockMap = BlockMap; | ||
//# sourceMappingURL=blockmap.js.map |
@@ -22,3 +22,3 @@ /** | ||
constructor(buffer: Buffer, position: number); | ||
readonly length: number; | ||
get length(): number; | ||
} |
@@ -78,3 +78,3 @@ /** | ||
*/ | ||
protected _flush(done: () => void): void; | ||
_flush(done: () => void): void; | ||
} |
@@ -27,3 +27,4 @@ /** | ||
static from(value: BlockMapOptionsRange): Range; | ||
length: number; | ||
get length(): number; | ||
set length(value: number); | ||
} |
@@ -19,6 +19,7 @@ "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()); | ||
@@ -25,0 +26,0 @@ }); |
@@ -19,6 +19,7 @@ "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()); | ||
@@ -25,0 +26,0 @@ }); |
@@ -99,5 +99,3 @@ /** | ||
const error = new ReadRangeError( | ||
`Invalid checksum for range [${this.currentRange.startLBA},${ | ||
this.currentRange.endLBA | ||
}], bytes ${this.currentRange.start}-${this.currentRange.end}`, | ||
`Invalid checksum for range [${this.currentRange.startLBA},${this.currentRange.endLBA}], bytes ${this.currentRange.start}-${this.currentRange.end}`, | ||
this.currentRange, | ||
@@ -255,3 +253,3 @@ digest, | ||
*/ | ||
protected _flush(done: () => void) { | ||
public _flush(done: () => void) { | ||
if (this._bytes) { | ||
@@ -258,0 +256,0 @@ const chunk = Buffer.concat(this._chunks, this._bytes); |
@@ -150,5 +150,3 @@ /** | ||
const error = new ReadRangeError( | ||
`Invalid checksum for range [${this.currentRange.startLBA},${ | ||
this.currentRange.endLBA | ||
}], bytes ${this.currentRange.start}-${this.currentRange.end}`, | ||
`Invalid checksum for range [${this.currentRange.startLBA},${this.currentRange.endLBA}], bytes ${this.currentRange.start}-${this.currentRange.end}`, | ||
this.currentRange, | ||
@@ -155,0 +153,0 @@ digest, |
{ | ||
"name": "blockmap", | ||
"version": "4.0.0", | ||
"version": "4.0.1-flush-is-public-183b63608f893a8281d750823a0a233fb8351647", | ||
"description": "Tizen's block map format", | ||
@@ -27,3 +27,3 @@ "license": "MIT", | ||
"mocha": "^6.0.2", | ||
"resin-lint": "^3.0.1", | ||
"resin-lint": "^3.3.1", | ||
"ts-node": "^8.0.3", | ||
@@ -44,3 +44,3 @@ "typedoc": "^0.14.2", | ||
"build": "tsc", | ||
"prettier": "prettier --config ./node_modules/resin-lint/config/.prettierrc --write \"lib/**/*.ts\" \"test/**/*.ts\" \"benchmark/**/*.ts\"", | ||
"prettier": "resin-lint --typescript --fix benchmark lib test", | ||
"lint": "resin-lint --typescript benchmark lib test", | ||
@@ -47,0 +47,0 @@ "test": "mocha -r ts-node/register test/*.ts", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
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
117655
2146
1