Closed sp90 closed 10 months ago
Use this polyfill for now, I'll include it in next version
// Polyfill for Promise.withResolvers on nodejs
(Promise as any).withResolvers ||
((Promise as any).withResolvers = function withResolvers() {
var a,
b,
c = new this(function (resolve: Function, reject: Function) {
a = resolve;
b = reject;
});
return { resolve: a, reject: b, promise: c };
});
When trying to create an archive in the browser
chrome v120
i get thethis is probably due to it not being supported yet in most browsers suggesting an alternative implementation like
I know it doesn't look as nice in the code but its gonna have a much better browser support