From 3308eb4cf8544a04e3588e04cc964a900d4a0a13 Mon Sep 17 00:00:00 2001 From: Zach Leatherman Date: Thu, 11 Jul 2024 10:42:03 -0500 Subject: [PATCH] One more audit down https://github.com/11ty/eleventy/issues/3299 --- lib/copy.js | 4 ++-- package.json | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/copy.js b/lib/copy.js index ce17c01..d50b599 100644 --- a/lib/copy.js +++ b/lib/copy.js @@ -6,7 +6,7 @@ var fs = require('graceful-fs'); var path = require('path'); var EventEmitter = require('events').EventEmitter; var pify = require('pify'); -var mkdirp = require('mkdirp'); +var mkdirp = require('mkdirp').mkdirp; var rimraf = require('rimraf').rimraf; var junk = require('junk'); var errno = require('errno'); @@ -27,7 +27,7 @@ var EVENT_COPY_FILE_START = 'copyFileStart'; var EVENT_COPY_FILE_ERROR = 'copyFileError'; var EVENT_COPY_FILE_COMPLETE = 'copyFileComplete'; -var mkdir = pify(mkdirp, Promise); +var mkdir = mkdirp; var stat = pify(fs.stat, Promise); var lstat = pify(fs.lstat, Promise); var readlink = pify(fs.readlink, Promise); diff --git a/package.json b/package.json index ec410fc..32e0f61 100644 --- a/package.json +++ b/package.json @@ -50,7 +50,7 @@ "graceful-fs": "^4.2.11", "junk": "^1.0.1", "maximatch": "^0.1.0", - "mkdirp": "^0.5.1", + "mkdirp": "^3.0.1", "pify": "^2.3.0", "promise": "^7.0.1", "rimraf": "^5.0.7",