Skip to content

Commit

Permalink
take-from-dep
Browse files Browse the repository at this point in the history
  • Loading branch information
uriva committed Apr 6, 2024
1 parent 8e70163 commit bc159e9
Show file tree
Hide file tree
Showing 2 changed files with 58 additions and 2 deletions.
55 changes: 55 additions & 0 deletions deno.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 3 additions & 2 deletions src/debug.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import { randomUUID } from "https://deno.land/[email protected]/node/crypto.ts";
import { AsyncFunction, Func, ReturnTypeUnwrapped } from "./typing.ts";

import { pipe } from "./composition.ts";
Expand Down Expand Up @@ -146,7 +147,7 @@ const makeErrorWithId = (id: string) => {
};

export const throwerCatcher = () => {
const id = crypto.randomUUID();
const id = randomUUID();
const catcher = catchErrorWithId(id);
const thrower = () => {
throw makeErrorWithId(id);
Expand All @@ -171,7 +172,7 @@ async (...xs: Parameters<F>) => {
};

export const throwerCatcherWithValue = <T>() => {
const id = crypto.randomUUID();
const id = randomUUID();
const catcher = catchErrorWithIdAndValue<T>(id);
const thrower = (value: T) => {
const e = makeErrorWithId(id);
Expand Down

0 comments on commit bc159e9

Please sign in to comment.