New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

clean-release

Package Overview
Dependencies
Maintainers
1
Versions
57
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

clean-release - npm Package Compare versions

Comparing version 1.3.4 to 1.3.5

19

dist/index.js
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const tmp = require("tmp");
const flatten = require("lodash.flatten");
const uniq = require("lodash.uniq");
const minimist = require("minimist");
const path = require("path");
const glob = require("glob");
const minimatch = require("minimatch");
const fs = require("fs");

@@ -23,5 +20,5 @@ const cpy = require("cpy");

}
function globAsync(pattern) {
function globAsync(pattern, ignore) {
return new Promise((resolve, reject) => {
glob(pattern, (error, matches) => {
glob(pattern, { ignore }, (error, matches) => {
if (error) {

@@ -59,5 +56,4 @@ reject(error);

});
subProcess.stdout.on("data", chunk => {
printInConsole(chunk);
});
subProcess.stdout.pipe(process.stdout);
subProcess.stderr.pipe(process.stderr);
});

@@ -96,7 +92,6 @@ }

}
const files = await Promise.all(configData.include.map(file => globAsync(file)));
let uniqFiles = uniq(flatten(files));
if (configData.exclude) {
uniqFiles = uniqFiles.filter(file => configData.exclude && configData.exclude.every(excludeFile => !minimatch(file, excludeFile)));
if (!configData.include || configData.include.length === 0) {
throw new Error("Expect at least one pattern.");
}
const uniqFiles = await globAsync(configData.include.length === 1 ? configData.include[0] : `{${configData.include.join(",")}}`, configData.exclude);
for (const file of uniqFiles) {

@@ -103,0 +98,0 @@ if (!fs.existsSync(file)) {

{
"name": "clean-release",
"version": "1.3.4",
"version": "1.3.5",
"description": "A CLI tool to copy files to be released into a tmp clean directory for npm publishing, electronjs packaging, docker image creation, or deployment",

@@ -24,17 +24,16 @@ "main": "index.js",

"devDependencies": {
"@types/cpy": "5.0.1",
"@types/glob": "5.0.30",
"@types/jasmine": "2.5.53",
"@types/minimatch": "2.0.29",
"@types/cpy": "5.1.0",
"@types/glob": "5.0.32",
"@types/jasmine": "2.6.0",
"@types/minimist": "1.2.0",
"@types/mkdirp": "0.5.0",
"@types/node": "8.0.17",
"@types/rimraf": "0.0.28",
"@types/mkdirp": "0.5.1",
"@types/node": "8.0.28",
"@types/rimraf": "2.0.2",
"@types/tmp": "0.0.33",
"clean-scripts": "1.2.1",
"jasmine": "2.7.0",
"no-unused-export": "1.0.1",
"standard": "10.0.2",
"tslint": "5.5.0",
"typescript": "2.4.2"
"clean-scripts": "1.2.6",
"jasmine": "2.8.0",
"no-unused-export": "1.2.6",
"standard": "10.0.3",
"tslint": "5.7.0",
"typescript": "2.5.2"
},

@@ -47,10 +46,7 @@ "bin": {

"glob": "7.1.2",
"lodash.flatten": "4.4.0",
"lodash.uniq": "4.5.0",
"minimatch": "3.0.4",
"minimist": "1.2.0",
"mkdirp": "0.5.1",
"rimraf": "2.6.1",
"tmp": "0.0.31"
"rimraf": "2.6.2",
"tmp": "0.0.33"
}
}
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