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

@web3-storage/data-segment

Package Overview
Dependencies
Maintainers
5
Versions
16
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@web3-storage/data-segment - npm Package Compare versions

Comparing version 3.0.0 to 3.0.1

4

dist/src/api.d.ts

@@ -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

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