Skip to content

Commit 131c552

Browse files
auto: format code
1 parent b1ee339 commit 131c552

File tree

2 files changed

+21
-21
lines changed

2 files changed

+21
-21
lines changed

packages/openauth/src/storage/dynamo.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -120,8 +120,8 @@ export function DynamoStorage(options: DynamoStorageOptions): StorageAdapter {
120120
[sk]: { S: parsed.sk },
121121
...(expiry
122122
? {
123-
expiry: { N: Math.floor(expiry.getTime() / 1000).toString() },
124-
}
123+
expiry: { N: Math.floor(expiry.getTime() / 1000).toString() },
124+
}
125125
: {}),
126126
value: { S: JSON.stringify(value) },
127127
},

www/generate.ts

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -359,13 +359,13 @@ function renderComment(comment?: TypeDoc.Comment) {
359359
// Otherwise render it as a comment ie. No domains configured
360360
tag.content.length === 1 && tag.content[0].kind === "code"
361361
? `**Default** ${renderType(
362-
new TypeDoc.IntrinsicType(
363-
tag.content[0].text
364-
.replace(/`/g, "")
365-
.replace(/{/g, "{")
366-
.replace(/}/g, "}"),
367-
),
368-
)}`
362+
new TypeDoc.IntrinsicType(
363+
tag.content[0].text
364+
.replace(/`/g, "")
365+
.replace(/{/g, "{")
366+
.replace(/}/g, "}"),
367+
),
368+
)}`
369369
: `**Default** ${tag.content.map((c) => c.text)}`,
370370
`</InlineSection>`,
371371
]
@@ -498,8 +498,8 @@ function renderType(type: TypeDoc.SomeType): Text {
498498
function renderArrayType(type: TypeDoc.ArrayType) {
499499
return type.elementType.type === "union"
500500
? `<code class="symbol">(</code>${renderType(
501-
type.elementType,
502-
)}<code class="symbol">)[]</code>`
501+
type.elementType,
502+
)}<code class="symbol">)[]</code>`
503503
: `${renderType(type.elementType)}<code class="symbol">[]</code>`
504504
}
505505
function renderTypescriptType(type: TypeDoc.ReferenceType) {
@@ -563,17 +563,17 @@ function flattenNestedTypes(
563563
{ prefix, subType, depth },
564564
...(subType.kind === TypeDoc.ReflectionKind.Property
565565
? flattenNestedTypes(
566-
subType.type!,
567-
`${prefix}.${subType.name}`,
568-
depth + 1,
569-
)
566+
subType.type!,
567+
`${prefix}.${subType.name}`,
568+
depth + 1,
569+
)
570570
: []),
571571
...(subType.kind === TypeDoc.ReflectionKind.Accessor
572572
? flattenNestedTypes(
573-
subType.getSignature?.type!,
574-
`${prefix}.${subType.name}`,
575-
depth + 1,
576-
)
573+
subType.getSignature?.type!,
574+
`${prefix}.${subType.name}`,
575+
depth + 1,
576+
)
577577
: []),
578578
])
579579
}
@@ -626,7 +626,7 @@ function saveFile(moduleName: string, content: any[]) {
626626

627627
function configureLogger() {
628628
if (process.env.DEBUG) return
629-
console.debug = () => { }
629+
console.debug = () => {}
630630
}
631631

632632
async function build() {
@@ -667,4 +667,4 @@ async function build() {
667667
return project
668668
}
669669

670-
async function generate() { }
670+
async function generate() {}

0 commit comments

Comments
 (0)