-
Notifications
You must be signed in to change notification settings - Fork 18
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
Segment group batch actions #7164
Changes from 24 commits
4e86f6d
b97c9d8
ea18ffd
98e458f
071d0e1
d2d8861
e6ed640
5472e53
0a4c7d2
31c3f87
e829f1e
0f0f402
c879a10
e0440d3
8cab227
ea8b1c9
5944d85
8781956
e809bca
ca20df1
a4b89e2
b5a2e99
9db1f1e
6c7bedd
cc866f5
c8ca503
180bddb
b9a11ed
4939928
5f872b1
ecdf655
fc65635
f3156ea
1198f1d
9c1c06f
cdf453a
2803c61
76a09af
720e052
bb1e286
3baa2aa
caa361a
a78963f
bebb08f
a4dd2cd
e3892db
4d35fca
eef4546
414455e
41034cc
eddc45e
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
class TransFormStream {} | ||
|
||
let mockedWindow = false; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. whats the purpose of this variable? if it's needed for some reason, you can add a comment to it. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Omitting it doesn't seem to break anything, so I left it out. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
The linked article is a bit confusing (generally, w3schools ist not the best resource; I recommend MDN instead). However, the specific MDN article is also not perfect (it mentions module scope, but doesn't really explain when it comes into play). |
||
|
||
// Mock zip.js and TransformStream during tests | ||
if (!global.window) { | ||
// @ts-expect-error | ||
global.TransformStream = TransFormStream; | ||
mockedWindow = true; | ||
} | ||
|
||
const Zip = require("@zip.js/zip.js"); | ||
|
||
export default Zip; |
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 know this isn't pretty, but
Zip.Entry
doesnt work because the import of the wrapper is somehow not foundThere 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 just pushed a commit (I hope the CI passes), which improves the typing a bit.
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.
nice, thank you!