From 28572fccff8f669ebcc6c6de7c99755ed3090e45 Mon Sep 17 00:00:00 2001 From: Franck Royer Date: Tue, 11 May 2021 12:00:42 +1000 Subject: [PATCH] Rename to web3-waku in examples --- examples/cli-chat/package-lock.json | 6 +++--- examples/cli-chat/package.json | 2 +- examples/cli-chat/src/chat.spec.ts | 2 +- examples/cli-chat/src/chat.ts | 2 +- examples/web-chat/package-lock.json | 18 +++++++++--------- examples/web-chat/package.json | 4 ++-- examples/web-chat/src/App.tsx | 2 +- examples/web-chat/src/ChatList.tsx | 2 +- examples/web-chat/src/Room.tsx | 2 +- examples/web-chat/src/WakuContext.ts | 2 +- examples/web-chat/src/command.ts | 2 +- 11 files changed, 22 insertions(+), 22 deletions(-) diff --git a/examples/cli-chat/package-lock.json b/examples/cli-chat/package-lock.json index 6ce0f93968..21040d61ad 100644 --- a/examples/cli-chat/package-lock.json +++ b/examples/cli-chat/package-lock.json @@ -11,7 +11,7 @@ "dependencies": { "libp2p-tcp": "^0.15.4", "prompt-sync": "^4.2.0", - "waku": "../../build/main" + "web3-waku": "../../build/main" }, "devDependencies": { "@istanbuljs/nyc-config-typescript": "^1.0.1", @@ -7509,7 +7509,7 @@ "integrity": "sha512-jkjy6pjU1fxUvI51P+gCsxg1u2n8LSt0W6KrCNQceaziKzff74GoWmjVG46KieVzybO1sttPQmYfrwSHey7GUA==", "dev": true }, - "node_modules/waku": { + "node_modules/web3-waku": { "resolved": "../../build/main", "link": true }, @@ -13563,7 +13563,7 @@ "integrity": "sha512-jkjy6pjU1fxUvI51P+gCsxg1u2n8LSt0W6KrCNQceaziKzff74GoWmjVG46KieVzybO1sttPQmYfrwSHey7GUA==", "dev": true }, - "waku": { + "web3-waku": { "version": "file:../../build/main" }, "which": { diff --git a/examples/cli-chat/package.json b/examples/cli-chat/package.json index 2da2cf186d..ae76a8881a 100644 --- a/examples/cli-chat/package.json +++ b/examples/cli-chat/package.json @@ -33,7 +33,7 @@ "dependencies": { "libp2p-tcp": "^0.15.4", "prompt-sync": "^4.2.0", - "waku": "../../build/main" + "web3-waku": "../../build/main" }, "devDependencies": { "@istanbuljs/nyc-config-typescript": "^1.0.1", diff --git a/examples/cli-chat/src/chat.spec.ts b/examples/cli-chat/src/chat.spec.ts index 542db920a4..ebc4491778 100644 --- a/examples/cli-chat/src/chat.spec.ts +++ b/examples/cli-chat/src/chat.spec.ts @@ -1,5 +1,5 @@ import { expect } from 'chai'; -import { ChatMessage } from 'waku'; +import { ChatMessage } from 'web3-waku'; import { formatMessage } from './chat'; diff --git a/examples/cli-chat/src/chat.ts b/examples/cli-chat/src/chat.ts index bd83d3def8..54a9f0abc4 100644 --- a/examples/cli-chat/src/chat.ts +++ b/examples/cli-chat/src/chat.ts @@ -3,7 +3,7 @@ import util from 'util'; import TCP from 'libp2p-tcp'; import { multiaddr, Multiaddr } from 'multiaddr'; -import { ChatMessage, StoreCodec, Waku, WakuMessage } from 'waku'; +import { ChatMessage, StoreCodec, Waku, WakuMessage } from 'web3-waku'; const ChatContentTopic = 'dingpu'; diff --git a/examples/web-chat/package-lock.json b/examples/web-chat/package-lock.json index c0578cdb3a..dc8a02bdbb 100644 --- a/examples/web-chat/package-lock.json +++ b/examples/web-chat/package-lock.json @@ -11,8 +11,8 @@ "react": "^16.14.0", "react-dom": "^16.14.0", "server-name-generator": "^1.0.5", - "waku": "../../build/main", - "web-vitals": "^1.1.1" + "web-vitals": "^1.1.1", + "web3-waku": "../../build/main" }, "devDependencies": { "@testing-library/jest-dom": "^5.11.10", @@ -22885,10 +22885,6 @@ "node": ">=10" } }, - "node_modules/waku": { - "resolved": "../../build/main", - "link": true - }, "node_modules/walker": { "version": "1.0.7", "resolved": "https://registry.npmjs.org/walker/-/walker-1.0.7.tgz", @@ -23230,6 +23226,10 @@ "resolved": "https://registry.npmjs.org/web-vitals/-/web-vitals-1.1.1.tgz", "integrity": "sha512-jYOaqu01Ny1NvMwJ3dBJDUOJ2PGWknZWH4AUnvFOscvbdHMERIKT2TlgiAey5rVyfOePG7so2JcXXZdSnBvioQ==" }, + "node_modules/web3-waku": { + "resolved": "../../build/main", + "link": true + }, "node_modules/webidl-conversions": { "version": "6.1.0", "resolved": "https://registry.npmjs.org/webidl-conversions/-/webidl-conversions-6.1.0.tgz", @@ -43270,9 +43270,6 @@ "xml-name-validator": "^3.0.0" } }, - "waku": { - "version": "file:../../build/main" - }, "walker": { "version": "1.0.7", "resolved": "https://registry.npmjs.org/walker/-/walker-1.0.7.tgz", @@ -43571,6 +43568,9 @@ "resolved": "https://registry.npmjs.org/web-vitals/-/web-vitals-1.1.1.tgz", "integrity": "sha512-jYOaqu01Ny1NvMwJ3dBJDUOJ2PGWknZWH4AUnvFOscvbdHMERIKT2TlgiAey5rVyfOePG7so2JcXXZdSnBvioQ==" }, + "web3-waku": { + "version": "file:../../build/main" + }, "webidl-conversions": { "version": "6.1.0", "resolved": "https://registry.npmjs.org/webidl-conversions/-/webidl-conversions-6.1.0.tgz", diff --git a/examples/web-chat/package.json b/examples/web-chat/package.json index fd0172eae6..63ff09d5fa 100644 --- a/examples/web-chat/package.json +++ b/examples/web-chat/package.json @@ -8,8 +8,8 @@ "react": "^16.14.0", "react-dom": "^16.14.0", "server-name-generator": "^1.0.5", - "waku": "../../build/main", - "web-vitals": "^1.1.1" + "web-vitals": "^1.1.1", + "web3-waku": "../../build/main" }, "devDependencies": { "@testing-library/jest-dom": "^5.11.10", diff --git a/examples/web-chat/src/App.tsx b/examples/web-chat/src/App.tsx index 5288b0b667..e2b5ba871b 100644 --- a/examples/web-chat/src/App.tsx +++ b/examples/web-chat/src/App.tsx @@ -2,7 +2,7 @@ import { multiaddr } from 'multiaddr'; import PeerId from 'peer-id'; import { useEffect, useState } from 'react'; import './App.css'; -import { ChatMessage, WakuMessage, StoreCodec, Waku } from 'waku'; +import { ChatMessage, WakuMessage, StoreCodec, Waku } from 'web3-waku'; import handleCommand from './command'; import Room from './Room'; import { WakuContext } from './WakuContext'; diff --git a/examples/web-chat/src/ChatList.tsx b/examples/web-chat/src/ChatList.tsx index a714f86c70..121fd2b62d 100644 --- a/examples/web-chat/src/ChatList.tsx +++ b/examples/web-chat/src/ChatList.tsx @@ -1,5 +1,5 @@ import { useEffect, useRef, useState } from 'react'; -import { ChatMessage } from 'waku'; +import { ChatMessage } from 'web3-waku'; import { Message, MessageText, diff --git a/examples/web-chat/src/Room.tsx b/examples/web-chat/src/Room.tsx index 25ff6f5859..accc5a70b6 100644 --- a/examples/web-chat/src/Room.tsx +++ b/examples/web-chat/src/Room.tsx @@ -1,4 +1,4 @@ -import { ChatMessage, WakuMessage } from 'waku'; +import { ChatMessage, WakuMessage } from 'web3-waku'; import { ChatContentTopic } from './App'; import ChatList from './ChatList'; import MessageInput from './MessageInput'; diff --git a/examples/web-chat/src/WakuContext.ts b/examples/web-chat/src/WakuContext.ts index eb72723e6d..83aad00f9f 100644 --- a/examples/web-chat/src/WakuContext.ts +++ b/examples/web-chat/src/WakuContext.ts @@ -1,5 +1,5 @@ import { createContext, useContext } from 'react'; -import { Waku } from 'waku'; +import { Waku } from 'web3-waku'; export type WakuContextType = { waku?: Waku; diff --git a/examples/web-chat/src/command.ts b/examples/web-chat/src/command.ts index d59eea32db..20936b35c8 100644 --- a/examples/web-chat/src/command.ts +++ b/examples/web-chat/src/command.ts @@ -1,6 +1,6 @@ import { multiaddr } from 'multiaddr'; import PeerId from 'peer-id'; -import { Waku } from 'waku'; +import { Waku } from 'web3-waku'; function help(): string[] { return [