Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: support certificate related options #612

Merged
merged 3 commits into from Jan 27, 2022
Merged

Conversation

kitsonk
Copy link
Contributor

@kitsonk kitsonk commented Jan 22, 2022

This PR enables support for TLS certificate related options for registry completions and caching remote dependencies which are being added to CLI.

Ref: denoland/deno#13467

@kitsonk kitsonk requested a review from dsherret January 22, 2022 09:02
Copy link
Member

@dsherret dsherret left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Almost LGTM. Just one comment.

"scope": "window"
},
"deno.unsafelyIgnoreCertificateErrors": {
"type": "array",
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this should be a boolean?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No.

See

  /// An option, if set, will unsafely ignore certificate errors when fetching
  /// remote resources.
  #[serde(default)]
  pub unsafely_ignore_certificate_errors: Option<Vec<String>>,

I need to change the .d.ts files to string[] | null.

/** Determine if the extension should be type checking against the unstable
* APIs. */
unstable: boolean;
unstable: string[] | null;
Copy link
Member

@dsherret dsherret Jan 24, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Other one (not unstable)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🤦

@kitsonk kitsonk merged commit c9b22a7 into denoland:main Jan 27, 2022
@kitsonk kitsonk deleted the fix_certs branch January 27, 2022 09:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants