Socket
Socket
Sign inDemoInstall

ts-purify

Package Overview
Dependencies
13
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 3.0.3 to 3.0.4

11

dist/index.js

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

const files = fs_1.readdirSync(dir);
files.forEach((file) => {
for (const file of files) {
if (file === 'node_modules') {
continue;
}
const fullPath = path_1.join(dir, file);

@@ -26,3 +29,3 @@ if (fs_1.statSync(fullPath).isDirectory()) {

}
});
}
};

@@ -66,3 +69,3 @@ async function cleanAllFiles(srcDir, destDir, options = {}) {

// don't map/await these, just log on failure
toDelete.forEach(async (file) => {
for (const file of toDelete) {
if (fs_1.existsSync(file) &&

@@ -79,3 +82,3 @@ !(options.ignorePattern && minimatch_1.default(file, options.ignorePattern))) {

}
});
}
}, { watchProject: options.watchProject });

@@ -82,0 +85,0 @@ }

{
"name": "ts-purify",
"version": "3.0.3",
"version": "3.0.4",
"description": "ensure compiled typescript files are removed when the corresponding source files are",

@@ -5,0 +5,0 @@ "author": "insidewhy <github@chilon.net>",

@@ -15,3 +15,7 @@ import cousinHarris from 'cousin-harris'

const files = readdirSync(dir)
files.forEach((file) => {
for (const file of files) {
if (file === 'node_modules') {
continue
}
const fullPath = join(dir, file)

@@ -25,3 +29,3 @@ if (statSync(fullPath).isDirectory()) {

}
})
}
}

@@ -95,3 +99,3 @@

// don't map/await these, just log on failure
toDelete.forEach(async (file) => {
for (const file of toDelete) {
if (

@@ -109,3 +113,3 @@ existsSync(file) &&

}
})
}
},

@@ -112,0 +116,0 @@ { watchProject: options.watchProject },

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc