@web3-storage/data-segment
Advanced tools
Comparing version 3.0.0 to 3.0.1
@@ -108,8 +108,6 @@ import type { Link, ToString } from 'multiformats/link'; | ||
} | ||
export interface AggregateView extends Aggregate { | ||
export interface AggregateView extends Aggregate, PieceView { | ||
indexSize: number; | ||
limit: number; | ||
size: PaddedPieceSize; | ||
tree: AggregateTree; | ||
toInfo(): PieceInfo; | ||
} | ||
@@ -116,0 +114,0 @@ export interface Vector<T> extends Iterable<T> { |
@@ -22,3 +22,3 @@ /** | ||
export function toLink(piece: API.Piece): API.PieceLink; | ||
export function toInfo(piece: API.Piece): API.PieceInfo; | ||
export function toInfo(piece: API.Piece): API.PieceInfoView; | ||
export function fromInfo(info: API.PieceInfo): API.PieceView; | ||
@@ -25,0 +25,0 @@ import { MAX_PAYLOAD_SIZE } from './multihash.js'; |
{ | ||
"name": "@web3-storage/data-segment", | ||
"description": "Implementation of [FRC-0058](https://github.com/filecoin-project/FIPs/blob/master/FRCs/frc-0058.md) verifiable aggregation scheme", | ||
"version": "3.0.0", | ||
"version": "3.0.1", | ||
"keywords": [ | ||
@@ -6,0 +6,0 @@ "FRC-0058", |
@@ -126,11 +126,10 @@ import type { Link, ToString } from 'multiformats/link' | ||
export interface Aggregate extends Piece {} | ||
export interface Aggregate extends Piece { | ||
} | ||
export interface AggregateView extends Aggregate { | ||
export interface AggregateView extends Aggregate, PieceView { | ||
indexSize: number | ||
limit: number | ||
size: PaddedPieceSize | ||
tree: AggregateTree | ||
toInfo(): PieceInfo | ||
} | ||
@@ -137,0 +136,0 @@ |
@@ -101,3 +101,3 @@ import * as API from './api.js' | ||
* @param {API.Piece} piece | ||
* @returns {API.PieceInfo} | ||
* @returns {API.PieceInfoView} | ||
*/ | ||
@@ -104,0 +104,0 @@ export const toInfo = (piece) => new Info(toDigest(piece)) |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
115289
3141