Skip to content
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

Prevent override of file if multiple XHR for same endpoint found and treat search params as folder #19

Open
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

sbimochan
Copy link

@sbimochan sbimochan commented Apr 15, 2024

Fixes #18

Context

Previously, the writeFileSync function would overwrite existing files without any checks, potentially leading to data loss. This change enhances the safety and reliability of file writing operations by preventing accidental overwrites.

What's Changed

Added a function to generate a unique filename dynamically.
Modified the file writing logic to use the generated unique filename.

@kshitish182
Copy link

Great feature! This was causing me a lot of data issues.

@sbimochan sbimochan changed the title Prevent override of file if multiple XHR for same endpoint found Prevent override of file if multiple XHR for same endpoint found and treat search params as folder Apr 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

File override if variations using query params
2 participants