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

anvil.js

Package Overview
Dependencies
Maintainers
1
Versions
55
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

anvil.js - npm Package Compare versions

Comparing version 0.4.1 to 0.4.2

2

demo/lib/parent.min.gz.js

@@ -1,1 +0,1 @@

���xN�H+�K.����HԬ.K,RH���hV�dd�'Vzd"�&�������k(yd�)i���$��/�6/�\!�:�^C��T�h�u*LT'1'��DC����[�1D��U�]Sd�&*9 �
�p�xN�H+�K.����HԬ.K,RH���hV�dd�'Vzd"�&�������k(yd�)i���$��/�6/�\!�:�^C��T�h�u*LT'1'��DC����[�1D��U�]Sd�&*9 �

@@ -21,6 +21,10 @@ var ArgParser, builder, coffeeScript, colors, dive, emitter, events, express, fs, gzipper, jslint, jsp, mkdir, path, pro, resource, _;

onEvent = function(x) {
return console.log(" " + x);
if (!quiet) {
return console.log(" " + x);
}
};
onStep = function(x) {
return console.log(("" + x).blue);
if (!quiet) {
return console.log(("" + x).blue);
}
};

@@ -220,3 +224,3 @@ onComplete = function(x) {

};
var config, configure, continuous, conventionConfig, ensurePaths, ext, importRegex, inProcess, loadConfig, loadConvention, prepConfig, test, writeConfig;
var config, configure, continuous, conventionConfig, ensurePaths, ext, importRegex, inProcess, loadConfig, loadConvention, prepConfig, quiet, test, writeConfig;
config = {};

@@ -234,2 +238,3 @@ conventionConfig = {

inProcess = false;
quiet = false;
ext = {

@@ -255,3 +260,3 @@ gzip: "gz",

console.log("Creating scaffolding for " + scaffold);
ensurePath(scaffold, function() {
return ensurePath(scaffold, function() {
return ensurePath(scaffold + "/src", function() {

@@ -261,3 +266,4 @@ return ensurePath(scaffold + "/lib", function() {

return ensurePath(scaffold + "/spec", function() {
return writeConfig(scaffold + "/build.json");
writeConfig(scaffold + "/build.json");
return global.process.exit(0);
});

@@ -268,20 +274,22 @@ });

});
node.exit(0);
} else {
buildOpt = parser.getOptions("b");
buildFile = buildOpt ? buildOpt : "build.json";
buildTemplate = parser.getOptions("t", "template");
if (buildTemplate) {
output = buildTemplate === true ? "build.json" : buildTemplate;
writeConfig(output);
global.process.exit(0);
}
continuous = parser.getOptions("ci");
quiet = parser.getOptions("q");
test = parser.getOptions("p", "pavlov");
if (test) {
startHost();
}
onStep("Checking for config...");
return path.exists("./build.json", function(exists) {
return prepConfig(exists, buildFile);
});
}
buildOpt = parser.getOptions("b");
buildFile = buildOpt ? buildOpt : "build.json";
buildTemplate = parser.getOptions("t", "template");
if (buildTemplate) {
output = buildTemplate === true ? "build.json" : buildTemplate;
writeConfig(output);
}
continuous = parser.getOptions("ci");
test = parser.getOptions("p", "pavlov");
if (test) {
startHost();
}
onStep("Checking for config...");
return path.exists("./build.json", function(exists) {
return prepConfig(exists, buildFile);
});
};

@@ -312,3 +320,3 @@ prepConfig = function(exists, file) {

writeConfig = function(name) {
return writeFile(name, JSON.stringify(conventionConfig, null, "\t"), function(x) {
return writeFileSync(name, JSON.stringify(conventionConfig, null, "\t"), function(x) {
return onComplete("" + name + " created successfully!");

@@ -356,3 +364,3 @@ });

x = errors[_i];
onEvent((" line " + x.line + ", pos " + x.character + " - " + x.reason).red);
console.log((" line " + x.line + ", pos " + x.character + " - " + x.reason).red);
}

@@ -477,3 +485,2 @@ } else {

var coffee, source;
console.log("Coffee file requested!");
res.header('Content-Type', 'application/javascript');

@@ -480,0 +487,0 @@ source = fs.readFileSync("." + req.url, "utf8");

{
"name": "anvil.js",
"description": "Static javascript / coffeescript build utility",
"version": "0.4.1",
"version": "0.4.2",
"authors": ["Alex Robson <@A_Robson>"],

@@ -6,0 +6,0 @@ "keywords": ["build","compile","static"],

@@ -122,2 +122,8 @@ # Anvil

## Too chatty?
You can tell anvil to run in quiet mode (it will still print errors (red) and step completions (green) )
anvil -q
## Demo

@@ -124,0 +130,0 @@

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

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