Skip to content

Commit

Permalink
Merge pull request #2163 from rwblair/deno_v1_check_fixes
Browse files Browse the repository at this point in the history
fix typing on schema validation error object, remove isBidsy.ts
  • Loading branch information
rwblair authored Oct 15, 2024
2 parents 80b2789 + ba32614 commit fe4c916
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 18 deletions.
4 changes: 2 additions & 2 deletions bids-validator/build.ts
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
#!/usr/bin/env -S deno run --allow-read --allow-write --allow-env --allow-net --allow-run
#!/usr/bin/env -S deno run --allow-read --allow-write --allow-env --allow-net --allow-run --reload
/**
* Build the schema based validator for distribution (web and npm), targets browser compatible ESM
*
* If you would like to use this package in a Node.js project, you'll need to use native ESM or a transform system
*/
import * as esbuild from 'https://deno.land/x/esbuild@v0.24.0/mod.js'
import { parse } from 'https://deno.land/std@0.223.0/flags/mod.ts'
import { denoPlugins } from "jsr:@luca/esbuild-deno-loader@0.11.0"
import { denoPlugins } from "jsr:@luca/esbuild-deno-loader@0.10.3"
import * as path from "https://deno.land/std@0.223.0/path/mod.ts"
import { getVersion } from './src/version.ts'

Expand Down
2 changes: 1 addition & 1 deletion bids-validator/deno.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@bids/validator",
"version": "1.14.13",
"version": "1.14.14",
"exports": {
".": "./src/bids-validator.ts",
"./main": "./src/main.ts",
Expand Down
3 changes: 2 additions & 1 deletion bids-validator/src/utils/errors.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
export class SchemaStructureError extends Error {
constructor(schemaPath) {
schemaPath: string
constructor(schemaPath: string) {
super(`Validator attempted to access ${schemaPath}, but it wasn't there.`)
this.name = 'SchemaStructureError'
this.schemaPath = schemaPath
Expand Down
14 changes: 0 additions & 14 deletions bids-validator/src/validators/isBidsy.ts

This file was deleted.

0 comments on commit fe4c916

Please sign in to comment.