Skip to content

Commit

Permalink
remove import assertions
Browse files Browse the repository at this point in the history
  • Loading branch information
pablomendezroyo committed Aug 12, 2024
1 parent d8e7798 commit 5fca3ce
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 8 deletions.
6 changes: 3 additions & 3 deletions packages/common/src/validation/index.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import Ajv from "ajv";
import routesArgumentsSchema from "./schemas/RoutesArguments.schema.json" with { type: "json" };
import routesReturnSchema from "./schemas/RoutesReturn.schema.json" with { type: "json" };
import subscriptionsArgumentsSchema from "./schemas/SubscriptionsArguments.schema.json" with { type: "json" };
import routesArgumentsSchema from "./schemas/RoutesArguments.schema.json";
import routesReturnSchema from "./schemas/RoutesReturn.schema.json";
import subscriptionsArgumentsSchema from "./schemas/SubscriptionsArguments.schema.json";
import { Args } from "typescript-json-schema";

const ajv = new Ajv({ allErrors: true, strict: false });
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { ethers } from "ethers";
import { getEthersProvider, getEthUrl } from "@dappnode/installer";
import resolverAbi from "./abi/resolverAbi.json" with { type: "json" };
import ensAbi from "./abi/ens.json" with { type: "json" };
import resolverAbi from "./abi/resolverAbi.json";
import ensAbi from "./abi/ens.json";
import { Network, Content, NotFoundError, EnsResolverError } from "./types.js";
import {
decodeContentHash,
Expand Down
2 changes: 1 addition & 1 deletion packages/dockerCompose/src/validate.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { getSchemaValidator } from "@dappnode/utils";
import compose3xSchema from "./compose_v3x.schema.json" with { type: "json" };
import compose3xSchema from "./compose_v3x.schema.json";
import { Compose } from "@dappnode/types";

/**
Expand Down
2 changes: 1 addition & 1 deletion packages/schemas/src/validateManifestSchema.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { ajv } from "./ajv.js";
import { CliError } from "./error.js";
import { processError } from "./utils.js";
import manifestSchema from "./schemas/manifest.schema.json" with { type: "json" };
import manifestSchema from "./schemas/manifest.schema.json";
import { Manifest } from "@dappnode/types";

/**
Expand Down
2 changes: 1 addition & 1 deletion packages/schemas/src/validateSetupWizardSchema.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { ajv } from "./ajv.js";
import { processError } from "./utils.js";
import setupWizardSchema from "./schemas/setup-wizard.schema.json" with { type: "json" };
import setupWizardSchema from "./schemas/setup-wizard.schema.json";
import { CliError } from "./error.js";
import { SetupWizard } from "@dappnode/types";

Expand Down

0 comments on commit 5fca3ce

Please sign in to comment.