Skip to content

Commit

Permalink
Merge pull request #101 from TrustNXT/dependabot/npm_and_yarn/typescr…
Browse files Browse the repository at this point in the history
…ipt-eslint-8.5.0
  • Loading branch information
dependabot[bot] authored Sep 10, 2024
2 parents 8e27813 + db5b545 commit 24946ae
Show file tree
Hide file tree
Showing 5 changed files with 53 additions and 180 deletions.
225 changes: 49 additions & 176 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@
"ts-node": "^10.9.2",
"tsx": "^4.19.0",
"typescript": "^5.6.2",
"typescript-eslint": "^8.3.0"
"typescript-eslint": "^8.5.0"
},
"dependencies": {
"@peculiar/x509": "^1.12.1",
Expand Down
2 changes: 1 addition & 1 deletion src/asset/BaseAsset.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ export abstract class BaseAsset {
return this.data.length;
}

public async getDataRange(start?: number | undefined, length?: number | undefined): Promise<Uint8Array> {
public async getDataRange(start?: number, length?: number): Promise<Uint8Array> {
if (start === undefined) {
return this.data;
}
Expand Down
2 changes: 1 addition & 1 deletion src/manifest/Manifest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -526,7 +526,7 @@ export class Manifest implements ManifestComponent {
await this.signature.sign(privateKey, this.claim.getBytes(this.claim, true)!, timestampProvider);
}

public getBytes(claim: Claim, rebuild?: boolean | undefined): Uint8Array | undefined {
public getBytes(claim: Claim, rebuild?: boolean): Uint8Array | undefined {
return this.sourceBox?.toBuffer();
}
}
2 changes: 1 addition & 1 deletion src/manifest/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ export interface ManifestComponent {
label?: string;
sourceBox?: JUMBF.SuperBox;
readonly componentType?: ManifestComponentType;
getBytes(claim?: Claim | undefined, rebuild?: boolean | undefined): Uint8Array | undefined;
getBytes(claim?: Claim, rebuild?: boolean): Uint8Array | undefined;
}

export enum ClaimVersion {
Expand Down

0 comments on commit 24946ae

Please sign in to comment.