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 committed Oct 15, 2024
2 parents 80b2789 + ba32614 commit 0163ea8
Show file tree
Hide file tree
Showing 8 changed files with 12 additions and 25 deletions.
2 changes: 1 addition & 1 deletion bids-validator-web/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "bids-validator-web",
"version": "1.14.14-dev.0",
"version": "1.14.14",
"description": "web client for bids-validator",
"main": "index.js",
"license": "MIT",
Expand Down
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
2 changes: 1 addition & 1 deletion bids-validator/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "bids-validator",
"version": "1.14.14-dev.0",
"version": "1.14.14",
"description": "",
"main": "./dist/commonjs/index.js",
"exports": {
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.

2 changes: 1 addition & 1 deletion lerna.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
"packages": ["bids-validator", "bids-validator-web"],
"version": "1.14.14-dev.0"
"version": "1.14.14"
}
8 changes: 4 additions & 4 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 0163ea8

Please sign in to comment.