formacao
This commit is contained in:
+11
@@ -91,6 +91,17 @@ var Response = class _Response {
|
||||
}
|
||||
});
|
||||
});
|
||||
Object.defineProperty(Response.prototype, Symbol.for("nodejs.util.inspect.custom"), {
|
||||
value: function(depth, options, inspectFn) {
|
||||
const props = {
|
||||
status: this.status,
|
||||
headers: this.headers,
|
||||
ok: this.ok,
|
||||
nativeResponse: this[responseCache]
|
||||
};
|
||||
return `Response (lightweight) ${inspectFn(props, { ...options, depth: depth == null ? null : depth - 1 })}`;
|
||||
}
|
||||
});
|
||||
Object.setPrototypeOf(Response, GlobalResponse);
|
||||
Object.setPrototypeOf(Response.prototype, GlobalResponse.prototype);
|
||||
// Annotate the CommonJS export names for ESM import in node:
|
||||
|
||||
Reference in New Issue
Block a user