diff --git a/examples/canvas/yarn.lock b/examples/canvas/yarn.lock index a6a7679d..11351060 100644 --- a/examples/canvas/yarn.lock +++ b/examples/canvas/yarn.lock @@ -714,11 +714,11 @@ resolved "https://registry.yarnpkg.com/@sindresorhus/fnv1a/-/fnv1a-3.1.0.tgz#f8e46597298f6fd4c12dc901cdd4e73beb4d24fa" integrity sha512-KV321z5m/0nuAg83W1dPLy85HpHDk7Sdi4fJbwvacWsEhAh+rZUW4ZfGcXmUIvjZg4ss2bcwNlRhJ7GBEUG08w== -"@topology-foundation/crdt@0.0.7", "@topology-foundation/crdt@file:../../packages/crdt": - version "0.0.7" +"@topology-foundation/crdt@0.0.8", "@topology-foundation/crdt@file:../../packages/crdt": + version "0.0.8" -"@topology-foundation/network@0.0.7", "@topology-foundation/network@file:../../packages/network": - version "0.0.7" +"@topology-foundation/network@0.0.8", "@topology-foundation/network@file:../../packages/network": + version "0.0.8" dependencies: "@chainsafe/libp2p-gossipsub" "^13.0.0" "@chainsafe/libp2p-noise" "^15.0.0" @@ -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/object@0.0.7": - version "0.0.7" - resolved "https://registry.yarnpkg.com/@topology-foundation/object/-/object-0.0.7.tgz#227cae7fb47caeef812f7ab15ac70d778405fa89" - integrity sha512-kasUqQaBeNGCCnojWVFNxnR1izG1kU2mIRGKMZbODRnYkgMd9mTc08AHLflA2qAs0Vkci9LxRyMNWtzugJZEZQ== +"@topology-foundation/object@0.0.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" diff --git a/packages/network/src/index.ts b/packages/network/src/index.ts index ab51100c..69243949 100644 --- a/packages/network/src/index.ts +++ b/packages/network/src/index.ts @@ -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"; diff --git a/packages/network/src/node.ts b/packages/network/src/node.ts index e9fd65fe..a60ff2e8 100644 --- a/packages/network/src/node.ts +++ b/packages/network/src/node.ts @@ -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"; diff --git a/packages/network/src/relay.ts b/packages/network/src/relay.ts index 45cbef29..5c2dd188 100644 --- a/packages/network/src/relay.ts +++ b/packages/network/src/relay.ts @@ -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: diff --git a/packages/node/src/index.ts b/packages/node/src/index.ts index 4482807b..640fc27a 100644 --- a/packages/node/src/index.ts +++ b/packages/node/src/index.ts @@ -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"; diff --git a/tsconfig.json b/tsconfig.json index 41df8af7..0d668bc6 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -7,8 +7,6 @@ "esModuleInterop": true, "moduleResolution": "node", - "allowImportingTsExtensions": true, - "emitDeclarationOnly": true, "declaration": true, "declarationMap": true,