-
-
Notifications
You must be signed in to change notification settings - Fork 315
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: add a maxOutputLength option to zlib inflate
- Loading branch information
Showing
4 changed files
with
121 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,82 @@ | ||
# Class: JWEDecompressionFailed | ||
|
||
## [💗 Help the project](https://github.com/sponsors/panva) | ||
|
||
Support from the community to continue maintaining and improving this module is welcome. If you find the module useful, please consider supporting the project by [becoming a sponsor](https://github.com/sponsors/panva). | ||
|
||
--- | ||
|
||
An error subclass thrown when a JWE ciphertext decompression fails. | ||
|
||
**`Example`** | ||
|
||
Checking thrown error is this one using a stable error code | ||
|
||
```js | ||
if (err.code === 'ERR_JWE_DECOMPRESSION_FAILED') { | ||
// ... | ||
} | ||
``` | ||
|
||
**`Example`** | ||
|
||
Checking thrown error is this one using `instanceof` | ||
|
||
```js | ||
if (err instanceof jose.errors.JWEDecompressionFailed) { | ||
// ... | ||
} | ||
``` | ||
|
||
## Table of contents | ||
|
||
### Constructors | ||
|
||
- [constructor](util_errors.JWEDecompressionFailed.md#constructor) | ||
|
||
### Properties | ||
|
||
- [code](util_errors.JWEDecompressionFailed.md#code) | ||
- [message](util_errors.JWEDecompressionFailed.md#message) | ||
|
||
### Accessors | ||
|
||
- [code](util_errors.JWEDecompressionFailed.md#code-1) | ||
|
||
## Constructors | ||
|
||
### constructor | ||
|
||
• **new JWEDecompressionFailed**(`message?`) | ||
|
||
#### Parameters | ||
|
||
| Name | Type | | ||
| :------ | :------ | | ||
| `message?` | `string` | | ||
|
||
## Properties | ||
|
||
### code | ||
|
||
• **code**: `string` = `'ERR_JWE_DECOMPRESSION_FAILED'` | ||
|
||
A unique error code for the particular error subclass. | ||
|
||
___ | ||
|
||
### message | ||
|
||
• **message**: `string` = `'decompression operation failed'` | ||
|
||
## Accessors | ||
|
||
### code | ||
|
||
• `Static` `get` **code**(): ``"ERR_JWE_DECOMPRESSION_FAILED"`` | ||
|
||
A unique error code for the particular error subclass. | ||
|
||
#### Returns | ||
|
||
``"ERR_JWE_DECOMPRESSION_FAILED"`` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters