Skip to content

Commit bd1a0c9

Browse files
committed
Remove some logs.
1 parent ba95eb5 commit bd1a0c9

File tree

9 files changed

+11
-13
lines changed

9 files changed

+11
-13
lines changed

components/EnrichLog.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,6 @@ const EnrichLog: FC<EnrichLogProps> = ({ str }) => {
4040
if (match.startsWith('HookSet')) {
4141
const code = match.match(/^HookSet\((\d+)\)/)?.[1]
4242
const val = hookSetCodes.find(v => code && v.code === +code)
43-
console.log({ code, val })
4443
if (!val) return match
4544

4645
const content = capitalize(val.description) || 'No hint available!'

components/HooksEditor.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -256,7 +256,7 @@ const HooksEditor = () => {
256256
try {
257257
disposable.dispose()
258258
} catch (err) {
259-
console.log('err', err)
259+
console.error('err', err)
260260
}
261261
})
262262
}

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
"dependencies": {
1515
"@codingame/monaco-jsonrpc": "^0.3.1",
1616
"@codingame/monaco-languageclient": "^0.17.0",
17-
"@eqlabs/assemblyscript": "alpha",
17+
"@eqlabs/assemblyscript": "^0.0.0-alpha.1676908005",
1818
"@monaco-editor/react": "^4.4.5",
1919
"@octokit/core": "^3.5.1",
2020
"@radix-ui/colors": "^0.1.7",

pages/api/faucet.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ export default async function handler(
4040
}
4141
return res.status(200).json(json)
4242
} catch (err) {
43-
console.log(err)
43+
console.error(err)
4444
return res.status(500).json({ error: 'Server error' })
4545
}
4646
return res.status(500).json({ error: 'Not able to create faucet, try again' })

state/actions/compileCode.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,6 @@ export const compileTs = async (file: IFile): Promise<CompilationResult> => {
181181
return null
182182
},
183183
writeFile: async (name, data: ArrayBuffer | string, baseDir) => {
184-
console.log("writeFile", { name, data, baseDir })
185184
const ext = getFileExtention(name);
186185
if (ext === 'wasm') {
187186
result.compiledContent = data as ArrayBuffer;

state/actions/deployHook.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -254,7 +254,7 @@ export const deleteHook = async (account: IAccount & { name?: string }) => {
254254
})
255255
}
256256
} catch (err) {
257-
console.log(err)
257+
console.error(err)
258258
toast.error('Error occurred while deleting hook', { id: toastId })
259259
state.deployLogs.push({
260260
type: 'error',

state/actions/syncToGist.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ export const syncToGist = async (session?: Session | null, createNewGist?: boole
5555
return toast.success('Updated to gist successfully!', { id: toastId })
5656
})
5757
.catch(err => {
58-
console.log(err)
58+
console.error(err)
5959
state.gistLoading = false
6060
return toast.error(`Could not update Gist, try again later!`, {
6161
id: toastId
@@ -85,7 +85,7 @@ export const syncToGist = async (session?: Session | null, createNewGist?: boole
8585
return toast.success('Created new gist successfully!', { id: toastId })
8686
})
8787
.catch(err => {
88-
console.log(err)
88+
console.error(err)
8989
state.gistLoading = false
9090
return toast.error(`Could not create Gist, try again later!`, {
9191
id: toastId

state/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ if (typeof window !== 'undefined') {
136136
try {
137137
localStorageAccounts = localStorage.getItem('hooksIdeAccounts')
138138
} catch (err) {
139-
console.log(`localStorage state broken`)
139+
console.error(`localStorage state broken`)
140140
localStorage.removeItem('hooksIdeAccounts')
141141
}
142142
if (localStorageAccounts) {

yarn.lock

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -172,10 +172,10 @@
172172
resolved "https://registry.npmjs.org/@emotion/weak-memoize/-/weak-memoize-0.2.5.tgz"
173173
integrity sha512-6U71C2Wp7r5XtFtQzYrW5iKFT67OixrSxjI4MptCHzdSVlgabczzqLe0ZSgnub/5Kp4hSbpDB1tMytZY9pwxxA==
174174

175-
"@eqlabs/assemblyscript@alpha":
176-
version "0.0.0-alpha.1676898913"
177-
resolved "https://registry.yarnpkg.com/@eqlabs/assemblyscript/-/assemblyscript-0.0.0-alpha.1676898913.tgz#9a41f0312d3f5ba18796674352fa66bd2d276249"
178-
integrity sha512-k0/7eI7T0SRV9QTDd0YlujDqNGC2x0bOVi6wMlN1OFA+UuXWuITGTo0CHz515cx49uyX/pg6A9Vg+JcsrHUyAg==
175+
"@eqlabs/assemblyscript@^0.0.0-alpha.1676908005":
176+
version "0.0.0-alpha.1676908005"
177+
resolved "https://registry.yarnpkg.com/@eqlabs/assemblyscript/-/assemblyscript-0.0.0-alpha.1676908005.tgz#19bec6d796b259cb13856e450a418ffcc2573968"
178+
integrity sha512-b9gMjdoXJXGmCR8radlKCjVSi+paV9ZMN2jVFGvnEgN3awEF+iCoSx5kvqcRXHq3kn51caWmctQf4zCby7SYFQ==
179179
dependencies:
180180
binaryen "110.0.0-nightly.20221019"
181181
long "^5.2.0"

0 commit comments

Comments
 (0)