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

temporary

Package Overview
Dependencies
Maintainers
2
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

temporary - npm Package Compare versions

Comparing version 1.0.1 to 1.1.0

LICENSE

9

History.md

@@ -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 @@ ==================

2

lib/dir.js

@@ -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": [

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