Socket
Socket
Sign inDemoInstall

rimraf

Package Overview
Dependencies
Maintainers
1
Versions
82
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

rimraf - npm Package Compare versions

Comparing version 4.0.3 to 4.0.4

dist/cjs/src/package.json

2

dist/cjs/package.json
{
"name": "rimraf",
"version": "4.0.3",
"version": "4.0.4",
"main": "./dist/cjs/src/index.js",

@@ -5,0 +5,0 @@ "module": "./dist/mjs/src/index.js",

@@ -19,4 +19,4 @@ "use strict";

const ignore_enoent_js_1 = require("./ignore-enoent.js");
const fs_1 = require("./fs");
const { rename, unlink, rmdir, chmod } = fs_1.promises;
const fs_js_1 = require("./fs.js");
const { rename, unlink, rmdir, chmod } = fs_js_1.promises;
const readdir_or_error_js_1 = require("./readdir-or-error.js");

@@ -41,3 +41,3 @@ // crypto.randomBytes is much slower, and Math.random() is enough here

try {
(0, fs_1.unlinkSync)(path);
(0, fs_js_1.unlinkSync)(path);
}

@@ -47,3 +47,3 @@ catch (er) {

try {
return (0, fs_1.chmodSync)(path, 0o666);
return (0, fs_js_1.chmodSync)(path, 0o666);
}

@@ -119,3 +119,3 @@ catch (er2) {

}
return (0, ignore_enoent_js_1.ignoreENOENTSync)(() => tmpUnlinkSync(path, tmp, fs_1.rmdirSync));
return (0, ignore_enoent_js_1.ignoreENOENTSync)(() => tmpUnlinkSync(path, tmp, fs_js_1.rmdirSync));
};

@@ -125,5 +125,5 @@ exports.rimrafMoveRemoveSync = rimrafMoveRemoveSync;

const tmpFile = (0, path_1.resolve)(tmp, uniqueFilename(path));
(0, fs_1.renameSync)(path, tmpFile);
(0, fs_js_1.renameSync)(path, tmpFile);
return rmSync(tmpFile);
};
//# sourceMappingURL=rimraf-move-remove.js.map

@@ -56,6 +56,2 @@ "use strict";

exports.rimrafPosixSync = rimrafPosixSync;
module.exports = {
rimrafPosix: exports.rimrafPosix,
rimrafPosixSync: exports.rimrafPosixSync,
};
//# sourceMappingURL=rimraf-posix.js.map
{
"name": "rimraf",
"version": "4.0.3",
"version": "4.0.4",
"main": "./dist/cjs/src/index.js",

@@ -5,0 +5,0 @@ "module": "./dist/mjs/src/index.js",

@@ -16,3 +16,3 @@ // https://youtu.be/uhRWMGBjlO8?t=537

import { ignoreENOENT, ignoreENOENTSync } from './ignore-enoent.js';
import { chmodSync, promises as fsPromises, renameSync, rmdirSync, unlinkSync, } from './fs';
import { chmodSync, promises as fsPromises, renameSync, rmdirSync, unlinkSync, } from './fs.js';
const { rename, unlink, rmdir, chmod } = fsPromises;

@@ -19,0 +19,0 @@ import { readdirOrError, readdirOrErrorSync } from './readdir-or-error.js';

@@ -51,6 +51,2 @@ // the simple recursive removal, where unlink and rmdir are atomic

};
module.exports = {
rimrafPosix,
rimrafPosixSync,
};
//# sourceMappingURL=rimraf-posix.js.map
{
"name": "rimraf",
"version": "4.0.3",
"version": "4.0.4",
"main": "./dist/cjs/src/index.js",

@@ -5,0 +5,0 @@ "module": "./dist/mjs/src/index.js",

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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