Skip to content

Commit 7c92504

Browse files
authored
Merge branch 'main' into enh-schema-uri
2 parents 5e1e2c9 + bfa601e commit 7c92504

File tree

5 files changed

+10
-8
lines changed

5 files changed

+10
-8
lines changed

.git-blame-ignore-revs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# 2025-09-22 14:52:13 -0400 - [email protected] - [DATALAD RUNCMD] sty: Format [ignore-rev]
2+
fffce73a5b9b38fcf0cc0fc47c9e877be82d6cc5
13
# 2025-09-10 09:32:33 -0400 - [email protected] - sty: deno fmt [ignore-rev]
24
55e4ad2a05683bf149ac9c805139f51bcc69cc94
35
# 2025-08-22 14:13:47 -0400 - [email protected] - sty: deno fmt [ignore-rev]

src/files/streams.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,11 @@ export class UnicodeDecodeError extends Error {
1010

1111
const _decode = TextDecoder.prototype.decode
1212

13-
TextDecoder.prototype.decode = function(input, options) {
13+
TextDecoder.prototype.decode = function (input, options) {
1414
try {
1515
return _decode.call(this, input, options)
1616
} catch (error) {
17-
throw { code: 'INVALID_FILE_ENCODING', message: error}
17+
throw { code: 'INVALID_FILE_ENCODING', message: error }
1818
}
1919
}
2020

@@ -26,7 +26,7 @@ export class UTF8StreamTransformer implements Transformer<Uint8Array, string> {
2626
private decoder: TextDecoder
2727
private firstChunk: boolean
2828

29-
constructor(options = {fatal: false}) {
29+
constructor(options = { fatal: false }) {
3030
this.decoder = new TextDecoder('utf-8', options)
3131
this.firstChunk = true
3232
}
@@ -56,6 +56,6 @@ export class UTF8StreamTransformer implements Transformer<Uint8Array, string> {
5656
/**
5757
* Creates a TransformStream that validates and decodes UTF-8 text
5858
*/
59-
export function createUTF8Stream(options = {fatal: false}) {
59+
export function createUTF8Stream(options = { fatal: false }) {
6060
return new TransformStream(new UTF8StreamTransformer(options))
6161
}

src/files/tsv.test.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,6 @@ Deno.test('TSV loading', async (t) => {
194194
}
195195
})
196196

197-
198197
// Tests will have populated the memoization cache
199198
loadTSV.cache.clear()
200199
})

src/schema/expressionLanguage.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ export const expressionFunctions = {
9292
},
9393
unique: <T>(list: T[]): T[] | null => {
9494
if (list !== null) {
95-
return [...new Set(list)]
95+
return [...new Set(list)]
9696
}
9797
return null
9898
},

src/setup/loadSchema.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ export interface SchemaWithSource {
1010

1111
/**
1212
* Load the schema from the specification with source tracking
13-
*
1413
*/
1514
export async function loadSchemaWithSource(version?: string): Promise<SchemaWithSource> {
1615
let schemaUrl = version
@@ -40,7 +39,9 @@ export async function loadSchemaWithSource(version?: string): Promise<SchemaWith
4039
// If a custom schema URL was explicitly provided, fail rather than falling back
4140
console.error(error)
4241
throw new Error(
43-
`Failed to load schema from ${schemaUrl}: ${error instanceof Error ? error.message : String(error)}`,
42+
`Failed to load schema from ${schemaUrl}: ${
43+
error instanceof Error ? error.message : String(error)
44+
}`,
4445
)
4546
}
4647
}

0 commit comments

Comments
 (0)