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

converter-toless-plugin

Package Overview
Dependencies
Maintainers
1
Versions
96
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

converter-toless-plugin - npm Package Compare versions

Comparing version 0.1.2543 to 0.1.2544

15

lib/components/utils.js

@@ -15,2 +15,3 @@ "use strict";

const fs = require("fs");
const del = require('del');
function getNameOf(arry, name) {

@@ -56,14 +57,4 @@ let indexofar = -1;

function deleteDirectory(dirPath) {
return new Promise((s, r) => {
try {
if (fs.statSync(dirPath).isDirectory()) {
fs.rmdir(dirPath, s);
}
else {
r(`Trying to delete ${dirPath} as directory`);
}
}
catch (err) {
r(err);
}
return __awaiter(this, void 0, void 0, function* () {
yield del(dirPath);
});

@@ -70,0 +61,0 @@ }

3

package.json
{
"name": "converter-toless-plugin",
"version": "0.1.2543",
"version": "0.1.2544",
"description": "this is a plugin",

@@ -31,2 +31,3 @@ "main": "./lib/index.js",

"child_process": "^1.0.2",
"del": "^6.0.0",
"express": "^4.17.1",

@@ -33,0 +34,0 @@ "mime-types": "^2.1.28",

@@ -6,5 +6,5 @@ import { join } from "path"

const del = require('del');
export function getNameOf(arry: Compiler[], name: string) {

@@ -52,14 +52,4 @@ let indexofar = -1;

export function deleteDirectory(dirPath: string): Promise<any> {
return new Promise((s, r) => {
try {
if (fs.statSync(dirPath).isDirectory()) {
fs.rmdir(dirPath, s)
} else {
r(`Trying to delete ${dirPath} as directory`)
}
} catch (err) {
r(err)
}
})
export async function deleteDirectory(dirPath: string): Promise<any> {
await del(dirPath)
}

@@ -66,0 +56,0 @@

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