Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

pathwatcher

Package Overview
Dependencies
Maintainers
2
Versions
130
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

pathwatcher - npm Package Compare versions

Comparing version 0.16.0 to 0.17.0

8

lib/file.js

@@ -143,3 +143,3 @@ (function() {

File.prototype.writeFileWithPrivilegeEscalationSync = function(filePath, text) {
var authopen, error;
var error;
try {

@@ -150,5 +150,5 @@ return fs.writeFileSync(filePath, text);

if (error.code === 'EACCES' && process.platform === 'darwin') {
authopen = '/usr/libexec/authopen';
if (runas(authopen, ['-w', '-c', filePath], {
stdin: text
if (runas('dd', ["of=" + filePath], {
stdin: text,
admin: true
}) !== 0) {

@@ -155,0 +155,0 @@ throw error;

@@ -5,3 +5,3 @@ {

"description": "Watch file events",
"version": "0.16.0",
"version": "0.17.0",
"licenses": [

@@ -8,0 +8,0 @@ {

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc