remove stream-mock definitions (#36565)

This commit is contained in:
Banst
2019-07-08 17:57:31 -07:00
committed by Armando Aguirre
parent bb922126cd
commit b7c2c7b4f2
5 changed files with 12 additions and 65 deletions
+12 -6
View File
@@ -3018,12 +3018,6 @@
"sourceRepoURL": "https://github.com/JMPerez/spotify-web-api-js",
"asOfVersion": "0.21.0"
},
{
"libraryName": "swagger-parser",
"typingsPackageName": "swagger-parser",
"sourceRepoURL": "https://apidevtools.org/swagger-parser/",
"asOfVersion": "7.0.0"
},
{
"libraryName": "ServiceStack Utils",
"typingsPackageName": "ss-utils",
@@ -3036,6 +3030,12 @@
"sourceRepoURL": "https://github.com/storybooks/storybook",
"asOfVersion": "5.0.0"
},
{
"libraryName": "stream-mock",
"typingsPackageName": "stream-mock",
"sourceRepoURL": "https://github.com/b4nst/stream-mock",
"asOfVersion": "2.0.1"
},
{
"libraryName": "string-length",
"typingsPackageName": "string-length",
@@ -3108,6 +3108,12 @@
"sourceRepoURL": "http://www.svgjs.com/",
"asOfVersion": "2.3.1"
},
{
"libraryName": "swagger-parser",
"typingsPackageName": "swagger-parser",
"sourceRepoURL": "https://apidevtools.org/swagger-parser/",
"asOfVersion": "7.0.0"
},
{
"libraryName": "swap-case",
"typingsPackageName": "swap-case",
-27
View File
@@ -1,27 +0,0 @@
// Type definitions for stream-mock 1.2
// Project: https://github.com/BastienAr/stream-mock
// Definitions by: Ivan Kerin <https://github.com/ivank>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
/// <reference types="node" />
import {
Readable,
ReadableOptions,
WritableOptions,
Writable,
Duplex,
DuplexOptions
} from "stream";
export class ReadableMock extends Readable {
constructor(source: ReadonlyArray<any>, opts?: ReadableOptions);
}
export class WritableMock extends Writable {
data: any;
flatData: any;
}
export class DuplexMock extends Duplex {
data: any;
flatData: any;
}
-15
View File
@@ -1,15 +0,0 @@
import { ReadableMock, WritableMock, DuplexMock } from "stream-mock";
const reader = new ReadableMock(["a", "b"], { objectMode: true });
const writer = new WritableMock({ objectMode: true });
const duplex = new DuplexMock({
readableObjectMode: true,
writableObjectMode: true
});
reader.pipe(duplex).pipe(writer);
writer.on("finish", () => {
console.log(duplex.data, duplex.flatData);
console.log(writer.data, writer.flatData);
});
-16
View File
@@ -1,16 +0,0 @@
{
"compilerOptions": {
"module": "commonjs",
"lib": ["es6"],
"noImplicitAny": true,
"noImplicitThis": true,
"strictNullChecks": true,
"strictFunctionTypes": true,
"baseUrl": "../",
"typeRoots": ["../"],
"types": [],
"noEmit": true,
"forceConsistentCasingInFileNames": true
},
"files": ["index.d.ts", "stream-mock-tests.ts"]
}
-1
View File
@@ -1 +0,0 @@
{ "extends": "dtslint/dt.json" }