sonic-boom: mark as not needed (#54756)

* run not-needed script

* pino: add dependency on sonic-boom
This commit is contained in:
Harris Lummis
2021-07-27 11:27:55 -05:00
committed by GitHub
parent 0504c8f6b7
commit 51b8a97f41
7 changed files with 11 additions and 93 deletions

View File

@@ -4606,6 +4606,10 @@
"libraryName": "sololearn",
"asOfVersion": "2.5.0"
},
"sonic-boom": {
"libraryName": "sonic-boom",
"asOfVersion": "2.1.0"
},
"soundex-code": {
"libraryName": "soundex-code",
"asOfVersion": "2.0.0"

View File

@@ -20,7 +20,7 @@
import stream = require("stream");
import http = require("http");
import { EventEmitter } from "events";
import SonicBoom = require("sonic-boom");
import SonicBoom from "sonic-boom";
import * as pinoStdSerializers from "pino-std-serializers";
import * as PinoPretty from "pino-pretty";

6
types/pino/package.json Normal file
View File

@@ -0,0 +1,6 @@
{
"private": true,
"dependencies": {
"sonic-boom": "^2.1.0"
}
}

View File

@@ -1,50 +0,0 @@
// Type definitions for sonic-boom 0.7
// Project: https://github.com/mcollina/sonic-boom
// Definitions by: Alex Ferrando <https://github.com/alferpal>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
/// <reference types="node"/>
import { EventEmitter } from 'events';
export = SonicBoom;
declare class SonicBoom extends EventEmitter {
/**
* @param [fileDescriptor] File path or numerical file descriptor
* relative protocol is enabled. Default: process.stdout
* @returns a new sonic-boom instance
*/
constructor(fileDescriptor: string | number, minLength?: number, sync?: boolean)
/**
* Writes the string to the file. It will return false to signal the producer to slow down.
*/
write(string: string): void;
/**
* Writes the current buffer to the file if a write was not in progress.
* Do nothing if minLength is zero or if it is already writing.
*/
flush(): void;
/**
* Reopen the file in place, useful for log rotation.
*/
reopen(fileDescriptor?: string | number): void;
/**
* Flushes the buffered data synchronously. This is a costly operation.
*/
flushSync(): void;
/**
* Closes the stream, the data will be flushed down asynchronously
*/
end(): void;
/**
* Closes the stream immediately, the data is not flushed.
*/
destroy(): void;
}

View File

@@ -1,18 +0,0 @@
import SonicBoom = require('sonic-boom');
const sonic = new SonicBoom(1);
sonic.write('hello sonic\n');
sonic.flush();
sonic.flushSync();
sonic.reopen();
sonic.end();
sonic.destroy();
const extraSonic = new SonicBoom(1, 0, true);
extraSonic.write('extra sonic\n');

View File

@@ -1,23 +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",
"sonic-boom-tests.ts"
]
}

View File

@@ -1 +0,0 @@
{ "extends": "dtslint/dt.json" }