Socket
Socket
Sign inDemoInstall

tmp

Package Overview
Dependencies
0
Maintainers
1
Versions
36
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.2.2 to 0.2.3

CHANGELOG.md

25

lib/tmp.js

@@ -17,3 +17,2 @@ /*!

const _c = { fs: fs.constants, os: os.constants };
const rimraf = require('rimraf');

@@ -47,4 +46,3 @@ /*

// API change in fs.rmdirSync leads to error when passing in a second parameter, e.g. the callback
FN_RMDIR_SYNC = fs.rmdirSync.bind(fs),
FN_RIMRAF_SYNC = rimraf.sync;
FN_RMDIR_SYNC = fs.rmdirSync.bind(fs);

@@ -55,2 +53,23 @@ let

/**
* Recursively remove a directory and its contents.
*
* @param {string} dirPath path of directory to remove
* @param {Function} callback
* @private
*/
function rimraf(dirPath, callback) {
return fs.rm(dirPath, { recursive: true }, callback);
}
/**
* Recursively remove a directory and its contents, synchronously.
*
* @param {string} dirPath path of directory to remove
* @private
*/
function FN_RIMRAF_SYNC(dirPath) {
return fs.rmSync(dirPath, { recursive: true });
}
/**
* Gets a temporary file name.

@@ -57,0 +76,0 @@ *

8

package.json
{
"name": "tmp",
"version": "0.2.2",
"version": "0.2.3",
"description": "Temporary file and directory creator",

@@ -25,7 +25,5 @@ "author": "KARASZI István <github@spam.raszi.hu> (http://raszi.hu/)",

"engines": {
"node": ">=14"
"node": ">=14.14"
},
"dependencies": {
"rimraf": "^5.0.5"
},
"dependencies": {},
"devDependencies": {

@@ -32,0 +30,0 @@ "eslint": "^6.3.0",

@@ -56,5 +56,10 @@ # Tmp

### Version 0.2.3
- Node version <= 14.4 has been dropped.
- rimraf has been dropped from the dependencies
### Version 0.2.2
Since version 0.2.2, all support for node version <= 12 has been dropped.
Since version 0.2.2, all support for node version <= 14 has been dropped.

@@ -61,0 +66,0 @@ ### Version 0.1.0

SocketSocket SOC 2 Logo

Product

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

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc