converter-toless-plugin
Advanced tools
Comparing version 0.1.2543 to 0.1.2544
@@ -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 @@ } |
{ | ||
"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
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
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
64275
9
1233
+ Addeddel@^6.0.0
+ Added@nodelib/fs.scandir@2.1.5(transitive)
+ Added@nodelib/fs.stat@2.0.5(transitive)
+ Added@nodelib/fs.walk@1.2.8(transitive)
+ Addedaggregate-error@3.1.0(transitive)
+ Addedarray-union@2.1.0(transitive)
+ Addedbraces@3.0.3(transitive)
+ Addedclean-stack@2.2.0(transitive)
+ Addeddel@6.1.1(transitive)
+ Addeddir-glob@3.0.1(transitive)
+ Addedfast-glob@3.3.2(transitive)
+ Addedfastq@1.17.1(transitive)
+ Addedfill-range@7.1.1(transitive)
+ Addedglob-parent@5.1.2(transitive)
+ Addedglobby@11.1.0(transitive)
+ Addedignore@5.3.2(transitive)
+ Addedindent-string@4.0.0(transitive)
+ Addedis-extglob@2.1.1(transitive)
+ Addedis-glob@4.0.3(transitive)
+ Addedis-number@7.0.0(transitive)
+ Addedis-path-cwd@2.2.0(transitive)
+ Addedis-path-inside@3.0.3(transitive)
+ Addedmerge2@1.4.1(transitive)
+ Addedmicromatch@4.0.8(transitive)
+ Addedp-map@4.0.0(transitive)
+ Addedpath-type@4.0.0(transitive)
+ Addedpicomatch@2.3.1(transitive)
+ Addedqueue-microtask@1.2.3(transitive)
+ Addedreusify@1.0.4(transitive)
+ Addedrimraf@3.0.2(transitive)
+ Addedrun-parallel@1.2.0(transitive)
+ Addedslash@3.0.0(transitive)
+ Addedto-regex-range@5.0.1(transitive)