Update checked-in dependencies

This commit is contained in:
github-actions[bot] 2023-10-23 18:03:04 +00:00
parent 79817eb679
commit 9c3b394d7f
402 changed files with 12598 additions and 2912 deletions

View file

@ -12,7 +12,7 @@ module.exports = function exportAsyncBehaviors(behaviorMethods) {
acc[`${method}Async`] = function () {
const result = behaviorMethods[method].apply(
this,
arguments
arguments,
);
this.callbackAsync = true;
return result;
@ -20,6 +20,6 @@ module.exports = function exportAsyncBehaviors(behaviorMethods) {
}
return acc;
},
{}
{},
);
};

View file

@ -99,11 +99,11 @@ module.exports = function extend(target, ...sources) {
function copyValue(dest, source, prop) {
const destOwnPropertyDescriptor = Object.getOwnPropertyDescriptor(
dest,
prop
prop,
);
const sourceOwnPropertyDescriptor = Object.getOwnPropertyDescriptor(
source,
prop
prop,
);
if (prop === "name" && !destOwnPropertyDescriptor.writable) {
@ -133,7 +133,7 @@ module.exports = function extend(target, ...sources) {
}
}
Object.defineProperty(dest, prop, descriptors);
}
},
);
};
@ -156,6 +156,6 @@ module.exports.nonEnum = function extendNonEnum(target, ...sources) {
configurable: true,
writable: true,
});
}
},
);
};

View file

@ -26,7 +26,7 @@ function getPropertyDescriptor(object, property) {
let proto = object;
let descriptor;
const isOwn = Boolean(
object && Object.getOwnPropertyDescriptor(object, property)
object && Object.getOwnPropertyDescriptor(object, property),
);
while (

View file

@ -7,7 +7,7 @@
*/
function isNonExistentProperty(object, property) {
return Boolean(
object && typeof property !== "undefined" && !(property in object)
object && typeof property !== "undefined" && !(property in object),
);
}

View file

@ -19,7 +19,7 @@ function walkObject(mutator, object, filter) {
if (!object) {
throw new Error(
`Trying to ${name} object but received ${String(object)}`
`Trying to ${name} object but received ${String(object)}`,
);
}
@ -45,7 +45,7 @@ function walkObject(mutator, object, filter) {
if (!called) {
throw new Error(
`Found no methods on object to which we could apply mutations`
`Found no methods on object to which we could apply mutations`,
);
}

View file

@ -50,7 +50,7 @@ module.exports = function wrapMethod(object, property, method) {
if (typeof method !== "function" && typeof method !== "object") {
throw new TypeError(
"Method wrapper should be a function or a property descriptor"
"Method wrapper should be a function or a property descriptor",
);
}
@ -60,21 +60,21 @@ module.exports = function wrapMethod(object, property, method) {
if (!isFunction(wrappedMethod)) {
error = new TypeError(
`Attempted to wrap ${typeof wrappedMethod} property ${valueToString(
property
)} as function`
property,
)} as function`,
);
} else if (wrappedMethod.restore && wrappedMethod.restore.sinon) {
error = new TypeError(
`Attempted to wrap ${valueToString(
property
)} which is already wrapped`
property,
)} which is already wrapped`,
);
} else if (wrappedMethod.calledBefore) {
const verb = wrappedMethod.returns ? "stubbed" : "spied on";
error = new TypeError(
`Attempted to wrap ${valueToString(
property
)} which is already ${verb}`
property,
)} which is already ${verb}`,
);
}
@ -109,14 +109,14 @@ module.exports = function wrapMethod(object, property, method) {
if (!wrappedMethodDesc) {
error = new TypeError(
`Attempted to wrap ${typeof wrappedMethod} property ${property} as function`
`Attempted to wrap ${typeof wrappedMethod} property ${property} as function`,
);
} else if (
wrappedMethodDesc.restore &&
wrappedMethodDesc.restore.sinon
) {
error = new TypeError(
`Attempted to wrap ${property} which is already wrapped`
`Attempted to wrap ${property} which is already wrapped`,
);
}
if (error) {

View file

@ -8,6 +8,8 @@ const globalObject = require("@sinonjs/commons").global;
*
* @param config
* @param globalCtx
*
* @returns {object} the clock, after installing it on the global context, if given
*/
function createClock(config, globalCtx) {
let FakeTimersCtx = FakeTimers;
@ -65,7 +67,7 @@ exports.useFakeTimers = function (dateOrConfig) {
}
throw new TypeError(
"useFakeTimers expected epoch or config object. See https://github.com/sinonjs/sinon"
"useFakeTimers expected epoch or config object. See https://github.com/sinonjs/sinon",
);
};