-
Notifications
You must be signed in to change notification settings - Fork 26
feat!: Expose updated JS Client API via js-client.api
package
#246
Conversation
1. Move marine-related part into FJS repo (DXJ184) 2. Move towards component-oriented architecture (DXJ183) 3. Different JS Client distros for node.js and web (DXJ185)
js-client.api
package
@@ -67,6 +43,7 @@ export const callFunction = async (rawFnArgs: Array<any>, def: FunctionCallDef, | |||
* Convenience function to support Aqua `service` generation backend | |||
* The compiler only need to generate a call the function and provide the corresponding definitions and the air script | |||
* | |||
(seq |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
accident?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fixed
packages/client/api/src/util.ts
Outdated
*/ | ||
export const getDefaultPeer = (): Promise<IFluenceClient> => { | ||
return new Promise((resolve, reject) => { | ||
let interval: NodeJS.Timer | undefined; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
if it's for frontend that would be a number not NodeJS.Timer. Doesn't reallty affect anything right here but it's more of an issue in general that types should be from Browser environment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've decided to remove it whatsoever and added a comment explaining why I don't want to risk any non-necessary types to appear in API
packages/client/api/src/util.ts
Outdated
export const getDefaultPeer = (): Promise<IFluenceClient> => { | ||
return new Promise((resolve, reject) => { | ||
let interval: NodeJS.Timer | undefined; | ||
let hits = 50; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
seems arbitrary. What it depends on? Do you think each lib user will have roughly the same requirements ceiling of 5 seconds loading time?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've added a couple of comments
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please address my comments before merging
No description provided.