Comparing version 3.1.0 to 4.0.0
@@ -5,5 +5,5 @@ 'use strict'; | ||
const {promisify} = require('util'); | ||
const semver = require('semver'); | ||
const semverGte = require('semver/functions/gte'); | ||
const useNativeRecursiveOption = semver.satisfies(process.version, '>=10.12.0'); | ||
const useNativeRecursiveOption = semverGte(process.version, '10.12.0'); | ||
@@ -25,3 +25,2 @@ // https://github.com/nodejs/node/issues/8987 | ||
const processOptions = options => { | ||
// https://github.com/sindresorhus/make-dir/issues/18 | ||
const defaults = { | ||
@@ -96,3 +95,3 @@ mode: 0o777, | ||
} | ||
} catch (_) { | ||
} catch { | ||
throw error; | ||
@@ -150,3 +149,3 @@ } | ||
} | ||
} catch (_) { | ||
} catch { | ||
throw error; | ||
@@ -153,0 +152,0 @@ } |
{ | ||
"name": "make-dir", | ||
"version": "3.1.0", | ||
"version": "4.0.0", | ||
"description": "Make a directory and its parents if needed - Think `mkdir -p`", | ||
@@ -11,6 +11,6 @@ "license": "MIT", | ||
"email": "sindresorhus@gmail.com", | ||
"url": "sindresorhus.com" | ||
"url": "https://sindresorhus.com" | ||
}, | ||
"engines": { | ||
"node": ">=8" | ||
"node": ">=10" | ||
}, | ||
@@ -29,4 +29,2 @@ "scripts": { | ||
"directories", | ||
"dir", | ||
"dirs", | ||
"folders", | ||
@@ -47,8 +45,8 @@ "directory", | ||
"dependencies": { | ||
"semver": "^6.0.0" | ||
"semver": "^7.5.3" | ||
}, | ||
"devDependencies": { | ||
"@types/graceful-fs": "^4.1.3", | ||
"@types/node": "^13.7.1", | ||
"ava": "^1.4.0", | ||
"@types/node": "^14.14.6", | ||
"ava": "^2.4.0", | ||
"codecov": "^3.2.0", | ||
@@ -58,6 +56,12 @@ "graceful-fs": "^4.1.15", | ||
"path-type": "^4.0.0", | ||
"tempy": "^0.2.1", | ||
"tsd": "^0.11.0", | ||
"xo": "^0.25.4" | ||
"tempy": "^1.0.0", | ||
"tsd": "^0.13.1", | ||
"xo": "^0.34.2" | ||
}, | ||
"nyc": { | ||
"reporter": [ | ||
"text", | ||
"lcov" | ||
] | ||
} | ||
} |
@@ -1,2 +0,2 @@ | ||
# make-dir [![Build Status](https://travis-ci.org/sindresorhus/make-dir.svg?branch=master)](https://travis-ci.org/sindresorhus/make-dir) [![codecov](https://codecov.io/gh/sindresorhus/make-dir/branch/master/graph/badge.svg)](https://codecov.io/gh/sindresorhus/make-dir) | ||
# make-dir [![codecov](https://codecov.io/gh/sindresorhus/make-dir/branch/main/graph/badge.svg)](https://codecov.io/gh/sindresorhus/make-dir) | ||
@@ -3,0 +3,0 @@ > Make a directory and its parents if needed - Think `mkdir -p` |
Sorry, the diff of this file is not supported yet
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
9913
174
+ Addedsemver@7.6.3(transitive)
- Removedsemver@6.3.1(transitive)
Updatedsemver@^7.5.3