Skip to content

Commit

Permalink
Some side updates and import changes
Browse files Browse the repository at this point in the history
  • Loading branch information
Mikescops committed May 31, 2024
1 parent 51726ad commit a0f7003
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 18 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@
"@types/better-sqlite3": "^7.6.10",
"@types/chai": "^4.3.16",
"@types/inquirer": "^9.0.7",
"@types/libsodium-wrappers": "^0",
"@types/libsodium-wrappers": "^0.7.14",
"@types/mocha": "^10.0.6",
"@types/node": "^18.19.33",
"@typescript-eslint/eslint-plugin": "^7.8.0",
Expand All @@ -83,7 +83,7 @@
"@node-rs/argon2": "^1.8.3",
"ajv": "^8.14.0",
"ajv-formats": "^3.0.1",
"better-sqlite3": "^10.0.0",
"better-sqlite3": "^11.0.0",
"commander": "^12.1.0",
"got": "^14.3.0",
"jsonpath-plus": "^9.0.0",
Expand Down
10 changes: 2 additions & 8 deletions src/modules/typecheck/customize_ajv.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,5 @@
import Ajv, { SchemaObjCxt } from 'ajv';
import {
AnySchemaObject,
DataValidateFunction,
DataValidationCxt,
ErrorObject,
KeywordDefinition,
} from 'ajv/dist/types';
import Ajv, { SchemaObjCxt, AnySchemaObject, ErrorObject, KeywordDefinition } from 'ajv';
import type { DataValidateFunction, DataValidationCxt } from 'ajv/dist/types';

// https://github.com/ajv-validator/ajv-formats/blob/master/src/formats.ts#L237
const BYTE = /^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/;
Expand Down
2 changes: 1 addition & 1 deletion src/modules/typecheck/index.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import Ajv, { ErrorObject, ValidateFunction } from 'ajv';
import addFormats from 'ajv-formats';
import Ajv2020 from 'ajv/dist/2020.js';
import addFormats from 'ajv-formats';
import { customizeAjv } from './customize_ajv.js';

export class TypeCheckError extends Error {
Expand Down
14 changes: 7 additions & 7 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -143,15 +143,15 @@ __metadata:
"@types/better-sqlite3": "npm:^7.6.10"
"@types/chai": "npm:^4.3.16"
"@types/inquirer": "npm:^9.0.7"
"@types/libsodium-wrappers": "npm:^0"
"@types/libsodium-wrappers": "npm:^0.7.14"
"@types/mocha": "npm:^10.0.6"
"@types/node": "npm:^18.19.33"
"@typescript-eslint/eslint-plugin": "npm:^7.8.0"
"@typescript-eslint/parser": "npm:^7.8.0"
"@yao-pkg/pkg": "npm:^5.11.5"
ajv: "npm:^8.14.0"
ajv-formats: "npm:^3.0.1"
better-sqlite3: "npm:^10.0.0"
better-sqlite3: "npm:^11.0.0"
chai: "npm:^5.1.1"
commander: "npm:^12.1.0"
esbuild: "npm:^0.21.4"
Expand Down Expand Up @@ -1319,7 +1319,7 @@ __metadata:
languageName: node
linkType: hard

"@types/libsodium-wrappers@npm:^0":
"@types/libsodium-wrappers@npm:^0.7.14":
version: 0.7.14
resolution: "@types/libsodium-wrappers@npm:0.7.14"
checksum: 10/f29e4d2159c26ab00d7f0cc7a45bdccd086d9ece4c723f6d59f6d7e1dc35a7baf2b11de418b09dd69b94900bcfda621ef4f1ed9ffae51523978e432da67d911e
Expand Down Expand Up @@ -1921,14 +1921,14 @@ __metadata:
languageName: node
linkType: hard

"better-sqlite3@npm:^10.0.0":
version: 10.0.0
resolution: "better-sqlite3@npm:10.0.0"
"better-sqlite3@npm:^11.0.0":
version: 11.0.0
resolution: "better-sqlite3@npm:11.0.0"
dependencies:
bindings: "npm:^1.5.0"
node-gyp: "npm:latest"
prebuild-install: "npm:^7.1.1"
checksum: 10/3e86fda806a58acf83479b4f48e90d4e831d972c7275458f2ffe79cfc930756693683080c18bbba19d9034265f37e2a14f16d8b3e03601939c9538f07ebc1df5
checksum: 10/2fe3743ff5744cac0b76a7d4eb0b1318f576bdaf643ab994f4ae257082063c5649a878e3748e55ca2ae1b457afb327ca123d5961d0f6e4b53a165a91c024d1b3
languageName: node
linkType: hard

Expand Down

0 comments on commit a0f7003

Please sign in to comment.