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

Allow setting files UNIX permissions #92

Merged
merged 1 commit into from
Mar 14, 2025
Merged

Conversation

quyse
Copy link
Contributor

@quyse quyse commented Mar 13, 2025

This PR allows to set file mode (UNIX permissions) for files to zip. I needed it mostly for executable bit, but decided to add more general mode parameter. I did not test my changes too thoroughly, but they work for me (running it in a Cloudflare worker). Thanks for the library btw, needed exactly what it does!

Copy link
Owner

@Touffy Touffy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for this PR.

Please update src/index.ts and index.d.ts to document the new mode field in input types. The types in src/input.ts are for internal use (and if you follow my recommendation about setting a mode in normalizeInput, mode will not be optional for them).

(edit: I see that you were doing just that as I was writing my review)

@Touffy Touffy added the enhancement New feature or request label Mar 14, 2025
@Touffy Touffy merged commit 5985629 into Touffy:master Mar 14, 2025
1 check passed
Touffy added a commit that referenced this pull request Mar 14, 2025
Allow setting files UNIX permissions
@Touffy
Copy link
Owner

Touffy commented Mar 14, 2025

Thanks again for your contribution. I have published the new versions on NPM, and a new release here.

@quyse
Copy link
Contributor Author

quyse commented Mar 14, 2025

Thanks again for your contribution. I have published the new versions on NPM, and a new release here.

That's great, thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants