pathwatcher
Advanced tools
Comparing version 0.16.0 to 0.17.0
@@ -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 @@ { |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
47302
18