diff --git a/src/plebbit/plebbit-with-rpc-client.ts b/src/plebbit/plebbit-with-rpc-client.ts index db641d35..63a5ecd2 100644 --- a/src/plebbit/plebbit-with-rpc-client.ts +++ b/src/plebbit/plebbit-with-rpc-client.ts @@ -1,18 +1,17 @@ import Logger from "@plebbit/plebbit-logger"; -import { Plebbit } from "./plebbit"; +import { Plebbit } from "./plebbit.js"; import { InputPlebbitOptions } from "../types"; import { parseCidStringSchemaWithPlebbitErrorIfItFails, parseCreateRpcSubplebbitFunctionArgumentSchemaWithPlebbitErrorIfItFails -} from "../schema/schema-util"; -import { AuthorAddressSchema } from "../schema/schema"; -import { CreateRpcSubplebbitFunctionArgumentSchema } from "../subplebbit/schema"; -import { RpcLocalSubplebbit } from "../subplebbit/rpc-local-subplebbit"; -import { RpcRemoteSubplebbit } from "../subplebbit/rpc-remote-subplebbit"; +} from "../schema/schema-util.js"; +import { AuthorAddressSchema } from "../schema/schema.js"; +import { CreateRpcSubplebbitFunctionArgumentSchema } from "../subplebbit/schema.js"; +import { RpcLocalSubplebbit } from "../subplebbit/rpc-local-subplebbit.js"; +import { RpcRemoteSubplebbit } from "../subplebbit/rpc-remote-subplebbit.js"; import type { RpcLocalSubplebbitJson, RpcRemoteSubplebbitJson } from "../subplebbit/types"; import { z } from "zod"; -import { PlebbitError } from "../plebbit-error"; -import PlebbitRpcClient from "../clients/rpc-client/plebbit-rpc-client"; +import { PlebbitError } from "../plebbit-error.js"; // This is a helper class for separating RPC-client logic from main Plebbit // Not meant to be used with end users diff --git a/src/publications/comment-moderation/schema.ts b/src/publications/comment-moderation/schema.ts index 085ef56b..b55da530 100644 --- a/src/publications/comment-moderation/schema.ts +++ b/src/publications/comment-moderation/schema.ts @@ -8,9 +8,9 @@ import { PublicationBaseBeforeSigning, SignerWithAddressPublicKeySchema, SubplebbitAuthorSchema -} from "../../schema/schema"; +} from "../../schema/schema.js"; import * as remeda from "remeda"; -import { keysToOmitFromSignedPropertyNames } from "../../signer/constants"; +import { keysToOmitFromSignedPropertyNames } from "../../signer/constants.js"; export const ModeratorOptionsSchema = z .object({ diff --git a/src/runtime/browser/browser-libp2p-pubsub.ts b/src/runtime/browser/browser-libp2p-pubsub.ts index d6c336c2..aae64e1e 100644 --- a/src/runtime/browser/browser-libp2p-pubsub.ts +++ b/src/runtime/browser/browser-libp2p-pubsub.ts @@ -270,3 +270,7 @@ // }; // return libp2pPubsubClient; // } + +export function createLibp2pNode() { + return undefined; +} diff --git a/test/node-and-browser/publications/comment/pubsubfields.comment.test.js b/test/node-and-browser/publications/comment/pubsubfields.comment.test.js index a71f186a..6fe07115 100644 --- a/test/node-and-browser/publications/comment/pubsubfields.comment.test.js +++ b/test/node-and-browser/publications/comment/pubsubfields.comment.test.js @@ -1,5 +1,5 @@ -import { generateMockPost, getRemotePlebbitConfigs, publishWithExpectedResult } from "../../../../dist/node/test/test-util"; -import signers from "../../../fixtures/signers"; +import { generateMockPost, getRemotePlebbitConfigs, publishWithExpectedResult } from "../../../../dist/node/test/test-util.js"; +import signers from "../../../fixtures/signers.js"; import { expect } from "chai"; getRemotePlebbitConfigs().map((config) => {