@tryghost/pretty-stream 2.3.0 → 2.3.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/index.d.ts ADDED
@@ -0,0 +1,3 @@
1
+ import PrettyStream = require('./lib/PrettyStream');
2
+
3
+ export = PrettyStream;
@@ -0,0 +1,22 @@
1
+ import { Transform, TransformOptions } from 'stream';
2
+
3
+ interface PrettyStreamOptions extends TransformOptions {
4
+ /**
5
+ * Controls how much detail is printed. Use `'long'` to include the
6
+ * pretty-printed request/error body, anything else prints the short form.
7
+ * @default 'short'
8
+ */
9
+ mode?: string;
10
+ }
11
+
12
+ /**
13
+ * A Bunyan-compatible transform stream that turns raw JSON log records into
14
+ * human-readable, colourised output.
15
+ */
16
+ declare class PrettyStream extends Transform {
17
+ mode: string;
18
+
19
+ constructor(options?: PrettyStreamOptions);
20
+ }
21
+
22
+ export = PrettyStream;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tryghost/pretty-stream",
3
- "version": "2.3.0",
3
+ "version": "2.3.2",
4
4
  "license": "MIT",
5
5
  "author": "Ghost Foundation",
6
6
  "repository": {
@@ -10,9 +10,11 @@
10
10
  },
11
11
  "files": [
12
12
  "index.js",
13
+ "index.d.ts",
13
14
  "lib"
14
15
  ],
15
16
  "main": "index.js",
17
+ "types": "index.d.ts",
16
18
  "publishConfig": {
17
19
  "access": "public"
18
20
  },