bcb-stream-parser
Advanced tools
Comparing version 0.1.2 to 0.2.0
{ | ||
"name": "bcb-stream-parser", | ||
"version": "0.1.2", | ||
"version": "0.2.0", | ||
"description": "Parse BitCoin-Block via NodeJS.ReadableStream", | ||
@@ -30,2 +30,3 @@ "main": "index.cjs", | ||
"async-readable": "^0.1.4", | ||
"buffer-pond": "^0.6.0", | ||
"proxy-bind": "^1.1.0", | ||
@@ -32,0 +33,0 @@ "ramda": "~0.26.1" |
@@ -92,2 +92,3 @@ /// <reference types="node" /> | ||
}>; | ||
export declare const transformer: () => import("stream").Transform; | ||
export declare const reader: (source: Pick<NodeJS.ReadableStream, "on" | "off" | "read">) => NodeJS.ReadableStream; | ||
@@ -94,0 +95,0 @@ export declare type Parser = RT<typeof parser> extends AII<infer U> ? U : never; |
@@ -6,2 +6,3 @@ 'use strict'; | ||
const proxyBind = require('proxy-bind'); | ||
const bufferPond = require('buffer-pond'); | ||
const asyncReadable = require('async-readable'); | ||
@@ -249,2 +250,3 @@ const ramda = require('ramda'); | ||
} | ||
const transformer = bufferPond.toTransform(parser); | ||
const reader = asyncReadable.toReadableStream(parser); | ||
@@ -280,1 +282,2 @@ async function* parser({ read, off = () => { } }) { | ||
exports.reader = reader; | ||
exports.transformer = transformer; |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
42074
1270
4
+ Addedbuffer-pond@^0.6.0
+ Addedbuffer-pond@0.6.0(transitive)