Skip to content

Commit bc159e9

Browse files
committed
take-from-dep
1 parent 8e70163 commit bc159e9

File tree

2 files changed

+58
-2
lines changed

2 files changed

+58
-2
lines changed

deno.lock

+55
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/debug.ts

+3-2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import { randomUUID } from "https://deno.land/std@0.110.0/node/crypto.ts";
12
import { AsyncFunction, Func, ReturnTypeUnwrapped } from "./typing.ts";
23

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

148149
export const throwerCatcher = () => {
149-
const id = crypto.randomUUID();
150+
const id = randomUUID();
150151
const catcher = catchErrorWithId(id);
151152
const thrower = () => {
152153
throw makeErrorWithId(id);
@@ -171,7 +172,7 @@ async (...xs: Parameters<F>) => {
171172
};
172173

173174
export const throwerCatcherWithValue = <T>() => {
174-
const id = crypto.randomUUID();
175+
const id = randomUUID();
175176
const catcher = catchErrorWithIdAndValue<T>(id);
176177
const thrower = (value: T) => {
177178
const e = makeErrorWithId(id);

0 commit comments

Comments
 (0)