File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed
Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change 33 <a href =" https://www.npmjs.com/package/@casperengl/try-catch " target =" _blank " >
44 <img alt="Version" src="https://img.shields.io/npm/v/@casperengl/try-catch.svg">
55 </a >
6- <a href =" https://github.com/casperengl/try-catch/actions " target =" _blank " >
7- <img alt="GitHub Action" src="https://github.com/casperengl/try-catch/workflows/Main/badge.svg">
8- </a >
96 <a href =" https://github.com/CasperEngl/try-catch#readme " target =" _blank " >
107 <img alt="Documentation" src="https://img.shields.io/badge/documentation-yes-brightgreen.svg" />
118 </a >
@@ -57,7 +54,9 @@ Notice `type="module"` is required to use import statements in the browser.
5754 // import tryCatch from 'https://cdn.skypack.dev/@casperengl/try-catch';
5855
5956 const apiCall = async () => {
60- const promise = fetch (' https://reqres.in/api/users/1' ).then ((response ) => response .json ());
57+ const promise = fetch (' https://reqres.in/api/users/1' ).then ((response ) =>
58+ response .json ()
59+ );
6160 const [error , result ] = await tryCatch (promise);
6261
6362 console .log (error, result); // null, {data: {…}, support: {…}}
You can’t perform that action at this time.
0 commit comments