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

@peerbit/blocks-interface

Package Overview
Dependencies
Maintainers
0
Versions
159
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@peerbit/blocks-interface - npm Package Compare versions

Comparing version 1.2.19 to 1.3.0-171d517

dist/src/block.d.ts

141

package.json
{
"name": "@peerbit/blocks-interface",
"version": "1.2.19",
"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"
],
"devDependencies": {
"@peerbit/libp2p-test-utils": "2.1.3"
},
"dependencies": {
"@dao-xyz/borsh": "^5.2.1",
"@peerbit/crypto": "2.2.0",
"@peerbit/stream-interface": "^5.0.2"
},
"gitHead": "fcd486b9a5c3b7d94e2ae14f1b06ab2a0f7841ad"
"name": "@peerbit/blocks-interface",
"version": "1.3.0-171d517",
"description": "Block store streaming",
"type": "module",
"sideEffects": false,
"types": "./dist/src/index.d.ts",
"typesVersions": {
"*": {
"*": [
"*",
"dist/*",
"dist/src/*",
"dist/src/*/index"
],
"src/*": [
"*",
"dist/*",
"dist/src/*",
"dist/src/*/index"
]
}
},
"files": [
"src",
"dist",
"!dist/e2e",
"!dist/test",
"!**/*.tsbuildinfo"
],
"exports": {
".": {
"types": "./dist/src/index.d.ts",
"import": "./dist/src/index.js"
}
},
"eslintConfig": {
"extends": "peerbit",
"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": "",
"lint": "aegir lint"
},
"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"
],
"devDependencies": {
"@peerbit/libp2p-test-utils": "2.1.4-171d517"
},
"dependencies": {
"@dao-xyz/borsh": "^5.2.3",
"@peerbit/crypto": "2.3.0-171d517",
"@peerbit/stream-interface": "5.0.3-171d517"
}
}

@@ -1,3 +0,3 @@

# Direct block
# Direct block interface
Block swap/share protocol built on top of [Direct Stream](./../direct-stream/README.md)
Message types for the Block swap/share protocol

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

import { WaitForPeer } from "@peerbit/stream-interface";
import { type WaitForPeer } from "@peerbit/stream-interface";
export type GetOptions = {
signal?: AbortSignal;
timeout?: number;

@@ -21,2 +22,15 @@ replicate?: boolean;

size(): MaybePromise<number>;
persisted(): MaybePromise<boolean>;
}
export {
cidifyString,
stringifyCid,
createBlock,
getBlockValue,
calculateRawCid,
checkDecodeBlock,
codecCodes,
defaultHasher,
codecMap,
} from "./block.js";
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