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

Resolves #37, write temporary file atomically #38

Closed
wants to merge 2 commits into from

Conversation

ggrossetie
Copy link
Owner

No description provided.

@@ -2,7 +2,7 @@
const util = require('util')
const fs = require('fs')
const path = require('path')
const writeFile = util.promisify(fs.writeFile)
const writeFileAtomic = util.promisify(require('write-file-atomic'))
Copy link
Collaborator

@thom4parisot thom4parisot Feb 2, 2019

Choose a reason for hiding this comment

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

Promisification to be removed when npm/write-file-atomic#33 is addressed.

Copy link
Collaborator

Choose a reason for hiding this comment

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

And maybe not so soon because the module author is departing npm before it stops supporting Node@4 😢

Copy link
Owner Author

Choose a reason for hiding this comment

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

Yeah, I heard about the NPM layoffs 😞

Copy link
Collaborator

@thom4parisot thom4parisot May 27, 2019

Choose a reason for hiding this comment

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

write-file-atomic@3 has been released with Promise support 👍

@ggrossetie
Copy link
Owner Author

Shouldn't be needed anymore because the processor is now taking care of writing the file in #33

@ggrossetie ggrossetie closed this May 3, 2019
@ggrossetie ggrossetie deleted the issue-37-atomic-write branch October 26, 2019 09:55
@ggrossetie ggrossetie restored the issue-37-atomic-write branch October 26, 2019 09:55
@ggrossetie ggrossetie deleted the issue-37-atomic-write branch August 15, 2020 10:43
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.

2 participants