Update checked-in dependencies
This commit is contained in:
parent
36f1104e11
commit
66c3cec3e8
167 changed files with 6046 additions and 3631 deletions
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