pnpm-logger
Advanced tools
Comparing version 0.7.0 to 0.7.1
import streamParser, { createStreamParser } from './streamParser'; | ||
import writeToConsole from './writeToConsole'; | ||
export { streamParser, createStreamParser, writeToConsole }; | ||
declare const baseLogger: any; | ||
export default baseLogger; | ||
declare const _default: Logger<string | object>; | ||
export default _default; | ||
export interface LogBase { | ||
level: 'debug' | 'info' | 'warn' | 'error'; | ||
} | ||
export interface LogError<T> { | ||
(err: Error, log?: T): void; | ||
(log?: T): void; | ||
} | ||
export interface Logger<T> { | ||
debug: (log: T) => void; | ||
info: (log: T) => void; | ||
warn: (log: T) => void; | ||
error: (log: T) => void; | ||
<Y>(name: string): Logger<Y>; | ||
debug: (log?: T) => void; | ||
info: (log?: T) => void; | ||
warn: (log?: T) => void; | ||
error: LogError<T>; | ||
} |
{ | ||
"name": "pnpm-logger", | ||
"version": "0.7.0", | ||
"version": "0.7.1", | ||
"description": "Logger for pnpm", | ||
@@ -19,2 +19,5 @@ "main": "lib/index.js", | ||
}, | ||
"engines": { | ||
"node": ">=4" | ||
}, | ||
"keywords": [ | ||
@@ -24,3 +27,8 @@ "pnpm", | ||
], | ||
"author": "Zoltan Kochan", | ||
"author": { | ||
"name": "Zoltan Kochan", | ||
"email": "z@kochan.io", | ||
"url": "https://www.kochan.io/", | ||
"twitter": "ZoltanKochan" | ||
}, | ||
"license": "MIT", | ||
@@ -39,2 +47,4 @@ "bugs": { | ||
"ghooks": "^2.0.0", | ||
"mos": "^2.0.0-alpha.3", | ||
"mos-plugin-readme": "^1.0.4", | ||
"rimraf": "^2.5.4", | ||
@@ -52,3 +62,11 @@ "tslint": "^5.0.0", | ||
} | ||
}, | ||
"mos": { | ||
"plugins": [ | ||
"readme" | ||
], | ||
"installation": { | ||
"useShortAlias": true | ||
} | ||
} | ||
} |
# pnpm-logger | ||
> Logger for pnpm | ||
<!--@shields('npm', 'travis')--> | ||
[![npm version](https://img.shields.io/npm/v/pnpm-logger.svg)](https://www.npmjs.com/package/pnpm-logger) [![Build Status](https://img.shields.io/travis/pnpm/pnpm-logger/master.svg)](https://travis-ci.org/pnpm/pnpm-logger) | ||
<!--/@--> | ||
## Installation | ||
```sh | ||
npm i -S pnpm-logger | ||
``` | ||
## License | ||
[MIT](./LICENSE) © [Zoltan Kochan](https://www.kochan.io/) |
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
6349
72
18
8