Updating NPM dependencies
This commit is contained in:
17
node_modules/stack-utils/readme.md
generated
vendored
17
node_modules/stack-utils/readme.md
generated
vendored
@@ -39,7 +39,17 @@ Creates a new `stackUtils` instance.
|
||||
Type: `array` of `RegularExpression`s
|
||||
|
||||
A set of regular expressions that match internal stack stack trace lines which should be culled from the stack trace.
|
||||
`StackUtils.nodeInternals()` returns a relatively set of sensible defaults for use on the node platform.
|
||||
The default is `StackUtils.nodeInternals()`, this can be disabled by setting `[]` or appended using
|
||||
`StackUtils.nodeInternals().concat(additionalRegExp)`. See also `ignoredPackages`.
|
||||
|
||||
##### ignoredPackages
|
||||
|
||||
Type: `array` of `string`s
|
||||
|
||||
An array of npm modules to be culled from the stack trace. This list will mapped to regular
|
||||
expressions and merged with the `internals`.
|
||||
|
||||
Default `''`.
|
||||
|
||||
##### cwd
|
||||
|
||||
@@ -59,11 +69,12 @@ A mapping function for manipulating CallSites before processing. The first argum
|
||||
Returns an array of regular expressions that be used to cull lines from the stack trace that reference common Node.js internal files.
|
||||
|
||||
|
||||
### stackUtils.clean(stack)
|
||||
### stackUtils.clean(stack, indent = 0)
|
||||
|
||||
Cleans up a stack trace by deleting any lines that match the `internals` passed to the constructor, and shortening file names relative to `cwd`.
|
||||
|
||||
Returns a `string` with the cleaned up stack (always terminated with a `\n` newline character).
|
||||
Spaces at the start of each line are trimmed, indentation can be added by setting `indent` to the desired number of spaces.
|
||||
|
||||
#### stack
|
||||
|
||||
@@ -106,7 +117,7 @@ The available properties are:
|
||||
- `constructor`: `boolean`
|
||||
- `evalOrigin`: `string`
|
||||
- `native`: `boolean`
|
||||
- `typename`: `string`
|
||||
- `type`: `string`
|
||||
- `function`: `string`
|
||||
- `method`: `string`
|
||||
|
||||
|
||||
Reference in New Issue
Block a user