New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@peerbit/stream-interface

Package Overview
Dependencies
Maintainers
1
Versions
149
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@peerbit/stream-interface - npm Package Compare versions

Comparing version 5.0.1 to 5.0.2-0691c73

dist/src/index.d.ts

131

package.json
{
"name": "@peerbit/stream-interface",
"version": "5.0.1",
"description": "Block store streaming",
"type": "module",
"sideEffects": false,
"private": false,
"publishConfig": {
"access": "public"
},
"module": "lib/esm/index.js",
"types": "lib/esm/index.d.ts",
"exports": {
"import": "./lib/esm/index.js"
},
"scripts": {
"clean": "shx rm -rf lib/*",
"build": "yarn clean && tsc -p tsconfig.json",
"test": "node ../../../node_modules/.bin/jest test -c ../../../jest.config.ts --runInBand --forceExit",
"test:unit": "node ../../../node_modules/.bin/jest test -c ../../../jest.config.unit.ts --runInBand --forceExit",
"test:integration": "node ../node_modules/.bin/jest test -c ../../../jest.config.integration.ts --runInBand --forceExit"
},
"files": [
"lib",
"src",
"!src/**/__tests__",
"!lib/**/__tests__",
"!src/**/__benchmark__",
"!lib/**/__benchmark__",
"LICENSE"
],
"engines": {
"node": ">=16.15.1"
},
"repository": {
"type": "git",
"url": "git+https://github.com/dao-xyz/peerbit.git"
},
"keywords": [
"peerbit"
],
"author": "dao.xyz",
"license": "MIT",
"bugs": {
"url": "https://github.com/dao-xyz/peerbit/issues"
},
"homepage": "https://github.com/dao-xyz/peerbit#readme",
"localMaintainers": [
"dao.xyz"
],
"dependencies": {
"@dao-xyz/borsh": "^5.2.1",
"@peerbit/crypto": "2.1.7"
},
"gitHead": "8382facf938cb5c6ff30155e43c11f588302aab0"
"name": "@peerbit/stream-interface",
"version": "5.0.2-0691c73",
"description": "Block store streaming",
"sideEffects": false,
"type": "module",
"types": "./dist/src/index.d.ts",
"typesVersions": {
"*": {
"*": [
"*",
"dist/*",
"dist/src/*",
"dist/src/*/index"
],
"src/*": [
"*",
"dist/*",
"dist/src/*",
"dist/src/*/index"
]
}
},
"files": [
"src",
"dist",
"!dist/test",
"!**/*.tsbuildinfo"
],
"exports": {
".": {
"types": "./dist/src/index.d.ts",
"import": "./dist/src/index.js"
}
},
"eslintConfig": {
"extends": "ipfs",
"parserOptions": {
"project": true,
"sourceType": "module"
},
"ignorePatterns": [
"!.aegir.js",
"test/ts-use",
"*.d.ts"
]
},
"publishConfig": {
"access": "public"
},
"scripts": {
"clean": "aegir clean",
"build": "aegir build --no-bundle",
"test": ""
},
"engines": {
"node": ">=16.15.1"
},
"repository": {
"type": "git",
"url": "git+https://github.com/dao-xyz/peerbit.git"
},
"keywords": [
"peerbit"
],
"author": "dao.xyz",
"license": "MIT",
"bugs": {
"url": "https://github.com/dao-xyz/peerbit/issues"
},
"homepage": "https://github.com/dao-xyz/peerbit#readme",
"localMaintainers": [
"dao.xyz"
],
"dependencies": {
"@dao-xyz/borsh": "^5.2.2",
"@peerbit/crypto": "2.2.0-0691c73"
}
}

@@ -1,4 +0,4 @@

import { PublicSignKey } from "@peerbit/crypto";
import type { PublicSignKey } from "@peerbit/crypto";
import type { PeerId } from "@libp2p/interface";
import { DataMessage, Message } from "./messages.js";
import type { DataMessage, Message } from "./messages.js";

@@ -34,5 +34,2 @@ export interface PeerEvents {

export class DeliveryError extends Error {
constructor(message?: string) {
super(message);
}
}

@@ -40,22 +40,2 @@ import {

let concatBytes: (arr: Uint8Array[], totalLength: number) => Uint8Array;
if ((globalThis as any).Buffer) {
concatBytes = (globalThis as any).Buffer.concat;
} else {
concatBytes = (arrays, length) => {
if (length == null) {
let length = 0;
for (const element of arrays) {
length += element.length;
}
}
const output = new Uint8Array(length);
let offset = 0;
for (const arr of arrays) {
output.set(arr, offset);
offset += arr.length;
}
return output;
};
}

@@ -94,3 +74,3 @@ const coerceTo = (tos: (string | PublicSignKey | PeerId)[] | Set<string>) => {

export abstract class DeliveryMode {}
export abstract class DeliveryMode { }

@@ -210,3 +190,3 @@ /**

abstract class PeerInfo {}
abstract class PeerInfo { }

@@ -401,4 +381,4 @@ @variant(0)

: (this._verified =
(await this.header.verify()) &&
(await verifyMultiSig(this, expectSignatures)));
(await this.header.verify()) &&
(await verifyMultiSig(this, expectSignatures)));
}

@@ -413,6 +393,6 @@ }

T extends SilentDelivery | SeekDelivery | AcknowledgeDelivery | AnyWhere =
| SilentDelivery
| SeekDelivery
| AcknowledgeDelivery
| AnyWhere
| SilentDelivery
| SeekDelivery
| AcknowledgeDelivery
| AnyWhere
> extends Message<T> {

@@ -419,0 +399,0 @@ @field({ type: MessageHeader })

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