@verdaccio/core
Advanced tools
Comparing version 6.0.0-6-next.53 to 6.0.0-6-next.54
@@ -9,3 +9,3 @@ "use strict"; | ||
exports.createTempStorageFolder = createTempStorageFolder; | ||
var _promises = require("fs/promises"); | ||
var _fs = _interopRequireDefault(require("fs")); | ||
var _os = _interopRequireDefault(require("os")); | ||
@@ -17,2 +17,7 @@ var _path = _interopRequireDefault(require("path")); | ||
}; | ||
exports.Files = Files; | ||
const { | ||
mkdir, | ||
mkdtemp | ||
} = _fs.default.promises ? _fs.default.promises : require('fs/promises'); | ||
@@ -24,5 +29,4 @@ /** | ||
*/ | ||
exports.Files = Files; | ||
async function createTempFolder(prefix) { | ||
return await (0, _promises.mkdtemp)(_path.default.join(_os.default.tmpdir(), prefix)); | ||
return await mkdtemp(_path.default.join(_os.default.tmpdir(), prefix)); | ||
} | ||
@@ -39,5 +43,5 @@ | ||
const storageFolder = _path.default.join(tempFolder, folder); | ||
await (0, _promises.mkdir)(storageFolder); | ||
await mkdir(storageFolder); | ||
return storageFolder; | ||
} | ||
//# sourceMappingURL=file-utils.js.map |
# @verdaccio/core | ||
## 6.0.0-6-next.54 | ||
### Minor Changes | ||
- ef88da3b: feat: improve support for fs promises older nodejs | ||
## 6.0.0-6-next.53 | ||
@@ -4,0 +10,0 @@ |
{ | ||
"name": "@verdaccio/core", | ||
"version": "6.0.0-6-next.53", | ||
"version": "6.0.0-6-next.54", | ||
"description": "core utilities", | ||
@@ -22,4 +22,3 @@ "keywords": [ | ||
"engines": { | ||
"node": ">=14", | ||
"npm": ">=6" | ||
"node": ">=12" | ||
}, | ||
@@ -49,3 +48,3 @@ "repository": { | ||
"typedoc-plugin-missing-exports": "latest", | ||
"@verdaccio/types": "11.0.0-6-next.18" | ||
"@verdaccio/types": "11.0.0-6-next.19" | ||
}, | ||
@@ -52,0 +51,0 @@ "funding": { |
@@ -1,2 +0,2 @@ | ||
import { mkdir, mkdtemp } from 'fs/promises'; | ||
import fs from 'fs'; | ||
import os from 'os'; | ||
@@ -9,2 +9,4 @@ import path from 'path'; | ||
const { mkdir, mkdtemp } = fs.promises ? fs.promises : require('fs/promises'); | ||
/** | ||
@@ -11,0 +13,0 @@ * Create a temporary folder. |
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
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
Found 2 instances 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
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
Found 1 instance in 1 package
143778
2469
2