Describe the bug
When using the Ninetailed class constructor from the JS SDK, there are two parameters to specify a URL:
- a
url property in the first object of type ninetailedApiClientInstanceOrOptions
- a
url property in the second object of type options
Only the second url property is actually used by the constructor.
Expected behavior
A clear and concise description of what you expected to happen.
Have only url parameter. Either:
- Remove the
url property of the first parameter to keep the code as it functions now, OR
- Remove the
url property of the second parameter to more closely match the type signature of constructing a NinetailedApiClient
Versions
Please list packages version, browser, node version, etc.
Present on latest 7.x.x package.
Additional context
Add any other context about the problem here.
Code: https://github.com/ninetailed-inc/experience.js/blob/main/packages/sdks/javascript/src/lib/Ninetailed.ts#L102
Describe the bug
When using the Ninetailed class constructor from the JS SDK, there are two parameters to specify a URL:
urlproperty in the first object of typeninetailedApiClientInstanceOrOptionsurlproperty in the second object of typeoptionsOnly the second
urlproperty is actually used by the constructor.Expected behavior
A clear and concise description of what you expected to happen.
Have only
urlparameter. Either:urlproperty of the first parameter to keep the code as it functions now, ORurlproperty of the second parameter to more closely match the type signature of constructing aNinetailedApiClientVersions
Please list packages version, browser, node version, etc.
Present on latest 7.x.x package.
Additional context
Add any other context about the problem here.
Code: https://github.com/ninetailed-inc/experience.js/blob/main/packages/sdks/javascript/src/lib/Ninetailed.ts#L102