@temporalio/create
Advanced tools
Comparing version 1.11.3 to 1.11.4
@@ -11,3 +11,3 @@ // eslint-disable-next-line import/no-named-as-default | ||
} | ||
catch (error) { | ||
catch (_error) { | ||
throw new Error(`Unable to reach github.com`); | ||
@@ -14,0 +14,0 @@ } |
@@ -67,3 +67,3 @@ /* eslint-disable no-empty */ | ||
} | ||
catch (e) { | ||
catch (_e) { | ||
if (didInit) { | ||
@@ -73,3 +73,3 @@ try { | ||
} | ||
catch (_) { } | ||
catch (_e) { } | ||
} | ||
@@ -76,0 +76,0 @@ return false; |
@@ -14,3 +14,3 @@ // Modified from: https://github.com/vercel/next.js/blob/2425f4703c4c6164cecfdb6aa8f80046213f0cc6/packages/create-next-app/helpers/is-online.ts | ||
} | ||
catch (e) { | ||
catch (_e) { | ||
return; | ||
@@ -17,0 +17,0 @@ } |
@@ -1,2 +0,1 @@ | ||
/// <reference types="node" /> | ||
export type RepoInfo = { | ||
@@ -3,0 +2,0 @@ username: string; |
@@ -18,3 +18,3 @@ // Modified from: https://github.com/vercel/next.js/blob/2425f4703c4c6164cecfdb6aa8f80046213f0cc6/packages/create-next-app/helpers/examples.ts | ||
} | ||
catch (e) { | ||
catch (_e) { | ||
return false; | ||
@@ -41,3 +41,3 @@ } | ||
} | ||
catch (error) { | ||
catch (_error) { | ||
throw new Error(`Unable to fetch ${repo}`); | ||
@@ -44,0 +44,0 @@ } |
@@ -1,2 +0,1 @@ | ||
/// <reference types="node" /> | ||
import { ChildProcess, SpawnOptions } from 'child_process'; | ||
@@ -3,0 +2,0 @@ export declare class ChildProcessError extends Error { |
{ | ||
"name": "@temporalio/create", | ||
"version": "1.11.3", | ||
"version": "1.11.4", | ||
"description": "Create a Temporal project from template", | ||
@@ -63,3 +63,3 @@ "main": "cli.js", | ||
], | ||
"gitHead": "4c90f9d844710abf7e085662373aac226ec09017" | ||
"gitHead": "6a7e2d527c9f7078ee78abd9d59ca0d318bb70dd" | ||
} |
@@ -18,3 +18,3 @@ // eslint-disable-next-line import/no-named-as-default | ||
response = await got(SAMPLE_REPO_CONTENTS, { headers }); | ||
} catch (error) { | ||
} catch (_error) { | ||
throw new Error(`Unable to reach github.com`); | ||
@@ -21,0 +21,0 @@ } |
@@ -72,7 +72,7 @@ /* eslint-disable no-empty */ | ||
return true; | ||
} catch (e) { | ||
} catch (_e) { | ||
if (didInit) { | ||
try { | ||
await rm(path.join(root, '.git'), { recursive: true, force: true }); | ||
} catch (_) {} | ||
} catch (_e) {} | ||
} | ||
@@ -79,0 +79,0 @@ return false; |
@@ -15,3 +15,3 @@ // Modified from: https://github.com/vercel/next.js/blob/2425f4703c4c6164cecfdb6aa8f80046213f0cc6/packages/create-next-app/helpers/is-online.ts | ||
return httpsProxy !== 'null' ? httpsProxy : undefined; | ||
} catch (e) { | ||
} catch (_e) { | ||
return; | ||
@@ -18,0 +18,0 @@ } |
@@ -26,3 +26,3 @@ // Modified from: https://github.com/vercel/next.js/blob/2425f4703c4c6164cecfdb6aa8f80046213f0cc6/packages/create-next-app/helpers/examples.ts | ||
res = await got.head(url, { headers }); | ||
} catch (e) { | ||
} catch (_e) { | ||
return false; | ||
@@ -52,3 +52,3 @@ } | ||
infoResponse = await got(repo, { headers }); | ||
} catch (error) { | ||
} catch (_error) { | ||
throw new Error(`Unable to fetch ${repo}`); | ||
@@ -55,0 +55,0 @@ } |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
95089
1688