Update checked-in dependencies
This commit is contained in:
parent
4fad06f438
commit
40a500c743
4168 changed files with 298222 additions and 374905 deletions
35
node_modules/clean-stack/index.d.ts
generated
vendored
35
node_modules/clean-stack/index.d.ts
generated
vendored
|
|
@ -1,24 +1,32 @@
|
|||
declare namespace cleanStack {
|
||||
interface Options {
|
||||
/**
|
||||
Prettify the file paths in the stack:
|
||||
export interface Options {
|
||||
/**
|
||||
Prettify the file paths in the stack:
|
||||
|
||||
`/Users/sindresorhus/dev/clean-stack/unicorn.js:2:15` → `~/dev/clean-stack/unicorn.js:2:15`
|
||||
`/Users/sindresorhus/dev/clean-stack/unicorn.js:2:15` → `~/dev/clean-stack/unicorn.js:2:15`
|
||||
|
||||
@default false
|
||||
*/
|
||||
readonly pretty?: boolean;
|
||||
}
|
||||
@default false
|
||||
*/
|
||||
readonly pretty?: boolean;
|
||||
|
||||
/**
|
||||
Remove the given base path from stack trace file paths, effectively turning absolute paths into relative ones.
|
||||
|
||||
Example with `'/Users/sindresorhus/dev/clean-stack/'` as `basePath`:
|
||||
|
||||
`/Users/sindresorhus/dev/clean-stack/unicorn.js:2:15` → `unicorn.js:2:15`
|
||||
*/
|
||||
readonly basePath?: string;
|
||||
}
|
||||
|
||||
/**
|
||||
Clean up error stack traces. Removes the mostly unhelpful internal Node.js entries.
|
||||
|
||||
@param stack - The `stack` property of an `Error`.
|
||||
@returns The cleaned stack or `undefined` if the given `stack` is `undefined`.
|
||||
|
||||
@example
|
||||
```
|
||||
import cleanStack = require('clean-stack');
|
||||
import cleanStack from 'clean-stack';
|
||||
|
||||
const error = new Error('Missing unicorn');
|
||||
|
||||
|
|
@ -39,9 +47,4 @@ console.log(cleanStack(error.stack));
|
|||
// at Object.<anonymous> (/Users/sindresorhus/dev/clean-stack/unicorn.js:2:15)
|
||||
```
|
||||
*/
|
||||
declare function cleanStack(
|
||||
stack: string,
|
||||
options?: cleanStack.Options
|
||||
): string;
|
||||
|
||||
export = cleanStack;
|
||||
export default function cleanStack<T extends string | undefined>(stack: T, options?: Options): T;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue