Skip to content

Commit

Permalink
change imports from ts to js
Browse files Browse the repository at this point in the history
  • Loading branch information
d-roak committed Jun 28, 2024
1 parent b3881a9 commit df565a4
Show file tree
Hide file tree
Showing 6 changed files with 19 additions and 21 deletions.
26 changes: 13 additions & 13 deletions examples/canvas/yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -714,11 +714,11 @@
resolved "https://registry.yarnpkg.com/@sindresorhus/fnv1a/-/fnv1a-3.1.0.tgz#f8e46597298f6fd4c12dc901cdd4e73beb4d24fa"
integrity sha512-KV321z5m/0nuAg83W1dPLy85HpHDk7Sdi4fJbwvacWsEhAh+rZUW4ZfGcXmUIvjZg4ss2bcwNlRhJ7GBEUG08w==

"@topology-foundation/[email protected].7", "@topology-foundation/crdt@file:../../packages/crdt":
version "0.0.7"
"@topology-foundation/[email protected].8", "@topology-foundation/crdt@file:../../packages/crdt":
version "0.0.8"

"@topology-foundation/[email protected].7", "@topology-foundation/network@file:../../packages/network":
version "0.0.7"
"@topology-foundation/[email protected].8", "@topology-foundation/network@file:../../packages/network":
version "0.0.8"
dependencies:
"@chainsafe/libp2p-gossipsub" "^13.0.0"
"@chainsafe/libp2p-noise" "^15.0.0"
Expand All @@ -737,19 +737,19 @@
libp2p "^1.6.0"

"@topology-foundation/node@file:../../packages/node":
version "0.0.7"
version "0.0.8"
dependencies:
"@topology-foundation/crdt" "0.0.7"
"@topology-foundation/network" "0.0.7"
"@topology-foundation/object" "0.0.7"
"@topology-foundation/crdt" "0.0.8"
"@topology-foundation/network" "0.0.8"
"@topology-foundation/object" "0.0.8"

"@topology-foundation/[email protected].7":
version "0.0.7"
resolved "https://registry.yarnpkg.com/@topology-foundation/object/-/object-0.0.7.tgz#227cae7fb47caeef812f7ab15ac70d778405fa89"
integrity sha512-kasUqQaBeNGCCnojWVFNxnR1izG1kU2mIRGKMZbODRnYkgMd9mTc08AHLflA2qAs0Vkci9LxRyMNWtzugJZEZQ==
"@topology-foundation/[email protected].8":
version "0.0.8"
resolved "https://registry.yarnpkg.com/@topology-foundation/object/-/object-0.0.8.tgz#39e57a7cee3c210b94c9a048da5befb0e6695e71"
integrity sha512-hlwqX2/IWuFVk29ssGUT/ZT6sED0r0At13TH3GnUGewijhnn0ZKriQEXr01BQurvm5pOXIJ8php1Jtafzg4RFA==

"@topology-foundation/object@file:../../packages/object":
version "0.0.7"
version "0.0.8"

"@tsconfig/node10@^1.0.7":
version "1.0.11"
Expand Down
6 changes: 3 additions & 3 deletions packages/network/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
export { TopologyNetworkNodeConfig, TopologyNetworkNode } from "./node.ts";
export { stringToStream, streamToString } from "./stream.ts";
export { createRelayNode } from "./relay.ts";
export { TopologyNetworkNodeConfig, TopologyNetworkNode } from "./node.js";
export { stringToStream, streamToString } from "./stream.js";
export { createRelayNode } from "./relay.js";
2 changes: 1 addition & 1 deletion packages/network/src/node.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import { webRTC, webRTCDirect } from "@libp2p/webrtc";
import { webSockets } from "@libp2p/websockets";
import { multiaddr } from "@multiformats/multiaddr";
import { Libp2p, createLibp2p } from "libp2p";
import { stringToStream } from "./stream.ts";
import { stringToStream } from "./stream.js";
import { webTransport } from "@libp2p/webtransport";
import { bootstrap } from "@libp2p/bootstrap";

Expand Down
2 changes: 1 addition & 1 deletion packages/network/src/relay.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import { pubsubPeerDiscovery } from "@libp2p/pubsub-peer-discovery";
import { webSockets } from "@libp2p/websockets";
import { createLibp2p } from "libp2p";

import relayerJson from "./peer-id-relayer.ts";
import relayerJson from "./peer-id-relayer.js";
import { autoNAT } from "@libp2p/autonat";

// TODO:
Expand Down
2 changes: 1 addition & 1 deletion packages/node/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import {
streamToString,
} from "@topology-foundation/network";
import { TopologyObject } from "@topology-foundation/object";
import { TopologyObjectStore } from "./store.ts";
import { TopologyObjectStore } from "./store.js";
import { fromString as uint8ArrayFromString } from "uint8arrays/from-string";
import { toString as uint8ArrayToString } from "uint8arrays/to-string";

Expand Down
2 changes: 0 additions & 2 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,6 @@

"esModuleInterop": true,
"moduleResolution": "node",
"allowImportingTsExtensions": true,
"emitDeclarationOnly": true,

"declaration": true,
"declarationMap": true,
Expand Down

0 comments on commit df565a4

Please sign in to comment.