Redact secrets in bunfig.toml and npmrc logs (#14919)

This commit is contained in:
Dylan Conway
2024-10-31 18:44:24 -07:00
committed by GitHub
parent 6933208790
commit 62881ee36b
39 changed files with 952 additions and 612 deletions

View File

@@ -341,7 +341,7 @@ pub const String = extern struct {
return bytes;
}
pub fn toOwnedSliceReturningAllASCII(this: String, allocator: std.mem.Allocator) !struct { []u8, bool } {
pub fn toOwnedSliceReturningAllASCII(this: String, allocator: std.mem.Allocator) OOM!struct { []u8, bool } {
switch (this.tag) {
.ZigString => return .{ try this.value.ZigString.toOwnedSlice(allocator), true },
.WTFStringImpl => {