Comparing version 1.0.1 to 1.1.0
@@ -0,1 +1,10 @@ | ||
1.1.0 / 2020-05-13 | ||
* More strict default permissions. | ||
1.0.1 / 2019-05-24 | ||
================== | ||
* Fix bug in default arguments to writeFile. | ||
1.0.0 / 2019-01-24 | ||
@@ -2,0 +11,0 @@ ================== |
@@ -38,3 +38,3 @@ /** | ||
Dir.prototype.create = function(dirname) { | ||
return fs.mkdirSync(path.normalize(dirname), 0777); | ||
return fs.mkdirSync(path.normalize(dirname), 0700); //0700 we can read,write and execute | ||
}; | ||
@@ -41,0 +41,0 @@ |
@@ -37,3 +37,3 @@ /** | ||
File.prototype.create = function(filename) { | ||
return fs.writeFileSync(path.normalize(filename), ''); | ||
return fs.writeFileSync(path.normalize(filename), '',{mode:0600}); //Go use 0600 mode for file, see ref: https://golang.org/src/io/ioutil/tempfile.go | ||
}; | ||
@@ -40,0 +40,0 @@ |
{ | ||
"name": "temporary", | ||
"version": "1.0.1", | ||
"version": "1.1.0", | ||
"description": "The lord of tmp.", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
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
22292
18