-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
v1rtl
committed
Sep 25, 2021
1 parent
8007b18
commit a743b7c
Showing
5 changed files
with
59 additions
and
43 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,3 @@ | ||
export { default as assert } from 'https://deno.land/x/[email protected]/node/assert.ts' | ||
export { createRequire } from 'https://deno.land/[email protected]/node/module.ts' | ||
export { existsSync } from 'https://deno.land/[email protected]/node/fs.ts' | ||
export { default as semver } from 'https://esm.sh/semver?no-check' | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
import { setupMethods } from './wrapper.js' | ||
import { setupMethods } from './wrapper.ts' | ||
import { soljson } from './module.ts' | ||
|
||
export const solc = setupMethods(soljson) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,5 @@ | ||
export const exists = async (filename: string): Promise<boolean> => { | ||
try { | ||
await Deno.stat(filename) | ||
// successful, file or directory must exist | ||
return true | ||
} catch (error) { | ||
if (error instanceof Deno.errors.NotFound) { | ||
// file or directory does not exist | ||
return false | ||
} else { | ||
// unexpected error, maybe permissions, pass it along | ||
throw error | ||
} | ||
} | ||
import * as _assert from 'https://deno.land/x/[email protected]/node/assert.ts' | ||
|
||
export const assert = (actual: unknown, message: string) => { | ||
return _assert.strict(actual, message) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters