Update checked-in dependencies
This commit is contained in:
parent
36f1104e11
commit
66c3cec3e8
167 changed files with 6046 additions and 3631 deletions
7
node_modules/@humanwhocodes/object-schema/CHANGELOG.md
generated
vendored
7
node_modules/@humanwhocodes/object-schema/CHANGELOG.md
generated
vendored
|
|
@ -1,5 +1,12 @@
|
|||
# Changelog
|
||||
|
||||
## [2.0.2](https://github.com/humanwhocodes/object-schema/compare/v2.0.1...v2.0.2) (2024-01-10)
|
||||
|
||||
|
||||
### Bug Fixes
|
||||
|
||||
* WrapperError should be an actual error ([2523f01](https://github.com/humanwhocodes/object-schema/commit/2523f014168167e5a40bb63e0cc03231b2c0f1bf))
|
||||
|
||||
## [2.0.1](https://github.com/humanwhocodes/object-schema/compare/v2.0.0...v2.0.1) (2023-10-20)
|
||||
|
||||
|
||||
|
|
|
|||
2
node_modules/@humanwhocodes/object-schema/package.json
generated
vendored
2
node_modules/@humanwhocodes/object-schema/package.json
generated
vendored
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "@humanwhocodes/object-schema",
|
||||
"version": "2.0.1",
|
||||
"version": "2.0.2",
|
||||
"description": "An object schema merger/validator",
|
||||
"main": "src/index.js",
|
||||
"directories": {
|
||||
|
|
|
|||
16
node_modules/@humanwhocodes/object-schema/src/object-schema.js
generated
vendored
16
node_modules/@humanwhocodes/object-schema/src/object-schema.js
generated
vendored
|
|
@ -112,7 +112,7 @@ class MissingDependentKeysError extends Error {
|
|||
/**
|
||||
* Wrapper error for errors occuring during a merge or validate operation.
|
||||
*/
|
||||
class WrapperError {
|
||||
class WrapperError extends Error {
|
||||
|
||||
/**
|
||||
* Creates a new instance.
|
||||
|
|
@ -120,14 +120,14 @@ class WrapperError {
|
|||
* @param {Error} source The source error.
|
||||
*/
|
||||
constructor(key, source) {
|
||||
return Object.create(source, {
|
||||
message: {
|
||||
value: `Key "${key}": ` + source.message,
|
||||
configurable: true,
|
||||
writable: true,
|
||||
enumerable: true
|
||||
super(`Key "${key}": ${source.message}`, { cause: source });
|
||||
|
||||
// copy over custom properties that aren't represented
|
||||
for (const key of Object.keys(source)) {
|
||||
if (!(key in this)) {
|
||||
this[key] = source[key];
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue