Remove some logs.
This commit is contained in:
@@ -40,7 +40,6 @@ const EnrichLog: FC<EnrichLogProps> = ({ str }) => {
|
||||
if (match.startsWith('HookSet')) {
|
||||
const code = match.match(/^HookSet\((\d+)\)/)?.[1]
|
||||
const val = hookSetCodes.find(v => code && v.code === +code)
|
||||
console.log({ code, val })
|
||||
if (!val) return match
|
||||
|
||||
const content = capitalize(val.description) || 'No hint available!'
|
||||
|
||||
@@ -256,7 +256,7 @@ const HooksEditor = () => {
|
||||
try {
|
||||
disposable.dispose()
|
||||
} catch (err) {
|
||||
console.log('err', err)
|
||||
console.error('err', err)
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
@@ -14,7 +14,7 @@
|
||||
"dependencies": {
|
||||
"@codingame/monaco-jsonrpc": "^0.3.1",
|
||||
"@codingame/monaco-languageclient": "^0.17.0",
|
||||
"@eqlabs/assemblyscript": "alpha",
|
||||
"@eqlabs/assemblyscript": "^0.0.0-alpha.1676908005",
|
||||
"@monaco-editor/react": "^4.4.5",
|
||||
"@octokit/core": "^3.5.1",
|
||||
"@radix-ui/colors": "^0.1.7",
|
||||
|
||||
@@ -40,7 +40,7 @@ export default async function handler(
|
||||
}
|
||||
return res.status(200).json(json)
|
||||
} catch (err) {
|
||||
console.log(err)
|
||||
console.error(err)
|
||||
return res.status(500).json({ error: 'Server error' })
|
||||
}
|
||||
return res.status(500).json({ error: 'Not able to create faucet, try again' })
|
||||
|
||||
@@ -181,7 +181,6 @@ export const compileTs = async (file: IFile): Promise<CompilationResult> => {
|
||||
return null
|
||||
},
|
||||
writeFile: async (name, data: ArrayBuffer | string, baseDir) => {
|
||||
console.log("writeFile", { name, data, baseDir })
|
||||
const ext = getFileExtention(name);
|
||||
if (ext === 'wasm') {
|
||||
result.compiledContent = data as ArrayBuffer;
|
||||
|
||||
@@ -254,7 +254,7 @@ export const deleteHook = async (account: IAccount & { name?: string }) => {
|
||||
})
|
||||
}
|
||||
} catch (err) {
|
||||
console.log(err)
|
||||
console.error(err)
|
||||
toast.error('Error occurred while deleting hook', { id: toastId })
|
||||
state.deployLogs.push({
|
||||
type: 'error',
|
||||
|
||||
@@ -55,7 +55,7 @@ export const syncToGist = async (session?: Session | null, createNewGist?: boole
|
||||
return toast.success('Updated to gist successfully!', { id: toastId })
|
||||
})
|
||||
.catch(err => {
|
||||
console.log(err)
|
||||
console.error(err)
|
||||
state.gistLoading = false
|
||||
return toast.error(`Could not update Gist, try again later!`, {
|
||||
id: toastId
|
||||
@@ -85,7 +85,7 @@ export const syncToGist = async (session?: Session | null, createNewGist?: boole
|
||||
return toast.success('Created new gist successfully!', { id: toastId })
|
||||
})
|
||||
.catch(err => {
|
||||
console.log(err)
|
||||
console.error(err)
|
||||
state.gistLoading = false
|
||||
return toast.error(`Could not create Gist, try again later!`, {
|
||||
id: toastId
|
||||
|
||||
@@ -136,7 +136,7 @@ if (typeof window !== 'undefined') {
|
||||
try {
|
||||
localStorageAccounts = localStorage.getItem('hooksIdeAccounts')
|
||||
} catch (err) {
|
||||
console.log(`localStorage state broken`)
|
||||
console.error(`localStorage state broken`)
|
||||
localStorage.removeItem('hooksIdeAccounts')
|
||||
}
|
||||
if (localStorageAccounts) {
|
||||
|
||||
@@ -172,10 +172,10 @@
|
||||
resolved "https://registry.npmjs.org/@emotion/weak-memoize/-/weak-memoize-0.2.5.tgz"
|
||||
integrity sha512-6U71C2Wp7r5XtFtQzYrW5iKFT67OixrSxjI4MptCHzdSVlgabczzqLe0ZSgnub/5Kp4hSbpDB1tMytZY9pwxxA==
|
||||
|
||||
"@eqlabs/assemblyscript@alpha":
|
||||
version "0.0.0-alpha.1676898913"
|
||||
resolved "https://registry.yarnpkg.com/@eqlabs/assemblyscript/-/assemblyscript-0.0.0-alpha.1676898913.tgz#9a41f0312d3f5ba18796674352fa66bd2d276249"
|
||||
integrity sha512-k0/7eI7T0SRV9QTDd0YlujDqNGC2x0bOVi6wMlN1OFA+UuXWuITGTo0CHz515cx49uyX/pg6A9Vg+JcsrHUyAg==
|
||||
"@eqlabs/assemblyscript@^0.0.0-alpha.1676908005":
|
||||
version "0.0.0-alpha.1676908005"
|
||||
resolved "https://registry.yarnpkg.com/@eqlabs/assemblyscript/-/assemblyscript-0.0.0-alpha.1676908005.tgz#19bec6d796b259cb13856e450a418ffcc2573968"
|
||||
integrity sha512-b9gMjdoXJXGmCR8radlKCjVSi+paV9ZMN2jVFGvnEgN3awEF+iCoSx5kvqcRXHq3kn51caWmctQf4zCby7SYFQ==
|
||||
dependencies:
|
||||
binaryen "110.0.0-nightly.20221019"
|
||||
long "^5.2.0"
|
||||
|
||||
Reference in New Issue
Block a user