Skip to content

Commit

Permalink
fix imports by suffixing with .js
Browse files Browse the repository at this point in the history
  • Loading branch information
Rinse12 committed Oct 29, 2024
1 parent 7db2c63 commit 0b09cc9
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 12 deletions.
15 changes: 7 additions & 8 deletions src/plebbit/plebbit-with-rpc-client.ts
Original file line number Diff line number Diff line change
@@ -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
Expand Down
4 changes: 2 additions & 2 deletions src/publications/comment-moderation/schema.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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({
Expand Down
4 changes: 4 additions & 0 deletions src/runtime/browser/browser-libp2p-pubsub.ts
Original file line number Diff line number Diff line change
Expand Up @@ -270,3 +270,7 @@
// };
// return libp2pPubsubClient;
// }

export function createLibp2pNode() {
return undefined;
}
Original file line number Diff line number Diff line change
@@ -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) => {
Expand Down

0 comments on commit 0b09cc9

Please sign in to comment.