Closed
Description
Thank you for providing this JS SDK.
The dependency make-error-cause
has a section in it where a function name is redeclared as a variable:
function makeErrorCause(value, _super) {
if (_super === void 0) { _super = makeErrorCause.BaseError; }
return makeError(value, _super);
}
var makeErrorCause;
This causes compilers like SWC to throw an error because this is technically not allowed in JS modules.
make-error-cause
is a dependency of the popsicle
http library but both seem like they could be removed and replaced with the native fetch library, eliminating several dependencies, or by using a different HTTP library such as axios.