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

Fix documentation rendering #965

Draft
wants to merge 49 commits into
base: master
Choose a base branch
from
Draft

Conversation

ElliotFriend
Copy link

I'm trying to get all the JSDoc rendering to work now that the SDK has had a chance to settle a bit with its inclusion of the Soroban functionality.

Refs: #920

Copy link

github-actions bot commented May 14, 2024

Size Change: +72.2 kB (+0.6%)

Total Size: 12.1 MB

Filename Size Change
dist/stellar-sdk.js 6.75 MB +47.5 kB (+0.71%)
dist/stellar-sdk.min.js 5.32 MB +24.7 kB (+0.47%)

compressed-size-action

@Shaptic
Copy link
Contributor

Shaptic commented May 14, 2024

Yo this is absolutely Herculean, you freakin' rock

Since the comments clearly say "don't make this class yourself,"
it might make sense to mark them as `@private` so they don't show
up in the documentation.

The doc pages for those classes can still be visited, but they
don't show up in the sidebar to the left, unless you specifically
navigate to one of them. (Or, if you click a link for what the
return type on the `Horizon.Server.effects()` method, for example
I don't _think_ they're accessible by SDK users, so I think it
makes sense to not render them in the docs?
Copy link

socket-security bot commented May 17, 2024

New dependencies detected. Learn more about Socket for GitHub ↗︎

Package New capabilities Transitives Size Publisher
npm/clean-jsdoc-theme@4.3.0 filesystem Transitive: environment, network, shell +17 7.89 MB ankdev

View full report↗︎

Copy link

socket-security bot commented May 17, 2024

🚨 Potential security issues detected. Learn more about Socket for GitHub ↗︎

To accept the risk, merge this PR and you will not be notified again.

Alert Package NoteSource
Network access npm/clean-css@5.3.3
Filesystem access npm/clean-css@5.3.3
Network access npm/clean-css@5.3.3
Network access npm/clean-css@5.3.3
Filesystem access npm/clean-jsdoc-theme@4.3.0

View full report↗︎

Next steps

What is network access?

This module accesses the network.

Packages should remove all network access that is functionally unnecessary. Consumers should audit network access to ensure legitimate use.

What is filesystem access?

Accesses the file system, and could potentially read sensitive data.

If a package must read the file system, clarify what it will read and ensure it reads only what it claims to. If appropriate, packages can leave file system access to consumers and operate on data passed to it instead.

Take a deeper look at the dependency

Take a moment to review the security alert above. Review the linked package source code to understand the potential risk. Ensure the package is not malicious before proceeding. If you're unsure how to proceed, reach out to your security team or ask the Socket team for help at support [AT] socket [DOT] dev.

Remove the package

If you happen to install a dependency that Socket reports as Known Malware you should immediately remove it and select a different dependency. For other alert types, you may may wish to investigate alternative packages or consider if there are other ways to mitigate the specific risk posed by the dependency.

Mark a package as acceptable risk

To ignore an alert, reply with a comment starting with @SocketSecurity ignore followed by a space separated list of ecosystem/package-name@version specifiers. e.g. @SocketSecurity ignore npm/foo@1.0.0 or ignore all packages with @SocketSecurity ignore-all

  • @SocketSecurity ignore npm/clean-css@5.3.3
  • @SocketSecurity ignore npm/clean-jsdoc-theme@4.3.0

@@ -2,8 +2,9 @@ import { xdr, cereal } from "@stellar/stellar-base";
import type { AssembledTransaction } from "./assembled_transaction";

/**
* The default timeout for waiting for a transaction to be included in a block.
* The default timebounds, in seconds, during which a transaction will be valid.
Copy link
Contributor

Choose a reason for hiding this comment

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

cc @chadoh I forget, is this from the creation of the transaction, assembly, signing, or submission? 😅 we should clarify that here

Copy link
Author

Choose a reason for hiding this comment

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

I changed this wording, and i might've been mistaken, because I think I saw it being used on a tx builder's setTimeout() method

Edit: I'm a dummy, that's not even what you were asking about hehehe

Copy link
Author

Choose a reason for hiding this comment

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

Made an attempt at addressing this in 462e5f6

Copy link
Contributor

Choose a reason for hiding this comment

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

You need it during initial simulation, but it also gets reset to this value again right before signing.

Choose a reason for hiding this comment

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

To withdrawl ?

@8012145393085
Copy link

Hello world

1 similar comment
@8012145393085
Copy link

Hello world

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

5 participants