🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Book a DemoInstallSign in
Socket

@k4rnival/selmin

Package Overview
Dependencies
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@k4rnival/selmin - npm Package Compare versions

Comparing version

to
1.0.5

35

dist/cmd/index.js

@@ -14,21 +14,21 @@ #!/usr/bin/env node

const main_1 = require("../lib/main");
const args = yargs.option('files', {
alias: 'f',
description: 'fileglob to examine, accepts a glob pattern',
demandOption: true
const args = yargs
.option("files", {
alias: "f",
description: "fileglob to examine, accepts a glob pattern",
demandOption: true,
})
.option('dry-run', {
alias: 'd',
description: 'do not persist output files'
.option("dry-run", {
alias: "d",
description: "do not persist output files",
})
.option('prefix', {
alias: 'p',
description: 'prefix to look for before minimizing',
demandOption: true
.option("prefix", {
alias: "p",
description: "prefix to look for before minimizing",
demandOption: true,
})
.option('log-gain', {
alias: 'l',
description: 'log size gained on selector replacement'
})
.argv;
.option("log-gain", {
alias: "l",
description: "log size gained on selector replacement",
}).argv;
(() => __awaiter(this, void 0, void 0, function* () {

@@ -39,6 +39,7 @@ const input = {

logGain: args.l,
dryRun: args.d
dryRun: args.d,
};
console.log(input);
return yield main_1.main(input);
}))();
//# sourceMappingURL=index.js.map

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

for (const file of files) {
console.warn("ohohoh");
console.log("extracting data from", file);
superFile = superFile + "\n" + (yield fs.readFile(file));

@@ -18,0 +18,0 @@ }

@@ -26,3 +26,5 @@ "use strict";

superFile = yield build_superfile_1.buildSuperfile(files);
console.log("creating replaceList");
replaceList = build_replace_list_1.buildReplaceList(superFile, input.prefix);
console.log("getting results");
result = yield apply_replace_list_1.applyReplaceList(files, replaceList, input.logGain);

@@ -29,0 +31,0 @@ if (!input.dryRun) {

{
"name": "@k4rnival/selmin",
"version": "1.0.4",
"version": "1.0.5",
"description": "minify selectors in prod files",

@@ -5,0 +5,0 @@ "main": "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