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

@types/stream-buffers

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@types/stream-buffers - npm Package Compare versions

Comparing version 3.0.3 to 3.0.4

12

stream-buffers/index.d.ts

@@ -10,4 +10,4 @@ // Type definitions for stream-buffers 3.0

export interface WritableStreamBufferOptions extends stream.WritableOptions {
initialSize?: number;
incrementAmount?: number;
initialSize?: number | undefined;
incrementAmount?: number | undefined;
}

@@ -24,6 +24,6 @@

export interface ReadableStreamBufferOptions extends stream.ReadableOptions {
frequency?: number;
chunkSize?: number;
initialSize?: number;
incrementAmount?: number;
frequency?: number | undefined;
chunkSize?: number | undefined;
initialSize?: number | undefined;
incrementAmount?: number | undefined;
}

@@ -30,0 +30,0 @@

{
"name": "@types/stream-buffers",
"version": "3.0.3",
"version": "3.0.4",
"description": "TypeScript definitions for stream-buffers",
"homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/stream-buffers",
"license": "MIT",

@@ -14,3 +15,3 @@ "contributors": [

"main": "",
"types": "index",
"types": "index.d.ts",
"repository": {

@@ -25,4 +26,4 @@ "type": "git",

},
"typesPublisherContentHash": "ec8c06cb2710f2ccd4d96a149bcad943fb51ff92068f557b01c714cdfc6f51ad",
"typeScriptVersion": "2.0"
"typesPublisherContentHash": "9ffcb95057ba0e78d9c8da79e958c446e06f918ab811a273c03ee45c2ec8b747",
"typeScriptVersion": "3.6"
}

@@ -5,13 +5,57 @@ # Installation

# Summary
This package contains type definitions for stream-buffers ( https://github.com/samcday/node-stream-buffer#readme ).
This package contains type definitions for stream-buffers (https://github.com/samcday/node-stream-buffer#readme).
# Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/stream-buffers
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/stream-buffers.
## [index.d.ts](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/stream-buffers/index.d.ts)
````ts
// Type definitions for stream-buffers 3.0
// Project: https://github.com/samcday/node-stream-buffer#readme
// Definitions by: Jason Dent <https://github.com/Jason3S>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
Additional Details
* Last updated: Wed, 24 Apr 2019 20:18:10 GMT
* Dependencies: @types/node
/// <reference types="node" />
import * as stream from 'stream';
export interface WritableStreamBufferOptions extends stream.WritableOptions {
initialSize?: number | undefined;
incrementAmount?: number | undefined;
}
export class WritableStreamBuffer extends stream.Writable {
constructor(options?: WritableStreamBufferOptions);
size(): number;
maxSize(): number;
getContents(length?: number): Buffer | false;
getContentsAsString(encoding?: string, length?: number): string | false;
}
export interface ReadableStreamBufferOptions extends stream.ReadableOptions {
frequency?: number | undefined;
chunkSize?: number | undefined;
initialSize?: number | undefined;
incrementAmount?: number | undefined;
}
export class ReadableStreamBuffer extends stream.Readable {
constructor(options?: ReadableStreamBufferOptions);
put(data: string | Buffer, encoding?: string): void;
stop(): void;
size(): number;
maxSize(): number;
}
export const DEFAULT_INITIAL_SIZE: number;
export const DEFAULT_INCREMENT_AMOUNT: number;
export const DEFAULT_FREQUENCY: number;
export const DEFAULT_CHUNK_SIZE: number;
````
### Additional Details
* Last updated: Fri, 02 Jul 2021 22:32:58 GMT
* Dependencies: [@types/node](https://npmjs.com/package/@types/node)
* Global values: none
# Credits
These definitions were written by Jason Dent <https://github.com/Jason3S>.
These definitions were written by [Jason Dent](https://github.com/Jason3S).

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