🎩 You're Invited:Meet the Socket team at Black Hat in Las Vegas, August 3-6.RSVP
Sign In

write-file-atomic

Package Overview
Dependencies
Maintainers
6
Versions
35
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

write-file-atomic - npm Package Compare versions

Comparing version
7.0.0
to
7.0.1
+8
-6
lib/index.js

@@ -8,3 +8,3 @@ 'use strict'

const fs = require('fs')
const MurmurHash3 = require('imurmurhash')
const crypto = require('node:crypto')
const { onExit } = require('signal-exit')

@@ -32,7 +32,9 @@ const path = require('path')

return filename + '.' +
MurmurHash3(__filename)
.hash(String(process.pid))
.hash(String(threadId))
.hash(String(++invocations))
.result()
crypto.createHash('sha1')
.update(__filename)
.update(String(process.pid))
.update(String(threadId))
.update(String(++invocations))
.digest()
.readUInt32BE(0)
}

@@ -39,0 +41,0 @@

{
"name": "write-file-atomic",
"version": "7.0.0",
"version": "7.0.1",
"description": "Write files in an atomic fashion w/configurable ownership",

@@ -31,8 +31,7 @@ "main": "./lib/index.js",

"dependencies": {
"imurmurhash": "^0.1.4",
"signal-exit": "^4.0.1"
},
"devDependencies": {
"@npmcli/eslint-config": "^5.0.0",
"@npmcli/template-oss": "4.27.1",
"@npmcli/eslint-config": "^6.0.0",
"@npmcli/template-oss": "4.28.1",
"tap": "^16.0.1"

@@ -50,3 +49,3 @@ },

"windowsCI": false,
"version": "4.27.1",
"version": "4.28.1",
"publish": "true"

@@ -53,0 +52,0 @@ },