@peerbit/stream-interface
Advanced tools
Comparing version 5.0.1 to 5.0.2-0691c73
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 }) |
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
No tests
QualityPackage does not have any tests. This is a strong signal of a poorly maintained or low quality package.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
Mixed license
License(Experimental) Package contains multiple licenses.
Found 1 instance in 1 package
12
0
54934
1192
2
1
+ Added@peerbit/cache@2.0.6-0691c73(transitive)
+ Added@peerbit/crypto@2.2.0-0691c73(transitive)
- Removed@peerbit/cache@2.1.2(transitive)
- Removed@peerbit/crypto@2.1.7(transitive)
- Removed@peerbit/uint8arrays@3.0.1(transitive)
- Removedmultiformats@12.1.3(transitive)
- Removeduint8arrays@4.0.10(transitive)
Updated@dao-xyz/borsh@^5.2.2