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

@verdaccio/core

Package Overview
Dependencies
Maintainers
4
Versions
64
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@verdaccio/core - npm Package Compare versions

Comparing version 6.0.0-6-next.53 to 6.0.0-6-next.54

12

build/file-utils.js

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

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